repo
stringlengths
5
92
file_url
stringlengths
80
287
file_path
stringlengths
5
197
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:37:27
2026-01-04 17:58:21
truncated
bool
2 classes
keolo/mixpanel_client
https://github.com/keolo/mixpanel_client/blob/c3c3a73c82d760e522233cf5be9abed1047995f2/spec/mixpanel_client/uri_spec.rb
spec/mixpanel_client/uri_spec.rb
# coding: utf-8 require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Mixpanel::URI do describe '.mixpanel' do it 'should return a properly formatted mixpanel uri as a string (without an endpoint)' do resource = 'events' params = { c: 'see', a: 'ey' } expect(Mix...
ruby
MIT
c3c3a73c82d760e522233cf5be9abed1047995f2
2026-01-04T17:36:45.142142Z
false
keolo/mixpanel_client
https://github.com/keolo/mixpanel_client/blob/c3c3a73c82d760e522233cf5be9abed1047995f2/lib/mixpanel_client.rb
lib/mixpanel_client.rb
#!/usr/bin/env ruby -Ku # Mixpanel API Ruby Client Library # # Library includes. # # Copyright (c) 2009+ Keolo Keagy. # See LICENSE for details. # Libraries. require 'cgi' require 'digest/md5' require 'open-uri' require 'json' unless defined?(JSON) # Mixpanel::Client libraries. require "#{File.dirname(__FILE__)}/mix...
ruby
MIT
c3c3a73c82d760e522233cf5be9abed1047995f2
2026-01-04T17:36:45.142142Z
false
keolo/mixpanel_client
https://github.com/keolo/mixpanel_client/blob/c3c3a73c82d760e522233cf5be9abed1047995f2/lib/mixpanel/version.rb
lib/mixpanel/version.rb
#!/usr/bin/env ruby -Ku # Mixpanel API Ruby Client Library # # Set version number for mixpanel_client # # Copyright (c) 2009+ Keolo Keagy # See LICENSE for details module Mixpanel # Return metrics from Mixpanel Data API class Client # Mixpanel::Client library version VERSION = '5.1.0'.freeze end end
ruby
MIT
c3c3a73c82d760e522233cf5be9abed1047995f2
2026-01-04T17:36:45.142142Z
false
keolo/mixpanel_client
https://github.com/keolo/mixpanel_client/blob/c3c3a73c82d760e522233cf5be9abed1047995f2/lib/mixpanel/exceptions.rb
lib/mixpanel/exceptions.rb
#!/usr/bin/env ruby -Ku # Mixpanel API Ruby Client Library # # Define exceptions for this library # # Copyright (c) 2009+ Keolo Keagy # See LICENSE for details module Mixpanel # URI related exceptions class Error < StandardError; end class HTTPError < Error; end class TimeoutError < Error; end class ParseErr...
ruby
MIT
c3c3a73c82d760e522233cf5be9abed1047995f2
2026-01-04T17:36:45.142142Z
false
keolo/mixpanel_client
https://github.com/keolo/mixpanel_client/blob/c3c3a73c82d760e522233cf5be9abed1047995f2/lib/mixpanel/utils.rb
lib/mixpanel/utils.rb
#!/usr/bin/env ruby -Ku # Mixpanel API Ruby Client Library # # Allows access to the mixpanel.com api using the ruby programming language # # Copyright (c) 2009+ Keolo Keagy # See LICENSE for details module Mixpanel # Utility methods for Mixpanel::Client class Client # Mixpanel API Ruby Client Library # ...
ruby
MIT
c3c3a73c82d760e522233cf5be9abed1047995f2
2026-01-04T17:36:45.142142Z
false
keolo/mixpanel_client
https://github.com/keolo/mixpanel_client/blob/c3c3a73c82d760e522233cf5be9abed1047995f2/lib/mixpanel/uri.rb
lib/mixpanel/uri.rb
#!/usr/bin/env ruby -Ku # Mixpanel API Ruby Client Library # # URI related helpers # # Copyright (c) 2009+ Keolo Keagy # See LICENSE for details module Mixpanel # Utilities to assist generating and requesting URIs class URI def self.mixpanel(resource, params) base = Mixpanel::Client.base_uri_for_resource...
ruby
MIT
c3c3a73c82d760e522233cf5be9abed1047995f2
2026-01-04T17:36:45.142142Z
false
keolo/mixpanel_client
https://github.com/keolo/mixpanel_client/blob/c3c3a73c82d760e522233cf5be9abed1047995f2/lib/mixpanel/client.rb
lib/mixpanel/client.rb
#!/usr/bin/env ruby -Ku # Mixpanel API Ruby Client Library # # Allows access to the mixpanel.com API using the ruby programming language # # Copyright (c) 2009+ Keolo Keagy # See LICENSE for details module Mixpanel # Return metrics from Mixpanel Data API class Client BASE_URI = 'https://mixpanel.com/api/2.0'...
ruby
MIT
c3c3a73c82d760e522233cf5be9abed1047995f2
2026-01-04T17:36:45.142142Z
false
keolo/mixpanel_client
https://github.com/keolo/mixpanel_client/blob/c3c3a73c82d760e522233cf5be9abed1047995f2/manual_test/basic.rb
manual_test/basic.rb
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'rubygems' require 'mixpanel_client' require 'yaml' config = YAML.load_file(File.join( File.dirname(__FILE__), '..', 'confi...
ruby
MIT
c3c3a73c82d760e522233cf5be9abed1047995f2
2026-01-04T17:36:45.142142Z
false
benlaurie/objecthash
https://github.com/benlaurie/objecthash/blob/d1e3d6079fc16f8f542183fb5b2fdc11d9f00866/ruby/spec/objecthash_spec.rb
ruby/spec/objecthash_spec.rb
require "spec_helper" # Note many tests extracted from: # https://github.com/benlaurie/objecthash/blob/master/common_json.test # # ALL hashes were first calculated in the Python implementation # at benlaurie/objecthash to ensure interop # rubocop:disable Metrics/LineLength # rubocop:disable Style/WordArray RSpec.des...
ruby
Apache-2.0
d1e3d6079fc16f8f542183fb5b2fdc11d9f00866
2026-01-04T17:36:56.361249Z
false
benlaurie/objecthash
https://github.com/benlaurie/objecthash/blob/d1e3d6079fc16f8f542183fb5b2fdc11d9f00866/ruby/spec/spec_helper.rb
ruby/spec/spec_helper.rb
require "json" require "objecthash" RSpec.configure(&:disable_monkey_patching!)
ruby
Apache-2.0
d1e3d6079fc16f8f542183fb5b2fdc11d9f00866
2026-01-04T17:36:56.361249Z
false
benlaurie/objecthash
https://github.com/benlaurie/objecthash/blob/d1e3d6079fc16f8f542183fb5b2fdc11d9f00866/ruby/lib/objecthash.rb
ruby/lib/objecthash.rb
# Originally designed by Ben Laurie # Adapted from https://github.com/benlaurie/objecthash/blob/master/objecthash.py require "objecthash/version" require "digest/sha2" require "set" # A content hash algorithm which works across multiple encodings (JSON, Protobufs, etc) class ObjectHash # Default algorithm to use f...
ruby
Apache-2.0
d1e3d6079fc16f8f542183fb5b2fdc11d9f00866
2026-01-04T17:36:56.361249Z
false
benlaurie/objecthash
https://github.com/benlaurie/objecthash/blob/d1e3d6079fc16f8f542183fb5b2fdc11d9f00866/ruby/lib/objecthash/version.rb
ruby/lib/objecthash/version.rb
class ObjectHash VERSION = "1.0.2".freeze end
ruby
Apache-2.0
d1e3d6079fc16f8f542183fb5b2fdc11d9f00866
2026-01-04T17:36:56.361249Z
false
kickstarter/ipcat-ruby
https://github.com/kickstarter/ipcat-ruby/blob/fceba418df44fa876d8c42e570a9e3009896d6ea/spec/ipcat_spec.rb
spec/ipcat_spec.rb
# frozen_string_literal: true require_relative 'spec_helper' describe 'IPCat' do before do IPCat.reset_ranges! start = IPAddr.new('1.2.3.0').to_i stop = IPAddr.new('1.2.3.255').to_i IPCat.ranges << IPCat::IPRange.new(start, stop, 'example', 'www.example.com') end describe '#ranges' do it('h...
ruby
MIT
fceba418df44fa876d8c42e570a9e3009896d6ea
2026-01-04T17:36:51.450213Z
false
kickstarter/ipcat-ruby
https://github.com/kickstarter/ipcat-ruby/blob/fceba418df44fa876d8c42e570a9e3009896d6ea/spec/ipcat_iprange_spec.rb
spec/ipcat_iprange_spec.rb
# frozen_string_literal: true require_relative 'spec_helper' describe 'IPCat::IPRange' do attr_accessor :range before do IPCat.reset_ranges! first = IPAddr.new('1.2.3.0').to_i last = IPAddr.new('1.2.3.255').to_i @range = IPCat::IPRange.new(first, last, 'example', 'www.example.com') end descr...
ruby
MIT
fceba418df44fa876d8c42e570a9e3009896d6ea
2026-01-04T17:36:51.450213Z
false
kickstarter/ipcat-ruby
https://github.com/kickstarter/ipcat-ruby/blob/fceba418df44fa876d8c42e570a9e3009896d6ea/spec/benchmark_spec.rb
spec/benchmark_spec.rb
# frozen_string_literal: true require_relative 'spec_helper' require 'minitest/benchmark' describe 'IPCat.bsearch Benchmark' do # Makes +n+ IPRanges def make_ranges(n) ips = Array.new((n * 2)) { rand(2**32) }.sort ranges = [] ips.each_slice(2) do |first, last| ranges << IPCat::IPRange.new(first,...
ruby
MIT
fceba418df44fa876d8c42e570a9e3009896d6ea
2026-01-04T17:36:51.450213Z
false
kickstarter/ipcat-ruby
https://github.com/kickstarter/ipcat-ruby/blob/fceba418df44fa876d8c42e570a9e3009896d6ea/spec/spec_helper.rb
spec/spec_helper.rb
# frozen_string_literal: true require 'rubygems' require 'bundler/setup' require 'minitest/autorun' require 'minitest/pride' require 'ipcat'
ruby
MIT
fceba418df44fa876d8c42e570a9e3009896d6ea
2026-01-04T17:36:51.450213Z
false
kickstarter/ipcat-ruby
https://github.com/kickstarter/ipcat-ruby/blob/fceba418df44fa876d8c42e570a9e3009896d6ea/lib/ipcat.rb
lib/ipcat.rb
# frozen_string_literal: true ## # IPCat # Ruby lib for https://github.com/rale/ipcat/ require 'ipaddr' require 'ipcat/iprange' require 'ipcat/version' class IPCat class << self def datacenter?(ip) bsearch(ip_to_integer(ip)) end alias classify datacenter? def ip_to_integer(ip) Integer ...
ruby
MIT
fceba418df44fa876d8c42e570a9e3009896d6ea
2026-01-04T17:36:51.450213Z
false
kickstarter/ipcat-ruby
https://github.com/kickstarter/ipcat-ruby/blob/fceba418df44fa876d8c42e570a9e3009896d6ea/lib/ipcat/version.rb
lib/ipcat/version.rb
# frozen_string_literal: true class IPCat VERSION = '2.0.23' end
ruby
MIT
fceba418df44fa876d8c42e570a9e3009896d6ea
2026-01-04T17:36:51.450213Z
false
kickstarter/ipcat-ruby
https://github.com/kickstarter/ipcat-ruby/blob/fceba418df44fa876d8c42e570a9e3009896d6ea/lib/ipcat/iprange.rb
lib/ipcat/iprange.rb
# frozen_string_literal: true class IPCat class IPRange attr_accessor :first, :last, :name, :url def initialize(first, last, name = nil, url = nil) @first = IPCat.ip_to_integer(first) @last = IPCat.ip_to_integer(last) @name = name @url = url raise ArgumentError, 'first must be...
ruby
MIT
fceba418df44fa876d8c42e570a9e3009896d6ea
2026-01-04T17:36:51.450213Z
false
quirkey/sinatra-gen
https://github.com/quirkey/sinatra-gen/blob/b45c5cbe320294d34d75108aac8b44f431092ce3/app_generators/sinatra_app/sinatra_app_generator.rb
app_generators/sinatra_app/sinatra_app_generator.rb
class RubiGen::Commands::Create def run(command, relative_path = '') in_directory = destination_path(relative_path) logger.run command system("cd #{in_directory} && #{command}") end end class SinatraAppGenerator < RubiGen::Base DEFAULT_SHEBANG = File.join(Config::CONFIG['bindir'], Config::CONFI...
ruby
MIT
b45c5cbe320294d34d75108aac8b44f431092ce3
2026-01-04T17:37:02.043170Z
false
quirkey/sinatra-gen
https://github.com/quirkey/sinatra-gen/blob/b45c5cbe320294d34d75108aac8b44f431092ce3/test/test_sinatra_app_generator.rb
test/test_sinatra_app_generator.rb
require File.join(File.dirname(__FILE__), "test_generator_helper.rb") class TestSinatraAppGenerator < Test::Unit::TestCase include RubiGen::GeneratorTestHelper def setup bare_setup end def teardown bare_teardown end def test_generate_app_without_options run_generator('sinatra_app', [APP_ROOT...
ruby
MIT
b45c5cbe320294d34d75108aac8b44f431092ce3
2026-01-04T17:37:02.043170Z
false
quirkey/sinatra-gen
https://github.com/quirkey/sinatra-gen/blob/b45c5cbe320294d34d75108aac8b44f431092ce3/test/test_generator_helper.rb
test/test_generator_helper.rb
begin require File.dirname(__FILE__) + '/test_helper' rescue LoadError require 'test/unit' end require 'fileutils' # Must set before requiring generator libs. TMP_ROOT = File.dirname(__FILE__) + "/tmp" unless defined?(TMP_ROOT) PROJECT_NAME = "myproject" unless defined?(PROJECT_NAME) app_root = File.join(TMP_ROOT,...
ruby
MIT
b45c5cbe320294d34d75108aac8b44f431092ce3
2026-01-04T17:37:02.043170Z
false
quirkey/sinatra-gen
https://github.com/quirkey/sinatra-gen/blob/b45c5cbe320294d34d75108aac8b44f431092ce3/test/test_helper.rb
test/test_helper.rb
require 'stringio' require 'test/unit' require File.dirname(__FILE__) + '/../lib/sinatra-gen'
ruby
MIT
b45c5cbe320294d34d75108aac8b44f431092ce3
2026-01-04T17:37:02.043170Z
false
quirkey/sinatra-gen
https://github.com/quirkey/sinatra-gen/blob/b45c5cbe320294d34d75108aac8b44f431092ce3/lib/sinatra-gen.rb
lib/sinatra-gen.rb
$:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__))) module SinatraGen VERSION = '0.4.2' end
ruby
MIT
b45c5cbe320294d34d75108aac8b44f431092ce3
2026-01-04T17:37:02.043170Z
false
abhidsm/time_diff
https://github.com/abhidsm/time_diff/blob/1ff5829ca240d7eae86bf484816538fcded740b3/test/test_time_diff.rb
test/test_time_diff.rb
require 'helper' require 'time' class TestTimeDiff < Test::Unit::TestCase should "return the time differnce in displayable format" do assert_test_scenarios(Time.parse('2011-03-06'), Time.parse('2011-03-07'), {:year => 0, :month => 0, :week => 0, :day => 1, :hour => 0, :minute => 0, :second => 0, :diff => '1 day ...
ruby
MIT
1ff5829ca240d7eae86bf484816538fcded740b3
2026-01-04T17:37:00.135267Z
false
abhidsm/time_diff
https://github.com/abhidsm/time_diff/blob/1ff5829ca240d7eae86bf484816538fcded740b3/test/helper.rb
test/helper.rb
require 'rubygems' require 'bundler' #require 'coveralls' #Coveralls.wear! begin Bundler.setup(:default, :development) rescue Bundler::BundlerError => e $stderr.puts e.message $stderr.puts "Run `bundle install` to install missing gems" exit e.status_code end require 'test/unit' require 'shoulda' $LOAD_PATH.un...
ruby
MIT
1ff5829ca240d7eae86bf484816538fcded740b3
2026-01-04T17:37:00.135267Z
false
abhidsm/time_diff
https://github.com/abhidsm/time_diff/blob/1ff5829ca240d7eae86bf484816538fcded740b3/lib/time_diff.rb
lib/time_diff.rb
require 'rubygems' require 'active_support/all' require 'i18n' class Time def self.diff(start_date, end_date, format_string='%y, %M, %w, %d and %h:%m:%s') #I18n.load_path += Dir.glob("lib/*.yml") start_time = start_date.to_time if start_date.respond_to?(:to_time) end_time = end_date.to_time if end_date.r...
ruby
MIT
1ff5829ca240d7eae86bf484816538fcded740b3
2026-01-04T17:37:00.135267Z
false
google/autoparse
https://github.com/google/autoparse/blob/c710936d68b30840c9feea01f9d89038944b4ec9/spec/spec_helper.rb
spec/spec_helper.rb
spec_dir = File.expand_path(File.dirname(__FILE__)) lib_dir = File.expand_path(File.join(spec_dir, '../lib')) $:.unshift(lib_dir) $:.uniq! require 'autoparse' require 'json' module JSONMatchers class EqualsJson def initialize(expected) @expected = JSON.parse(expected) end def matches?(target) ...
ruby
Apache-2.0
c710936d68b30840c9feea01f9d89038944b4ec9
2026-01-04T17:37:05.142279Z
false
google/autoparse
https://github.com/google/autoparse/blob/c710936d68b30840c9feea01f9d89038944b4ec9/spec/autoparse/instance_spec.rb
spec/autoparse/instance_spec.rb
# Copyright 2010 Google Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
ruby
Apache-2.0
c710936d68b30840c9feea01f9d89038944b4ec9
2026-01-04T17:37:05.142279Z
true
google/autoparse
https://github.com/google/autoparse/blob/c710936d68b30840c9feea01f9d89038944b4ec9/lib/autoparse.rb
lib/autoparse.rb
# Copyright 2010 Google Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
ruby
Apache-2.0
c710936d68b30840c9feea01f9d89038944b4ec9
2026-01-04T17:37:05.142279Z
false
google/autoparse
https://github.com/google/autoparse/blob/c710936d68b30840c9feea01f9d89038944b4ec9/lib/compat/multi_json.rb
lib/compat/multi_json.rb
gem 'multi_json', '>= 1.0.0' require 'multi_json' unless MultiJson.respond_to?(:load) module MultiJson class <<self alias :load :decode end end end unless MultiJson.respond_to?(:dump) module MultiJson class <<self alias :dump :encode end end end
ruby
Apache-2.0
c710936d68b30840c9feea01f9d89038944b4ec9
2026-01-04T17:37:05.142279Z
false
google/autoparse
https://github.com/google/autoparse/blob/c710936d68b30840c9feea01f9d89038944b4ec9/lib/autoparse/version.rb
lib/autoparse/version.rb
# Copyright 2010 Google Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
ruby
Apache-2.0
c710936d68b30840c9feea01f9d89038944b4ec9
2026-01-04T17:37:05.142279Z
false
google/autoparse
https://github.com/google/autoparse/blob/c710936d68b30840c9feea01f9d89038944b4ec9/lib/autoparse/inflection.rb
lib/autoparse/inflection.rb
# Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
ruby
Apache-2.0
c710936d68b30840c9feea01f9d89038944b4ec9
2026-01-04T17:37:05.142279Z
false
google/autoparse
https://github.com/google/autoparse/blob/c710936d68b30840c9feea01f9d89038944b4ec9/lib/autoparse/instance.rb
lib/autoparse/instance.rb
# Copyright 2010 Google Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
ruby
Apache-2.0
c710936d68b30840c9feea01f9d89038944b4ec9
2026-01-04T17:37:05.142279Z
false
piotrmurach/rack-policy
https://github.com/piotrmurach/rack-policy/blob/0467d8a6ab39672fd3d24326107535ab16a02e07/spec/spec_helper.rb
spec/spec_helper.rb
# coding: utf-8 if RUBY_VERSION > '1.9' and (ENV['COVERAGE'] || ENV['TRAVIS']) require 'simplecov' require 'coveralls' SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter ] SimpleCov.start do command_name 'spec' ad...
ruby
MIT
0467d8a6ab39672fd3d24326107535ab16a02e07
2026-01-04T17:37:06.354177Z
false
piotrmurach/rack-policy
https://github.com/piotrmurach/rack-policy/blob/0467d8a6ab39672fd3d24326107535ab16a02e07/spec/unit/cookie_limiter_spec.rb
spec/unit/cookie_limiter_spec.rb
# coding: utf-8 -*- RSpec.describe Rack::Policy::CookieLimiter do it 'preserves normal requests' do expect(get('/')).to be_ok expect(last_response.body).to eq('ok') end it "does not meter where the middleware is inserted" do mock_app { use Rack::Policy::CookieLimiter use Rack::Session::...
ruby
MIT
0467d8a6ab39672fd3d24326107535ab16a02e07
2026-01-04T17:37:06.354177Z
false
piotrmurach/rack-policy
https://github.com/piotrmurach/rack-policy/blob/0467d8a6ab39672fd3d24326107535ab16a02e07/spec/unit/helpers_spec.rb
spec/unit/helpers_spec.rb
# coding: utf-8 class HelperTest attr_accessor :request include Rack::Policy::Helpers def initialize @request = HelperTest::Request.new end class Request attr_reader :env def initialize; @env = {}; end end end RSpec.describe Rack::Policy::Helpers do let(:helper_test) { HelperTest.new } ...
ruby
MIT
0467d8a6ab39672fd3d24326107535ab16a02e07
2026-01-04T17:37:06.354177Z
false
piotrmurach/rack-policy
https://github.com/piotrmurach/rack-policy/blob/0467d8a6ab39672fd3d24326107535ab16a02e07/lib/rack-policy.rb
lib/rack-policy.rb
require 'rack/policy'
ruby
MIT
0467d8a6ab39672fd3d24326107535ab16a02e07
2026-01-04T17:37:06.354177Z
false
piotrmurach/rack-policy
https://github.com/piotrmurach/rack-policy/blob/0467d8a6ab39672fd3d24326107535ab16a02e07/lib/rack/policy.rb
lib/rack/policy.rb
# -*- encoding: utf-8 -*- require 'rack' module Rack module Policy autoload :CookieLimiter, 'rack/policy/cookie_limiter' autoload :Version, 'rack/policy/version' autoload :Helpers, 'rack/policy/helpers' # Initialize Rack::Policy extensions within an application require 'rack/pol...
ruby
MIT
0467d8a6ab39672fd3d24326107535ab16a02e07
2026-01-04T17:37:06.354177Z
false
piotrmurach/rack-policy
https://github.com/piotrmurach/rack-policy/blob/0467d8a6ab39672fd3d24326107535ab16a02e07/lib/rack/policy/sinatra.rb
lib/rack/policy/sinatra.rb
# -*- encoding: utf-8 -*- module Rack module Policy module Sinatra def self.registered(app) app.helpers Rack::Policy::Helpers end end # Sinatra end # Policy end # Rack Sinatra.register Rack::Policy::Sinatra
ruby
MIT
0467d8a6ab39672fd3d24326107535ab16a02e07
2026-01-04T17:37:06.354177Z
false
piotrmurach/rack-policy
https://github.com/piotrmurach/rack-policy/blob/0467d8a6ab39672fd3d24326107535ab16a02e07/lib/rack/policy/version.rb
lib/rack/policy/version.rb
# -*- encoding: utf-8 -*- module Rack module Policy VERSION = "0.4.1" end end
ruby
MIT
0467d8a6ab39672fd3d24326107535ab16a02e07
2026-01-04T17:37:06.354177Z
false
piotrmurach/rack-policy
https://github.com/piotrmurach/rack-policy/blob/0467d8a6ab39672fd3d24326107535ab16a02e07/lib/rack/policy/extensions.rb
lib/rack/policy/extensions.rb
# -*- encoding: utf-8 -*- # Autoload Rails extensions if defined?(Rails) && Rails.respond_to?(:application) # Rails 3 require 'rack/policy/railtie' elsif defined?(Rails::Initializer) # Rails 2.3 require 'action_view' ActionView::Base.send :include, Rack::Policy::Helpers elsif defined?(Sinatra) require 'r...
ruby
MIT
0467d8a6ab39672fd3d24326107535ab16a02e07
2026-01-04T17:37:06.354177Z
false
piotrmurach/rack-policy
https://github.com/piotrmurach/rack-policy/blob/0467d8a6ab39672fd3d24326107535ab16a02e07/lib/rack/policy/helpers.rb
lib/rack/policy/helpers.rb
# -*- encoding: utf-8 -*- module Rack module Policy module Helpers def cookies_accepted? return false unless request.env.has_key? 'rack-policy.consent' accepted = !request.env['rack-policy.consent'].nil? yield if block_given? && accepted accepted end end # Helper...
ruby
MIT
0467d8a6ab39672fd3d24326107535ab16a02e07
2026-01-04T17:37:06.354177Z
false
piotrmurach/rack-policy
https://github.com/piotrmurach/rack-policy/blob/0467d8a6ab39672fd3d24326107535ab16a02e07/lib/rack/policy/railtie.rb
lib/rack/policy/railtie.rb
# -*- encoding: utf-8 -*- module Rack module Policy class Railtie < ::Rails::Railtie initializer "rack-policy.view_helpers" do |app| ActionView::Base.send :include, Helpers end end # Railtie end # Policy end # Rack
ruby
MIT
0467d8a6ab39672fd3d24326107535ab16a02e07
2026-01-04T17:37:06.354177Z
false
piotrmurach/rack-policy
https://github.com/piotrmurach/rack-policy/blob/0467d8a6ab39672fd3d24326107535ab16a02e07/lib/rack/policy/cookie_limiter.rb
lib/rack/policy/cookie_limiter.rb
# -*- encoding: utf-8 -*- module Rack module Policy # This is the class for limiting cookie storage on client machine. class CookieLimiter include ::Rack::Utils HTTP_COOKIE = "HTTP_COOKIE".freeze SET_COOKIE = "Set-Cookie".freeze CACHE_CONTROL = "Cache-Control".freeze CONSE...
ruby
MIT
0467d8a6ab39672fd3d24326107535ab16a02e07
2026-01-04T17:37:06.354177Z
false
facebook/taste-tester
https://github.com/facebook/taste-tester/blob/e2a10b9342f7652dcae3ef3588c9d6e5c4ade858/test/tt-git.rb
test/tt-git.rb
# vim: syntax=ruby:expandtab:shiftwidth=2:softtabstop=2:tabstop=2 # Copyright 2013-present Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LIC...
ruby
Apache-2.0
e2a10b9342f7652dcae3ef3588c9d6e5c4ade858
2026-01-04T17:37:04.909395Z
false
facebook/taste-tester
https://github.com/facebook/taste-tester/blob/e2a10b9342f7652dcae3ef3588c9d6e5c4ade858/test/tt-auto.rb
test/tt-auto.rb
# vim: syntax=ruby:expandtab:shiftwidth=2:softtabstop=2:tabstop=2 # Copyright 2013-present Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LIC...
ruby
Apache-2.0
e2a10b9342f7652dcae3ef3588c9d6e5c4ade858
2026-01-04T17:37:04.909395Z
false
facebook/taste-tester
https://github.com/facebook/taste-tester/blob/e2a10b9342f7652dcae3ef3588c9d6e5c4ade858/test/tt-hg.rb
test/tt-hg.rb
# vim: syntax=ruby:expandtab:shiftwidth=2:softtabstop=2:tabstop=2 # Copyright 2013-present Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LIC...
ruby
Apache-2.0
e2a10b9342f7652dcae3ef3588c9d6e5c4ade858
2026-01-04T17:37:04.909395Z
false
facebook/taste-tester
https://github.com/facebook/taste-tester/blob/e2a10b9342f7652dcae3ef3588c9d6e5c4ade858/spec/ssh_spec.rb
spec/ssh_spec.rb
# vim: syntax=ruby:expandtab:shiftwidth=2:softtabstop=2:tabstop=2 # Copyright 2020-present Facebook # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICEN...
ruby
Apache-2.0
e2a10b9342f7652dcae3ef3588c9d6e5c4ade858
2026-01-04T17:37:04.909395Z
false
facebook/taste-tester
https://github.com/facebook/taste-tester/blob/e2a10b9342f7652dcae3ef3588c9d6e5c4ade858/spec/tunnel_spec.rb
spec/tunnel_spec.rb
# vim: syntax=ruby:expandtab:shiftwidth=2:softtabstop=2:tabstop=2 # Copyright 2020-present Facebook # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICEN...
ruby
Apache-2.0
e2a10b9342f7652dcae3ef3588c9d6e5c4ade858
2026-01-04T17:37:04.909395Z
false
facebook/taste-tester
https://github.com/facebook/taste-tester/blob/e2a10b9342f7652dcae3ef3588c9d6e5c4ade858/lib/taste_tester/exceptions.rb
lib/taste_tester/exceptions.rb
# vim: syntax=ruby:expandtab:shiftwidth=2:softtabstop=2:tabstop=2 # Copyright 2013-present Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LIC...
ruby
Apache-2.0
e2a10b9342f7652dcae3ef3588c9d6e5c4ade858
2026-01-04T17:37:04.909395Z
false
facebook/taste-tester
https://github.com/facebook/taste-tester/blob/e2a10b9342f7652dcae3ef3588c9d6e5c4ade858/lib/taste_tester/hooks.rb
lib/taste_tester/hooks.rb
# vim: syntax=ruby:expandtab:shiftwidth=2:softtabstop=2:tabstop=2 # Copyright 2013-present Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LIC...
ruby
Apache-2.0
e2a10b9342f7652dcae3ef3588c9d6e5c4ade858
2026-01-04T17:37:04.909395Z
false
facebook/taste-tester
https://github.com/facebook/taste-tester/blob/e2a10b9342f7652dcae3ef3588c9d6e5c4ade858/lib/taste_tester/host.rb
lib/taste_tester/host.rb
# vim: syntax=ruby:expandtab:shiftwidth=2:softtabstop=2:tabstop=2 # Copyright 2013-present Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LIC...
ruby
Apache-2.0
e2a10b9342f7652dcae3ef3588c9d6e5c4ade858
2026-01-04T17:37:04.909395Z
false
facebook/taste-tester
https://github.com/facebook/taste-tester/blob/e2a10b9342f7652dcae3ef3588c9d6e5c4ade858/lib/taste_tester/logging.rb
lib/taste_tester/logging.rb
# vim: syntax=ruby:expandtab:shiftwidth=2:softtabstop=2:tabstop=2 # Copyright 2013-present Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LIC...
ruby
Apache-2.0
e2a10b9342f7652dcae3ef3588c9d6e5c4ade858
2026-01-04T17:37:04.909395Z
false
facebook/taste-tester
https://github.com/facebook/taste-tester/blob/e2a10b9342f7652dcae3ef3588c9d6e5c4ade858/lib/taste_tester/noop.rb
lib/taste_tester/noop.rb
# vim: syntax=ruby:expandtab:shiftwidth=2:softtabstop=2:tabstop=2 # Copyright 2013-present Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LIC...
ruby
Apache-2.0
e2a10b9342f7652dcae3ef3588c9d6e5c4ade858
2026-01-04T17:37:04.909395Z
false
facebook/taste-tester
https://github.com/facebook/taste-tester/blob/e2a10b9342f7652dcae3ef3588c9d6e5c4ade858/lib/taste_tester/state.rb
lib/taste_tester/state.rb
# vim: syntax=ruby:expandtab:shiftwidth=2:softtabstop=2:tabstop=2 # Copyright 2013-present Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LIC...
ruby
Apache-2.0
e2a10b9342f7652dcae3ef3588c9d6e5c4ade858
2026-01-04T17:37:04.909395Z
false
facebook/taste-tester
https://github.com/facebook/taste-tester/blob/e2a10b9342f7652dcae3ef3588c9d6e5c4ade858/lib/taste_tester/ssh_util.rb
lib/taste_tester/ssh_util.rb
# Copyright 2020-present Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ruby
Apache-2.0
e2a10b9342f7652dcae3ef3588c9d6e5c4ade858
2026-01-04T17:37:04.909395Z
false
facebook/taste-tester
https://github.com/facebook/taste-tester/blob/e2a10b9342f7652dcae3ef3588c9d6e5c4ade858/lib/taste_tester/ssh.rb
lib/taste_tester/ssh.rb
# vim: syntax=ruby:expandtab:shiftwidth=2:softtabstop=2:tabstop=2 # Copyright 2013-present Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LIC...
ruby
Apache-2.0
e2a10b9342f7652dcae3ef3588c9d6e5c4ade858
2026-01-04T17:37:04.909395Z
false
facebook/taste-tester
https://github.com/facebook/taste-tester/blob/e2a10b9342f7652dcae3ef3588c9d6e5c4ade858/lib/taste_tester/locallink.rb
lib/taste_tester/locallink.rb
# vim: syntax=ruby:expandtab:shiftwidth=2:softtabstop=2:tabstop=2 # Copyright 2013-present Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LIC...
ruby
Apache-2.0
e2a10b9342f7652dcae3ef3588c9d6e5c4ade858
2026-01-04T17:37:04.909395Z
false
facebook/taste-tester
https://github.com/facebook/taste-tester/blob/e2a10b9342f7652dcae3ef3588c9d6e5c4ade858/lib/taste_tester/commands.rb
lib/taste_tester/commands.rb
# vim: syntax=ruby:expandtab:shiftwidth=2:softtabstop=2:tabstop=2 # Copyright 2013-present Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LIC...
ruby
Apache-2.0
e2a10b9342f7652dcae3ef3588c9d6e5c4ade858
2026-01-04T17:37:04.909395Z
false
facebook/taste-tester
https://github.com/facebook/taste-tester/blob/e2a10b9342f7652dcae3ef3588c9d6e5c4ade858/lib/taste_tester/client.rb
lib/taste_tester/client.rb
# vim: syntax=ruby:expandtab:shiftwidth=2:softtabstop=2:tabstop=2 # Copyright 2013-present Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LIC...
ruby
Apache-2.0
e2a10b9342f7652dcae3ef3588c9d6e5c4ade858
2026-01-04T17:37:04.909395Z
false
facebook/taste-tester
https://github.com/facebook/taste-tester/blob/e2a10b9342f7652dcae3ef3588c9d6e5c4ade858/lib/taste_tester/config.rb
lib/taste_tester/config.rb
# vim: syntax=ruby:expandtab:shiftwidth=2:softtabstop=2:tabstop=2 # Copyright 2013-present Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LIC...
ruby
Apache-2.0
e2a10b9342f7652dcae3ef3588c9d6e5c4ade858
2026-01-04T17:37:04.909395Z
false
facebook/taste-tester
https://github.com/facebook/taste-tester/blob/e2a10b9342f7652dcae3ef3588c9d6e5c4ade858/lib/taste_tester/server.rb
lib/taste_tester/server.rb
# vim: syntax=ruby:expandtab:shiftwidth=2:softtabstop=2:tabstop=2 # Copyright 2013-present Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LIC...
ruby
Apache-2.0
e2a10b9342f7652dcae3ef3588c9d6e5c4ade858
2026-01-04T17:37:04.909395Z
false
facebook/taste-tester
https://github.com/facebook/taste-tester/blob/e2a10b9342f7652dcae3ef3588c9d6e5c4ade858/lib/taste_tester/windows.rb
lib/taste_tester/windows.rb
# vim: syntax=ruby:expandtab:shiftwidth=2:softtabstop=2:tabstop=2 # Copyright 2013-present Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LIC...
ruby
Apache-2.0
e2a10b9342f7652dcae3ef3588c9d6e5c4ade858
2026-01-04T17:37:04.909395Z
false
facebook/taste-tester
https://github.com/facebook/taste-tester/blob/e2a10b9342f7652dcae3ef3588c9d6e5c4ade858/lib/taste_tester/tunnel.rb
lib/taste_tester/tunnel.rb
# vim: syntax=ruby:expandtab:shiftwidth=2:softtabstop=2:tabstop=2 # Copyright 2013-present Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LIC...
ruby
Apache-2.0
e2a10b9342f7652dcae3ef3588c9d6e5c4ade858
2026-01-04T17:37:04.909395Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/app/helpers/action_markdown/tag_helper.rb
app/helpers/action_markdown/tag_helper.rb
require "action_view/helpers/tags/placeholderable" module ActionMarkdown module TagHelper cattr_accessor(:id, instance_accessor: false) { 0 } def markdown_field_tag(name, value = nil, options = {}) options = options.symbolize_keys options[:id] ||= "action_markdown_input_#{ActionMarkdown::TagHelp...
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/app/models/action_markdown/markdown_text.rb
app/models/action_markdown/markdown_text.rb
module ActionMarkdown class MarkdownText < ApplicationRecord self.table_name = "action_markdown_markdown_texts" serialize :body, ActionMarkdown::Content belongs_to :record, polymorphic: true, touch: true delegate :to_s, :nil?, to: :body delegate :to_markdown, to: :body, allow_nil: true dele...
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/app/models/action_markdown/application_record.rb
app/models/action_markdown/application_record.rb
module ActionMarkdown class ApplicationRecord < ActiveRecord::Base self.abstract_class = true end end
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/db/migrate/20221110163240_create_action_markdown_tables.rb
db/migrate/20221110163240_create_action_markdown_tables.rb
class CreateActionMarkdownTables < ActiveRecord::Migration[7.0] def change # Use Active Record's configured type for primary and foreign keys primary_key_type, foreign_key_type = primary_and_foreign_key_types create_table :action_markdown_markdown_texts, id: primary_key_type do |t| t.string :na...
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/test/test_helper.rb
test/test_helper.rb
# Configure Rails Environment ENV["RAILS_ENV"] = "test" require_relative "../test/dummy/config/environment" ActiveRecord::Migrator.migrations_paths = [File.expand_path("../test/dummy/db/migrate", __dir__)] ActiveRecord::Migrator.migrations_paths << File.expand_path("../db/migrate", __dir__) require "rails/test_help" ...
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/test/action_markdown_test.rb
test/action_markdown_test.rb
require "test_helper" class ActionMarkdownTest < ActiveSupport::TestCase test "it has a version number" do assert ActionMarkdown::VERSION end end
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/test/models/attribute_test.rb
test/models/attribute_test.rb
require "test_helper" class ActionMarkdown::AttributeTest < ActionView::TestCase test "Instantiating an article with Markdown content converts it to HML" do article = Article.new content: "# Title" assert_dom_equal %q(<div class="action-markdown"> <h1>Title</h1> </div>), article.content.to_s.squish end ...
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/test/models/content_test.rb
test/models/content_test.rb
require "test_helper" class ActionMarkdown::ContentTest < ActiveSupport::TestCase test "#to_html converts the Markdown body to HTML" do assert_equal %Q(<h1>Title</h1>), ActionMarkdown::Content.new("# Title").to_html.squish end test "#to_s converts the Markdown body to HTML" do assert_equal %Q(<div class...
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/test/dummy/app/jobs/application_job.rb
test/dummy/app/jobs/application_job.rb
class ApplicationJob < ActiveJob::Base # Automatically retry jobs that encountered a deadlock # retry_on ActiveRecord::Deadlocked # Most jobs are safe to ignore if the underlying records are no longer available # discard_on ActiveJob::DeserializationError end
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/test/dummy/app/helpers/application_helper.rb
test/dummy/app/helpers/application_helper.rb
module ApplicationHelper end
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/test/dummy/app/controllers/articles_controller.rb
test/dummy/app/controllers/articles_controller.rb
class ArticlesController < ApplicationController before_action :set_article, only: %i[show edit update destroy] def index @articles = Article.all end def show end def new @article = Article.new end def create @article = Article.new(article_params) if @article.save redirect_to ...
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/test/dummy/app/controllers/application_controller.rb
test/dummy/app/controllers/application_controller.rb
class ApplicationController < ActionController::Base end
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/test/dummy/app/models/article.rb
test/dummy/app/models/article.rb
class Article < ApplicationRecord has_markdown :content validates :content, presence: true, on: :content_presence end
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/test/dummy/app/models/application_record.rb
test/dummy/app/models/application_record.rb
class ApplicationRecord < ActiveRecord::Base primary_abstract_class end
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/test/dummy/app/mailers/application_mailer.rb
test/dummy/app/mailers/application_mailer.rb
class ApplicationMailer < ActionMailer::Base default from: "from@example.com" layout "mailer" end
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/test/dummy/app/channels/application_cable/channel.rb
test/dummy/app/channels/application_cable/channel.rb
module ApplicationCable class Channel < ActionCable::Channel::Base end end
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/test/dummy/app/channels/application_cable/connection.rb
test/dummy/app/channels/application_cable/connection.rb
module ApplicationCable class Connection < ActionCable::Connection::Base end end
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/test/dummy/db/seeds.rb
test/dummy/db/seeds.rb
puts "START rails db:seed" puts "Deleting old articles..." Article.destroy_all puts "Creating new articles..." Article.create! content: File.open(File.expand_path("../../fixtures/content.md", __dir__)).read puts "END rails db:seed!"
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/test/dummy/db/schema.rb
test/dummy/db/schema.rb
# This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # # This file is the source Rails uses to define your schema when running `bin/rai...
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/test/dummy/db/migrate/20221110172511_create_articles.rb
test/dummy/db/migrate/20221110172511_create_articles.rb
class CreateArticles < ActiveRecord::Migration[7.0] def change create_table :articles do |t| t.timestamps end end end
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/test/dummy/db/migrate/20221110172331_create_action_markdown_tables.action_markdown.rb
test/dummy/db/migrate/20221110172331_create_action_markdown_tables.action_markdown.rb
# This migration comes from action_markdown (originally 20221110163240) class CreateActionMarkdownTables < ActiveRecord::Migration[7.0] def change # Use Active Record's configured type for primary and foreign keys primary_key_type, foreign_key_type = primary_and_foreign_key_types create_table :action_mar...
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/test/dummy/config/application.rb
test/dummy/config/application.rb
require_relative "boot" require "rails/all" # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) require "action_markdown" module Dummy class Application < Rails::Application config.load_defaults Rails::VERSION::STRING....
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/test/dummy/config/environment.rb
test/dummy/config/environment.rb
# Load the Rails application. require_relative "application" # Initialize the Rails application. Rails.application.initialize!
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/test/dummy/config/puma.rb
test/dummy/config/puma.rb
# Puma can serve each request in a thread from an internal thread pool. # The `threads` method setting takes two numbers: a minimum and maximum. # Any libraries that use thread pools should be configured to match # the maximum value specified for Puma. Default is set to 5 threads for minimum # and maximum; this matches...
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/test/dummy/config/routes.rb
test/dummy/config/routes.rb
Rails.application.routes.draw do resources :articles end
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/test/dummy/config/importmap.rb
test/dummy/config/importmap.rb
# Pin npm packages by running ./bin/importmap pin "application", preload: true pin "@github/markdown-toolbar-element", to: "https://ga.jspm.io/npm:@github/markdown-toolbar-element@2.1.1/dist/index.js"
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/test/dummy/config/boot.rb
test/dummy/config/boot.rb
# Set up gems listed in the Gemfile. ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../../Gemfile", __dir__) require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"]) $LOAD_PATH.unshift File.expand_path("../../../lib", __dir__)
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/test/dummy/config/initializers/content_security_policy.rb
test/dummy/config/initializers/content_security_policy.rb
# Be sure to restart your server when you modify this file. # Define an application-wide content security policy. # See the Securing Rails Applications Guide for more information: # https://guides.rubyonrails.org/security.html#content-security-policy-header # Rails.application.configure do # config.content_security...
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/test/dummy/config/initializers/filter_parameter_logging.rb
test/dummy/config/initializers/filter_parameter_logging.rb
# Be sure to restart your server when you modify this file. # Configure parameters to be filtered from the log file. Use this to limit dissemination of # sensitive information. See the ActiveSupport::ParameterFilter documentation for supported # notations and behaviors. Rails.application.config.filter_parameters += [ ...
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/test/dummy/config/initializers/inflections.rb
test/dummy/config/initializers/inflections.rb
# Be sure to restart your server when you modify this file. # Add new inflection rules using the following format. Inflections # are locale specific, and you may define rules for as many different # locales as you wish. All of these examples are active by default: # ActiveSupport::Inflector.inflections(:en) do |inflec...
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/test/dummy/config/initializers/permissions_policy.rb
test/dummy/config/initializers/permissions_policy.rb
# Define an application-wide HTTP permissions policy. For further # information see https://developers.google.com/web/updates/2018/06/feature-policy # # Rails.application.config.permissions_policy do |f| # f.camera :none # f.gyroscope :none # f.microphone :none # f.usb :none # f.fullscreen :s...
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/test/dummy/config/initializers/assets.rb
test/dummy/config/initializers/assets.rb
# Be sure to restart your server when you modify this file. # Version of your assets, change this if you want to expire all your assets. Rails.application.config.assets.version = "1.0" # Add additional assets to the asset load path. # Rails.application.config.assets.paths << Emoji.images_path # Precompile additional...
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/test/dummy/config/environments/test.rb
test/dummy/config/environments/test.rb
require "active_support/core_ext/integer/time" # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test suite and is wiped # and recreated between test runs. Don't rely on the data the...
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/test/dummy/config/environments/development.rb
test/dummy/config/environments/development.rb
require "active_support/core_ext/integer/time" Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # In the development environment your application's code is reloaded any time # it changes. This slows down response time but is perfect for developme...
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false
alexandreruban/action-markdown
https://github.com/alexandreruban/action-markdown/blob/d12722da01d0d2b254e132b4c21fb090a6af31d5/test/dummy/config/environments/production.rb
test/dummy/config/environments/production.rb
require "active_support/core_ext/integer/time" Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # Code is not reloaded between requests. config.cache_classes = true # Eager load code on boot. This eager loads most of Rails and # your applica...
ruby
MIT
d12722da01d0d2b254e132b4c21fb090a6af31d5
2026-01-04T17:37:09.729781Z
false