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
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/controller/html-scanner/cdata_node_test.rb
provider/vendor/rails/actionpack/test/controller/html-scanner/cdata_node_test.rb
require 'abstract_unit' class CDATANodeTest < Test::Unit::TestCase def setup @node = HTML::CDATA.new(nil, 0, 0, "<p>howdy</p>") end def test_to_s assert_equal "<![CDATA[<p>howdy</p>]]>", @node.to_s end def test_content assert_equal "<p>howdy</p>", @node.content end end
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/controller/html-scanner/sanitizer_test.rb
provider/vendor/rails/actionpack/test/controller/html-scanner/sanitizer_test.rb
require 'abstract_unit' class SanitizerTest < ActionController::TestCase def setup @sanitizer = nil # used by assert_sanitizer end def test_strip_tags sanitizer = HTML::FullSanitizer.new assert_equal("<<<bad html", sanitizer.sanitize("<<<bad html")) assert_equal("<<", sanitizer.sanitize("<<<bad ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/controller/html-scanner/node_test.rb
provider/vendor/rails/actionpack/test/controller/html-scanner/node_test.rb
require 'abstract_unit' class NodeTest < Test::Unit::TestCase class MockNode def initialize(matched, value) @matched = matched @value = value end def find(conditions) @matched && self end def to_s @value.to_s end end def setup @node = HTML::Node...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/controller/controller_fixtures/app/controllers/user_controller.rb
provider/vendor/rails/actionpack/test/controller/controller_fixtures/app/controllers/user_controller.rb
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/controller/controller_fixtures/app/controllers/admin/user_controller.rb
provider/vendor/rails/actionpack/test/controller/controller_fixtures/app/controllers/admin/user_controller.rb
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/controller/controller_fixtures/vendor/plugins/bad_plugin/lib/plugin_controller.rb
provider/vendor/rails/actionpack/test/controller/controller_fixtures/vendor/plugins/bad_plugin/lib/plugin_controller.rb
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/controller/session/mem_cache_store_test.rb
provider/vendor/rails/actionpack/test/controller/session/mem_cache_store_test.rb
require 'abstract_unit' # You need to start a memcached server inorder to run these tests class MemCacheStoreTest < ActionController::IntegrationTest class TestController < ActionController::Base def no_session_access head :ok end def set_session_value session[:foo] = "bar" head :ok ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/controller/session/test_session_test.rb
provider/vendor/rails/actionpack/test/controller/session/test_session_test.rb
require 'abstract_unit' require 'stringio' class ActionController::TestSessionTest < ActiveSupport::TestCase def test_calling_delete_without_parameters_raises_deprecation_warning_and_calls_to_clear_test_session assert_deprecated(/use clear instead/){ ActionController::TestSession.new.delete } end def t...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/controller/session/cookie_store_test.rb
provider/vendor/rails/actionpack/test/controller/session/cookie_store_test.rb
require 'abstract_unit' require 'stringio' class CookieStoreTest < ActionController::IntegrationTest SessionKey = '_myapp_session' SessionSecret = 'b3c631c314c0bbca50c1b2843150fe33' DispatcherApp = ActionController::Dispatcher.new CookieStoreApp = ActionController::Session::CookieStore.new(DispatcherApp, :key...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/controller/deprecation/deprecated_base_methods_test.rb
provider/vendor/rails/actionpack/test/controller/deprecation/deprecated_base_methods_test.rb
require 'abstract_unit' class DeprecatedBaseMethodsTest < ActionController::TestCase class Target < ActionController::Base def home_url(greeting) "http://example.com/#{greeting}" end def raises_name_error this_method_doesnt_exist end def rescue_action(e) raise e end end tests T...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/controller/request/multipart_params_parsing_test.rb
provider/vendor/rails/actionpack/test/controller/request/multipart_params_parsing_test.rb
require 'abstract_unit' class MultipartParamsParsingTest < ActionController::IntegrationTest class TestController < ActionController::Base class << self attr_accessor :last_request_parameters end def parse self.class.last_request_parameters = request.request_parameters head :ok end...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/controller/request/test_request_test.rb
provider/vendor/rails/actionpack/test/controller/request/test_request_test.rb
require 'abstract_unit' require 'stringio' class ActionController::TestRequestTest < ActiveSupport::TestCase def setup @request = ActionController::TestRequest.new end def test_test_request_has_session_options_initialized assert @request.session_options end Rack::Session::Abstract::ID::DEFAULT_O...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/controller/request/query_string_parsing_test.rb
provider/vendor/rails/actionpack/test/controller/request/query_string_parsing_test.rb
require 'abstract_unit' class QueryStringParsingTest < ActionController::IntegrationTest class TestController < ActionController::Base class << self attr_accessor :last_query_parameters end def parse self.class.last_query_parameters = request.query_parameters head :ok end end ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/controller/request/xml_params_parsing_test.rb
provider/vendor/rails/actionpack/test/controller/request/xml_params_parsing_test.rb
require 'abstract_unit' class XmlParamsParsingTest < ActionController::IntegrationTest class TestController < ActionController::Base class << self attr_accessor :last_request_parameters end def parse self.class.last_request_parameters = request.request_parameters head :ok end end...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/controller/request/json_params_parsing_test.rb
provider/vendor/rails/actionpack/test/controller/request/json_params_parsing_test.rb
require 'abstract_unit' class JsonParamsParsingTest < ActionController::IntegrationTest class TestController < ActionController::Base class << self attr_accessor :last_request_parameters end def parse self.class.last_request_parameters = request.request_parameters head :ok end en...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/controller/request/url_encoded_params_parsing_test.rb
provider/vendor/rails/actionpack/test/controller/request/url_encoded_params_parsing_test.rb
require 'abstract_unit' class UrlEncodedParamsParsingTest < ActionController::IntegrationTest class TestController < ActionController::Base class << self attr_accessor :last_request_parameters, :last_request_type end def parse self.class.last_request_parameters = request.request_parameters ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/activerecord/active_record_store_test.rb
provider/vendor/rails/actionpack/test/activerecord/active_record_store_test.rb
require 'active_record_unit' class ActiveRecordStoreTest < ActionController::IntegrationTest DispatcherApp = ActionController::Dispatcher.new SessionApp = ActiveRecord::SessionStore.new(DispatcherApp, :key => '_session_id') SessionAppWithFixation = ActiveRecord::SessionStore.new(DispatcherApp, ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/activerecord/render_partial_with_record_identification_test.rb
provider/vendor/rails/actionpack/test/activerecord/render_partial_with_record_identification_test.rb
require 'active_record_unit' class RenderPartialWithRecordIdentificationController < ActionController::Base def render_with_has_many_and_belongs_to_association @developer = Developer.find(1) render :partial => @developer.projects end def render_with_has_many_association @topic = Topic.find(1) re...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/fixtures/project.rb
provider/vendor/rails/actionpack/test/fixtures/project.rb
class Project < ActiveRecord::Base has_and_belongs_to_many :developers, :uniq => true end
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/fixtures/topic.rb
provider/vendor/rails/actionpack/test/fixtures/topic.rb
class Topic < ActiveRecord::Base has_many :replies, :dependent => :destroy end
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/fixtures/mascot.rb
provider/vendor/rails/actionpack/test/fixtures/mascot.rb
class Mascot < ActiveRecord::Base belongs_to :company end
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/fixtures/reply.rb
provider/vendor/rails/actionpack/test/fixtures/reply.rb
class Reply < ActiveRecord::Base named_scope :base belongs_to :topic, :include => [:replies] belongs_to :developer validates_presence_of :content end
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/fixtures/developer.rb
provider/vendor/rails/actionpack/test/fixtures/developer.rb
class Developer < ActiveRecord::Base has_and_belongs_to_many :projects has_many :replies has_many :topics, :through => :replies end class DeVeLoPeR < ActiveRecord::Base set_table_name "developers" end
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/fixtures/company.rb
provider/vendor/rails/actionpack/test/fixtures/company.rb
class Company < ActiveRecord::Base has_one :mascot attr_protected :rating set_sequence_name :companies_nonstd_seq validates_presence_of :name def validate errors.add('rating', 'rating should not be 2') if rating == 2 end end
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/fixtures/helpers/abc_helper.rb
provider/vendor/rails/actionpack/test/fixtures/helpers/abc_helper.rb
module AbcHelper def bare_a() end def bare_b() end def bare_c() end end
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/fixtures/helpers/fun/pdf_helper.rb
provider/vendor/rails/actionpack/test/fixtures/helpers/fun/pdf_helper.rb
module Fun::PdfHelper def foobar() 'baz' end end
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/fixtures/helpers/fun/games_helper.rb
provider/vendor/rails/actionpack/test/fixtures/helpers/fun/games_helper.rb
module Fun::GamesHelper def stratego() "Iz guuut!" end end
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/fixtures/alternate_helpers/foo_helper.rb
provider/vendor/rails/actionpack/test/fixtures/alternate_helpers/foo_helper.rb
module FooHelper def baz() end end
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/view/test_case_test.rb
provider/vendor/rails/actionpack/test/view/test_case_test.rb
require 'abstract_unit' class TestCaseTest < ActionView::TestCase def test_should_have_current_url controller = TestController.new assert_nothing_raised(NoMethodError){ controller.url_for({:controller => "foo", :action => "index"}) } end end
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/template/active_record_helper_test.rb
provider/vendor/rails/actionpack/test/template/active_record_helper_test.rb
require 'abstract_unit' class ActiveRecordHelperTest < ActionView::TestCase tests ActionView::Helpers::ActiveRecordHelper silence_warnings do Post = Struct.new("Post", :title, :author_name, :body, :secret, :written_on) Post.class_eval do alias_method :title_before_type_cast, :title unless respond_to...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/template/record_tag_helper_test.rb
provider/vendor/rails/actionpack/test/template/record_tag_helper_test.rb
require 'abstract_unit' class Post def id 45 end def body "What a wonderful world!" end end class RecordTagHelperTest < ActionView::TestCase tests ActionView::Helpers::RecordTagHelper def setup @post = Post.new end def test_content_tag_for expected = %(<li class="post bar" id="post_...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/template/active_record_helper_i18n_test.rb
provider/vendor/rails/actionpack/test/template/active_record_helper_i18n_test.rb
require 'abstract_unit' class ActiveRecordHelperI18nTest < Test::Unit::TestCase include ActionView::Helpers::ActiveRecordHelper attr_reader :request def setup @object = stub :errors => stub(:count => 1, :full_messages => ['full_messages']) @object_name = 'book' stubs(:content_tag).returns 'content...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/template/compiled_templates_test.rb
provider/vendor/rails/actionpack/test/template/compiled_templates_test.rb
require 'abstract_unit' require 'controller/fake_models' class CompiledTemplatesTest < Test::Unit::TestCase def setup @compiled_templates = ActionView::Base::CompiledTemplates @compiled_templates.instance_methods.each do |m| @compiled_templates.send(:remove_method, m) if m =~ /^_run_/ end end ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/template/sanitize_helper_test.rb
provider/vendor/rails/actionpack/test/template/sanitize_helper_test.rb
require 'abstract_unit' require 'testing_sandbox' # The exhaustive tests are in test/controller/html/sanitizer_test.rb. # This tests the that the helpers hook up correctly to the sanitizer classes. class SanitizeHelperTest < ActionView::TestCase tests ActionView::Helpers::SanitizeHelper include TestingSandbox d...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/template/template_test.rb
provider/vendor/rails/actionpack/test/template/template_test.rb
require 'abstract_unit' class TemplateTest < Test::Unit::TestCase def test_template_path_parsing with_options :base_path => nil, :name => 'abc', :locale => nil, :format => 'html', :extension => 'erb' do |t| t.assert_parses_template_path 'abc.en.html.erb', :locale => 'en' t.assert_parses_templa...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/template/number_helper_test.rb
provider/vendor/rails/actionpack/test/template/number_helper_test.rb
require 'abstract_unit' class NumberHelperTest < ActionView::TestCase tests ActionView::Helpers::NumberHelper def test_number_to_phone assert_equal("555-1234", number_to_phone(5551234)) assert_equal("800-555-1212", number_to_phone(8005551212)) assert_equal("(800) 555-1212", number_to_phone(8005551212,...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/template/benchmark_helper_test.rb
provider/vendor/rails/actionpack/test/template/benchmark_helper_test.rb
require 'abstract_unit' require 'action_view/helpers/benchmark_helper' class BenchmarkHelperTest < ActionView::TestCase tests ActionView::Helpers::BenchmarkHelper def teardown controller.logger.send(:clear_buffer) end def controller logger = ActiveSupport::BufferedLogger.new(StringIO.new) logger....
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/template/translation_helper_test.rb
provider/vendor/rails/actionpack/test/template/translation_helper_test.rb
require 'abstract_unit' class TranslationHelperTest < Test::Unit::TestCase include ActionView::Helpers::TagHelper include ActionView::Helpers::TranslationHelper attr_reader :request def setup end def test_delegates_to_i18n_setting_the_raise_option I18n.expects(:translate).with(:foo, :locale => 'e...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/template/form_options_helper_test.rb
provider/vendor/rails/actionpack/test/template/form_options_helper_test.rb
require 'abstract_unit' require 'tzinfo' TZInfo::Timezone.cattr_reader :loaded_zones class FormOptionsHelperTest < ActionView::TestCase tests ActionView::Helpers::FormOptionsHelper silence_warnings do Post = Struct.new('Post', :title, :author_name, :body, :secret, :written_on, :category, :origin) ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
true
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/template/tag_helper_test.rb
provider/vendor/rails/actionpack/test/template/tag_helper_test.rb
require 'abstract_unit' class TagHelperTest < ActionView::TestCase tests ActionView::Helpers::TagHelper def test_tag assert_equal "<br />", tag("br") assert_equal "<br clear=\"left\" />", tag(:br, :clear => "left") assert_equal "<br>", tag("br", nil, true) end def test_tag_options str = tag("...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/template/url_helper_test.rb
provider/vendor/rails/actionpack/test/template/url_helper_test.rb
# encoding: utf-8 require 'abstract_unit' RequestMock = Struct.new("Request", :request_uri, :protocol, :host_with_port, :env) class UrlHelperTest < ActionView::TestCase tests ActionView::Helpers::UrlHelper def setup @controller = Class.new do attr_accessor :url, :request def url_for(options) ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/template/test_test.rb
provider/vendor/rails/actionpack/test/template/test_test.rb
require 'abstract_unit' module PeopleHelper def title(text) content_tag(:h1, text) end def homepage_path people_path end def homepage_url people_url end def link_to_person(person) link_to person.name, person end end class PeopleHelperTest < ActionView::TestCase def setup Actio...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/template/form_helper_test.rb
provider/vendor/rails/actionpack/test/template/form_helper_test.rb
require 'abstract_unit' silence_warnings do Post = Struct.new(:title, :author_name, :body, :secret, :written_on, :cost) Post.class_eval do alias_method :title_before_type_cast, :title unless respond_to?(:title_before_type_cast) alias_method :body_before_type_cast, :body unless respond_to?(:body_before_type...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
true
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/template/text_helper_test.rb
provider/vendor/rails/actionpack/test/template/text_helper_test.rb
require 'abstract_unit' require 'testing_sandbox' begin require 'redcloth' rescue LoadError $stderr.puts "Skipping textilize tests. `gem install RedCloth` to enable." end class TextHelperTest < ActionView::TestCase tests ActionView::Helpers::TextHelper include TestingSandbox def setup # This simulates t...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/template/javascript_helper_test.rb
provider/vendor/rails/actionpack/test/template/javascript_helper_test.rb
require 'abstract_unit' class JavaScriptHelperTest < ActionView::TestCase tests ActionView::Helpers::JavaScriptHelper attr_accessor :template_format, :output_buffer def setup @template = self end def test_escape_javascript assert_equal '', escape_javascript(nil) assert_equal %(This \\"thing\\"...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/template/asset_tag_helper_test.rb
provider/vendor/rails/actionpack/test/template/asset_tag_helper_test.rb
require 'abstract_unit' class AssetTagHelperTest < ActionView::TestCase tests ActionView::Helpers::AssetTagHelper def setup silence_warnings do ActionView::Helpers::AssetTagHelper.send( :const_set, :JAVASCRIPTS_DIR, File.dirname(__FILE__) + "/../fixtures/public/javascripts" ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
true
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/template/render_test.rb
provider/vendor/rails/actionpack/test/template/render_test.rb
# encoding: utf-8 require 'abstract_unit' require 'controller/fake_models' module RenderTestCases def setup_view(paths) @assigns = { :secret => 'in the sauce' } @view = ActionView::Base.new(paths, @assigns) # Reload and register danish language for testing I18n.reload! I18n.backend.store_transla...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/template/form_tag_helper_test.rb
provider/vendor/rails/actionpack/test/template/form_tag_helper_test.rb
require 'abstract_unit' class FormTagHelperTest < ActionView::TestCase tests ActionView::Helpers::FormTagHelper def setup @controller = Class.new do def url_for(options) "http://www.example.com" end end @controller = @controller.new end VALID_HTML_ID = /^[A-Za-z][-_:.A-Za-z0-9...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/template/prototype_helper_test.rb
provider/vendor/rails/actionpack/test/template/prototype_helper_test.rb
require 'abstract_unit' Bunny = Struct.new(:Bunny, :id) class Author attr_reader :id def save; @id = 1 end def new_record?; @id.nil? end def name @id.nil? ? 'new author' : "author ##{@id}" end end class Article attr_reader :id attr_reader :author_id def save; @id = 1; @author_id = 1 end def new...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/template/date_helper_test.rb
provider/vendor/rails/actionpack/test/template/date_helper_test.rb
require 'abstract_unit' class DateHelperTest < ActionView::TestCase tests ActionView::Helpers::DateHelper silence_warnings do Post = Struct.new("Post", :id, :written_on, :updated_at) Post.class_eval do def id 123 end def id_before_type_cast 123 end def to_para...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
true
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/template/scriptaculous_helper_test.rb
provider/vendor/rails/actionpack/test/template/scriptaculous_helper_test.rb
require 'abstract_unit' class ScriptaculousHelperTest < ActionView::TestCase tests ActionView::Helpers::ScriptaculousHelper def setup @controller = Class.new do def url_for(options) url = "http://www.example.com/" url << options[:action].to_s if options and options[:action] url ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/template/atom_feed_helper_test.rb
provider/vendor/rails/actionpack/test/template/atom_feed_helper_test.rb
require 'abstract_unit' Scroll = Struct.new(:id, :to_param, :title, :body, :updated_at, :created_at) class ScrollsController < ActionController::Base FEEDS = {} FEEDS["defaults"] = <<-EOT atom_feed(:schema_date => '2008') do |feed| feed.title("My great blog!") feed.updated((@scrolls.fi...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/template/date_helper_i18n_test.rb
provider/vendor/rails/actionpack/test/template/date_helper_i18n_test.rb
require 'abstract_unit' class DateHelperDistanceOfTimeInWordsI18nTests < Test::Unit::TestCase include ActionView::Helpers::DateHelper attr_reader :request def setup @from = Time.mktime(2004, 6, 6, 21, 45, 0) end # distance_of_time_in_words def test_distance_of_time_in_words_calls_i18n { # with i...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/template/form_options_helper_i18n_test.rb
provider/vendor/rails/actionpack/test/template/form_options_helper_i18n_test.rb
require 'abstract_unit' class FormOptionsHelperI18nTests < ActionView::TestCase tests ActionView::Helpers::FormOptionsHelper def setup @prompt_message = 'Select!' I18n.backend.send(:init_translations) I18n.backend.store_translations :en, :support => { :select => { :prompt => @prompt_message } } end ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/template/number_helper_i18n_test.rb
provider/vendor/rails/actionpack/test/template/number_helper_i18n_test.rb
require 'abstract_unit' class NumberHelperI18nTests < Test::Unit::TestCase include ActionView::Helpers::NumberHelper attr_reader :request def setup @number_defaults = { :precision => 3, :delimiter => ',', :separator => '.' } @currency_defaults = { :unit => '$', :format => '%u%n', :precision => 2 } ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/test/template/erb_util_test.rb
provider/vendor/rails/actionpack/test/template/erb_util_test.rb
require 'abstract_unit' class ErbUtilTest < Test::Unit::TestCase include ERB::Util ERB::Util::HTML_ESCAPE.each do |given, expected| define_method "test_html_escape_#{expected.gsub /\W/, ''}" do assert_equal expected, html_escape(given) end unless given == '"' define_method "test_json_esca...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_pack.rb
provider/vendor/rails/actionpack/lib/action_pack.rb
#-- # Copyright (c) 2004-2009 David Heinemeier Hansson # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, m...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_view.rb
provider/vendor/rails/actionpack/lib/action_view.rb
#-- # Copyright (c) 2004-2009 David Heinemeier Hansson # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, m...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller.rb
provider/vendor/rails/actionpack/lib/action_controller.rb
#-- # Copyright (c) 2004-2009 David Heinemeier Hansson # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, m...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/actionpack.rb
provider/vendor/rails/actionpack/lib/actionpack.rb
require 'action_pack'
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_pack/version.rb
provider/vendor/rails/actionpack/lib/action_pack/version.rb
module ActionPack #:nodoc: module VERSION #:nodoc: MAJOR = 2 MINOR = 3 TINY = 4 STRING = [MAJOR, MINOR, TINY].join('.') end end
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/flash.rb
provider/vendor/rails/actionpack/lib/action_controller/flash.rb
module ActionController #:nodoc: # The flash provides a way to pass temporary objects between actions. Anything you place in the flash will be exposed # to the very next action and then cleared out. This is a great way of doing notices and alerts, such as a create # action that sets <tt>flash[:notice] = "Successf...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/cookies.rb
provider/vendor/rails/actionpack/lib/action_controller/cookies.rb
module ActionController #:nodoc: # Cookies are read and written through ActionController#cookies. # # The cookies being read are the ones received along with the request, the cookies # being written will be sent out with the response. Reading a cookie does not get # the cookie object itself back, just the val...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/middleware_stack.rb
provider/vendor/rails/actionpack/lib/action_controller/middleware_stack.rb
module ActionController class MiddlewareStack < Array class Middleware def self.new(klass, *args, &block) if klass.is_a?(self) klass else super end end attr_reader :args, :block def initialize(klass, *args, &block) @klass = klass ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/test_case.rb
provider/vendor/rails/actionpack/lib/action_controller/test_case.rb
require 'active_support/test_case' require 'action_controller/test_process' module ActionController # Superclass for ActionController functional tests. Functional tests allow you to # test a single controller action per test method. This should not be confused with # integration tests (see ActionController::Inte...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/cgi_process.rb
provider/vendor/rails/actionpack/lib/action_controller/cgi_process.rb
require 'action_controller/cgi_ext' module ActionController #:nodoc: class CGIHandler module ProperStream def each while line = gets yield line end end def read(*args) if args.empty? super || "" else super end end ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/mime_responds.rb
provider/vendor/rails/actionpack/lib/action_controller/mime_responds.rb
module ActionController #:nodoc: module MimeResponds #:nodoc: def self.included(base) base.module_eval do include ActionController::MimeResponds::InstanceMethods end end module InstanceMethods # Without web-service support, an action which collects the data for displaying a list...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/translation.rb
provider/vendor/rails/actionpack/lib/action_controller/translation.rb
module ActionController module Translation def translate(*args) I18n.translate *args end alias :t :translate def localize(*args) I18n.localize *args end alias :l :localize end end
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/routing.rb
provider/vendor/rails/actionpack/lib/action_controller/routing.rb
require 'cgi' require 'uri' require 'action_controller/routing/optimisations' require 'action_controller/routing/routing_ext' require 'action_controller/routing/route' require 'action_controller/routing/segments' require 'action_controller/routing/builder' require 'action_controller/routing/route_set' require 'action_c...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/record_identifier.rb
provider/vendor/rails/actionpack/lib/action_controller/record_identifier.rb
module ActionController # The record identifier encapsulates a number of naming conventions for dealing with records, like Active Records or # Active Resources or pretty much any other model type that has an id. These patterns are then used to try elevate # the view actions to a higher logical level. Example: ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/resources.rb
provider/vendor/rails/actionpack/lib/action_controller/resources.rb
module ActionController # == Overview # # ActionController::Resources are a way of defining RESTful \resources. A RESTful \resource, in basic terms, # is something that can be pointed at and it will respond with a representation of the data requested. # In real terms this could mean a user with a browser req...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/verification.rb
provider/vendor/rails/actionpack/lib/action_controller/verification.rb
module ActionController #:nodoc: module Verification #:nodoc: def self.included(base) #:nodoc: base.extend(ClassMethods) end # This module provides a class-level method for specifying that certain # actions are guarded against being called without certain prerequisites # being met. This is ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/response.rb
provider/vendor/rails/actionpack/lib/action_controller/response.rb
require 'digest/md5' module ActionController # :nodoc: # Represents an HTTP response generated by a controller action. One can use # an ActionController::Response object to retrieve the current state # of the response, or customize the response. An Response object can # either represent a "real" HTTP response ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/uploaded_file.rb
provider/vendor/rails/actionpack/lib/action_controller/uploaded_file.rb
module ActionController module UploadedFile def self.included(base) base.class_eval do attr_accessor :original_path, :content_type alias_method :local_path, :path end end def self.extended(object) object.class_eval do attr_accessor :original_path, :content_type ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/failsafe.rb
provider/vendor/rails/actionpack/lib/action_controller/failsafe.rb
require 'erb' module ActionController # The Failsafe middleware is usually the top-most middleware in the Rack # middleware chain. It returns the underlying middleware's response, but if # the underlying middle raises an exception then Failsafe will log the # exception into the Rails log file, and will attempt...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/test_process.rb
provider/vendor/rails/actionpack/lib/action_controller/test_process.rb
require 'rack/session/abstract/id' module ActionController #:nodoc: class TestRequest < Request #:nodoc: attr_accessor :cookies, :session_options attr_accessor :query_parameters, :path, :session attr_accessor :host def self.new(env = {}) super end def initialize(env = {}) super(R...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/helpers.rb
provider/vendor/rails/actionpack/lib/action_controller/helpers.rb
require 'active_support/dependencies' # FIXME: helper { ... } is broken on Ruby 1.9 module ActionController #:nodoc: module Helpers #:nodoc: def self.included(base) # Initialize the base module to aggregate its helpers. base.class_inheritable_accessor :master_helper_module base.master_helper_mo...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/base.rb
provider/vendor/rails/actionpack/lib/action_controller/base.rb
require 'set' module ActionController #:nodoc: class ActionControllerError < StandardError #:nodoc: end class SessionRestoreError < ActionControllerError #:nodoc: end class RenderError < ActionControllerError #:nodoc: end class RoutingError < ActionControllerError #:nodoc: attr_reader :failures ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
true
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/cgi_ext.rb
provider/vendor/rails/actionpack/lib/action_controller/cgi_ext.rb
require 'action_controller/cgi_ext/stdinput' require 'action_controller/cgi_ext/query_extension' require 'action_controller/cgi_ext/cookie' class CGI #:nodoc: include ActionController::CgiExt::Stdinput class << self alias :escapeHTML_fail_on_nil :escapeHTML def escapeHTML(string) escapeHTML_fail_on...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/middlewares.rb
provider/vendor/rails/actionpack/lib/action_controller/middlewares.rb
use "Rack::Lock", :if => lambda { !ActionController::Base.allow_concurrency } use "ActionController::Failsafe" use lambda { ActionController::Base.session_store }, lambda { ActionController::Base.session_options } use "ActionController::ParamsParser" use "Rack::MethodOverride" use "Rack::Head"
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/session_management.rb
provider/vendor/rails/actionpack/lib/action_controller/session_management.rb
module ActionController #:nodoc: module SessionManagement #:nodoc: def self.included(base) base.class_eval do extend ClassMethods end end module ClassMethods # Set the session store to be used for keeping the session data between requests. # By default, sessions are stored...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/dispatcher.rb
provider/vendor/rails/actionpack/lib/action_controller/dispatcher.rb
module ActionController # Dispatches requests to the appropriate controller and takes care of # reloading the app after each request when Dependencies.load? is true. class Dispatcher @@cache_classes = true class << self def define_dispatcher_callbacks(cache_classes) @@cache_classes = cache_...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/integration.rb
provider/vendor/rails/actionpack/lib/action_controller/integration.rb
require 'stringio' require 'uri' require 'active_support/test_case' module ActionController module Integration #:nodoc: # An integration Session instance represents a set of requests and responses # performed sequentially by some virtual user. Because you can instantiate # multiple sessions and run them ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/filters.rb
provider/vendor/rails/actionpack/lib/action_controller/filters.rb
module ActionController #:nodoc: module Filters #:nodoc: def self.included(base) base.class_eval do extend ClassMethods include ActionController::Filters::InstanceMethods end end class FilterChain < ActiveSupport::Callbacks::CallbackChain #:nodoc: def append_filter_to_ch...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/streaming.rb
provider/vendor/rails/actionpack/lib/action_controller/streaming.rb
require 'active_support/core_ext/string/bytesize' module ActionController #:nodoc: # Methods for sending arbitrary data and for streaming files to the browser, # instead of rendering. module Streaming DEFAULT_SEND_FILE_OPTIONS = { :type => 'application/octet-stream'.freeze, :disposition ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/request.rb
provider/vendor/rails/actionpack/lib/action_controller/request.rb
require 'tempfile' require 'stringio' require 'strscan' require 'active_support/memoizable' require 'action_controller/cgi_ext' module ActionController class Request < Rack::Request %w[ AUTH_TYPE GATEWAY_INTERFACE PATH_TRANSLATED REMOTE_HOST REMOTE_IDENT REMOTE_USER REMOTE_ADDR SERVER_N...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/params_parser.rb
provider/vendor/rails/actionpack/lib/action_controller/params_parser.rb
module ActionController class ParamsParser ActionController::Base.param_parsers[Mime::XML] = :xml_simple ActionController::Base.param_parsers[Mime::JSON] = :json def initialize(app) @app = app end def call(env) if params = parse_formatted_parameters(env) env["action_controlle...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/rescue.rb
provider/vendor/rails/actionpack/lib/action_controller/rescue.rb
module ActionController #:nodoc: # Actions that fail to perform as expected throw exceptions. These # exceptions can either be rescued for the public view (with a nice # user-friendly explanation) or for the developers view (with tons of # debugging information). The developers view is already implemented by ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/polymorphic_routes.rb
provider/vendor/rails/actionpack/lib/action_controller/polymorphic_routes.rb
module ActionController # Polymorphic URL helpers are methods for smart resolution to a named route call when # given an Active Record model instance. They are to be used in combination with # ActionController::Resources. # # These methods are useful when you want to generate correct URL or path to a RESTful ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/http_authentication.rb
provider/vendor/rails/actionpack/lib/action_controller/http_authentication.rb
module ActionController module HttpAuthentication # Makes it dead easy to do HTTP Basic authentication. # # Simple Basic example: # # class PostsController < ApplicationController # USER_NAME, PASSWORD = "dhh", "secret" # # before_filter :authenticate, :except => [ :index ] ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/benchmarking.rb
provider/vendor/rails/actionpack/lib/action_controller/benchmarking.rb
require 'benchmark' module ActionController #:nodoc: # The benchmarking module times the performance of actions and reports to the logger. If the Active Record # package has been included, a separate timing section for database calls will be added as well. module Benchmarking #:nodoc: def self.included(base)...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/headers.rb
provider/vendor/rails/actionpack/lib/action_controller/headers.rb
require 'active_support/memoizable' module ActionController module Http class Headers < ::Hash extend ActiveSupport::Memoizable def initialize(*args) if args.size == 1 && args[0].is_a?(Hash) super() update(args[0]) else super end end...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/caching.rb
provider/vendor/rails/actionpack/lib/action_controller/caching.rb
require 'fileutils' require 'uri' require 'set' module ActionController #:nodoc: # Caching is a cheap way of speeding up slow applications by keeping the result of calculations, renderings, and database calls # around for subsequent requests. Action Controller affords you three approaches in varying levels of gran...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/request_forgery_protection.rb
provider/vendor/rails/actionpack/lib/action_controller/request_forgery_protection.rb
module ActionController #:nodoc: class InvalidAuthenticityToken < ActionControllerError #:nodoc: end module RequestForgeryProtection def self.included(base) base.class_eval do helper_method :form_authenticity_token helper_method :protect_against_forgery? end base.extend(Clas...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/layout.rb
provider/vendor/rails/actionpack/lib/action_controller/layout.rb
module ActionController #:nodoc: module Layout #:nodoc: def self.included(base) base.extend(ClassMethods) base.class_eval do class << self alias_method_chain :inherited, :layout end end end # Layouts reverse the common pattern of including shared headers and fo...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/mime_type.rb
provider/vendor/rails/actionpack/lib/action_controller/mime_type.rb
require 'set' module Mime SET = [] EXTENSION_LOOKUP = Hash.new { |h, k| h[k] = Type.new(k) unless k.blank? } LOOKUP = Hash.new { |h, k| h[k] = Type.new(k) unless k.blank? } # Encapsulates the notion of a mime type. Can be used at render time, for example, with: # # class PostsCont...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/status_codes.rb
provider/vendor/rails/actionpack/lib/action_controller/status_codes.rb
module ActionController module StatusCodes #:nodoc: # Defines the standard HTTP status codes, by integer, with their # corresponding default message texts. # Source: http://www.iana.org/assignments/http-status-codes STATUS_CODES = { 100 => "Continue", 101 => "Switching Protocols", 10...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/mime_types.rb
provider/vendor/rails/actionpack/lib/action_controller/mime_types.rb
# Build list of Mime types for HTTP responses # http://www.iana.org/assignments/media-types/ Mime::Type.register "*/*", :all Mime::Type.register "text/plain", :text, [], %w(txt) Mime::Type.register "text/html", :html, %w( application/xhtml+xml ), %w( xhtml ) Mime::Type.register "text/javascript", :js, %w( application/...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/performance_test.rb
provider/vendor/rails/actionpack/lib/action_controller/performance_test.rb
require 'active_support/testing/performance' require 'active_support/testing/default' module ActionController # An integration test that runs a code profiler on your test methods. # Profiling output for combinations of each test method, measurement, and # output format are written to your tmp/performance directo...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/rails/actionpack/lib/action_controller/reloader.rb
provider/vendor/rails/actionpack/lib/action_controller/reloader.rb
require 'thread' module ActionController class Reloader @@default_lock = Mutex.new cattr_accessor :default_lock class BodyWrapper def initialize(body, lock) @body = body @lock = lock end def close @body.close if @body.respond_to?(:close) ensure Di...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false