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
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/errors.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/errors.rb
# frozen_string_literal: true module Jekyll module Errors FatalException = Class.new(::RuntimeError) InvalidThemeName = Class.new(FatalException) DropMutationException = Class.new(FatalException) InvalidPermalinkError = Class.new(FatalException) InvalidYAMLFrontMatterError = Class.n...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/converter.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/converter.rb
# frozen_string_literal: true module Jekyll class Converter < Plugin # Public: Get or set the highlighter prefix. When an argument is specified, # the prefix will be set. If no argument is specified, the current prefix # will be returned. # # highlighter_prefix - The String prefix (default: nil)....
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/hooks.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/hooks.rb
# frozen_string_literal: true module Jekyll module Hooks DEFAULT_PRIORITY = 20 # compatibility layer for octopress-hooks users PRIORITY_MAP = { :low => 10, :normal => 20, :high => 30, }.freeze # initial empty hooks @registry = { :site => { :after_in...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/theme.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/theme.rb
# frozen_string_literal: true module Jekyll class Theme extend Forwardable attr_reader :name def_delegator :gemspec, :version, :version def initialize(name) @name = name.downcase.strip Jekyll.logger.debug "Theme:", name Jekyll.logger.debug "Theme source:", root configure_sass...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/page.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/page.rb
# frozen_string_literal: true module Jekyll class Page include Convertible attr_writer :dir attr_accessor :site, :pager attr_accessor :name, :ext, :basename attr_accessor :data, :content, :output alias_method :extname, :ext FORWARD_SLASH = "/".freeze # Attributes for Liquid templa...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/publisher.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/publisher.rb
# frozen_string_literal: true module Jekyll class Publisher def initialize(site) @site = site end def publish?(thing) can_be_published?(thing) && !hidden_in_the_future?(thing) end def hidden_in_the_future?(thing) thing.respond_to?(:date) && !@site.future && thing.date.to_i > @...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/utils.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/utils.rb
# frozen_string_literal: true module Jekyll module Utils extend self autoload :Ansi, "jekyll/utils/ansi" autoload :Exec, "jekyll/utils/exec" autoload :Internet, "jekyll/utils/internet" autoload :Platforms, "jekyll/utils/platforms" autoload :Rouge, "jekyll/utils/rouge" autoload :ThreadEven...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/reader.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/reader.rb
# frozen_string_literal: true module Jekyll class Reader attr_reader :site def initialize(site) @site = site end # Read Site data from disk and load it into internal data structures. # # Returns nothing. def read @site.layouts = LayoutReader.new(site).read read_directo...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/plugin.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/plugin.rb
# frozen_string_literal: true module Jekyll class Plugin PRIORITIES = { :low => -10, :highest => 100, :lowest => -100, :normal => 0, :high => 10, }.freeze # def self.inherited(const) return catch_inheritance(const) do |const_| catch_inheritance(c...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/cleaner.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/cleaner.rb
# frozen_string_literal: true module Jekyll # Handles the cleanup of a site's destination before it is built. class Cleaner HIDDEN_FILE_REGEX = %r!\/\.{1,2}$! attr_reader :site def initialize(site) @site = site end # Cleans up the site's destination directory def cleanup! File...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/related_posts.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/related_posts.rb
# frozen_string_literal: true module Jekyll class RelatedPosts class << self attr_accessor :lsi end attr_reader :post, :site def initialize(post) @post = post @site = post.site Jekyll::External.require_with_graceful_fail("classifier-reborn") if site.lsi end def buil...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/theme_builder.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/theme_builder.rb
# frozen_string_literal: true class Jekyll::ThemeBuilder SCAFFOLD_DIRECTORIES = %w( assets _layouts _includes _sass ).freeze attr_reader :name, :path, :code_of_conduct def initialize(theme_name, opts) @name = theme_name.to_s.tr(" ", "_").squeeze("_") @path = Pathname.new(File.expand_path(name, Di...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/stevenson.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/stevenson.rb
# frozen_string_literal: true module Jekyll class Stevenson < ::Logger def initialize @progname = nil @level = DEBUG @default_formatter = Formatter.new @logdev = $stdout @formatter = proc do |_, _, _, msg| msg.to_s end end def add(severity, message = nil, prog...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/url.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/url.rb
# frozen_string_literal: true # Public: Methods that generate a URL for a resource such as a Post or a Page. # # Examples # # URL.new({ # :template => /:categories/:title.html", # :placeholders => {:categories => "ruby", :title => "something"} # }).to_s # module Jekyll class URL # options - One of :p...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/configuration.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/configuration.rb
# frozen_string_literal: true module Jekyll class Configuration < Hash # Default options. Overridden by values in _config.yml. # Strings rather than symbols are used for compatibility with YAML. DEFAULTS = Configuration[{ # Where things are "source" => Dir.pwd, "destination...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/page_without_a_file.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/page_without_a_file.rb
# frozen_string_literal: true module Jekyll # A Jekyll::Page subclass to handle processing files without reading it to # determine the page-data and page-content based on Front Matter delimiters. # # The class instance is basically just a bare-bones entity with just # attributes "dir", "name", "path", "url" ...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/regenerator.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/regenerator.rb
# frozen_string_literal: true module Jekyll class Regenerator attr_reader :site, :metadata, :cache attr_accessor :disabled private :disabled, :disabled= def initialize(site) @site = site # Read metadata from file read_metadata # Initialize cache to an empty hash clear...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/liquid_extensions.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/liquid_extensions.rb
# frozen_string_literal: true module Jekyll module LiquidExtensions # Lookup a Liquid variable in the given context. # # context - the Liquid context in question. # variable - the variable name, as a string. # # Returns the value of the variable in the context # or the variable name i...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/entry_filter.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/entry_filter.rb
# frozen_string_literal: true module Jekyll class EntryFilter attr_reader :site SPECIAL_LEADING_CHARACTERS = [ ".", "_", "#", "~", ].freeze def initialize(site, base_directory = nil) @site = site @base_directory = derive_base_directory( @site, base_directory.to_s.dup ...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/renderer.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/renderer.rb
# frozen_string_literal: true module Jekyll class Renderer attr_reader :document, :site attr_writer :layouts, :payload def initialize(site, document, site_payload = nil) @site = site @document = document @payload = site_payload end # Fetches the payload used in Liquid ren...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/generator.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/generator.rb
# frozen_string_literal: true module Jekyll Generator = Class.new(Plugin) end
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/filters.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/filters.rb
# frozen_string_literal: true require_all "jekyll/filters" module Jekyll module Filters include URLFilters include GroupingFilters include DateFilters # Convert a Markdown string into HTML output. # # input - The Markdown String to convert. # # Returns the HTML formatted String. ...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/frontmatter_defaults.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/frontmatter_defaults.rb
# frozen_string_literal: true module Jekyll # This class handles custom defaults for YAML frontmatter settings. # These are set in _config.yml and apply both to internal use (e.g. layout) # and the data available to liquid. # # It is exposed via the frontmatter_defaults method on the site class. class Fron...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/deprecator.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/deprecator.rb
# frozen_string_literal: true module Jekyll module Deprecator extend self def process(args) arg_is_present? args, "--server", "The --server command has been replaced by the \ 'serve' subcommand." arg_is_present? args, "--serve", "The --serve command has been replaced by...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/excerpt.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/excerpt.rb
# frozen_string_literal: true module Jekyll class Excerpt extend Forwardable attr_accessor :doc attr_accessor :content, :ext attr_writer :output def_delegators :@doc, :site, :name, :ext, :extname, :collection, :related_posts, :coffeescript_f...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/log_adapter.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/log_adapter.rb
# frozen_string_literal: true module Jekyll class LogAdapter attr_reader :writer, :messages, :level LOG_LEVELS = { :debug => ::Logger::DEBUG, :info => ::Logger::INFO, :warn => ::Logger::WARN, :error => ::Logger::ERROR, }.freeze # Public: Create a new instance of a log writ...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/layout.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/layout.rb
# frozen_string_literal: true module Jekyll class Layout include Convertible # Gets the Site object. attr_reader :site # Gets the name of this layout. attr_reader :name # Gets the path to this layout. attr_reader :path # Gets the path to this layout relative to its base attr_r...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/document.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/document.rb
# frozen_string_literal: true module Jekyll class Document include Comparable extend Forwardable attr_reader :path, :site, :extname, :collection attr_accessor :content, :output def_delegator :self, :read_post_data, :post_read YAML_FRONT_MATTER_REGEXP = %r!\A(---\s*\n.*?\n?)^((---|\.\.\.)\s...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/site.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/site.rb
# frozen_string_literal: true module Jekyll class Site attr_reader :source, :dest, :config attr_accessor :layouts, :pages, :static_files, :drafts, :exclude, :include, :lsi, :highlighter, :permalink_style, :time, :future, :unpublished, :safe, :plugins, :limit_posts, ...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/converters/identity.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/converters/identity.rb
# frozen_string_literal: true module Jekyll module Converters class Identity < Converter safe true priority :lowest def matches(_ext) true end def output_ext(ext) ext end def convert(content) content end end end end
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/converters/markdown.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/converters/markdown.rb
# frozen_string_literal: true module Jekyll module Converters class Markdown < Converter highlighter_prefix "\n" highlighter_suffix "\n" safe true def setup return if @setup ||= false unless (@parser = get_processor) Jekyll.logger.error "Invalid Markdown process...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/converters/smartypants.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/converters/smartypants.rb
# frozen_string_literal: true class Kramdown::Parser::SmartyPants < Kramdown::Parser::Kramdown def initialize(source, options) super @block_parsers = [:block_html, :content] @span_parsers = [:smart_quotes, :html_entity, :typographic_syms, :span_html] end def parse_content add_text @src.scan(%r!...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/converters/markdown/redcarpet_parser.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/converters/markdown/redcarpet_parser.rb
# frozen_string_literal: true class Jekyll::Converters::Markdown::RedcarpetParser module CommonMethods def add_code_tags(code, lang) code = code.to_s code = code.sub( %r!<pre>!, "<pre><code class=\"language-#{lang}\" data-lang=\"#{lang}\">" ) code = code.sub(%r!</pre>!, "<...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/converters/markdown/kramdown_parser.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/converters/markdown/kramdown_parser.rb
# Frozen-string-literal: true module Jekyll module Converters class Markdown class KramdownParser CODERAY_DEFAULTS = { "css" => "style", "bold_every" => 10, "line_numbers" => "inline", "line_number_start" => 1, "tab_width" ...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/converters/markdown/rdiscount_parser.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/converters/markdown/rdiscount_parser.rb
# frozen_string_literal: true module Jekyll module Converters class Markdown class RDiscountParser def initialize(config) unless defined?(RDiscount) Jekyll::External.require_with_graceful_fail "rdiscount" end @config = config @rdiscount_extensions...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/liquid_renderer/table.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/liquid_renderer/table.rb
# frozen_string_literal: true module Jekyll class LiquidRenderer::Table def initialize(stats) @stats = stats end def to_s(num_of_rows = 50) data = data_for_table(num_of_rows) widths = table_widths(data) generate_table(data, widths) end private def generate_table(dat...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/liquid_renderer/file.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/liquid_renderer/file.rb
# frozen_string_literal: true module Jekyll class LiquidRenderer class File def initialize(renderer, filename) @renderer = renderer @filename = filename end def parse(content) measure_time do @template = Liquid::Template.parse(content, :line_numbers => true) ...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/commands/serve.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/commands/serve.rb
# frozen_string_literal: true require "thread" module Jekyll module Commands class Serve < Command # Similar to the pattern in Utils::ThreadEvent except we are maintaining the # state of @running instead of just signaling an event. We have to maintain this # state since Serve is just called v...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/commands/clean.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/commands/clean.rb
# frozen_string_literal: true module Jekyll module Commands class Clean < Command class << self def init_with_program(prog) prog.command(:clean) do |c| c.syntax "clean [subcommand]" c.description "Clean the site " \ "(removes site output and metad...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/commands/doctor.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/commands/doctor.rb
# frozen_string_literal: true module Jekyll module Commands class Doctor < Command class << self def init_with_program(prog) prog.command(:doctor) do |c| c.syntax "doctor" c.description "Search site and print specific deprecation warnings" c.alias(:hyde...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/commands/build.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/commands/build.rb
# frozen_string_literal: true module Jekyll module Commands class Build < Command class << self # Create the Mercenary command for the Jekyll CLI for this Command def init_with_program(prog) prog.command(:build) do |c| c.syntax "build [options]" c.desc...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/commands/new.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/commands/new.rb
# frozen_string_literal: true require "erb" module Jekyll module Commands class New < Command class << self def init_with_program(prog) prog.command(:new) do |c| c.syntax "new PATH" c.description "Creates a new Jekyll site scaffold in PATH" c.option "...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/commands/help.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/commands/help.rb
# frozen_string_literal: true module Jekyll module Commands class Help < Command class << self def init_with_program(prog) prog.command(:help) do |c| c.syntax "help [subcommand]" c.description "Show the help message, optionally for a given subcommand." ...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/commands/new_theme.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/commands/new_theme.rb
# frozen_string_literal: true require "erb" class Jekyll::Commands::NewTheme < Jekyll::Command class << self def init_with_program(prog) prog.command(:"new-theme") do |c| c.syntax "new-theme NAME" c.description "Creates a new Jekyll theme scaffold" c.option "code_of_conduct", \ ...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/commands/serve/websockets.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/commands/serve/websockets.rb
# frozen_string_literal: true require "http/parser" module Jekyll module Commands class Serve # The LiveReload protocol requires the server to serve livereload.js over HTTP # despite the fact that the protocol itself uses WebSockets. This custom connection # class addresses the dual protocols...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/commands/serve/live_reload_reactor.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/commands/serve/live_reload_reactor.rb
# frozen_string_literal: true require "em-websocket" require_relative "websockets" module Jekyll module Commands class Serve class LiveReloadReactor attr_reader :started_event attr_reader :stopped_event attr_reader :thread def initialize @websockets = [] ...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/commands/serve/servlet.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/commands/serve/servlet.rb
# frozen_string_literal: true require "webrick" module Jekyll module Commands class Serve # This class is used to determine if the Servlet should modify a served file # to insert the LiveReload script tags class SkipAnalyzer BAD_USER_AGENTS = [%r!MSIE!].freeze def self.skip_pr...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/tags/include.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/tags/include.rb
# frozen_string_literal: true module Jekyll module Tags class IncludeTagError < StandardError attr_accessor :path def initialize(msg, path) super(msg) @path = path end end class IncludeTag < Liquid::Tag VALID_SYNTAX = %r! ([\w-]+)\s*=\s* (?:"([^"\...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/tags/post_url.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/tags/post_url.rb
# frozen_string_literal: true module Jekyll module Tags class PostComparer MATCHER = %r!^(.+/)*(\d+-\d+-\d+)-(.*)$! attr_reader :path, :date, :slug, :name def initialize(name) @name = name all, @path, @date, @slug = *name.sub(%r!^/!, "").match(MATCHER) unless all ...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/tags/link.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/tags/link.rb
# frozen_string_literal: true module Jekyll module Tags class Link < Liquid::Tag class << self def tag_name self.name.split("::").last.downcase end end def initialize(tag_name, relative_path, tokens) super @relative_path = relative_path.strip en...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/tags/highlight.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/tags/highlight.rb
# frozen_string_literal: true module Jekyll module Tags class HighlightBlock < Liquid::Block include Liquid::StandardFilters # The regular expression syntax checker. Start with the language specifier. # Follow that by zero or more space separated options that take one of three # forms: n...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/utils/win_tz.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/utils/win_tz.rb
# frozen_string_literal: true module Jekyll module Utils module WinTZ extend self # Public: Calculate the Timezone for Windows when the config file has a defined # 'timezone' key. # # timezone - the IANA Time Zone specified in "_config.yml" # # Returns a string ...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/utils/exec.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/utils/exec.rb
# frozen_string_literal: true require "open3" module Jekyll module Utils module Exec extend self # Runs a program in a sub-shell. # # *args - a list of strings containing the program name and arguments # # Returns a Process::Status and a String of output in an array in ...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/utils/thread_event.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/utils/thread_event.rb
# frozen_string_literal: true require "thread" module Jekyll module Utils # Based on the pattern and code from # https://emptysqua.re/blog/an-event-synchronization-primitive-for-ruby/ class ThreadEvent attr_reader :flag def initialize @lock = Mutex.new @cond = ConditionVaria...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/utils/ansi.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/utils/ansi.rb
# Frozen-string-literal: true module Jekyll module Utils module Ansi extend self ESCAPE = format("%c", 27) MATCH = %r!#{ESCAPE}\[(?:\d+)(?:;\d+)*(j|k|m|s|u|A|B|G)|\e\(B\e\[m!ix COLORS = { :red => 31, :green => 32, :black => 30, :magenta => 35, ...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/utils/platforms.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/utils/platforms.rb
# frozen_string_literal: true module Jekyll module Utils module Platforms extend self # Provides jruby? and mri? which respectively detect these two types of # tested Engines we support, in the future we might probably support the # other one that everyone used to talk about. { :j...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/utils/rouge.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/utils/rouge.rb
# frozen_string_literal: true Jekyll::External.require_with_graceful_fail("rouge") module Jekyll module Utils module Rouge def self.html_formatter(*args) if old_api? ::Rouge::Formatters::HTML.new(*args) else ::Rouge::Formatters::HTMLLegacy.new(*args) end ...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/utils/internet.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/utils/internet.rb
# frozen_string_literal: true module Jekyll module Utils module Internet # Public: Determine whether the present device has a connection to # the Internet. This allows plugin writers which require the outside # world to have a neat fallback mechanism for offline building. # # Examp...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/drops/static_file_drop.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/drops/static_file_drop.rb
# frozen_string_literal: true module Jekyll module Drops class StaticFileDrop < Drop extend Forwardable def_delegators :@obj, :name, :extname, :modified_time, :basename def_delegator :@obj, :relative_path, :path def_delegator :@obj, :type, :collection private def_delegator :@obj, :...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/drops/document_drop.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/drops/document_drop.rb
# frozen_string_literal: true module Jekyll module Drops class DocumentDrop < Drop extend Forwardable NESTED_OBJECT_FIELD_BLACKLIST = %w( content output excerpt next previous ).freeze mutable false def_delegator :@obj, :relative_path, :path def_delegators :@obj, :id...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/drops/excerpt_drop.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/drops/excerpt_drop.rb
# frozen_string_literal: true module Jekyll module Drops class ExcerptDrop < DocumentDrop def layout @obj.doc.data["layout"] end def excerpt nil end end end end
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/drops/collection_drop.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/drops/collection_drop.rb
# frozen_string_literal: true module Jekyll module Drops class CollectionDrop < Drop extend Forwardable mutable false def_delegator :@obj, :write?, :output def_delegators :@obj, :label, :docs, :files, :directory, :relative_directory private def_delegat...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/drops/drop.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/drops/drop.rb
# frozen_string_literal: true module Jekyll module Drops class Drop < Liquid::Drop include Enumerable NON_CONTENT_METHODS = [:fallback_data, :collapse_document].freeze # Get or set whether the drop class is mutable. # Mutability determines whether or not pre-defined fields may be ...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/drops/unified_payload_drop.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/drops/unified_payload_drop.rb
# frozen_string_literal: true module Jekyll module Drops class UnifiedPayloadDrop < Drop mutable true attr_accessor :page, :layout, :content, :paginator attr_accessor :highlighter_prefix, :highlighter_suffix def jekyll JekyllDrop.global end def site @site_dr...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/drops/url_drop.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/drops/url_drop.rb
# frozen_string_literal: true module Jekyll module Drops class UrlDrop < Drop extend Forwardable mutable false def_delegator :@obj, :cleaned_relative_path, :path def_delegator :@obj, :output_ext, :output_ext def collection @obj.collection.label end def name ...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/drops/site_drop.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/drops/site_drop.rb
# frozen_string_literal: true module Jekyll module Drops class SiteDrop < Drop extend Forwardable mutable false def_delegator :@obj, :site_data, :data def_delegators :@obj, :time, :pages, :static_files, :documents, :tags, :categories private def_deleg...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/drops/jekyll_drop.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/drops/jekyll_drop.rb
# frozen_string_literal: true module Jekyll module Drops class JekyllDrop < Liquid::Drop class << self def global @global ||= JekyllDrop.new end end def version Jekyll::VERSION end def environment Jekyll.env end def to_h ...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/readers/static_file_reader.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/readers/static_file_reader.rb
# frozen_string_literal: true module Jekyll class StaticFileReader attr_reader :site, :dir, :unfiltered_content def initialize(site, dir) @site = site @dir = dir @unfiltered_content = [] end # Read all the files in <source>/<dir>/ for Yaml header and create a new Page # object ...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/readers/theme_assets_reader.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/readers/theme_assets_reader.rb
# frozen_string_literal: true module Jekyll class ThemeAssetsReader attr_reader :site def initialize(site) @site = site end def read return unless site.theme && site.theme.assets_path Find.find(site.theme.assets_path) do |path| next if File.directory?(path) if File...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/readers/layout_reader.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/readers/layout_reader.rb
# frozen_string_literal: true module Jekyll class LayoutReader attr_reader :site def initialize(site) @site = site @layouts = {} end def read layout_entries.each do |layout_file| @layouts[layout_name(layout_file)] = \ Layout.new(site, layout_directory, layout_file...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/readers/collection_reader.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/readers/collection_reader.rb
# frozen_string_literal: true module Jekyll class CollectionReader SPECIAL_COLLECTIONS = %w(posts data).freeze attr_reader :site, :content def initialize(site) @site = site @content = {} end # Read in all collections specified in the configuration # # Returns nothing. de...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/readers/data_reader.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/readers/data_reader.rb
# frozen_string_literal: true module Jekyll class DataReader attr_reader :site, :content def initialize(site) @site = site @content = {} @entry_filter = EntryFilter.new(site) end # Read all the files in <dir> and adds them to @content # # dir - The String relative path of t...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/readers/page_reader.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/readers/page_reader.rb
# frozen_string_literal: true module Jekyll class PageReader attr_reader :site, :dir, :unfiltered_content def initialize(site, dir) @site = site @dir = dir @unfiltered_content = [] end # Read all the files in <source>/<dir>/ for Yaml header and create a new Page # object for ea...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/readers/post_reader.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/readers/post_reader.rb
# frozen_string_literal: true module Jekyll class PostReader attr_reader :site, :unfiltered_content def initialize(site) @site = site end # Read all the files in <source>/<dir>/_drafts and create a new # Document object with each one. # # dir - The String relative path of the direc...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/filters/url_filters.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/filters/url_filters.rb
# frozen_string_literal: true module Jekyll module Filters module URLFilters # Produces an absolute URL based on site.url and site.baseurl. # # input - the URL to make absolute. # # Returns the absolute URL as a String. def absolute_url(input) return if input.nil? ...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/filters/date_filters.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/filters/date_filters.rb
# frozen_string_literal: true module Jekyll module Filters module DateFilters # Format a date in short format e.g. "27 Jan 2011". # Ordinal format is also supported, in both the UK # (e.g. "27th Jan 2011") and US ("e.g. Jan 27th, 2011") formats. # UK format is the default. # #...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/filters/grouping_filters.rb
_vendor/ruby/2.6.0/gems/jekyll-3.8.4/lib/jekyll/filters/grouping_filters.rb
# frozen_string_literal: true module Jekyll module Filters module GroupingFilters # Group an array of items by a property # # input - the inputted Enumerable # property - the property # # Returns an array of Hashes, each looking something like this: # {"name" => "larry...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/rb-inotify-0.9.10/spec/rb-inotify_spec.rb
_vendor/ruby/2.6.0/gems/rb-inotify-0.9.10/spec/rb-inotify_spec.rb
require 'spec_helper' describe INotify do describe "version" do it "exists" do expect(INotify::VERSION).to be_truthy end end end
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/rb-inotify-0.9.10/spec/spec_helper.rb
_vendor/ruby/2.6.0/gems/rb-inotify-0.9.10/spec/spec_helper.rb
require "bundler/setup" require "rb-inotify" RSpec.configure do |config| # Enable flags like --only-failures and --next-failure config.example_status_persistence_file_path = ".rspec_status" config.expect_with :rspec do |c| c.syntax = :expect end end
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/rb-inotify-0.9.10/spec/rb-inotify/errors_spec.rb
_vendor/ruby/2.6.0/gems/rb-inotify-0.9.10/spec/rb-inotify/errors_spec.rb
require 'spec_helper' describe INotify do describe "QueueOverflowError" do it "exists" do expect(INotify::QueueOverflowError).to be_truthy end end end
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/rb-inotify-0.9.10/lib/rb-inotify.rb
_vendor/ruby/2.6.0/gems/rb-inotify-0.9.10/lib/rb-inotify.rb
require 'rb-inotify/version' require 'rb-inotify/native' require 'rb-inotify/native/flags' require 'rb-inotify/notifier' require 'rb-inotify/watcher' require 'rb-inotify/event' require 'rb-inotify/errors' # The root module of the library, which is laid out as so: # # * {Notifier} -- The main class, where the notificat...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/rb-inotify-0.9.10/lib/rb-inotify/watcher.rb
_vendor/ruby/2.6.0/gems/rb-inotify-0.9.10/lib/rb-inotify/watcher.rb
module INotify # Watchers monitor a single path for changes, # specified by {INotify::Notifier#watch event flags}. # A watcher is usually created via \{Notifier#watch}. # # One {Notifier} may have many {Watcher}s. # The Notifier actually takes care of the checking for events, # via \{Notifier#run #run} or...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/rb-inotify-0.9.10/lib/rb-inotify/version.rb
_vendor/ruby/2.6.0/gems/rb-inotify-0.9.10/lib/rb-inotify/version.rb
# Copyright, 2012, by Natalie Weizenbaum. # Copyright, 2017, by Samuel G. D. Williams. <http://www.codeotaku.com> # # 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, includ...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/rb-inotify-0.9.10/lib/rb-inotify/event.rb
_vendor/ruby/2.6.0/gems/rb-inotify-0.9.10/lib/rb-inotify/event.rb
module INotify # An event caused by a change on the filesystem. # Each {Watcher} can fire many events, # which are passed to that watcher's callback. class Event # A list of other events that are related to this one. # Currently, this is only used for files that are moved within the same directory: ...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/rb-inotify-0.9.10/lib/rb-inotify/errors.rb
_vendor/ruby/2.6.0/gems/rb-inotify-0.9.10/lib/rb-inotify/errors.rb
module INotify class QueueOverflowError < RuntimeError; end end
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/rb-inotify-0.9.10/lib/rb-inotify/native.rb
_vendor/ruby/2.6.0/gems/rb-inotify-0.9.10/lib/rb-inotify/native.rb
require 'ffi' module INotify # This module contains the low-level foreign-function interface code # for dealing with the inotify C APIs. # It's an implementation detail, and not meant for users to deal with. # # @private module Native extend FFI::Library ffi_lib FFI::Library::LIBC begin f...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/rb-inotify-0.9.10/lib/rb-inotify/notifier.rb
_vendor/ruby/2.6.0/gems/rb-inotify-0.9.10/lib/rb-inotify/notifier.rb
module INotify # Notifier wraps a single instance of inotify. # It's possible to have more than one instance, # but usually unnecessary. # # @example # # Create the notifier # notifier = INotify::Notifier.new # # # Run this callback whenever the file path/to/foo.txt is read # notifier.watch(...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/rb-inotify-0.9.10/lib/rb-inotify/native/flags.rb
_vendor/ruby/2.6.0/gems/rb-inotify-0.9.10/lib/rb-inotify/native/flags.rb
module INotify module Native # A module containing all the inotify flags # to be passed to {Notifier#watch}. # # @private module Flags # File was accessed. IN_ACCESS = 0x00000001 # Metadata changed. IN_ATTRIB = 0x00000004 # Writtable file was closed. IN_CLOSE_WR...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/mercenary-0.3.6/spec/program_spec.rb
_vendor/ruby/2.6.0/gems/mercenary-0.3.6/spec/program_spec.rb
require "spec_helper" describe(Mercenary::Program) do context "a basic program" do let(:program) { Mercenary::Program.new(:my_name) } it "can be created with just a name" do expect(program.name).to eql(:my_name) end it "can set its version" do version = Mercenary::VERSION program...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/mercenary-0.3.6/spec/command_spec.rb
_vendor/ruby/2.6.0/gems/mercenary-0.3.6/spec/command_spec.rb
require "spec_helper" describe(Mercenary::Command) do context "a basic command" do let(:command) { Mercenary::Command.new(:my_name) } let(:parent) { Mercenary::Command.new(:my_parent) } let(:with_sub) do c = Mercenary::Command.new(:i_have_subcommand) add_sub.call(c) c end let(...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/mercenary-0.3.6/spec/option_spec.rb
_vendor/ruby/2.6.0/gems/mercenary-0.3.6/spec/option_spec.rb
require 'spec_helper' describe(Mercenary::Option) do let(:config_key) { "largo" } let(:description) { "This is a description" } let(:switches) { ['-l', '--largo'] } let(:option) { described_class.new(config_key, [switches, description].flatten.reject(&:nil?)) } it "knows its config key" do expe...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/mercenary-0.3.6/spec/presenter_spec.rb
_vendor/ruby/2.6.0/gems/mercenary-0.3.6/spec/presenter_spec.rb
require 'spec_helper' describe(Mercenary::Presenter) do let(:supercommand) { Mercenary::Command.new(:script_name) } let(:command) { Mercenary::Command.new(:subcommand, supercommand) } let(:presenter) { described_class.new(command) } before(:each) do command.version '1.4.2' command.description 'Do all ...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/mercenary-0.3.6/spec/spec_helper.rb
_vendor/ruby/2.6.0/gems/mercenary-0.3.6/spec/spec_helper.rb
lib = File.expand_path('../../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'mercenary' RSpec.configure do |config| config.run_all_when_everything_filtered = true config.filter_run :focus # Run specs in random order to surface order dependencies. If you find an # order depend...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/mercenary-0.3.6/examples/help_dialogue.rb
_vendor/ruby/2.6.0/gems/mercenary-0.3.6/examples/help_dialogue.rb
#!/usr/bin/env ruby $:.unshift File.join(File.dirname(__FILE__), *%w{ .. lib }) require "mercenary" # This example sets the logging mode of mercenary to # debug. Logging messages from "p.logger.debug" will # be output to STDOUT. Mercenary.program(:help_dialogue) do |p| p.version "2.0.1" p.description 'An examp...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/mercenary-0.3.6/examples/logging.rb
_vendor/ruby/2.6.0/gems/mercenary-0.3.6/examples/logging.rb
#!/usr/bin/env ruby $:.unshift File.join(File.dirname(__FILE__), *%w{ .. lib }) require "mercenary" # This example sets the logging mode of mercenary to # debug. Logging messages from "p.logger.debug" will # be output to STDOUT. Mercenary.program(:logger_output) do |p| p.version "5.2.6" p.description 'An examp...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/mercenary-0.3.6/examples/trace.rb
_vendor/ruby/2.6.0/gems/mercenary-0.3.6/examples/trace.rb
#!/usr/bin/env ruby $:.unshift File.join(File.dirname(__FILE__), *%w{ .. lib }) require "mercenary" # This example sets the logging mode of mercenary to # debug. Logging messages from "p.logger.debug" will # be output to STDOUT. Mercenary.program(:trace) do |p| p.version "2.0.1" p.description 'An example of tr...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/mercenary-0.3.6/lib/mercenary.rb
_vendor/ruby/2.6.0/gems/mercenary-0.3.6/lib/mercenary.rb
require File.expand_path("../mercenary/version", __FILE__) require "optparse" require "logger" module Mercenary autoload :Command, File.expand_path("../mercenary/command", __FILE__) autoload :Option, File.expand_path("../mercenary/option", __FILE__) autoload :Presenter, File.expand_path("../mercenary/presen...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/mercenary-0.3.6/lib/mercenary/command.rb
_vendor/ruby/2.6.0/gems/mercenary-0.3.6/lib/mercenary/command.rb
module Mercenary class Command attr_reader :name attr_reader :description attr_reader :syntax attr_accessor :options attr_accessor :commands attr_accessor :actions attr_reader :map attr_accessor :parent attr_reader :trace attr_reader :aliases # Public: Creates a new Comman...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/mercenary-0.3.6/lib/mercenary/version.rb
_vendor/ruby/2.6.0/gems/mercenary-0.3.6/lib/mercenary/version.rb
module Mercenary VERSION = "0.3.6" end
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false
grab/engineering-blog
https://github.com/grab/engineering-blog/blob/d8026a4e9cc6348bf38951ee96c523f4ec19f3c4/_vendor/ruby/2.6.0/gems/mercenary-0.3.6/lib/mercenary/presenter.rb
_vendor/ruby/2.6.0/gems/mercenary-0.3.6/lib/mercenary/presenter.rb
module Mercenary class Presenter attr_accessor :command # Public: Make a new Presenter # # command - a Mercenary::Command to present # # Returns nothing def initialize(command) @command = command end # Public: Builds a string representation of the command usage # # ...
ruby
MIT
d8026a4e9cc6348bf38951ee96c523f4ec19f3c4
2026-01-04T17:45:10.474201Z
false