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/lib/action_controller/url_rewriter.rb
provider/vendor/rails/actionpack/lib/action_controller/url_rewriter.rb
module ActionController # In <b>routes.rb</b> one defines URL-to-controller mappings, but the reverse # is also possible: an URL can be generated from one of your routing definitions. # URL generation functionality is centralized in this module. # # See ActionController::Routing and ActionController::Resource...
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/routing_ext.rb
provider/vendor/rails/actionpack/lib/action_controller/routing/routing_ext.rb
class Object def to_param to_s end end class TrueClass def to_param self end end class FalseClass def to_param self end end class NilClass def to_param self end end class Regexp #:nodoc: def number_of_captures Regexp.new("|#{source}").match('').captures.length end def mult...
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/route.rb
provider/vendor/rails/actionpack/lib/action_controller/routing/route.rb
module ActionController module Routing class Route #:nodoc: attr_accessor :segments, :requirements, :conditions, :optimise def initialize(segments = [], requirements = {}, conditions = {}) @segments = segments @requirements = requirements @conditions = conditions if !...
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/optimisations.rb
provider/vendor/rails/actionpack/lib/action_controller/routing/optimisations.rb
module ActionController module Routing # Much of the slow performance from routes comes from the # complexity of expiry, <tt>:requirements</tt> matching, defaults providing # and figuring out which url pattern to use. With named routes # we can avoid the expense of finding the right route. So if ...
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/route_set.rb
provider/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb
module ActionController module Routing class RouteSet #:nodoc: # Mapper instances are used to build routes. The object passed to the draw # block in config/routes.rb is a Mapper instance. # # Mapper instances have relatively few instance methods, in order to avoid # clashes with name...
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/segments.rb
provider/vendor/rails/actionpack/lib/action_controller/routing/segments.rb
module ActionController module Routing class Segment #:nodoc: RESERVED_PCHAR = ':@&=+$,;' SAFE_PCHAR = "#{URI::REGEXP::PATTERN::UNRESERVED}#{RESERVED_PCHAR}" if RUBY_VERSION >= '1.9' UNSAFE_PCHAR = Regexp.new("[^#{SAFE_PCHAR}]", false).freeze else UNSAFE_PCHAR = Regexp.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/lib/action_controller/routing/builder.rb
provider/vendor/rails/actionpack/lib/action_controller/routing/builder.rb
module ActionController module Routing class RouteBuilder #:nodoc: attr_reader :separators, :optional_separators attr_reader :separator_regexp, :nonseparator_regexp, :interval_regexp def initialize @separators = Routing::SEPARATORS @optional_separators = %w( / ) @separa...
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/recognition_optimisation.rb
provider/vendor/rails/actionpack/lib/action_controller/routing/recognition_optimisation.rb
module ActionController module Routing # BEFORE: 0.191446860631307 ms/url # AFTER: 0.029847304022858 ms/url # Speed up: 6.4 times # # Route recognition is slow due to one-by-one iterating over # a whole routeset (each map.resources generates at least 14 routes) # and matching weird 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/lib/action_controller/vendor/html-scanner.rb
provider/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner.rb
$LOAD_PATH << "#{File.dirname(__FILE__)}/html-scanner" module HTML autoload :CDATA, 'html/node' autoload :Document, 'html/document' autoload :FullSanitizer, 'html/sanitizer' autoload :LinkSanitizer, 'html/sanitizer' autoload :Node, 'html/node' autoload :Sanitizer, 'html/sanitizer' autoload :Selector, 'ht...
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/vendor/html-scanner/html/selector.rb
provider/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/selector.rb
#-- # Copyright (c) 2006 Assaf Arkin (http://labnotes.org) # Under MIT and/or CC By license. #++ module HTML # Selects HTML elements using CSS 2 selectors. # # The +Selector+ class uses CSS selector expressions to match and select # HTML elements. # # For example: # selector = HTML::Selector.new "form...
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/vendor/html-scanner/html/version.rb
provider/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/version.rb
module HTML #:nodoc: module Version #:nodoc: MAJOR = 0 MINOR = 5 TINY = 3 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/vendor/html-scanner/html/sanitizer.rb
provider/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/sanitizer.rb
module HTML class Sanitizer def sanitize(text, options = {}) return text unless sanitizeable?(text) tokenize(text, options).join end def sanitizeable?(text) !(text.nil? || text.empty? || !text.index("<")) end protected def tokenize(text, options) tokenizer = HTM...
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/vendor/html-scanner/html/node.rb
provider/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb
require 'strscan' module HTML #:nodoc: class Conditions < Hash #:nodoc: def initialize(hash) super() hash = { :content => hash } unless Hash === hash hash = keys_to_symbols(hash) hash.each do |k,v| case k when :tag, :content then # keys are valid, and requ...
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/vendor/html-scanner/html/tokenizer.rb
provider/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/tokenizer.rb
require 'strscan' module HTML #:nodoc: # A simple HTML tokenizer. It simply breaks a stream of text into tokens, where each # token is a string. Each string represents either "text", or an HTML element. # # This currently assumes valid XHTML, which means no free < or > characters. # # Usage: # # 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/lib/action_controller/vendor/html-scanner/html/document.rb
provider/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/document.rb
require 'html/tokenizer' require 'html/node' require 'html/selector' require 'html/sanitizer' module HTML #:nodoc: # A top-level HTMl document. You give it a body of text, and it will parse that # text into a tree of nodes. class Document #:nodoc: # The root of the parsed document. attr_reader :root ...
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_ext/query_extension.rb
provider/vendor/rails/actionpack/lib/action_controller/cgi_ext/query_extension.rb
require 'cgi' class CGI #:nodoc: module QueryExtension # Remove the old initialize_query method before redefining it. remove_method :initialize_query # Neuter CGI parameter parsing. def initialize_query # Fix some strange request environments. env_table['REQUEST_METHOD'] ||= 'GET' ...
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_ext/cookie.rb
provider/vendor/rails/actionpack/lib/action_controller/cgi_ext/cookie.rb
require 'delegate' CGI.module_eval { remove_const "Cookie" } # TODO: document how this differs from stdlib CGI::Cookie class CGI #:nodoc: class Cookie < DelegateClass(Array) attr_accessor :name, :value, :path, :domain, :expires attr_reader :secure, :http_only # Creates a new CGI::Cookie object. # ...
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_ext/stdinput.rb
provider/vendor/rails/actionpack/lib/action_controller/cgi_ext/stdinput.rb
require 'cgi' module ActionController module CgiExt # Publicize the CGI's internal input stream so we can lazy-read # request.body. Make it writable so we don't have to play $stdin games. module Stdinput def self.included(base) base.class_eval do remove_method :stdinput ...
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/assertions/dom_assertions.rb
provider/vendor/rails/actionpack/lib/action_controller/assertions/dom_assertions.rb
module ActionController module Assertions module DomAssertions # Test two HTML strings for equivalency (e.g., identical up to reordering of attributes) # # ==== Examples # # # assert that the referenced method generates the appropriate HTML string # assert_dom_equal '<a hre...
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/assertions/tag_assertions.rb
provider/vendor/rails/actionpack/lib/action_controller/assertions/tag_assertions.rb
module ActionController module Assertions # Pair of assertions to testing elements in the HTML output of the response. module TagAssertions # Asserts that there is a tag/node/element in the body of the response # that meets all of the given conditions. The +conditions+ parameter must # be a ...
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/assertions/model_assertions.rb
provider/vendor/rails/actionpack/lib/action_controller/assertions/model_assertions.rb
module ActionController module Assertions module ModelAssertions # Ensures that the passed record is valid by Active Record standards and # returns any error messages if it is not. # # ==== Examples # # # assert that a newly created record is valid # model = Model.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/lib/action_controller/assertions/selector_assertions.rb
provider/vendor/rails/actionpack/lib/action_controller/assertions/selector_assertions.rb
#-- # Copyright (c) 2006 Assaf Arkin (http://labnotes.org) # Under MIT and/or CC By license. #++ module ActionController module Assertions unless const_defined?(:NO_STRIP) NO_STRIP = %w{pre script style textarea} end # Adds the +assert_select+ method for use in Rails functional # test cases, w...
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/assertions/routing_assertions.rb
provider/vendor/rails/actionpack/lib/action_controller/assertions/routing_assertions.rb
module ActionController module Assertions # Suite of assertions to test routes generated by Rails and the handling of requests made to them. module RoutingAssertions # Asserts that the routing of the given +path+ was handled correctly and that the parsed options (given in the +expected_options+ hash) ...
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/assertions/response_assertions.rb
provider/vendor/rails/actionpack/lib/action_controller/assertions/response_assertions.rb
module ActionController module Assertions # A small suite of assertions that test responses from Rails applications. module ResponseAssertions # Asserts that the response is one of the following types: # # * <tt>:success</tt> - Status code was 200 # * <tt>:redirect</tt> - Status cod...
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/mem_cache_store.rb
provider/vendor/rails/actionpack/lib/action_controller/session/mem_cache_store.rb
begin require_library_or_gem 'memcache' module ActionController module Session class MemCacheStore < AbstractStore def initialize(app, options = {}) # Support old :expires option options[:expire_after] ||= options[:expires] super @default_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/lib/action_controller/session/abstract_store.rb
provider/vendor/rails/actionpack/lib/action_controller/session/abstract_store.rb
require 'rack/utils' module ActionController module Session class AbstractStore ENV_SESSION_KEY = 'rack.session'.freeze ENV_SESSION_OPTIONS_KEY = 'rack.session.options'.freeze HTTP_COOKIE = 'HTTP_COOKIE'.freeze SET_COOKIE = 'Set-Cookie'.freeze class SessionHash < Hash def ...
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/cookie_store.rb
provider/vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb
module ActionController module Session # This cookie-based session store is the Rails default. Sessions typically # contain at most a user_id and flash message; both fit within the 4K cookie # size limit. Cookie-based sessions are dramatically faster than the # alternatives. # # If you have 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/caching/actions.rb
provider/vendor/rails/actionpack/lib/action_controller/caching/actions.rb
require 'set' module ActionController #:nodoc: module Caching # Action caching is similar to page caching by the fact that the entire output of the response is cached, but unlike page caching, # every request still goes through the Action Pack. The key benefit of this is that filters are run before the 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/caching/sweeping.rb
provider/vendor/rails/actionpack/lib/action_controller/caching/sweeping.rb
module ActionController #:nodoc: module Caching # Sweepers are the terminators of the caching world and responsible for expiring caches when model objects change. # They do this by being half-observers, half-filters and implementing callbacks for both roles. A Sweeper example: # # class ListSweeper ...
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/sweeper.rb
provider/vendor/rails/actionpack/lib/action_controller/caching/sweeper.rb
require 'active_record' module ActionController #:nodoc: module Caching class Sweeper < ActiveRecord::Observer #:nodoc: attr_accessor :controller def before(controller) self.controller = controller callback(:before) if controller.perform_caching end def after(controller)...
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/pages.rb
provider/vendor/rails/actionpack/lib/action_controller/caching/pages.rb
require 'fileutils' require 'uri' module ActionController #:nodoc: module Caching # Page caching is an approach to caching where the entire action output of is stored as a HTML file that the web server # can serve without going through Action Pack. This is the fastest way to cache your content as opposed 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/lib/action_controller/caching/fragments.rb
provider/vendor/rails/actionpack/lib/action_controller/caching/fragments.rb
module ActionController #:nodoc: module Caching # Fragment caching is used for caching various blocks within templates without caching the entire action as a whole. This is useful when # certain elements of an action change frequently or depend on complicated state while other parts rarely change or can be sh...
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/test_case.rb
provider/vendor/rails/actionpack/lib/action_view/test_case.rb
require 'active_support/test_case' module ActionView class Base alias_method :initialize_without_template_tracking, :initialize def initialize(*args) @_rendered = { :template => nil, :partials => Hash.new(0) } initialize_without_template_tracking(*args) end end module Renderable alia...
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/renderable_partial.rb
provider/vendor/rails/actionpack/lib/action_view/renderable_partial.rb
module ActionView # NOTE: The template that this mixin is being included into is frozen # so you cannot set or modify any instance variables module RenderablePartial #:nodoc: extend ActiveSupport::Memoizable def variable_name name.sub(/\A_/, '').to_sym end memoize :variable_name def co...
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/helpers.rb
provider/vendor/rails/actionpack/lib/action_view/helpers.rb
module ActionView #:nodoc: module Helpers #:nodoc: autoload :ActiveRecordHelper, 'action_view/helpers/active_record_helper' autoload :AssetTagHelper, 'action_view/helpers/asset_tag_helper' autoload :AtomFeedHelper, 'action_view/helpers/atom_feed_helper' autoload :BenchmarkHelper, 'action_view/helpers/...
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/paths.rb
provider/vendor/rails/actionpack/lib/action_view/paths.rb
module ActionView #:nodoc: class PathSet < Array #:nodoc: def self.type_cast(obj) if obj.is_a?(String) if Base.cache_template_loading? Template::EagerPath.new(obj.to_s) else ReloadableTemplate::ReloadablePath.new(obj.to_s) end else obj 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_view/renderable.rb
provider/vendor/rails/actionpack/lib/action_view/renderable.rb
# encoding: utf-8 module ActionView # NOTE: The template that this mixin is being included into is frozen # so you cannot set or modify any instance variables module Renderable #:nodoc: extend ActiveSupport::Memoizable def filename 'compiled-template' end def handler Template.handle...
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/base.rb
provider/vendor/rails/actionpack/lib/action_view/base.rb
module ActionView #:nodoc: class ActionViewError < StandardError #:nodoc: end class MissingTemplate < ActionViewError #:nodoc: attr_reader :path def initialize(paths, path, template_format = nil) @path = path full_template_path = path.include?('.') ? path : "#{path}.erb" display_paths ...
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/template_handler.rb
provider/vendor/rails/actionpack/lib/action_view/template_handler.rb
# Legacy TemplateHandler stub module ActionView module TemplateHandlers #:nodoc: module Compilable def self.included(base) base.extend(ClassMethods) end module ClassMethods def call(template) new.compile(template) end end def compile(template) ...
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/template.rb
provider/vendor/rails/actionpack/lib/action_view/template.rb
module ActionView #:nodoc: class Template class Path attr_reader :path, :paths delegate :hash, :inspect, :to => :path def initialize(path) raise ArgumentError, "path already is a Path class" if path.is_a?(Path) @path = (path.ends_with?(File::SEPARATOR) ? path.to(-2) : path).free...
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/template_error.rb
provider/vendor/rails/actionpack/lib/action_view/template_error.rb
module ActionView # The TemplateError exception is raised when the compilation of the template fails. This exception then gathers a # bunch of intimate details and uses it to report a very precise exception message. class TemplateError < ActionViewError #:nodoc: SOURCE_CODE_RADIUS = 3 attr_reader :origin...
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/template_handlers.rb
provider/vendor/rails/actionpack/lib/action_view/template_handlers.rb
module ActionView #:nodoc: module TemplateHandlers #:nodoc: autoload :ERB, 'action_view/template_handlers/erb' autoload :RJS, 'action_view/template_handlers/rjs' autoload :Builder, 'action_view/template_handlers/builder' def self.extended(base) base.register_default_template_handler :erb, Templ...
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/inline_template.rb
provider/vendor/rails/actionpack/lib/action_view/inline_template.rb
module ActionView #:nodoc: class InlineTemplate #:nodoc: include Renderable attr_reader :source, :extension, :method_segment def initialize(source, type = nil) @source = source @extension = type @method_segment = "inline_#{@source.hash.abs}" end private # Always recompil...
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/reloadable_template.rb
provider/vendor/rails/actionpack/lib/action_view/reloadable_template.rb
module ActionView #:nodoc: class ReloadableTemplate < Template class TemplateDeleted < ActionView::ActionViewError end class ReloadablePath < Template::Path def initialize(path) super @paths = {} new_request! end def new_request! @disk_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_view/partials.rb
provider/vendor/rails/actionpack/lib/action_view/partials.rb
module ActionView # There's also a convenience method for rendering sub templates within the current controller that depends on a # single object (we call this kind of sub templates for partials). It relies on the fact that partials should # follow the naming convention of being prefixed with an underscore -- as ...
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/helpers/form_helper.rb
provider/vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb
require 'cgi' require 'action_view/helpers/date_helper' require 'action_view/helpers/tag_helper' require 'action_view/helpers/form_tag_helper' module ActionView module Helpers # Form helpers are designed to make working with models much easier # compared to using just standard HTML elements by providing a se...
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_view/helpers/form_options_helper.rb
provider/vendor/rails/actionpack/lib/action_view/helpers/form_options_helper.rb
require 'cgi' require 'erb' require 'action_view/helpers/form_helper' module ActionView module Helpers # Provides a number of methods for turning different kinds of containers into a set of option tags. # == Options # The <tt>collection_select</tt>, <tt>select</tt> and <tt>time_zone_select</tt> methods 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/lib/action_view/helpers/capture_helper.rb
provider/vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb
module ActionView module Helpers # CaptureHelper exposes methods to let you extract generated markup which # can be used in other parts of a template or layout file. # It provides a method to capture blocks into variables through capture and # a way to capture a block of markup for use in a layout th...
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/helpers/url_helper.rb
provider/vendor/rails/actionpack/lib/action_view/helpers/url_helper.rb
#require 'action_view/helpers/javascript_helper' module ActionView module Helpers #:nodoc: # Provides a set of methods for making links and getting URLs that # depend on the routing subsystem (see ActionController::Routing). # This allows you to use the same format for links in views # and controller...
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/helpers/prototype_helper.rb
provider/vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb
require 'set' require 'active_support/json' module ActionView module Helpers # Prototype[http://www.prototypejs.org/] is a JavaScript library that provides # DOM[http://en.wikipedia.org/wiki/Document_Object_Model] manipulation, # Ajax[http://www.adaptivepath.com/publications/essays/archives/000385.php] ...
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_view/helpers/record_tag_helper.rb
provider/vendor/rails/actionpack/lib/action_view/helpers/record_tag_helper.rb
module ActionView module Helpers module RecordTagHelper # Produces a wrapper DIV element with id and class parameters that # relate to the specified Active Record object. Usage example: # # <% div_for(@person, :class => "foo") do %> # <%=h @person.name %> # <% 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_view/helpers/cache_helper.rb
provider/vendor/rails/actionpack/lib/action_view/helpers/cache_helper.rb
module ActionView module Helpers # This helper to exposes a method for caching of view fragments. # See ActionController::Caching::Fragments for usage instructions. module CacheHelper # A method for caching fragments of a view rather than an entire # action or page. This technique is useful 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_view/helpers/active_record_helper.rb
provider/vendor/rails/actionpack/lib/action_view/helpers/active_record_helper.rb
require 'cgi' require 'action_view/helpers/form_helper' module ActionView class Base @@field_error_proc = Proc.new{ |html_tag, instance| "<div class=\"fieldWithErrors\">#{html_tag}</div>" } cattr_accessor :field_error_proc end module Helpers # The Active Record Helper makes it easier to create forms...
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/helpers/text_helper.rb
provider/vendor/rails/actionpack/lib/action_view/helpers/text_helper.rb
require 'action_view/helpers/tag_helper' module ActionView module Helpers #:nodoc: # The TextHelper module provides a set of methods for filtering, formatting # and transforming strings, which can reduce the amount of inline Ruby code in # your views. These helper methods extend ActionView making them ca...
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/helpers/javascript_helper.rb
provider/vendor/rails/actionpack/lib/action_view/helpers/javascript_helper.rb
require 'action_view/helpers/tag_helper' require 'action_view/helpers/prototype_helper' module ActionView module Helpers # Provides functionality for working with JavaScript in your views. # # == Ajax, controls and visual effects # # * For information on using Ajax, see # ActionView::Helper...
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/helpers/debug_helper.rb
provider/vendor/rails/actionpack/lib/action_view/helpers/debug_helper.rb
module ActionView module Helpers # Provides a set of methods for making it easier to debug Rails objects. module DebugHelper # Returns a YAML representation of +object+ wrapped with <pre> and </pre>. # If the object cannot be converted to YAML using +to_yaml+, +inspect+ will be called instead. ...
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/helpers/record_identification_helper.rb
provider/vendor/rails/actionpack/lib/action_view/helpers/record_identification_helper.rb
module ActionView module Helpers module RecordIdentificationHelper # See ActionController::RecordIdentifier.partial_path -- this is just a delegate to that for convenient access in the view. def partial_path(*args, &block) ActionController::RecordIdentifier.partial_path(*args, &block) 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/lib/action_view/helpers/asset_tag_helper.rb
provider/vendor/rails/actionpack/lib/action_view/helpers/asset_tag_helper.rb
require 'cgi' require 'action_view/helpers/url_helper' require 'action_view/helpers/tag_helper' module ActionView module Helpers #:nodoc: # This module provides methods for generating HTML that links views to assets such # as images, javascripts, stylesheets, and feeds. These methods do not verify # the ...
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_view/helpers/translation_helper.rb
provider/vendor/rails/actionpack/lib/action_view/helpers/translation_helper.rb
require 'action_view/helpers/tag_helper' module ActionView module Helpers module TranslationHelper # Delegates to I18n#translate but also performs two additional functions. First, it'll catch MissingTranslationData exceptions # and turn them into inline spans that contains the missing key, such that...
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/helpers/scriptaculous_helper.rb
provider/vendor/rails/actionpack/lib/action_view/helpers/scriptaculous_helper.rb
require 'action_view/helpers/javascript_helper' require 'active_support/json' module ActionView module Helpers # Provides a set of helpers for calling Scriptaculous JavaScript # functions, including those which create Ajax controls and visual effects. # # To be able to use these helpers, you must in...
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/helpers/tag_helper.rb
provider/vendor/rails/actionpack/lib/action_view/helpers/tag_helper.rb
require 'action_view/erb/util' require 'set' module ActionView module Helpers #:nodoc: # Provides methods to generate HTML tags programmatically when you can't use # a Builder. By default, they output XHTML compliant tags. module TagHelper include ERB::Util BOOLEAN_ATTRIBUTES = %w(disabled 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_view/helpers/sanitize_helper.rb
provider/vendor/rails/actionpack/lib/action_view/helpers/sanitize_helper.rb
require 'action_view/helpers/tag_helper' module ActionView module Helpers #:nodoc: # The SanitizeHelper module provides a set of methods for scrubbing text of undesired HTML elements. # These helper methods extend ActionView making them callable within your template files. module SanitizeHelper # 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/lib/action_view/helpers/date_helper.rb
provider/vendor/rails/actionpack/lib/action_view/helpers/date_helper.rb
require "date" require 'action_view/helpers/tag_helper' module ActionView module Helpers # The Date Helper primarily creates select/option tags for different kinds of dates and date elements. All of the # select-type methods share a number of common options that are as follows: # # * <tt>:prefix</tt>...
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_view/helpers/form_tag_helper.rb
provider/vendor/rails/actionpack/lib/action_view/helpers/form_tag_helper.rb
require 'cgi' require 'action_view/helpers/tag_helper' module ActionView module Helpers # Provides a number of methods for creating form tags that doesn't rely on an Active Record object assigned to the template like # FormHelper does. Instead, you provide the names and values manually. # # NOTE: The...
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/helpers/atom_feed_helper.rb
provider/vendor/rails/actionpack/lib/action_view/helpers/atom_feed_helper.rb
require 'set' # Adds easy defaults to writing Atom feeds with the Builder template engine (this does not work on ERb or any other # template languages). module ActionView module Helpers #:nodoc: module AtomFeedHelper # Full usage example: # # config/routes.rb: # ActionController::Ro...
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/helpers/number_helper.rb
provider/vendor/rails/actionpack/lib/action_view/helpers/number_helper.rb
module ActionView module Helpers #:nodoc: # Provides methods for converting numbers into formatted strings. # Methods are provided for phone numbers, currency, percentage, # precision, positional notation, and file size. module NumberHelper # Formats a +number+ into a US phone number (e.g., (555...
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/helpers/benchmark_helper.rb
provider/vendor/rails/actionpack/lib/action_view/helpers/benchmark_helper.rb
require 'benchmark' module ActionView module Helpers # This helper offers a method to measure the execution time of a block # in a template. module BenchmarkHelper # Allows you to measure the execution time of a block # in a template and records the result to the log. Wrap this block around...
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/template_handlers/rjs.rb
provider/vendor/rails/actionpack/lib/action_view/template_handlers/rjs.rb
module ActionView module TemplateHandlers class RJS < TemplateHandler include Compilable def compile(template) "@template_format = :html;" + "controller.response.content_type ||= Mime::JS;" + "update_page do |page|;#{template.source}\nend" end end 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_view/template_handlers/erb.rb
provider/vendor/rails/actionpack/lib/action_view/template_handlers/erb.rb
module ActionView module TemplateHandlers class ERB < TemplateHandler include Compilable ## # :singleton-method: # Specify trim mode for the ERB compiler. Defaults to '-'. # See ERb documentation for suitable values. cattr_accessor :erb_trim_mode self.erb_trim_mode = '-'...
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/template_handlers/builder.rb
provider/vendor/rails/actionpack/lib/action_view/template_handlers/builder.rb
require 'builder' module ActionView module TemplateHandlers class Builder < TemplateHandler include Compilable def compile(template) "_set_controller_content_type(Mime::XML);" + "xml = ::Builder::XmlMarkup.new(:indent => 2);" + "self.output_buffer = xml.target!;" + ...
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/erb/util.rb
provider/vendor/rails/actionpack/lib/action_view/erb/util.rb
require 'erb' class ERB module Util HTML_ESCAPE = { '&' => '&amp;', '>' => '&gt;', '<' => '&lt;', '"' => '&quot;' } JSON_ESCAPE = { '&' => '\u0026', '>' => '\u003E', '<' => '\u003C' } # A utility method for escaping HTML tag characters. # This method is also aliased as <tt>h</tt>. # # In ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/plugins/oauth2_provider/init.rb
provider/vendor/plugins/oauth2_provider/init.rb
# Copyright (c) 2010 ThoughtWorks Inc. (http://thoughtworks.com) # Licenced under the MIT License (http://www.opensource.org/licenses/mit-license.php) # !!perform any initialization in oauth2_provider!! require 'oauth2_provider'
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/plugins/oauth2_provider/app/controllers/oauth_user_tokens_controller.rb
provider/vendor/plugins/oauth2_provider/app/controllers/oauth_user_tokens_controller.rb
# Copyright (c) 2010 ThoughtWorks Inc. (http://thoughtworks.com) # Licenced under the MIT License (http://www.opensource.org/licenses/mit-license.php) class OauthUserTokensController < ApplicationController include Oauth2::Provider::TransactionHelper transaction_actions :revoke, :revoke_by_admin def index ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/plugins/oauth2_provider/app/controllers/oauth_token_controller.rb
provider/vendor/plugins/oauth2_provider/app/controllers/oauth_token_controller.rb
# Copyright (c) 2010 ThoughtWorks Inc. (http://thoughtworks.com) # Licenced under the MIT License (http://www.opensource.org/licenses/mit-license.php) class OauthTokenController < ApplicationController skip_before_filter :verify_authenticity_token include Oauth2::Provider::SslHelper include Oauth2::Provider::Tr...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/plugins/oauth2_provider/app/controllers/oauth_authorize_controller.rb
provider/vendor/plugins/oauth2_provider/app/controllers/oauth_authorize_controller.rb
# Copyright (c) 2010 ThoughtWorks Inc. (http://thoughtworks.com) # Licenced under the MIT License (http://www.opensource.org/licenses/mit-license.php) class OauthAuthorizeController < ::ApplicationController include Oauth2::Provider::SslHelper include Oauth2::Provider::TransactionHelper transaction_actions :au...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/plugins/oauth2_provider/app/controllers/oauth_clients_controller.rb
provider/vendor/plugins/oauth2_provider/app/controllers/oauth_clients_controller.rb
# Copyright (c) 2010 ThoughtWorks Inc. (http://thoughtworks.com) # Licenced under the MIT License (http://www.opensource.org/licenses/mit-license.php) class OauthClientsController < ApplicationController include Oauth2::Provider::SslHelper include Oauth2::Provider::TransactionHelper transaction_actions :create...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/plugins/oauth2_provider/app/models/oauth2/provider/oauth_client.rb
provider/vendor/plugins/oauth2_provider/app/models/oauth2/provider/oauth_client.rb
# Copyright (c) 2010 ThoughtWorks Inc. (http://thoughtworks.com) # Licenced under the MIT License (http://www.opensource.org/licenses/mit-license.php) module Oauth2 module Provider class OauthClient < ModelBase validates_presence_of :name, :redirect_uri validates_format_of :redirect_uri, :with...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/plugins/oauth2_provider/app/models/oauth2/provider/oauth_authorization.rb
provider/vendor/plugins/oauth2_provider/app/models/oauth2/provider/oauth_authorization.rb
# Copyright (c) 2010 ThoughtWorks Inc. (http://thoughtworks.com) # Licenced under the MIT License (http://www.opensource.org/licenses/mit-license.php) module Oauth2 module Provider class OauthAuthorization < ModelBase EXPIRY_TIME = 1.hour columns :user_id, :oauth_client_id, :code, :expires_at => :in...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/plugins/oauth2_provider/app/models/oauth2/provider/oauth_token.rb
provider/vendor/plugins/oauth2_provider/app/models/oauth2/provider/oauth_token.rb
# Copyright (c) 2010 ThoughtWorks Inc. (http://thoughtworks.com) # Licenced under the MIT License (http://www.opensource.org/licenses/mit-license.php) module Oauth2 module Provider class OauthToken < ModelBase columns :user_id, :oauth_client_id, :access_token, :refresh_token, :expires_at => :integer ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/plugins/oauth2_provider/generators/oauth2_provider/oauth2_provider_generator.rb
provider/vendor/plugins/oauth2_provider/generators/oauth2_provider/oauth2_provider_generator.rb
# Copyright (c) 2010 ThoughtWorks Inc. (http://thoughtworks.com) # Licenced under the MIT License (http://www.opensource.org/licenses/mit-license.php) class Oauth2ProviderGenerator < Rails::Generator::Base def manifest record do |m| m.template 'config/initializers/oauth2_provider.rb', "config/initializers/...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/plugins/oauth2_provider/generators/oauth2_provider/templates/db/migrate/create_oauth_tokens.rb
provider/vendor/plugins/oauth2_provider/generators/oauth2_provider/templates/db/migrate/create_oauth_tokens.rb
# Copyright (c) 2010 ThoughtWorks Inc. (http://thoughtworks.com) # Licenced under the MIT License (http://www.opensource.org/licenses/mit-license.php) class CreateOauthTokens < ActiveRecord::Migration def self.up create_table :oauth_tokens do |t| t.string :user_id t.integer :oauth_client_id t.s...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/plugins/oauth2_provider/generators/oauth2_provider/templates/db/migrate/create_oauth_clients.rb
provider/vendor/plugins/oauth2_provider/generators/oauth2_provider/templates/db/migrate/create_oauth_clients.rb
# Copyright (c) 2010 ThoughtWorks Inc. (http://thoughtworks.com) # Licenced under the MIT License (http://www.opensource.org/licenses/mit-license.php) class CreateOauthClients < ActiveRecord::Migration def self.up create_table :oauth_clients do |t| t.string :name t.string :client_id t.string :c...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/plugins/oauth2_provider/generators/oauth2_provider/templates/db/migrate/create_oauth_authorizations.rb
provider/vendor/plugins/oauth2_provider/generators/oauth2_provider/templates/db/migrate/create_oauth_authorizations.rb
# Copyright (c) 2010 ThoughtWorks Inc. (http://thoughtworks.com) # Licenced under the MIT License (http://www.opensource.org/licenses/mit-license.php) class CreateOauthAuthorizations < ActiveRecord::Migration def self.up create_table :oauth_authorizations do |t| t.string :user_id t.integer :oauth_cli...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/plugins/oauth2_provider/generators/oauth2_provider/templates/config/initializers/oauth2_provider.rb
provider/vendor/plugins/oauth2_provider/generators/oauth2_provider/templates/config/initializers/oauth2_provider.rb
# Copyright (c) 2010 ThoughtWorks Inc. (http://thoughtworks.com) # Licenced under the MIT License (http://www.opensource.org/licenses/mit-license.php) module Oauth2 module Provider raise 'OAuth2 provider not configured yet!' # please go through the readme and configure this file before you can use this plug...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/plugins/oauth2_provider/lib/oauth2_provider.rb
provider/vendor/plugins/oauth2_provider/lib/oauth2_provider.rb
# Copyright (c) 2010 ThoughtWorks Inc. (http://thoughtworks.com) # Licenced under the MIT License (http://www.opensource.org/licenses/mit-license.php) require 'oauth2/provider/a_r_datasource' require 'oauth2/provider/in_memory_datasource' require 'oauth2/provider/model_base' require 'oauth2/provider/clock' require 'oa...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/plugins/oauth2_provider/lib/oauth2/provider/clock.rb
provider/vendor/plugins/oauth2_provider/lib/oauth2/provider/clock.rb
# Copyright (c) 2010 ThoughtWorks Inc. (http://thoughtworks.com) # Licenced under the MIT License (http://www.opensource.org/licenses/mit-license.php) module Oauth2 module Provider class Clock def self.fake_now=(time_now) @fake_now = time_now end def self.now @fake_now ||...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/plugins/oauth2_provider/lib/oauth2/provider/ssl_helper.rb
provider/vendor/plugins/oauth2_provider/lib/oauth2/provider/ssl_helper.rb
# Copyright (c) 2010 ThoughtWorks Inc. (http://thoughtworks.com) # Licenced under the MIT License (http://www.opensource.org/licenses/mit-license.php) module Oauth2 module Provider module SslHelper def self.included(controller_class) controller_class.before_filter :mandatory_ssl end p...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/plugins/oauth2_provider/lib/oauth2/provider/in_memory_datasource.rb
provider/vendor/plugins/oauth2_provider/lib/oauth2/provider/in_memory_datasource.rb
# Copyright (c) 2010 ThoughtWorks Inc. (http://thoughtworks.com) # Licenced under the MIT License (http://www.opensource.org/licenses/mit-license.php) require 'ostruct' module Oauth2 module Provider class InMemoryDatasource class MyStruct < OpenStruct attr_accessor :id ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/plugins/oauth2_provider/lib/oauth2/provider/url_parser.rb
provider/vendor/plugins/oauth2_provider/lib/oauth2/provider/url_parser.rb
# Copyright (c) 2010 ThoughtWorks Inc. (http://thoughtworks.com) # Licenced under the MIT License (http://www.opensource.org/licenses/mit-license.php) if RUBY_PLATFORM =~ /java/ module URIParser module_function def self.parse(url) java.net.URL.new(url) end end class java::net::URL alias :s...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/plugins/oauth2_provider/lib/oauth2/provider/application_controller_methods.rb
provider/vendor/plugins/oauth2_provider/lib/oauth2/provider/application_controller_methods.rb
# Copyright (c) 2010 ThoughtWorks Inc. (http://thoughtworks.com) # Licenced under the MIT License (http://www.opensource.org/licenses/mit-license.php) module Oauth2 module Provider class HttpsRequired < StandardError end module ApplicationControllerMethods def self.included(controller_class) ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/plugins/oauth2_provider/lib/oauth2/provider/transaction_helper.rb
provider/vendor/plugins/oauth2_provider/lib/oauth2/provider/transaction_helper.rb
# Copyright (c) 2010 ThoughtWorks Inc. (http://thoughtworks.com) # Licenced under the MIT License (http://www.opensource.org/licenses/mit-license.php) module Oauth2 module Provider module TransactionHelper def self.included(receiver) receiver.extend ClassMethods end class...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/plugins/oauth2_provider/lib/oauth2/provider/model_base.rb
provider/vendor/plugins/oauth2_provider/lib/oauth2/provider/model_base.rb
# Copyright (c) 2010 ThoughtWorks Inc. (http://thoughtworks.com) # Licenced under the MIT License (http://www.opensource.org/licenses/mit-license.php) require 'validatable' module Oauth2 module Provider class NotFoundException < StandardError end class RecordNotSaved < StandardError end class M...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/plugins/oauth2_provider/lib/oauth2/provider/configuration.rb
provider/vendor/plugins/oauth2_provider/lib/oauth2/provider/configuration.rb
# Copyright (c) 2010 ThoughtWorks Inc. (http://thoughtworks.com) # Licenced under the MIT License (http://www.opensource.org/licenses/mit-license.php) module Oauth2 module Provider module Configuration def self.def_properties(*names) names.each do |name| class_eval(<<-EOS, __FILE__, __LIN...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/plugins/oauth2_provider/lib/oauth2/provider/a_r_datasource.rb
provider/vendor/plugins/oauth2_provider/lib/oauth2/provider/a_r_datasource.rb
# Copyright (c) 2010 ThoughtWorks Inc. (http://thoughtworks.com) # Licenced under the MIT License (http://www.opensource.org/licenses/mit-license.php) if defined?(ActiveRecord) module Oauth2 module Provider class ARDatasource class OauthClientDto < ActiveRecord::Base set_table_name :oaut...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/plugins/oauth2_provider/lib/ext/validatable_ext.rb
provider/vendor/plugins/oauth2_provider/lib/ext/validatable_ext.rb
# Copyright (c) 2010 ThoughtWorks Inc. (http://thoughtworks.com) # Licenced under the MIT License (http://www.opensource.org/licenses/mit-license.php) require 'validatable' module Validatable class Errors unless method_defined?(:add_without_humanize_options) alias :add_without_humanize_options :add ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/vendor/plugins/oauth2_provider/config/routes.rb
provider/vendor/plugins/oauth2_provider/config/routes.rb
# Copyright (c) 2010 ThoughtWorks Inc. (http://thoughtworks.com) # Licenced under the MIT License (http://www.opensource.org/licenses/mit-license.php) ActionController::Routing::Routes.draw do |map| admin_prefix= ENV['ADMIN_OAUTH_URL_PREFIX'] user_prefix= ENV['USER_OAUTH_URL_PREFIX'] admin_prefix = "" if admin...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/db/seeds.rb
provider/db/seeds.rb
# This file should contain all the record creation needed to seed the database with its default values. # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). # # Examples: # # cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }]) # Major.create(:name...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/db/schema.rb
provider/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. # # Note that this schema.rb definition is the authoritative source for your data...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/db/migrate/1_create_users.rb
provider/db/migrate/1_create_users.rb
class CreateUsers < ActiveRecord::Migration def self.up create_table :users do |t| t.string :email t.string :password t.timestamps end end def self.down drop_table :users end end
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/provider/db/migrate/201007221918341_create_oauth_tokens.rb
provider/db/migrate/201007221918341_create_oauth_tokens.rb
class CreateOauthTokens < ActiveRecord::Migration def self.up create_table :oauth_tokens do |t| t.string :user_id t.integer :oauth_client_id t.string :access_token t.string :refresh_token t.integer :expires_at t.timestamps end end def self.down drop_tab...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false