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
flyerhzm/eager_group
https://github.com/flyerhzm/eager_group/blob/7dc79e5705b24e6193e869ab8624c188399b438e/lib/eager_group/preloader/has_many.rb
lib/eager_group/preloader/has_many.rb
# frozen_string_literal: true module EagerGroup class Preloader class HasMany < AggregationFinder def group_by_foreign_key reflection.foreign_key end def aggregate_hash scope = reflection.klass.all.tap{|query| query.merge!(definition_scope) if definition_scope } scope....
ruby
MIT
7dc79e5705b24e6193e869ab8624c188399b438e
2026-01-04T17:56:14.651123Z
false
flyerhzm/eager_group
https://github.com/flyerhzm/eager_group/blob/7dc79e5705b24e6193e869ab8624c188399b438e/lib/eager_group/preloader/many_to_many.rb
lib/eager_group/preloader/many_to_many.rb
# frozen_string_literal: true module EagerGroup class Preloader class ManyToMany < AggregationFinder def group_by_foreign_key "#{reflection.join_table}.#{reflection.foreign_key}" end def aggregate_hash scope = klass.joins(reflection.name).tap{|query| query.merge!(definition_sco...
ruby
MIT
7dc79e5705b24e6193e869ab8624c188399b438e
2026-01-04T17:56:14.651123Z
false
flyerhzm/eager_group
https://github.com/flyerhzm/eager_group/blob/7dc79e5705b24e6193e869ab8624c188399b438e/lib/eager_group/preloader/has_many_through_many.rb
lib/eager_group/preloader/has_many_through_many.rb
# frozen_string_literal: true module EagerGroup class Preloader class HasManyThroughMany < AggregationFinder def group_by_foreign_key "#{reflection.through_reflection.name}.#{reflection.through_reflection.foreign_key}" end def aggregate_hash scope = klass.joins(reflection.name)...
ruby
MIT
7dc79e5705b24e6193e869ab8624c188399b438e
2026-01-04T17:56:14.651123Z
false
teeparham/gemdiff
https://github.com/teeparham/gemdiff/blob/161f341b14c1386bbaa4ac9266fad345b15fcb31/test/outdated_gem_test.rb
test/outdated_gem_test.rb
# frozen_string_literal: true require "test_helper" describe "#initialize" do it "sets name" do assert_equal "x", Gemdiff::OutdatedGem.new("x").name end it "sets name to current directory when ." do assert_equal "gemdiff", Gemdiff::OutdatedGem.new(".").name end end describe "#missing_versions?" do ...
ruby
MIT
161f341b14c1386bbaa4ac9266fad345b15fcb31
2026-01-04T17:56:17.422815Z
false
teeparham/gemdiff
https://github.com/teeparham/gemdiff/blob/161f341b14c1386bbaa4ac9266fad345b15fcb31/test/test_helper.rb
test/test_helper.rb
# frozen_string_literal: true require "minitest/autorun" require "mocha/minitest" require "gemdiff" begin require "debug" unless ENV["CI"] rescue LoadError # ok end
ruby
MIT
161f341b14c1386bbaa4ac9266fad345b15fcb31
2026-01-04T17:56:17.422815Z
false
teeparham/gemdiff
https://github.com/teeparham/gemdiff/blob/161f341b14c1386bbaa4ac9266fad345b15fcb31/test/repo_finder_test.rb
test/repo_finder_test.rb
# frozen_string_literal: true require "test_helper" describe ".github_url" do it "returns github url from local gemspec" do Gemdiff::RepoFinder.stubs find_local_gemspec: fake_gemspec("homepage: http://github.com/rails/arel") assert_equal "https://github.com/rails/arel", Gemdiff::RepoFinder.github_url("arel"...
ruby
MIT
161f341b14c1386bbaa4ac9266fad345b15fcb31
2026-01-04T17:56:17.422815Z
false
teeparham/gemdiff
https://github.com/teeparham/gemdiff/blob/161f341b14c1386bbaa4ac9266fad345b15fcb31/test/cli_test.rb
test/cli_test.rb
# frozen_string_literal: true require "test_helper" def cli @cli ||= Gemdiff::CLI.new end describe "#find" do it "finds" do mock_gem "haml" cli.expects(:puts).with("http://github.com/haml/haml") cli.find "haml" end it "does not find" do mock_missing_gem cli.expects(:puts).with("Could not...
ruby
MIT
161f341b14c1386bbaa4ac9266fad345b15fcb31
2026-01-04T17:56:17.422815Z
false
teeparham/gemdiff
https://github.com/teeparham/gemdiff/blob/161f341b14c1386bbaa4ac9266fad345b15fcb31/test/bundle_inspector_test.rb
test/bundle_inspector_test.rb
# frozen_string_literal: true require "test_helper" def inspector @inspector ||= Gemdiff::BundleInspector.new end describe "#list" do it "returns outdated gems" do inspector.stubs bundle_outdated_strict: fake_outdated_parseable inspector.list.tap do |list| assert_equal 3, list.size assert_equ...
ruby
MIT
161f341b14c1386bbaa4ac9266fad345b15fcb31
2026-01-04T17:56:17.422815Z
false
teeparham/gemdiff
https://github.com/teeparham/gemdiff/blob/161f341b14c1386bbaa4ac9266fad345b15fcb31/test/gem_updater_test.rb
test/gem_updater_test.rb
# frozen_string_literal: true require "test_helper" describe "#update" do it "updates the gem" do updater = Gemdiff::GemUpdater.new("x") updater.expects :bundle_update updater.update end end describe "#commit" do it "adds a git commit for a gem update" do updater = Gemdiff::GemUpdater.new("json...
ruby
MIT
161f341b14c1386bbaa4ac9266fad345b15fcb31
2026-01-04T17:56:17.422815Z
false
teeparham/gemdiff
https://github.com/teeparham/gemdiff/blob/161f341b14c1386bbaa4ac9266fad345b15fcb31/lib/gemdiff.rb
lib/gemdiff.rb
# frozen_string_literal: true require "gemdiff/version" require "gemdiff/colorize" require "gemdiff/cli" require "gemdiff/bundle_inspector" require "gemdiff/outdated_gem" require "gemdiff/repo_finder" require "gemdiff/gem_updater"
ruby
MIT
161f341b14c1386bbaa4ac9266fad345b15fcb31
2026-01-04T17:56:17.422815Z
false
teeparham/gemdiff
https://github.com/teeparham/gemdiff/blob/161f341b14c1386bbaa4ac9266fad345b15fcb31/lib/gemdiff/repo_finder.rb
lib/gemdiff/repo_finder.rb
# frozen_string_literal: true require "octokit" require "yaml" module Gemdiff module RepoFinder GITHUB_REPO_REGEX = %r{(https?)://(www.)?github\.com/([\w.%-]*)/([\w.%-]*)} # rails builds several gems that are not individual projects # some repos move and the old repo page still exists # some repos ...
ruby
MIT
161f341b14c1386bbaa4ac9266fad345b15fcb31
2026-01-04T17:56:17.422815Z
false
teeparham/gemdiff
https://github.com/teeparham/gemdiff/blob/161f341b14c1386bbaa4ac9266fad345b15fcb31/lib/gemdiff/version.rb
lib/gemdiff/version.rb
# frozen_string_literal: true module Gemdiff VERSION = "6.0.2" end
ruby
MIT
161f341b14c1386bbaa4ac9266fad345b15fcb31
2026-01-04T17:56:17.422815Z
false
teeparham/gemdiff
https://github.com/teeparham/gemdiff/blob/161f341b14c1386bbaa4ac9266fad345b15fcb31/lib/gemdiff/bundle_inspector.rb
lib/gemdiff/bundle_inspector.rb
# frozen_string_literal: true module Gemdiff class BundleInspector BUNDLE_OUTDATED_PARSE_REGEX = /\A([^\s]+)\s\(newest\s([^,]+),\sinstalled\s([^,\)]+).*\z/ def list @list ||= outdated .split("\n") .filter_map { |line| new_outdated_gem(line) } end def outdated ...
ruby
MIT
161f341b14c1386bbaa4ac9266fad345b15fcb31
2026-01-04T17:56:17.422815Z
false
teeparham/gemdiff
https://github.com/teeparham/gemdiff/blob/161f341b14c1386bbaa4ac9266fad345b15fcb31/lib/gemdiff/cli.rb
lib/gemdiff/cli.rb
# frozen_string_literal: true require "thor" module Gemdiff class CLI < Thor include Thor::Actions include Colorize default_task :list CHECKING_FOR_OUTDATED = "Checking for outdated gems in your bundle..." NOTHING_TO_UPDATE = "Nothing to update." WORKING_DIRECTORY_IS_NOT_CLEAN = "Your work...
ruby
MIT
161f341b14c1386bbaa4ac9266fad345b15fcb31
2026-01-04T17:56:17.422815Z
false
teeparham/gemdiff
https://github.com/teeparham/gemdiff/blob/161f341b14c1386bbaa4ac9266fad345b15fcb31/lib/gemdiff/outdated_gem.rb
lib/gemdiff/outdated_gem.rb
# frozen_string_literal: true require "launchy" require "uri" module Gemdiff class OutdatedGem # gems that tag releases with tag names like 1.2.3 # keep it alphabetical LIST_NO_V = %w[ atomic autoprefixer-rails babosa bullet cancan capybara compass erubi ...
ruby
MIT
161f341b14c1386bbaa4ac9266fad345b15fcb31
2026-01-04T17:56:17.422815Z
false
teeparham/gemdiff
https://github.com/teeparham/gemdiff/blob/161f341b14c1386bbaa4ac9266fad345b15fcb31/lib/gemdiff/gem_updater.rb
lib/gemdiff/gem_updater.rb
# frozen_string_literal: true module Gemdiff class GemUpdater attr_reader :name def initialize(name) @name = name end def update bundle_update end def diff git_diff end def show git_show end def commit git_commit end def reset ...
ruby
MIT
161f341b14c1386bbaa4ac9266fad345b15fcb31
2026-01-04T17:56:17.422815Z
false
teeparham/gemdiff
https://github.com/teeparham/gemdiff/blob/161f341b14c1386bbaa4ac9266fad345b15fcb31/lib/gemdiff/colorize.rb
lib/gemdiff/colorize.rb
# frozen_string_literal: true module Gemdiff module Colorize COLORS = { red: 31, green: 32, yellow: 33, blue: 34, magenta: 35, }.freeze # works with `git show` and `git diff` def colorize_git_output(lines) out = lines.split("\n").map do...
ruby
MIT
161f341b14c1386bbaa4ac9266fad345b15fcb31
2026-01-04T17:56:17.422815Z
false
maoueh/nugrant
https://github.com/maoueh/nugrant/blob/6276b3e81364c6ed204d958ec01c653a34a74464/test/lib/test_helper.rb
test/lib/test_helper.rb
require "minitest/reporters" Minitest::Reporters.use!
ruby
MIT
6276b3e81364c6ed204d958ec01c653a34a74464
2026-01-04T17:56:15.986406Z
false
maoueh/nugrant
https://github.com/maoueh/nugrant/blob/6276b3e81364c6ed204d958ec01c653a34a74464/test/lib/nugrant/test_config.rb
test/lib/nugrant/test_config.rb
require 'minitest/autorun' require 'tmpdir' require 'nugrant/config' module Nugrant class TestConfig < ::Minitest::Test def setup @default_param_filename = Nugrant::Config::DEFAULT_PARAMS_FILENAME @old_working_dir = Dir.getwd() @user_dir = Nugrant::Config.default_user_path() @system_dir...
ruby
MIT
6276b3e81364c6ed204d958ec01c653a34a74464
2026-01-04T17:56:15.986406Z
false
maoueh/nugrant
https://github.com/maoueh/nugrant/blob/6276b3e81364c6ed204d958ec01c653a34a74464/test/lib/nugrant/test_parameters.rb
test/lib/nugrant/test_parameters.rb
require 'minitest/autorun' require 'nugrant' require 'nugrant/helper/parameters' require 'nugrant/parameters' module Nugrant class TestParameters < ::Minitest::Test @@FORMATS = [:json, :yaml] @@INVALID_PATH = "impossible_file_path.yamljson.impossible" def test_params_level_1() formats.each do |f...
ruby
MIT
6276b3e81364c6ed204d958ec01c653a34a74464
2026-01-04T17:56:15.986406Z
false
maoueh/nugrant
https://github.com/maoueh/nugrant/blob/6276b3e81364c6ed204d958ec01c653a34a74464/test/lib/nugrant/test_bag.rb
test/lib/nugrant/test_bag.rb
require 'minitest/autorun' require 'nugrant/bag' require 'nugrant/helper/bag' module Nugrant class TestBag < ::Minitest::Test def run_test_bag(parameters) bag = create_bag(parameters) assert_bag_equal(parameters, bag) end def test_bag() run_test_bag({:first => "value1", :second => "v...
ruby
MIT
6276b3e81364c6ed204d958ec01c653a34a74464
2026-01-04T17:56:15.986406Z
false
maoueh/nugrant
https://github.com/maoueh/nugrant/blob/6276b3e81364c6ed204d958ec01c653a34a74464/test/lib/nugrant/helper/test_parameters.rb
test/lib/nugrant/helper/test_parameters.rb
require 'minitest/autorun' require 'nugrant/bag' require 'nugrant/helper/parameters' module Nugrant module Helper class TestParameters < ::Minitest::Test def test_restricted_keys_contains_hash_ones keys = Helper::Parameters.restricted_keys() Nugrant::Bag.instance_methods.each do |method| ...
ruby
MIT
6276b3e81364c6ed204d958ec01c653a34a74464
2026-01-04T17:56:15.986406Z
false
maoueh/nugrant
https://github.com/maoueh/nugrant/blob/6276b3e81364c6ed204d958ec01c653a34a74464/test/lib/nugrant/helper/test_stack.rb
test/lib/nugrant/helper/test_stack.rb
require 'minitest/autorun' require 'nugrant/helper/stack' module Nugrant module Helper class TestStack < ::Minitest::Test def create_stack(options = {}) pattern = options[:pattern] || "Vagrantfile:%s" count = options[:count] || 4 stack = [] (0..count).each do |index| ...
ruby
MIT
6276b3e81364c6ed204d958ec01c653a34a74464
2026-01-04T17:56:15.986406Z
false
maoueh/nugrant
https://github.com/maoueh/nugrant/blob/6276b3e81364c6ed204d958ec01c653a34a74464/test/lib/nugrant/helper/test_bag.rb
test/lib/nugrant/helper/test_bag.rb
require 'minitest/autorun' require 'nugrant/helper/bag' module Nugrant module Helper class TestBag < ::Minitest::Test def test_restricted_keys_contains_hash_ones keys = Helper::Bag.restricted_keys() Hash.instance_methods.each do |method| assert_includes(keys, method, "Restricted ...
ruby
MIT
6276b3e81364c6ed204d958ec01c653a34a74464
2026-01-04T17:56:15.986406Z
false
maoueh/nugrant
https://github.com/maoueh/nugrant/blob/6276b3e81364c6ed204d958ec01c653a34a74464/test/lib/nugrant/helper/env/test_exporter.rb
test/lib/nugrant/helper/env/test_exporter.rb
require 'minitest/autorun' require 'nugrant/bag' require 'nugrant/helper/env/exporter' module Nugrant module Helper module Env class TestExporter < ::Minitest::Test def create_bag(parameters) return Nugrant::Bag.new(parameters) end def assert_export(expected, key, value,...
ruby
MIT
6276b3e81364c6ed204d958ec01c653a34a74464
2026-01-04T17:56:15.986406Z
false
maoueh/nugrant
https://github.com/maoueh/nugrant/blob/6276b3e81364c6ed204d958ec01c653a34a74464/lib/nugrant.rb
lib/nugrant.rb
require 'pathname' require 'nugrant/config' require 'nugrant/parameters' # 1.8 Compatibility check unless defined?(KeyError) class KeyError < IndexError end end module Nugrant def self.setup_i18n() I18n.load_path << File.expand_path("locales/en.yml", Nugrant.source_root) I18n.reload! end def self.s...
ruby
MIT
6276b3e81364c6ed204d958ec01c653a34a74464
2026-01-04T17:56:15.986406Z
false
maoueh/nugrant
https://github.com/maoueh/nugrant/blob/6276b3e81364c6ed204d958ec01c653a34a74464/lib/nugrant/bag.rb
lib/nugrant/bag.rb
require 'nugrant/config' module Nugrant class Bag < Hash ## # Create a new Bag object which holds key/value pairs. # The Bag object inherits from the Hash object, the main # differences with a normal Hash are indifferent access # (symbol or string) and method access (via method call). # ...
ruby
MIT
6276b3e81364c6ed204d958ec01c653a34a74464
2026-01-04T17:56:15.986406Z
false
maoueh/nugrant
https://github.com/maoueh/nugrant/blob/6276b3e81364c6ed204d958ec01c653a34a74464/lib/nugrant/version.rb
lib/nugrant/version.rb
module Nugrant VERSION = "2.1.5.dev1" end
ruby
MIT
6276b3e81364c6ed204d958ec01c653a34a74464
2026-01-04T17:56:15.986406Z
false
maoueh/nugrant
https://github.com/maoueh/nugrant/blob/6276b3e81364c6ed204d958ec01c653a34a74464/lib/nugrant/parameters.rb
lib/nugrant/parameters.rb
require 'nugrant/mixin/parameters' module Nugrant class Parameters include Mixin::Parameters ## # Create a new parameters object which holds completed # merged values. The following precedence is used to decide # which location has precedence over which location: # # (Highest) -----...
ruby
MIT
6276b3e81364c6ed204d958ec01c653a34a74464
2026-01-04T17:56:15.986406Z
false
maoueh/nugrant
https://github.com/maoueh/nugrant/blob/6276b3e81364c6ed204d958ec01c653a34a74464/lib/nugrant/config.rb
lib/nugrant/config.rb
require 'rbconfig' module Nugrant class Config DEFAULT_ARRAY_MERGE_STRATEGY = :replace DEFAULT_PARAMS_FILENAME = ".nuparams" DEFAULT_PARAMS_FORMAT = :yaml DEFAULT_AUTO_EXPORT = false SUPPORTED_ARRAY_MERGE_STRATEGIES = [:concat, :extend, :replace] SUPPORTED_PARAMS_FORMATS = [:json, :yaml] ...
ruby
MIT
6276b3e81364c6ed204d958ec01c653a34a74464
2026-01-04T17:56:15.986406Z
false
maoueh/nugrant
https://github.com/maoueh/nugrant/blob/6276b3e81364c6ed204d958ec01c653a34a74464/lib/nugrant/vagrant/errors.rb
lib/nugrant/vagrant/errors.rb
require 'vagrant/errors' require 'nugrant/helper/stack' module Nugrant module Vagrant module Errors class NugrantVagrantError < ::Vagrant::Errors::VagrantError error_namespace("nugrant.vagrant.errors") def compute_context() Helper::Stack.fetch_error_region(caller(), { ...
ruby
MIT
6276b3e81364c6ed204d958ec01c653a34a74464
2026-01-04T17:56:15.986406Z
false
maoueh/nugrant
https://github.com/maoueh/nugrant/blob/6276b3e81364c6ed204d958ec01c653a34a74464/lib/nugrant/vagrant/v2/plugin.rb
lib/nugrant/vagrant/v2/plugin.rb
require 'nugrant/vagrant/v2/action' module Nugrant module Vagrant module V2 class Plugin < ::Vagrant.plugin("2") name "Nugrant" description <<-DESC Plugin to define and use user specific parameters from various location inside your Vagrantfile. DESC class << self ...
ruby
MIT
6276b3e81364c6ed204d958ec01c653a34a74464
2026-01-04T17:56:15.986406Z
false
maoueh/nugrant
https://github.com/maoueh/nugrant/blob/6276b3e81364c6ed204d958ec01c653a34a74464/lib/nugrant/vagrant/v2/helper.rb
lib/nugrant/vagrant/v2/helper.rb
require 'pathname' require 'nugrant' require 'nugrant/bag' require 'nugrant/vagrant/v2/config/user' module Nugrant module Vagrant module V2 class Helper ## # The project path is the path where the top-most (loaded last) # Vagrantfile resides. It can be considered the project root ...
ruby
MIT
6276b3e81364c6ed204d958ec01c653a34a74464
2026-01-04T17:56:15.986406Z
false
maoueh/nugrant
https://github.com/maoueh/nugrant/blob/6276b3e81364c6ed204d958ec01c653a34a74464/lib/nugrant/vagrant/v2/action.rb
lib/nugrant/vagrant/v2/action.rb
require 'nugrant/vagrant/v2/action/auto_export' module Nugrant module Vagrant module V2 module Action class << self def auto_export @auto_export ||= ::Vagrant::Action::Builder.new.tap do |builder| builder.use Nugrant::Vagrant::V2::Action::AutoExport e...
ruby
MIT
6276b3e81364c6ed204d958ec01c653a34a74464
2026-01-04T17:56:15.986406Z
false
maoueh/nugrant
https://github.com/maoueh/nugrant/blob/6276b3e81364c6ed204d958ec01c653a34a74464/lib/nugrant/vagrant/v2/command/restricted_keys.rb
lib/nugrant/vagrant/v2/command/restricted_keys.rb
require 'nugrant' require 'nugrant/vagrant/v2/helper' module Nugrant module Vagrant module V2 module Command class RestrictedKeys < ::Vagrant.plugin("2", :command) def self.synopsis "prints list of restricted keys for method access" end def initialize(argu...
ruby
MIT
6276b3e81364c6ed204d958ec01c653a34a74464
2026-01-04T17:56:15.986406Z
false
maoueh/nugrant
https://github.com/maoueh/nugrant/blob/6276b3e81364c6ed204d958ec01c653a34a74464/lib/nugrant/vagrant/v2/command/env.rb
lib/nugrant/vagrant/v2/command/env.rb
require 'nugrant' require 'nugrant/helper/env/exporter' require 'nugrant/parameters' module Nugrant module Vagrant module V2 module Command class Env < ::Vagrant.plugin("2", :command) EnvExporter = Nugrant::Helper::Env::Exporter def self.synopsis "env utilities to e...
ruby
MIT
6276b3e81364c6ed204d958ec01c653a34a74464
2026-01-04T17:56:15.986406Z
false
maoueh/nugrant
https://github.com/maoueh/nugrant/blob/6276b3e81364c6ed204d958ec01c653a34a74464/lib/nugrant/vagrant/v2/command/parameters.rb
lib/nugrant/vagrant/v2/command/parameters.rb
require 'nugrant' require 'nugrant/helper/yaml' require 'nugrant/vagrant/v2/helper' module Nugrant module Vagrant module V2 module Command class Parameters < ::Vagrant.plugin("2", :command) def self.synopsis "prints parameters hierarchy as seen by Nugrant" end ...
ruby
MIT
6276b3e81364c6ed204d958ec01c653a34a74464
2026-01-04T17:56:15.986406Z
false
maoueh/nugrant
https://github.com/maoueh/nugrant/blob/6276b3e81364c6ed204d958ec01c653a34a74464/lib/nugrant/vagrant/v2/command/root.rb
lib/nugrant/vagrant/v2/command/root.rb
require 'nugrant' require 'nugrant/vagrant/v2/command/env' require 'nugrant/vagrant/v2/command/parameters' require 'nugrant/vagrant/v2/command/restricted_keys' require 'nugrant/version' module Nugrant module Vagrant module V2 module Command class Root < ::Vagrant.plugin("2", :command) def...
ruby
MIT
6276b3e81364c6ed204d958ec01c653a34a74464
2026-01-04T17:56:15.986406Z
false
maoueh/nugrant
https://github.com/maoueh/nugrant/blob/6276b3e81364c6ed204d958ec01c653a34a74464/lib/nugrant/vagrant/v2/action/auto_export.rb
lib/nugrant/vagrant/v2/action/auto_export.rb
require 'nugrant' require 'nugrant/helper/env/exporter' require 'nugrant/parameters' module Nugrant module Vagrant module V2 module Action EnvExporter = Nugrant::Helper::Env::Exporter class AutoExport def initialize(app, env) @app = app @config = env[:mach...
ruby
MIT
6276b3e81364c6ed204d958ec01c653a34a74464
2026-01-04T17:56:15.986406Z
false
maoueh/nugrant
https://github.com/maoueh/nugrant/blob/6276b3e81364c6ed204d958ec01c653a34a74464/lib/nugrant/vagrant/v2/config/user.rb
lib/nugrant/vagrant/v2/config/user.rb
require 'nugrant/mixin/parameters' require 'nugrant/vagrant/errors' require 'nugrant/vagrant/v2/helper' module Nugrant module Vagrant module V2 module Config class User < ::Vagrant.plugin("2", :config) include Mixin::Parameters def initialize(defaults = {}, config = {}) ...
ruby
MIT
6276b3e81364c6ed204d958ec01c653a34a74464
2026-01-04T17:56:15.986406Z
false
maoueh/nugrant
https://github.com/maoueh/nugrant/blob/6276b3e81364c6ed204d958ec01c653a34a74464/lib/nugrant/mixin/parameters.rb
lib/nugrant/mixin/parameters.rb
require 'nugrant/bag' require 'nugrant/config' require 'nugrant/helper/bag' module Nugrant module Mixin ## # Mixin module so it's possible to share parameters # logic between default Parameters class and Vagrant # implementation. # # This module delegates method missing to the final # bag...
ruby
MIT
6276b3e81364c6ed204d958ec01c653a34a74464
2026-01-04T17:56:15.986406Z
false
maoueh/nugrant
https://github.com/maoueh/nugrant/blob/6276b3e81364c6ed204d958ec01c653a34a74464/lib/nugrant/helper/bag.rb
lib/nugrant/helper/bag.rb
require 'multi_json' require 'yaml' require 'nugrant/bag' module Nugrant module Helper module Bag def self.read(filepath, filetype, config) Nugrant::Bag.new(parse_data(filepath, filetype, config), config) end def self.restricted_keys() Nugrant::Bag.instance_methods() end...
ruby
MIT
6276b3e81364c6ed204d958ec01c653a34a74464
2026-01-04T17:56:15.986406Z
false
maoueh/nugrant
https://github.com/maoueh/nugrant/blob/6276b3e81364c6ed204d958ec01c653a34a74464/lib/nugrant/helper/yaml.rb
lib/nugrant/helper/yaml.rb
module Nugrant module Helper class Yaml def self.format(string, options = {}) lines = string.send(string.respond_to?(:lines) ? :lines : :to_s).to_a lines = lines.drop(1) if options[:indent] indent_text = " " * options[:indent] lines = lines.map do |line| ...
ruby
MIT
6276b3e81364c6ed204d958ec01c653a34a74464
2026-01-04T17:56:15.986406Z
false
maoueh/nugrant
https://github.com/maoueh/nugrant/blob/6276b3e81364c6ed204d958ec01c653a34a74464/lib/nugrant/helper/stack.rb
lib/nugrant/helper/stack.rb
module Nugrant module Helper class Stack @@DEFAULT_MATCHER = /^(.+):([0-9]+)/ def self.fetch_error_region(stack, options = {}) entry = find_entry(stack, options) location = extract_error_location(entry, options) return (options[:unknown] || "Unknown") if not location[:file] a...
ruby
MIT
6276b3e81364c6ed204d958ec01c653a34a74464
2026-01-04T17:56:15.986406Z
false
maoueh/nugrant
https://github.com/maoueh/nugrant/blob/6276b3e81364c6ed204d958ec01c653a34a74464/lib/nugrant/helper/parameters.rb
lib/nugrant/helper/parameters.rb
require 'nugrant/parameters' module Nugrant module Helper module Parameters def self.restricted_keys() methods = Nugrant::Parameters.instance_methods() + Nugrant::Bag.instance_methods() methods.uniq! end end end end
ruby
MIT
6276b3e81364c6ed204d958ec01c653a34a74464
2026-01-04T17:56:15.986406Z
false
maoueh/nugrant
https://github.com/maoueh/nugrant/blob/6276b3e81364c6ed204d958ec01c653a34a74464/lib/nugrant/helper/env/exporter.rb
lib/nugrant/helper/env/exporter.rb
require 'shellwords' require 'nugrant/bag' require 'nugrant/helper/env/namer' module Nugrant module Helper module Env module Exporter DEFAULT_AUTOENV_PATH = "./.env" DEFAULT_SCRIPT_PATH = "./nugrant2env.sh" VALID_EXPORTERS = [:autoenv, :script, :terminal] ## # Ret...
ruby
MIT
6276b3e81364c6ed204d958ec01c653a34a74464
2026-01-04T17:56:15.986406Z
false
maoueh/nugrant
https://github.com/maoueh/nugrant/blob/6276b3e81364c6ed204d958ec01c653a34a74464/lib/nugrant/helper/env/namer.rb
lib/nugrant/helper/env/namer.rb
module Nugrant module Helper module Env ## # A namer is a lambda taking as argument an array of segments # that should return a string representation of those segments. # How the segments are transformed to a string is up to the # namer. By using various namer, we can change how a ba...
ruby
MIT
6276b3e81364c6ed204d958ec01c653a34a74464
2026-01-04T17:56:15.986406Z
false
red-data-tools/pandas.rb
https://github.com/red-data-tools/pandas.rb/blob/051633c8158a9c99b902289b771ca590d8b32b92/spec/pandas_spec.rb
spec/pandas_spec.rb
require "spec_helper" RSpec.describe Pandas do it "has a version number" do expect(Pandas::VERSION).not_to be nil end specify do expect(Pandas).to be_const_defined(:DataFrame) expect(Pandas).to be_const_defined(:Series) expect(Pandas).to be_const_defined(:IlocIndexer) expect(Pandas).to be_co...
ruby
MIT
051633c8158a9c99b902289b771ca590d8b32b92
2026-01-04T17:56:21.148862Z
false
red-data-tools/pandas.rb
https://github.com/red-data-tools/pandas.rb/blob/051633c8158a9c99b902289b771ca590d8b32b92/spec/spec_helper.rb
spec/spec_helper.rb
require "bundler/setup" require "pandas" Dir.glob(File.expand_path('../support/**/*.rb', __FILE__)) do |file| require file end RSpec.configure do |config| # Enable flags like --only-failures and --next-failure config.example_status_persistence_file_path = ".rspec_status" # Disable RSpec exposing methods glob...
ruby
MIT
051633c8158a9c99b902289b771ca590d8b32b92
2026-01-04T17:56:21.148862Z
false
red-data-tools/pandas.rb
https://github.com/red-data-tools/pandas.rb/blob/051633c8158a9c99b902289b771ca590d8b32b92/spec/support/file_fixture.rb
spec/support/file_fixture.rb
require 'pathname' module RSpecHelper module FileFixture def file_fixture_path @file_fixture_path ||= File.expand_path('../../fixtures/files', __FILE__) end def file_fixture(fixture_name) path = Pathname.new(file_fixture_path).join(fixture_name) if path.exist? path else ...
ruby
MIT
051633c8158a9c99b902289b771ca590d8b32b92
2026-01-04T17:56:21.148862Z
false
red-data-tools/pandas.rb
https://github.com/red-data-tools/pandas.rb/blob/051633c8158a9c99b902289b771ca590d8b32b92/spec/support/database.rb
spec/support/database.rb
RSpec.shared_context 'With database', :with_database do require 'active_record' require 'fileutils' let(:tmp_dir) do File.expand_path('../../../tmp', __FILE__) end let(:database_path) do File.join(tmp_dir, 'test.sqlite3') end let(:connection_config) do {adapter: :sqlite3, database: database...
ruby
MIT
051633c8158a9c99b902289b771ca590d8b32b92
2026-01-04T17:56:21.148862Z
false
red-data-tools/pandas.rb
https://github.com/red-data-tools/pandas.rb/blob/051633c8158a9c99b902289b771ca590d8b32b92/spec/pandas/series_spec.rb
spec/pandas/series_spec.rb
require 'spec_helper' module Pandas ::RSpec.describe Series do describe '#[key]' do let(:series) do Series.new([5, 8, -2, 1], index: ['c', 'a', 'd', 'b']) end let(:index) do ['c', 'b'] end context 'When the key is a PyCall::List' do specify do lis...
ruby
MIT
051633c8158a9c99b902289b771ca590d8b32b92
2026-01-04T17:56:21.148862Z
false
red-data-tools/pandas.rb
https://github.com/red-data-tools/pandas.rb/blob/051633c8158a9c99b902289b771ca590d8b32b92/spec/pandas/data_frame_spec.rb
spec/pandas/data_frame_spec.rb
require 'spec_helper' module Pandas ::RSpec.describe DataFrame do let(:values) do [ [1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12] ] end subject(:df) do Pandas::DataFrame.new(values, index: %w[r1 r2 r3], columns: %w[x1 x2 x3 x4]) end describe '#[key]' do ...
ruby
MIT
051633c8158a9c99b902289b771ca590d8b32b92
2026-01-04T17:56:21.148862Z
false
red-data-tools/pandas.rb
https://github.com/red-data-tools/pandas.rb/blob/051633c8158a9c99b902289b771ca590d8b32b92/spec/pandas/sql_spec.rb
spec/pandas/sql_spec.rb
require 'spec_helper' require 'csv' ::RSpec.describe Pandas, :with_database do let(:sqlalchemy) do PyCall.import_module('sqlalchemy') end let(:engine) do sqlalchemy.create_engine('sqlite:///' + database_path) end before do PyCall.with(engine.connect) do |conn| conn.execute sqlalchemy.text...
ruby
MIT
051633c8158a9c99b902289b771ca590d8b32b92
2026-01-04T17:56:21.148862Z
false
red-data-tools/pandas.rb
https://github.com/red-data-tools/pandas.rb/blob/051633c8158a9c99b902289b771ca590d8b32b92/spec/pandas/activerecord_spec.rb
spec/pandas/activerecord_spec.rb
require 'spec_helper' require 'csv' module PandasActiveRecordSpec end ::RSpec.describe Pandas, :with_database do before do ActiveRecord::Base.connection.execute <<-SQL create table people ( id integer primary key, name string, age integer, sex string ); SQL csv = CSV.read(file_fixture('people.csv'), hea...
ruby
MIT
051633c8158a9c99b902289b771ca590d8b32b92
2026-01-04T17:56:21.148862Z
false
red-data-tools/pandas.rb
https://github.com/red-data-tools/pandas.rb/blob/051633c8158a9c99b902289b771ca590d8b32b92/spec/pandas/index_spec.rb
spec/pandas/index_spec.rb
require 'spec_helper' module Pandas ::RSpec.describe Index do describe '#monotonic_decreasing?' do specify do idx = Pandas::Index.new([1, 2, 3, 4, 5]) expect(idx).not_to be_monotonic_decreasing end specify do idx = Pandas::Index.new([5, 4, 3, 2, 1]) expect(idx)....
ruby
MIT
051633c8158a9c99b902289b771ca590d8b32b92
2026-01-04T17:56:21.148862Z
false
red-data-tools/pandas.rb
https://github.com/red-data-tools/pandas.rb/blob/051633c8158a9c99b902289b771ca590d8b32b92/lib/pandas.rb
lib/pandas.rb
require "pandas/version" require "numpy" Pandas = PyCall.import_module("pandas") module Pandas VERSION = PANDAS_VERSION Object.send :remove_const, :PANDAS_VERSION DataFrame = self.core.frame.DataFrame DataFrame.__send__ :register_python_type_mapping Series = self.core.series.Series Series.__send__ :regis...
ruby
MIT
051633c8158a9c99b902289b771ca590d8b32b92
2026-01-04T17:56:21.148862Z
false
red-data-tools/pandas.rb
https://github.com/red-data-tools/pandas.rb/blob/051633c8158a9c99b902289b771ca590d8b32b92/lib/pandas/io.rb
lib/pandas/io.rb
require 'pandas' unless defined?(Pandas) module Pandas module IO def self.is_activerecord_model?(obj) return false unless defined?(::ActiveRecord) return true if obj.is_a?(Class) && obj < ActiveRecord::Base false end def self.is_activerecord_datasource?(obj) return false unless d...
ruby
MIT
051633c8158a9c99b902289b771ca590d8b32b92
2026-01-04T17:56:21.148862Z
false
red-data-tools/pandas.rb
https://github.com/red-data-tools/pandas.rb/blob/051633c8158a9c99b902289b771ca590d8b32b92/lib/pandas/data_frame.rb
lib/pandas/data_frame.rb
require 'pandas' unless defined?(Pandas) module Pandas class DataFrame def [](key) key = PyCall::List.new(key) if key.is_a?(Array) super end def to_narray to_numpy.to_narray end def to_iruby_mimebundle(include: [], exclude: []) include = ["text/html", "text/latex", "text...
ruby
MIT
051633c8158a9c99b902289b771ca590d8b32b92
2026-01-04T17:56:21.148862Z
false
red-data-tools/pandas.rb
https://github.com/red-data-tools/pandas.rb/blob/051633c8158a9c99b902289b771ca590d8b32b92/lib/pandas/version.rb
lib/pandas/version.rb
PANDAS_VERSION = "0.3.8"
ruby
MIT
051633c8158a9c99b902289b771ca590d8b32b92
2026-01-04T17:56:21.148862Z
false
red-data-tools/pandas.rb
https://github.com/red-data-tools/pandas.rb/blob/051633c8158a9c99b902289b771ca590d8b32b92/lib/pandas/index.rb
lib/pandas/index.rb
require 'pandas' unless defined?(Pandas) module Pandas class Index def monotonic_decreasing? is_monotonic_decreasing end def monotonic_increasing? is_monotonic_increasing end def unique? is_unique end def length size end def to_a Array.new(length)...
ruby
MIT
051633c8158a9c99b902289b771ca590d8b32b92
2026-01-04T17:56:21.148862Z
false
red-data-tools/pandas.rb
https://github.com/red-data-tools/pandas.rb/blob/051633c8158a9c99b902289b771ca590d8b32b92/lib/pandas/options.rb
lib/pandas/options.rb
require 'pandas' unless defined?(Pandas) module Pandas module OptionsHelper module_function def setup_options(options) PyCall::LibPython::Helpers.define_wrapper_method(options, :display) options end end def self.options @options ||= begin o = PyCall::LibPython::He...
ruby
MIT
051633c8158a9c99b902289b771ca590d8b32b92
2026-01-04T17:56:21.148862Z
false
red-data-tools/pandas.rb
https://github.com/red-data-tools/pandas.rb/blob/051633c8158a9c99b902289b771ca590d8b32b92/lib/pandas/loc_indexer.rb
lib/pandas/loc_indexer.rb
require 'pandas' unless defined?(Pandas) module Pandas class LocIndexer def [](*keys) for i in 0...keys.length if keys[i].is_a? Array keys[i] = PyCall::List.new(keys[i]) end end super end end class IlocIndexer def [](*keys) for i in 0...keys.length ...
ruby
MIT
051633c8158a9c99b902289b771ca590d8b32b92
2026-01-04T17:56:21.148862Z
false
red-data-tools/pandas.rb
https://github.com/red-data-tools/pandas.rb/blob/051633c8158a9c99b902289b771ca590d8b32b92/lib/pandas/series.rb
lib/pandas/series.rb
require 'pandas' unless defined?(Pandas) module Pandas class Series def [](*key) if key.length == 1 key[0] = fix_array_reference_key(key[0]) end super end def []=(*args) if args.length == 2 args[0] = fix_array_reference_key(args[0]) end super end ...
ruby
MIT
051633c8158a9c99b902289b771ca590d8b32b92
2026-01-04T17:56:21.148862Z
false
red-data-tools/pandas.rb
https://github.com/red-data-tools/pandas.rb/blob/051633c8158a9c99b902289b771ca590d8b32b92/lib/pandas/io/active_record.rb
lib/pandas/io/active_record.rb
require 'pandas' require 'active_record' module Pandas module IO module Helpers module_function def read_sql_table_from_active_record(table_name, conn, *args) case conn when ActiveRecord::ConnectionAdapters::AbstractAdapter read_sql_table_from_active_record_connection(table...
ruby
MIT
051633c8158a9c99b902289b771ca590d8b32b92
2026-01-04T17:56:21.148862Z
false
ryan-allen/lispy
https://github.com/ryan-allen/lispy/blob/b278da833b39037715fda744e0b9b8e7ebe4363d/test/lispy_test.rb
test/lispy_test.rb
require 'test/unit' require 'lispy' class LispyTest < Test::Unit::TestCase def test_lispy output = Lispy.new.to_data do setup :workers => 30, :connections => 1024 http :access_log => :off do server :listen => 80 do location '/' do doc_root '/var/www/website' e...
ruby
MIT
b278da833b39037715fda744e0b9b8e7ebe4363d
2026-01-04T17:56:21.363210Z
false
ryan-allen/lispy
https://github.com/ryan-allen/lispy/blob/b278da833b39037715fda744e0b9b8e7ebe4363d/lib/lispy.rb
lib/lispy.rb
class Lispy VERSION = '0.0.5' @@methods_to_keep = /^__/, /class/, /instance_/, /method_missing/, /object_id/ instance_methods.each do |m| undef_method m unless @@methods_to_keep.find { |r| r.match m } end def method_missing(sym, *args, &block) args = (args.length == 1 ? args.first : args) @scop...
ruby
MIT
b278da833b39037715fda744e0b9b8e7ebe4363d
2026-01-04T17:56:21.363210Z
false
ElMassimo/js_from_routes
https://github.com/ElMassimo/js_from_routes/blob/dcd67342892987c3ae70d887b5aa21360c9b8ed7/js_from_routes/lib/js_from_routes.rb
js_from_routes/lib/js_from_routes.rb
# frozen_string_literal: true # Splitting the generator file allows consumers to skip the Railtie if desired: # - gem 'js_from_routes', require: false # - require 'js_from_routes/generator' require "js_from_routes/generator" require "js_from_routes/railtie"
ruby
MIT
dcd67342892987c3ae70d887b5aa21360c9b8ed7
2026-01-04T17:56:29.052124Z
false
ElMassimo/js_from_routes
https://github.com/ElMassimo/js_from_routes/blob/dcd67342892987c3ae70d887b5aa21360c9b8ed7/js_from_routes/lib/js_from_routes/version.rb
js_from_routes/lib/js_from_routes/version.rb
# frozen_string_literal: true # Public: Automatically generates JS for Rails routes with { export: true }. # Generates one file per controller, and one function per route. module JsFromRoutes # Public: This library adheres to semantic versioning. VERSION = "4.0.2" end
ruby
MIT
dcd67342892987c3ae70d887b5aa21360c9b8ed7
2026-01-04T17:56:29.052124Z
false
ElMassimo/js_from_routes
https://github.com/ElMassimo/js_from_routes/blob/dcd67342892987c3ae70d887b5aa21360c9b8ed7/js_from_routes/lib/js_from_routes/railtie.rb
js_from_routes/lib/js_from_routes/railtie.rb
# frozen_string_literal: true require "rails/railtie" # NOTE: Not strictly required, but it helps to simplify the setup. class JsFromRoutes::Railtie < Rails::Railtie railtie_name :js_from_routes if Rails.env.development? # Allows to automatically trigger code generation after updating routes. initializer...
ruby
MIT
dcd67342892987c3ae70d887b5aa21360c9b8ed7
2026-01-04T17:56:29.052124Z
false
ElMassimo/js_from_routes
https://github.com/ElMassimo/js_from_routes/blob/dcd67342892987c3ae70d887b5aa21360c9b8ed7/js_from_routes/lib/js_from_routes/generator.rb
js_from_routes/lib/js_from_routes/generator.rb
# frozen_string_literal: true require "digest" require "erubi" require "fileutils" require "pathname" # Public: Automatically generates JS for Rails routes with { export: true }. # Generates one file per controller, and one function per route. module JsFromRoutes # Internal: Helper class used as a presenter for the...
ruby
MIT
dcd67342892987c3ae70d887b5aa21360c9b8ed7
2026-01-04T17:56:29.052124Z
false
ElMassimo/js_from_routes
https://github.com/ElMassimo/js_from_routes/blob/dcd67342892987c3ae70d887b5aa21360c9b8ed7/spec/spec_helper.rb
spec/spec_helper.rb
require "simplecov" SimpleCov.start { add_filter "/spec/" add_filter "/playground/" } require "rails" require "js_from_routes" require "rspec/given" require "pry-byebug" $LOAD_PATH.push File.expand_path("../playground", __dir__)
ruby
MIT
dcd67342892987c3ae70d887b5aa21360c9b8ed7
2026-01-04T17:56:29.052124Z
false
ElMassimo/js_from_routes
https://github.com/ElMassimo/js_from_routes/blob/dcd67342892987c3ae70d887b5aa21360c9b8ed7/spec/js_from_routes/js_from_routes_spec.rb
spec/js_from_routes/js_from_routes_spec.rb
require "vanilla/config/application" require "vanilla/config/routes" describe JsFromRoutes do original_template_path = JsFromRoutes.config.template_path let(:output_dir) { Pathname.new File.expand_path("../support/generated", __dir__) } let(:sample_dir) { Rails.root.join("app", "javascript", "api") } let(:dif...
ruby
MIT
dcd67342892987c3ae70d887b5aa21360c9b8ed7
2026-01-04T17:56:29.052124Z
false
ElMassimo/js_from_routes
https://github.com/ElMassimo/js_from_routes/blob/dcd67342892987c3ae70d887b5aa21360c9b8ed7/playground/vanilla/app/controllers/video_clips_controller.rb
playground/vanilla/app/controllers/video_clips_controller.rb
class VideoClipsController < ApplicationController def download render body: "", status: 204 end def latest render json: [ {id: 11, title: "Smoke Signals", composer_name: "Dylan Ryche"}, {id: 10, title: "Camino Libre", composer_name: "Máximo Mussini"}, {id: 9, title: "Sin Querer", compo...
ruby
MIT
dcd67342892987c3ae70d887b5aa21360c9b8ed7
2026-01-04T17:56:29.052124Z
false
ElMassimo/js_from_routes
https://github.com/ElMassimo/js_from_routes/blob/dcd67342892987c3ae70d887b5aa21360c9b8ed7/playground/vanilla/app/controllers/welcome_controller.rb
playground/vanilla/app/controllers/welcome_controller.rb
class WelcomeController < ApplicationController end
ruby
MIT
dcd67342892987c3ae70d887b5aa21360c9b8ed7
2026-01-04T17:56:29.052124Z
false
ElMassimo/js_from_routes
https://github.com/ElMassimo/js_from_routes/blob/dcd67342892987c3ae70d887b5aa21360c9b8ed7/playground/vanilla/app/controllers/comments_controller.rb
playground/vanilla/app/controllers/comments_controller.rb
class CommentsController < ApplicationController end
ruby
MIT
dcd67342892987c3ae70d887b5aa21360c9b8ed7
2026-01-04T17:56:29.052124Z
false
ElMassimo/js_from_routes
https://github.com/ElMassimo/js_from_routes/blob/dcd67342892987c3ae70d887b5aa21360c9b8ed7/playground/vanilla/app/controllers/application_controller.rb
playground/vanilla/app/controllers/application_controller.rb
class ApplicationController < ActionController::Base end
ruby
MIT
dcd67342892987c3ae70d887b5aa21360c9b8ed7
2026-01-04T17:56:29.052124Z
false
ElMassimo/js_from_routes
https://github.com/ElMassimo/js_from_routes/blob/dcd67342892987c3ae70d887b5aa21360c9b8ed7/playground/vanilla/app/controllers/settings/user_preferences_controller.rb
playground/vanilla/app/controllers/settings/user_preferences_controller.rb
class Settings::UserPreferencesController < ApplicationController end
ruby
MIT
dcd67342892987c3ae70d887b5aa21360c9b8ed7
2026-01-04T17:56:29.052124Z
false
ElMassimo/js_from_routes
https://github.com/ElMassimo/js_from_routes/blob/dcd67342892987c3ae70d887b5aa21360c9b8ed7/playground/vanilla/spec/rails_helper.rb
playground/vanilla/spec/rails_helper.rb
# This file is copied to spec/ when you run 'rails generate rspec:install' require "spec_helper" ENV["RAILS_ENV"] ||= "test" require File.expand_path("../config/environment", __dir__) # Prevent database truncation if the environment is production abort("The Rails environment is running in production mode!") if Rails.en...
ruby
MIT
dcd67342892987c3ae70d887b5aa21360c9b8ed7
2026-01-04T17:56:29.052124Z
false
ElMassimo/js_from_routes
https://github.com/ElMassimo/js_from_routes/blob/dcd67342892987c3ae70d887b5aa21360c9b8ed7/playground/vanilla/spec/spec_helper.rb
playground/vanilla/spec/spec_helper.rb
# This file was generated by the `rails generate rspec:install` command. Conventionally, all # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. # The generated `.rspec` file contains `--require spec_helper` which will cause # this file to always be loaded, without a need to explicitly require ...
ruby
MIT
dcd67342892987c3ae70d887b5aa21360c9b8ed7
2026-01-04T17:56:29.052124Z
false
ElMassimo/js_from_routes
https://github.com/ElMassimo/js_from_routes/blob/dcd67342892987c3ae70d887b5aa21360c9b8ed7/playground/vanilla/spec/controllers/video_clips_spec.rb
playground/vanilla/spec/controllers/video_clips_spec.rb
require "rails_helper" RSpec.describe VideoClipsController, type: :controller do describe "GET /" do it "should make a request" do get :new expect(response).to render_template(:new) end end end
ruby
MIT
dcd67342892987c3ae70d887b5aa21360c9b8ed7
2026-01-04T17:56:29.052124Z
false
ElMassimo/js_from_routes
https://github.com/ElMassimo/js_from_routes/blob/dcd67342892987c3ae70d887b5aa21360c9b8ed7/playground/vanilla/config/application.rb
playground/vanilla/config/application.rb
require_relative "boot" require "action_controller/railtie" # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) module SampleApp class Application < Rails::Application # Application configuration can go into files in c...
ruby
MIT
dcd67342892987c3ae70d887b5aa21360c9b8ed7
2026-01-04T17:56:29.052124Z
false
ElMassimo/js_from_routes
https://github.com/ElMassimo/js_from_routes/blob/dcd67342892987c3ae70d887b5aa21360c9b8ed7/playground/vanilla/config/environment.rb
playground/vanilla/config/environment.rb
# Load the Rails application. require_relative "application" # Initialize the Rails application. Rails.application.initialize!
ruby
MIT
dcd67342892987c3ae70d887b5aa21360c9b8ed7
2026-01-04T17:56:29.052124Z
false
ElMassimo/js_from_routes
https://github.com/ElMassimo/js_from_routes/blob/dcd67342892987c3ae70d887b5aa21360c9b8ed7/playground/vanilla/config/puma.rb
playground/vanilla/config/puma.rb
# Puma can serve each request in a thread from an internal thread pool. # The `threads` method setting takes two numbers: a minimum and maximum. # Any libraries that use thread pools should be configured to match # the maximum value specified for Puma. Default is set to 5 threads for minimum # and maximum; this matches...
ruby
MIT
dcd67342892987c3ae70d887b5aa21360c9b8ed7
2026-01-04T17:56:29.052124Z
false
ElMassimo/js_from_routes
https://github.com/ElMassimo/js_from_routes/blob/dcd67342892987c3ae70d887b5aa21360c9b8ed7/playground/vanilla/config/routes.rb
playground/vanilla/config/routes.rb
Rails.application.routes.draw do root to: "welcome#home" defaults export: true do get "/hi" => redirect("/welcome") end resources :welcome resources :video_clips, only: [:new, :edit, :create, :update, :destroy], export: true do get :download, on: :member patch :add_to_playlist, on: :member ...
ruby
MIT
dcd67342892987c3ae70d887b5aa21360c9b8ed7
2026-01-04T17:56:29.052124Z
false
ElMassimo/js_from_routes
https://github.com/ElMassimo/js_from_routes/blob/dcd67342892987c3ae70d887b5aa21360c9b8ed7/playground/vanilla/config/boot.rb
playground/vanilla/config/boot.rb
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) require "bundler/setup" # Set up gems listed in the Gemfile.
ruby
MIT
dcd67342892987c3ae70d887b5aa21360c9b8ed7
2026-01-04T17:56:29.052124Z
false
ElMassimo/js_from_routes
https://github.com/ElMassimo/js_from_routes/blob/dcd67342892987c3ae70d887b5aa21360c9b8ed7/playground/vanilla/config/initializers/content_security_policy.rb
playground/vanilla/config/initializers/content_security_policy.rb
# Be sure to restart your server when you modify this file. # Define an application-wide content security policy # For further information see the following documentation # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy # Rails.application.config.content_security_policy do |policy| ...
ruby
MIT
dcd67342892987c3ae70d887b5aa21360c9b8ed7
2026-01-04T17:56:29.052124Z
false
ElMassimo/js_from_routes
https://github.com/ElMassimo/js_from_routes/blob/dcd67342892987c3ae70d887b5aa21360c9b8ed7/playground/vanilla/config/initializers/filter_parameter_logging.rb
playground/vanilla/config/initializers/filter_parameter_logging.rb
# Be sure to restart your server when you modify this file. # Configure sensitive parameters which will be filtered from the log file. Rails.application.config.filter_parameters += [:password]
ruby
MIT
dcd67342892987c3ae70d887b5aa21360c9b8ed7
2026-01-04T17:56:29.052124Z
false
ElMassimo/js_from_routes
https://github.com/ElMassimo/js_from_routes/blob/dcd67342892987c3ae70d887b5aa21360c9b8ed7/playground/vanilla/config/initializers/application_controller_renderer.rb
playground/vanilla/config/initializers/application_controller_renderer.rb
# Be sure to restart your server when you modify this file. # ActiveSupport::Reloader.to_prepare do # ApplicationController.renderer.defaults.merge!( # http_host: 'example.org', # https: false # ) # end
ruby
MIT
dcd67342892987c3ae70d887b5aa21360c9b8ed7
2026-01-04T17:56:29.052124Z
false
ElMassimo/js_from_routes
https://github.com/ElMassimo/js_from_routes/blob/dcd67342892987c3ae70d887b5aa21360c9b8ed7/playground/vanilla/config/initializers/js_from_routes.rb
playground/vanilla/config/initializers/js_from_routes.rb
if Rails.env.development? # Example: Generate TypeScript files. JsFromRoutes.config do |config| config.file_suffix = "Api.ts" end end
ruby
MIT
dcd67342892987c3ae70d887b5aa21360c9b8ed7
2026-01-04T17:56:29.052124Z
false
ElMassimo/js_from_routes
https://github.com/ElMassimo/js_from_routes/blob/dcd67342892987c3ae70d887b5aa21360c9b8ed7/playground/vanilla/config/initializers/wrap_parameters.rb
playground/vanilla/config/initializers/wrap_parameters.rb
# Be sure to restart your server when you modify this file. # This file contains settings for ActionController::ParamsWrapper which # is enabled by default. # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. ActiveSupport.on_load(:action_controller) { wrap_parameters form...
ruby
MIT
dcd67342892987c3ae70d887b5aa21360c9b8ed7
2026-01-04T17:56:29.052124Z
false
ElMassimo/js_from_routes
https://github.com/ElMassimo/js_from_routes/blob/dcd67342892987c3ae70d887b5aa21360c9b8ed7/playground/vanilla/config/initializers/inflections.rb
playground/vanilla/config/initializers/inflections.rb
# Be sure to restart your server when you modify this file. # Add new inflection rules using the following format. Inflections # are locale specific, and you may define rules for as many different # locales as you wish. All of these examples are active by default: # ActiveSupport::Inflector.inflections(:en) do |inflec...
ruby
MIT
dcd67342892987c3ae70d887b5aa21360c9b8ed7
2026-01-04T17:56:29.052124Z
false
ElMassimo/js_from_routes
https://github.com/ElMassimo/js_from_routes/blob/dcd67342892987c3ae70d887b5aa21360c9b8ed7/playground/vanilla/config/initializers/cookies_serializer.rb
playground/vanilla/config/initializers/cookies_serializer.rb
# Be sure to restart your server when you modify this file. # Specify a serializer for the signed and encrypted cookie jars. # Valid options are :json, :marshal, and :hybrid. Rails.application.config.action_dispatch.cookies_serializer = :json
ruby
MIT
dcd67342892987c3ae70d887b5aa21360c9b8ed7
2026-01-04T17:56:29.052124Z
false
ElMassimo/js_from_routes
https://github.com/ElMassimo/js_from_routes/blob/dcd67342892987c3ae70d887b5aa21360c9b8ed7/playground/vanilla/config/initializers/backtrace_silencers.rb
playground/vanilla/config/initializers/backtrace_silencers.rb
# Be sure to restart your server when you modify this file. # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } # You can also remove all the silencers if you're trying to debug a probl...
ruby
MIT
dcd67342892987c3ae70d887b5aa21360c9b8ed7
2026-01-04T17:56:29.052124Z
false
ElMassimo/js_from_routes
https://github.com/ElMassimo/js_from_routes/blob/dcd67342892987c3ae70d887b5aa21360c9b8ed7/playground/vanilla/config/initializers/mime_types.rb
playground/vanilla/config/initializers/mime_types.rb
# Be sure to restart your server when you modify this file. # Add new mime types for use in respond_to blocks: # Mime::Type.register "text/richtext", :rtf
ruby
MIT
dcd67342892987c3ae70d887b5aa21360c9b8ed7
2026-01-04T17:56:29.052124Z
false
ElMassimo/js_from_routes
https://github.com/ElMassimo/js_from_routes/blob/dcd67342892987c3ae70d887b5aa21360c9b8ed7/playground/vanilla/config/environments/test.rb
playground/vanilla/config/environments/test.rb
Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. config.cache_classes = true config.eager_load = true end
ruby
MIT
dcd67342892987c3ae70d887b5aa21360c9b8ed7
2026-01-04T17:56:29.052124Z
false
ElMassimo/js_from_routes
https://github.com/ElMassimo/js_from_routes/blob/dcd67342892987c3ae70d887b5aa21360c9b8ed7/playground/vanilla/config/environments/development.rb
playground/vanilla/config/environments/development.rb
Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the web serv...
ruby
MIT
dcd67342892987c3ae70d887b5aa21360c9b8ed7
2026-01-04T17:56:29.052124Z
false
sous-chefs/git
https://github.com/sous-chefs/git/blob/83fff1e6e1fd5a8fa180531ba9f5ac51769a7c43/metadata.rb
metadata.rb
name 'git' maintainer 'Sous Chefs' maintainer_email 'help@sous-chefs.org' license 'Apache-2.0' description 'Installs git and/or sets up a Git server daemon' version '12.1.10' source_url 'https://github.com/sous-chefs/git' issues_url 'https://github.com/sous-c...
ruby
Apache-2.0
83fff1e6e1fd5a8fa180531ba9f5ac51769a7c43
2026-01-04T17:56:43.177115Z
false
sous-chefs/git
https://github.com/sous-chefs/git/blob/83fff1e6e1fd5a8fa180531ba9f5ac51769a7c43/test/integration/source/git_installed_spec.rb
test/integration/source/git_installed_spec.rb
describe command('/usr/local/bin/git --version') do its('exit_status') { should eq 0 } its('stdout') { should match /git version/ } end
ruby
Apache-2.0
83fff1e6e1fd5a8fa180531ba9f5ac51769a7c43
2026-01-04T17:56:43.177115Z
false
sous-chefs/git
https://github.com/sous-chefs/git/blob/83fff1e6e1fd5a8fa180531ba9f5ac51769a7c43/test/integration/server/git_daemon_spec.rb
test/integration/server/git_daemon_spec.rb
describe port(9418) do it { should be_listening } its('protocols') { should eq ['tcp'] } end
ruby
Apache-2.0
83fff1e6e1fd5a8fa180531ba9f5ac51769a7c43
2026-01-04T17:56:43.177115Z
false