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
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/commands/rebuild.rb
lib/vagrant-linode/commands/rebuild.rb
require 'optparse' module VagrantPlugins module Linode module Commands class Rebuild < Vagrant.plugin('2', :command) def execute opts = OptionParser.new do |o| o.banner = 'Usage: vagrant rebuild [vm-name]' end argv = parse_options(opts) with_tar...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/commands/create_image.rb
lib/vagrant-linode/commands/create_image.rb
module VagrantPlugins module Linode module Commands class CreateImage < Vagrant.plugin('2', :command) def execute options = {} opts = OptionParser.new do |o| o.banner = 'Usage: vagrant linode images create [options]' end argv = parse_options(opts)...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/commands/networks.rb
lib/vagrant-linode/commands/networks.rb
module VagrantPlugins module Linode module Commands class Networks < Vagrant.plugin('2', :command) def execute options = {} opts = OptionParser.new do |o| o.banner = 'Usage: vagrant linode networks [options]' end argv = parse_options(opts) ...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/commands/list_images.rb
lib/vagrant-linode/commands/list_images.rb
module VagrantPlugins module Linode module Commands class ListImages < Vagrant.plugin('2', :command) def execute options = {} opts = OptionParser.new do |o| o.banner = 'Usage: vagrant linode images list [options]' end argv = parse_options(opts) ...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/commands/root.rb
lib/vagrant-linode/commands/root.rb
require 'vagrant-linode/actions' module VagrantPlugins module Linode module Commands class Root < Vagrant.plugin('2', :command) def self.synopsis 'query Linode for available images or plans' end def initialize(argv, env) @main_args, @sub_command, @sub_args = spl...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/commands/plans.rb
lib/vagrant-linode/commands/plans.rb
module VagrantPlugins module Linode module Commands class Plans < Vagrant.plugin('2', :command) def execute options = {} opts = OptionParser.new do |o| o.banner = 'Usage: vagrant linode plans [options]' end argv = parse_options(opts) ret...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/commands/kernels.rb
lib/vagrant-linode/commands/kernels.rb
module VagrantPlugins module Linode module Commands class Kernels < Vagrant.plugin('2', :command) def execute options = {} opts = OptionParser.new do |o| o.banner = 'Usage: vagrant linode kernels [options]' end argv = parse_options(opts) ...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/commands/distributions.rb
lib/vagrant-linode/commands/distributions.rb
module VagrantPlugins module Linode module Commands class Distributions < Vagrant.plugin('2', :command) def execute options = {} opts = OptionParser.new do |o| o.banner = 'Usage: vagrant linode distributions [options]' end argv = parse_options(opt...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/commands/images.rb
lib/vagrant-linode/commands/images.rb
module VagrantPlugins module Linode module Commands class Images < Vagrant.plugin('2', :command) def initialize(argv, env) @main_args, @sub_command, @sub_args = split_main_and_subcommand(argv) @subcommands = Vagrant::Registry.new @subcommands.register(:list) do ...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/commands/volumes.rb
lib/vagrant-linode/commands/volumes.rb
module VagrantPlugins module Linode module Commands class Volumes < Vagrant.plugin('2', :command) def initialize(argv, env) @main_args, @sub_command, @sub_args = split_main_and_subcommand(argv) @subcommands = Vagrant::Registry.new @subcommands.register(:list) do ...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/actions/read_state.rb
lib/vagrant-linode/actions/read_state.rb
module VagrantPlugins module Linode module Actions class ReadState def initialize(app, env) @app = app @machine = env[:machine] @logger = Log4r::Logger.new('vagrant_linode::action::read_state') end def call(env) env[:machine_state] = read_stat...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/actions/message_already_off.rb
lib/vagrant-linode/actions/message_already_off.rb
module VagrantPlugins module Linode module Actions class MessageAlreadyOff def initialize(app, env) @app = app end def call(env) env[:ui].info(I18n.t("vagrant_linode.info.already_off", :status => :off)) @app.call(env) end end end end...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/actions/reload.rb
lib/vagrant-linode/actions/reload.rb
require 'vagrant-linode/helpers/client' require 'vagrant-linode/helpers/waiter' module VagrantPlugins module Linode module Actions class Reload include Helpers::Waiter def initialize(app, env) @app = app @machine = env[:machine] @logger = Log4r::Logger.new('va...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/actions/is_created.rb
lib/vagrant-linode/actions/is_created.rb
module VagrantPlugins module Linode module Actions class IsCreated def initialize(app, _env) @app = app end def call(env) env[:result] = env[:machine].state.id != :not_created @app.call(env) end end end end end
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/actions/list_volumes.rb
lib/vagrant-linode/actions/list_volumes.rb
module VagrantPlugins module Linode module Actions class ListVolumes def initialize(app, _env) @app = app end def call(env) api = env[:linode_api] logger = env[:ui] machine = env[:machine] remote_volumes = api.volume.list ...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/actions/rebuild.rb
lib/vagrant-linode/actions/rebuild.rb
require 'vagrant-linode/helpers/client' require 'vagrant-linode/helpers/normalizer' require 'vagrant-linode/helpers/waiter' require 'vagrant-linode/errors' require 'vagrant-linode/services/volume_manager' module VagrantPlugins module Linode module Actions class Rebuild include Vagrant::Util::Retrya...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/actions/message_not_created.rb
lib/vagrant-linode/actions/message_not_created.rb
module VagrantPlugins module Linode module Actions class MessageNotCreated def initialize(app, env) @app = app end def call(env) env[:ui].info(I18n.t("vagrant_linode.info.not_created", :status => :not_created)) @app.call(env) end end e...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/actions/connect_linode.rb
lib/vagrant-linode/actions/connect_linode.rb
require 'log4r' require "vagrant-linode/client_wrapper" module VagrantPlugins module Linode module Actions # This action connects to Linode, verifies credentials work, and # puts the Linode connection object into the `:linode_api` key # in the environment. class ConnectLinode def ...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/actions/power_on.rb
lib/vagrant-linode/actions/power_on.rb
require 'vagrant-linode/helpers/client' require 'vagrant-linode/helpers/waiter' module VagrantPlugins module Linode module Actions class PowerOn include Helpers::Waiter def initialize(app, env) @app = app @machine = env[:machine] @logger = Log4r::Logger.new('v...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/actions/list_servers.rb
lib/vagrant-linode/actions/list_servers.rb
module VagrantPlugins module Linode module Actions class ListServers def initialize(app, _env) @app = app end def call(env) linode_api = env[:linode_api] env[:ui].info ('%-8s %-30s %-20s %-10s %-9s' % ['LinodeID', 'Label', 'DataCenter', 'Plan', 'Status'...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/actions/list_datacenters.rb
lib/vagrant-linode/actions/list_datacenters.rb
module VagrantPlugins module Linode module Actions class ListDatacenters def initialize(app, _env) @app = app end def call(env) linode_api = env[:linode_api] env[:ui].info ('%-15s %-36s %s' % ['Datacenter ID', 'Location', 'Abbr']) linode_api.a...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/actions/setup_sudo.rb
lib/vagrant-linode/actions/setup_sudo.rb
module VagrantPlugins module Linode module Actions class SetupSudo def initialize(app, env) @app = app @machine = env[:machine] @logger = Log4r::Logger.new('vagrant::linode::setup_sudo') end def call(env) # check if setup is enabled ...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/actions/list_kernels.rb
lib/vagrant-linode/actions/list_kernels.rb
module VagrantPlugins module Linode module Actions class ListKernels def initialize(app, _env) @app = app end def call(env) linode_api = env[:linode_api] env[:ui].info ('%-4s %-6s %-6s %s' % ['ID', 'IsXen', 'IsKVM', 'Kernel Name']) linode_api....
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/actions/create_image.rb
lib/vagrant-linode/actions/create_image.rb
module VagrantPlugins module Linode module Actions class CreateImage def initialize(app, _env) @app = app @machine = _env[:machine] end def call(env) linode_api = env[:linode_api] env[:ui].info ('%-36s %-36s %-10s %-10s' % ['Image ID', 'Disk Label', ...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/actions/message_already_active.rb
lib/vagrant-linode/actions/message_already_active.rb
module VagrantPlugins module Linode module Actions class MessageAlreadyActive def initialize(app, env) @app = app end def call(env) env[:ui].info(I18n.t("vagrant_linode.info.already_active", :status => :active)) @app.call(env) end end ...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/actions/modify_provision_path.rb
lib/vagrant-linode/actions/modify_provision_path.rb
module VagrantPlugins module Linode module Actions class ModifyProvisionPath def initialize(app, env) @app = app @machine = env[:machine] @logger = Log4r::Logger.new('vagrant::linode::modify_provision_path') end def call(env) # che...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/actions/list_images.rb
lib/vagrant-linode/actions/list_images.rb
module VagrantPlugins module Linode module Actions class ListImages def initialize(app, _env) @app = app end def call(env) linode_api = env[:linode_api] env[:ui].info ('%-10s %-22s %-10s %s' % ['Image ID', 'Created', 'Size (MB)', 'Image Label']) ...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/actions/setup_user.rb
lib/vagrant-linode/actions/setup_user.rb
module VagrantPlugins module Linode module Actions class SetupUser def initialize(app, env) @app = app @machine = env[:machine] @logger = Log4r::Logger.new('vagrant::linode::setup_user') end def call(env) # check if setup is enabled ...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/actions/list_plans.rb
lib/vagrant-linode/actions/list_plans.rb
module VagrantPlugins module Linode module Actions class ListPlans def initialize(app, _env) @app = app end def call(env) linode_api = env[:linode_api] env[:ui].info ('%-36s %s' % ['Plan ID', 'Plan Name']) linode_api.avail.linodeplans.sort_by(...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/actions/is_stopped.rb
lib/vagrant-linode/actions/is_stopped.rb
module VagrantPlugins module Linode module Actions class IsStopped def initialize(app, _env) @app = app end def call(env) env[:result] = env[:machine].state.id == :off @app.call(env) end end end end end
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/actions/create.rb
lib/vagrant-linode/actions/create.rb
require 'vagrant-linode/helpers/client' require 'vagrant-linode/helpers/normalizer' require 'vagrant-linode/helpers/waiter' require 'vagrant-linode/errors' require 'vagrant-linode/services/volume_manager' module VagrantPlugins module Linode module Actions class Create include Vagrant::Util::Retryab...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/actions/message_not_off.rb
lib/vagrant-linode/actions/message_not_off.rb
module VagrantPlugins module Linode module Actions class MessageNotOff def initialize(app, env) @app = app end def call(env) env[:ui].info(I18n.t("vagrant_linode.info.not_off")) @app.call(env) end end end end end
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/actions/destroy.rb
lib/vagrant-linode/actions/destroy.rb
require 'vagrant-linode/helpers/client' module VagrantPlugins module Linode module Actions class Destroy def initialize(app, env) @app = app @machine = env[:machine] @logger = Log4r::Logger.new('vagrant::linode::destroy') end def call(env) @c...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/actions/message_off.rb
lib/vagrant-linode/actions/message_off.rb
module VagrantPlugins module Linode module Actions class MessageOff def initialize(app, env) @app = app end def call(env) env[:ui].info(I18n.t("vagrant_linode.info.off", :status => :off)) @app.call(env) end end end end end
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/actions/setup_hostname.rb
lib/vagrant-linode/actions/setup_hostname.rb
# -*- mode: ruby -*- # vi: set ft=ruby : module VagrantPlugins module Linode module Actions class SetupHostname def initialize(app, env) @app = app @machine = env[:machine] @logger = Log4r::Logger.new('vagrant::linode::setup_hostname') end def call(env) # Check if setup is en...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/actions/read_ssh_info.rb
lib/vagrant-linode/actions/read_ssh_info.rb
require 'log4r' module VagrantPlugins module Linode module Actions # This action reads the SSH info for the machine and puts it into the # `:machine_ssh_info` key in the environment. class ReadSSHInfo def initialize(app, _env) @env = _env @app = app @machine = _env[:m...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/actions/list_distributions.rb
lib/vagrant-linode/actions/list_distributions.rb
module VagrantPlugins module Linode module Actions class ListDistributions def initialize(app, _env) @app = app end def call(env) linode_api = env[:linode_api] env[:ui].info ('%-4s %-6s %s' % ['ID', 'Size', 'Distribution Name']) linode_api.ava...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/actions/power_off.rb
lib/vagrant-linode/actions/power_off.rb
require 'vagrant-linode/helpers/client' require 'vagrant-linode/helpers/waiter' # TODO: --force module VagrantPlugins module Linode module Actions class PowerOff include Helpers::Waiter def initialize(app, env) @app = app @machine = env[:machine] @logger = Log4...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
mihar/backbone-skeleton
https://github.com/mihar/backbone-skeleton/blob/d72c3f5110092d8b0bd2b0be1a3848fd9d8b61e7/server/server.rb
server/server.rb
require "./server/init" disable :logging set :root, File.dirname(__FILE__) + "/../" get "/favicon.ico" do "" end get "/*" do send_file "public/index.html" end
ruby
MIT
d72c3f5110092d8b0bd2b0be1a3848fd9d8b61e7
2026-01-04T17:55:51.535665Z
false
mihar/backbone-skeleton
https://github.com/mihar/backbone-skeleton/blob/d72c3f5110092d8b0bd2b0be1a3848fd9d8b61e7/server/init.rb
server/init.rb
Dir['./server/isolate*/lib'].each do |dir| $: << dir end require "rubygems" require "isolate/now" require "sinatra"
ruby
MIT
d72c3f5110092d8b0bd2b0be1a3848fd9d8b61e7
2026-01-04T17:55:51.535665Z
false
mihar/backbone-skeleton
https://github.com/mihar/backbone-skeleton/blob/d72c3f5110092d8b0bd2b0be1a3848fd9d8b61e7/server/isolate/lib/isolate.rb
server/isolate/lib/isolate.rb
require "isolate/sandbox" # Restricts +GEM_PATH+ and +GEM_HOME+ and provides a DSL for # expressing your code's runtime Gem dependencies. See README.rdoc for # rationale, limitations, and examples. module Isolate # Duh. VERSION = "3.2.2" # Disable Isolate. If a block is provided, isolation will be # disabl...
ruby
MIT
d72c3f5110092d8b0bd2b0be1a3848fd9d8b61e7
2026-01-04T17:55:51.535665Z
false
mihar/backbone-skeleton
https://github.com/mihar/backbone-skeleton/blob/d72c3f5110092d8b0bd2b0be1a3848fd9d8b61e7/server/isolate/lib/isolate/events.rb
server/isolate/lib/isolate/events.rb
module Isolate # A simple way to watch and extend the Isolate lifecycle. # # Isolate::Events.watch Isolate::Sandbox, :initialized do |sandbox| # puts "A sandbox just got initialized: #{sandbox}" # end # # Read the source for Isolate::Sandbox and Isolate::Entry to see # what sort of events ar...
ruby
MIT
d72c3f5110092d8b0bd2b0be1a3848fd9d8b61e7
2026-01-04T17:55:51.535665Z
false
mihar/backbone-skeleton
https://github.com/mihar/backbone-skeleton/blob/d72c3f5110092d8b0bd2b0be1a3848fd9d8b61e7/server/isolate/lib/isolate/entry.rb
server/isolate/lib/isolate/entry.rb
require "isolate/events" require "rubygems" require "rubygems/command" require "rubygems/dependency_installer" require "rubygems/requirement" require "rubygems/version" module Isolate # An isolated Gem, with requirement, environment restrictions, and # installation options. Generally intended for internal use. Th...
ruby
MIT
d72c3f5110092d8b0bd2b0be1a3848fd9d8b61e7
2026-01-04T17:55:51.535665Z
false
mihar/backbone-skeleton
https://github.com/mihar/backbone-skeleton/blob/d72c3f5110092d8b0bd2b0be1a3848fd9d8b61e7/server/isolate/lib/isolate/sandbox.rb
server/isolate/lib/isolate/sandbox.rb
require "fileutils" require "isolate/entry" require "isolate/events" require "rbconfig" require "rubygems/defaults" require "rubygems/uninstaller" require "rubygems/deprecate" module Isolate # An isolated environment. This class exposes lifecycle events for # extension, see Isolate::Events for more information. ...
ruby
MIT
d72c3f5110092d8b0bd2b0be1a3848fd9d8b61e7
2026-01-04T17:55:51.535665Z
false
mihar/backbone-skeleton
https://github.com/mihar/backbone-skeleton/blob/d72c3f5110092d8b0bd2b0be1a3848fd9d8b61e7/server/isolate/lib/isolate/now.rb
server/isolate/lib/isolate/now.rb
require "isolate" require "isolate/rake" if defined?(Rake) Isolate.now!
ruby
MIT
d72c3f5110092d8b0bd2b0be1a3848fd9d8b61e7
2026-01-04T17:55:51.535665Z
false
mihar/backbone-skeleton
https://github.com/mihar/backbone-skeleton/blob/d72c3f5110092d8b0bd2b0be1a3848fd9d8b61e7/server/isolate/lib/isolate/rake.rb
server/isolate/lib/isolate/rake.rb
require "isolate" namespace :isolate do desc "Show current isolated environment." task :env do require "pathname" sandbox = Isolate.sandbox here = Pathname Dir.pwd path = Pathname(sandbox.path).relative_path_from here files = sandbox.files.map { |f| Pathname(f) } puts puts " ...
ruby
MIT
d72c3f5110092d8b0bd2b0be1a3848fd9d8b61e7
2026-01-04T17:55:51.535665Z
false
poise/application_ruby
https://github.com/poise/application_ruby/blob/aa3cd8758f6eef7ff4620e3781dfc68380d7c978/test/integration/default/serverspec/default_spec.rb
test/integration/default/serverspec/default_spec.rb
# # Copyright 2015-2017, Noah Kantrowitz # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
ruby
Apache-2.0
aa3cd8758f6eef7ff4620e3781dfc68380d7c978
2026-01-04T17:55:52.872045Z
false
poise/application_ruby
https://github.com/poise/application_ruby/blob/aa3cd8758f6eef7ff4620e3781dfc68380d7c978/test/integration/default/serverspec/rails_spec.rb
test/integration/default/serverspec/rails_spec.rb
# # Copyright 2015-2017, Noah Kantrowitz # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
ruby
Apache-2.0
aa3cd8758f6eef7ff4620e3781dfc68380d7c978
2026-01-04T17:55:52.872045Z
false
poise/application_ruby
https://github.com/poise/application_ruby/blob/aa3cd8758f6eef7ff4620e3781dfc68380d7c978/test/integration/default/serverspec/sinatra_spec.rb
test/integration/default/serverspec/sinatra_spec.rb
# # Copyright 2015-2017, Noah Kantrowitz # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
ruby
Apache-2.0
aa3cd8758f6eef7ff4620e3781dfc68380d7c978
2026-01-04T17:55:52.872045Z
false
poise/application_ruby
https://github.com/poise/application_ruby/blob/aa3cd8758f6eef7ff4620e3781dfc68380d7c978/test/cookbook/metadata.rb
test/cookbook/metadata.rb
# # Copyright 2015-2017, Noah Kantrowitz # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
ruby
Apache-2.0
aa3cd8758f6eef7ff4620e3781dfc68380d7c978
2026-01-04T17:55:52.872045Z
false
poise/application_ruby
https://github.com/poise/application_ruby/blob/aa3cd8758f6eef7ff4620e3781dfc68380d7c978/test/cookbook/recipes/sinatra.rb
test/cookbook/recipes/sinatra.rb
# # Copyright 2015-2017, Noah Kantrowitz # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
ruby
Apache-2.0
aa3cd8758f6eef7ff4620e3781dfc68380d7c978
2026-01-04T17:55:52.872045Z
false
poise/application_ruby
https://github.com/poise/application_ruby/blob/aa3cd8758f6eef7ff4620e3781dfc68380d7c978/test/cookbook/recipes/rails.rb
test/cookbook/recipes/rails.rb
# # Copyright 2015-2017, Noah Kantrowitz # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
ruby
Apache-2.0
aa3cd8758f6eef7ff4620e3781dfc68380d7c978
2026-01-04T17:55:52.872045Z
false
poise/application_ruby
https://github.com/poise/application_ruby/blob/aa3cd8758f6eef7ff4620e3781dfc68380d7c978/test/cookbook/recipes/default.rb
test/cookbook/recipes/default.rb
# # Copyright 2015-2017, Noah Kantrowitz # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
ruby
Apache-2.0
aa3cd8758f6eef7ff4620e3781dfc68380d7c978
2026-01-04T17:55:52.872045Z
false
poise/application_ruby
https://github.com/poise/application_ruby/blob/aa3cd8758f6eef7ff4620e3781dfc68380d7c978/test/cookbook/attributes/default.rb
test/cookbook/attributes/default.rb
# # Copyright 2015-2017, Noah Kantrowitz # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
ruby
Apache-2.0
aa3cd8758f6eef7ff4620e3781dfc68380d7c978
2026-01-04T17:55:52.872045Z
false
poise/application_ruby
https://github.com/poise/application_ruby/blob/aa3cd8758f6eef7ff4620e3781dfc68380d7c978/test/spec/spec_helper.rb
test/spec/spec_helper.rb
# # Copyright 2015-2017, Noah Kantrowitz # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
ruby
Apache-2.0
aa3cd8758f6eef7ff4620e3781dfc68380d7c978
2026-01-04T17:55:52.872045Z
false
poise/application_ruby
https://github.com/poise/application_ruby/blob/aa3cd8758f6eef7ff4620e3781dfc68380d7c978/test/spec/resources/ruby_spec.rb
test/spec/resources/ruby_spec.rb
# # Copyright 2015-2017, Noah Kantrowitz # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
ruby
Apache-2.0
aa3cd8758f6eef7ff4620e3781dfc68380d7c978
2026-01-04T17:55:52.872045Z
false
poise/application_ruby
https://github.com/poise/application_ruby/blob/aa3cd8758f6eef7ff4620e3781dfc68380d7c978/test/spec/resources/ruby_execute_spec.rb
test/spec/resources/ruby_execute_spec.rb
# # Copyright 2015-2017, Noah Kantrowitz # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
ruby
Apache-2.0
aa3cd8758f6eef7ff4620e3781dfc68380d7c978
2026-01-04T17:55:52.872045Z
false
poise/application_ruby
https://github.com/poise/application_ruby/blob/aa3cd8758f6eef7ff4620e3781dfc68380d7c978/lib/poise_application_ruby.rb
lib/poise_application_ruby.rb
# # Copyright 2015-2017, Noah Kantrowitz # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
ruby
Apache-2.0
aa3cd8758f6eef7ff4620e3781dfc68380d7c978
2026-01-04T17:55:52.872045Z
false
poise/application_ruby
https://github.com/poise/application_ruby/blob/aa3cd8758f6eef7ff4620e3781dfc68380d7c978/lib/poise_application_ruby/app_mixin.rb
lib/poise_application_ruby/app_mixin.rb
# # Copyright 2015-2017, Noah Kantrowitz # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
ruby
Apache-2.0
aa3cd8758f6eef7ff4620e3781dfc68380d7c978
2026-01-04T17:55:52.872045Z
false
poise/application_ruby
https://github.com/poise/application_ruby/blob/aa3cd8758f6eef7ff4620e3781dfc68380d7c978/lib/poise_application_ruby/version.rb
lib/poise_application_ruby/version.rb
# # Copyright 2015-2017, Noah Kantrowitz # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
ruby
Apache-2.0
aa3cd8758f6eef7ff4620e3781dfc68380d7c978
2026-01-04T17:55:52.872045Z
false
poise/application_ruby
https://github.com/poise/application_ruby/blob/aa3cd8758f6eef7ff4620e3781dfc68380d7c978/lib/poise_application_ruby/resources.rb
lib/poise_application_ruby/resources.rb
# # Copyright 2015-2017, Noah Kantrowitz # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
ruby
Apache-2.0
aa3cd8758f6eef7ff4620e3781dfc68380d7c978
2026-01-04T17:55:52.872045Z
false
poise/application_ruby
https://github.com/poise/application_ruby/blob/aa3cd8758f6eef7ff4620e3781dfc68380d7c978/lib/poise_application_ruby/service_mixin.rb
lib/poise_application_ruby/service_mixin.rb
# # Copyright 2015-2017, Noah Kantrowitz # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
ruby
Apache-2.0
aa3cd8758f6eef7ff4620e3781dfc68380d7c978
2026-01-04T17:55:52.872045Z
false
poise/application_ruby
https://github.com/poise/application_ruby/blob/aa3cd8758f6eef7ff4620e3781dfc68380d7c978/lib/poise_application_ruby/cheftie.rb
lib/poise_application_ruby/cheftie.rb
# # Copyright 2015-2017, Noah Kantrowitz # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
ruby
Apache-2.0
aa3cd8758f6eef7ff4620e3781dfc68380d7c978
2026-01-04T17:55:52.872045Z
false
poise/application_ruby
https://github.com/poise/application_ruby/blob/aa3cd8758f6eef7ff4620e3781dfc68380d7c978/lib/poise_application_ruby/error.rb
lib/poise_application_ruby/error.rb
# # Copyright 2015-2017, Noah Kantrowitz # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
ruby
Apache-2.0
aa3cd8758f6eef7ff4620e3781dfc68380d7c978
2026-01-04T17:55:52.872045Z
false
poise/application_ruby
https://github.com/poise/application_ruby/blob/aa3cd8758f6eef7ff4620e3781dfc68380d7c978/lib/poise_application_ruby/resources/rackup.rb
lib/poise_application_ruby/resources/rackup.rb
# # Copyright 2015-2017, Noah Kantrowitz # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
ruby
Apache-2.0
aa3cd8758f6eef7ff4620e3781dfc68380d7c978
2026-01-04T17:55:52.872045Z
false
poise/application_ruby
https://github.com/poise/application_ruby/blob/aa3cd8758f6eef7ff4620e3781dfc68380d7c978/lib/poise_application_ruby/resources/rails.rb
lib/poise_application_ruby/resources/rails.rb
# # Copyright 2015-2017, Noah Kantrowitz # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
ruby
Apache-2.0
aa3cd8758f6eef7ff4620e3781dfc68380d7c978
2026-01-04T17:55:52.872045Z
false
poise/application_ruby
https://github.com/poise/application_ruby/blob/aa3cd8758f6eef7ff4620e3781dfc68380d7c978/lib/poise_application_ruby/resources/thin.rb
lib/poise_application_ruby/resources/thin.rb
# # Copyright 2015-2017, Noah Kantrowitz # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
ruby
Apache-2.0
aa3cd8758f6eef7ff4620e3781dfc68380d7c978
2026-01-04T17:55:52.872045Z
false
poise/application_ruby
https://github.com/poise/application_ruby/blob/aa3cd8758f6eef7ff4620e3781dfc68380d7c978/lib/poise_application_ruby/resources/ruby_gem.rb
lib/poise_application_ruby/resources/ruby_gem.rb
# # Copyright 2015-2017, Noah Kantrowitz # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
ruby
Apache-2.0
aa3cd8758f6eef7ff4620e3781dfc68380d7c978
2026-01-04T17:55:52.872045Z
false
poise/application_ruby
https://github.com/poise/application_ruby/blob/aa3cd8758f6eef7ff4620e3781dfc68380d7c978/lib/poise_application_ruby/resources/puma.rb
lib/poise_application_ruby/resources/puma.rb
# # Copyright 2015-2017, Noah Kantrowitz # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
ruby
Apache-2.0
aa3cd8758f6eef7ff4620e3781dfc68380d7c978
2026-01-04T17:55:52.872045Z
false
poise/application_ruby
https://github.com/poise/application_ruby/blob/aa3cd8758f6eef7ff4620e3781dfc68380d7c978/lib/poise_application_ruby/resources/bundle_install.rb
lib/poise_application_ruby/resources/bundle_install.rb
# # Copyright 2015-2017, Noah Kantrowitz # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
ruby
Apache-2.0
aa3cd8758f6eef7ff4620e3781dfc68380d7c978
2026-01-04T17:55:52.872045Z
false
poise/application_ruby
https://github.com/poise/application_ruby/blob/aa3cd8758f6eef7ff4620e3781dfc68380d7c978/lib/poise_application_ruby/resources/ruby_execute.rb
lib/poise_application_ruby/resources/ruby_execute.rb
# # Copyright 2015-2017, Noah Kantrowitz # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
ruby
Apache-2.0
aa3cd8758f6eef7ff4620e3781dfc68380d7c978
2026-01-04T17:55:52.872045Z
false
poise/application_ruby
https://github.com/poise/application_ruby/blob/aa3cd8758f6eef7ff4620e3781dfc68380d7c978/lib/poise_application_ruby/resources/ruby.rb
lib/poise_application_ruby/resources/ruby.rb
# # Copyright 2015-2017, Noah Kantrowitz # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
ruby
Apache-2.0
aa3cd8758f6eef7ff4620e3781dfc68380d7c978
2026-01-04T17:55:52.872045Z
false
poise/application_ruby
https://github.com/poise/application_ruby/blob/aa3cd8758f6eef7ff4620e3781dfc68380d7c978/lib/poise_application_ruby/resources/unicorn.rb
lib/poise_application_ruby/resources/unicorn.rb
# # Copyright 2015-2017, Noah Kantrowitz # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
ruby
Apache-2.0
aa3cd8758f6eef7ff4620e3781dfc68380d7c978
2026-01-04T17:55:52.872045Z
false
joshsusser/informal
https://github.com/joshsusser/informal/blob/d9658e30dafd2e55f11ec1e52f9b111d6bc96f39/test/model_test.rb
test/model_test.rb
require File.expand_path(File.join(File.dirname(__FILE__), "test_helper")) class ModelTest < Test::Unit::TestCase class Poro include Informal::Model attr_accessor :x, :y, :z validates_presence_of :x, :y, :z end def poro_class; Poro; end include ModelTestCases end
ruby
MIT
d9658e30dafd2e55f11ec1e52f9b111d6bc96f39
2026-01-04T17:55:52.973594Z
false
joshsusser/informal
https://github.com/joshsusser/informal/blob/d9658e30dafd2e55f11ec1e52f9b111d6bc96f39/test/test_helper.rb
test/test_helper.rb
require "test/unit" require "rubygems" require "bundler/setup" require "informal/model" require "informal/model_no_init" require File.expand_path(File.join(File.dirname(__FILE__), "model_test_cases"))
ruby
MIT
d9658e30dafd2e55f11ec1e52f9b111d6bc96f39
2026-01-04T17:55:52.973594Z
false
joshsusser/informal
https://github.com/joshsusser/informal/blob/d9658e30dafd2e55f11ec1e52f9b111d6bc96f39/test/model_no_init_test.rb
test/model_no_init_test.rb
require File.expand_path(File.join(File.dirname(__FILE__), "test_helper")) class ModelNoInitTest < Test::Unit::TestCase class KalEl attr_accessor :k def initialize(uber) @k = uber end end class Poro < KalEl include Informal::ModelNoInit attr_accessor :x, :y, :z validates_presence_of...
ruby
MIT
d9658e30dafd2e55f11ec1e52f9b111d6bc96f39
2026-01-04T17:55:52.973594Z
false
joshsusser/informal
https://github.com/joshsusser/informal/blob/d9658e30dafd2e55f11ec1e52f9b111d6bc96f39/test/model_test_cases.rb
test/model_test_cases.rb
module ModelTestCases include ActiveModel::Lint::Tests def setup @model = self.poro_class.new(:x => 1, :y => 2) end def teardown self.poro_class.instance_variable_set(:@_model_name, nil) end def test_new assert_equal 1, @model.x assert_equal 2, @model.y assert_nil @model.z end de...
ruby
MIT
d9658e30dafd2e55f11ec1e52f9b111d6bc96f39
2026-01-04T17:55:52.973594Z
false
joshsusser/informal
https://github.com/joshsusser/informal/blob/d9658e30dafd2e55f11ec1e52f9b111d6bc96f39/lib/informal.rb
lib/informal.rb
require "informal/model"
ruby
MIT
d9658e30dafd2e55f11ec1e52f9b111d6bc96f39
2026-01-04T17:55:52.973594Z
false
joshsusser/informal
https://github.com/joshsusser/informal/blob/d9658e30dafd2e55f11ec1e52f9b111d6bc96f39/lib/informal/model_no_init.rb
lib/informal/model_no_init.rb
require "active_model" module Informal module ModelNoInit def self.included(klass) klass.class_eval do extend ActiveModel::Naming include ActiveModel::Validations extend ClassMethods end end module ClassMethods if ActiveModel::VERSION::MINOR > 0 def inf...
ruby
MIT
d9658e30dafd2e55f11ec1e52f9b111d6bc96f39
2026-01-04T17:55:52.973594Z
false
joshsusser/informal
https://github.com/joshsusser/informal/blob/d9658e30dafd2e55f11ec1e52f9b111d6bc96f39/lib/informal/version.rb
lib/informal/version.rb
module Informal VERSION = "0.1.0" end
ruby
MIT
d9658e30dafd2e55f11ec1e52f9b111d6bc96f39
2026-01-04T17:55:52.973594Z
false
joshsusser/informal
https://github.com/joshsusser/informal/blob/d9658e30dafd2e55f11ec1e52f9b111d6bc96f39/lib/informal/model.rb
lib/informal/model.rb
require "informal/model_no_init" module Informal module Model def self.included(klass) klass.class_eval do include ModelNoInit end end def initialize(attrs={}) self.attributes = attrs end end end
ruby
MIT
d9658e30dafd2e55f11ec1e52f9b111d6bc96f39
2026-01-04T17:55:52.973594Z
false
yabeda-rb/yabeda-prometheus
https://github.com/yabeda-rb/yabeda-prometheus/blob/50398b155055631596fac238997812a7705fdac3/spec/spec_helper.rb
spec/spec_helper.rb
# frozen_string_literal: true require "bundler/setup" require "yabeda/prometheus" require "pry" RSpec.configure do |config| # Enable flags like --only-failures and --next-failure config.example_status_persistence_file_path = ".rspec_status" # Disable RSpec exposing methods globally on `Module` and `main` con...
ruby
MIT
50398b155055631596fac238997812a7705fdac3
2026-01-04T17:55:50.186689Z
false
yabeda-rb/yabeda-prometheus
https://github.com/yabeda-rb/yabeda-prometheus/blob/50398b155055631596fac238997812a7705fdac3/spec/yabeda/prometheus_spec.rb
spec/yabeda/prometheus_spec.rb
# frozen_string_literal: true RSpec.describe Yabeda::Prometheus do it "has a version number" do expect(Yabeda::Prometheus::VERSION).not_to be nil end before(:each) do Yabeda.configure do group :test counter :counter, comment: 'Test counter', tags: [:ctag] gauge :gauge, comment: 'Test g...
ruby
MIT
50398b155055631596fac238997812a7705fdac3
2026-01-04T17:55:50.186689Z
false
yabeda-rb/yabeda-prometheus
https://github.com/yabeda-rb/yabeda-prometheus/blob/50398b155055631596fac238997812a7705fdac3/lib/yabeda/prometheus.rb
lib/yabeda/prometheus.rb
# frozen_string_literal: true require "yabeda" require "prometheus/client" require "prometheus/client/push" require "yabeda/prometheus/version" require "yabeda/prometheus/adapter" require "yabeda/prometheus/exporter" module Yabeda module Prometheus class << self def registry ::Prometheus::Client.r...
ruby
MIT
50398b155055631596fac238997812a7705fdac3
2026-01-04T17:55:50.186689Z
false
yabeda-rb/yabeda-prometheus
https://github.com/yabeda-rb/yabeda-prometheus/blob/50398b155055631596fac238997812a7705fdac3/lib/yabeda/prometheus/version.rb
lib/yabeda/prometheus/version.rb
# frozen_string_literal: true module Yabeda module Prometheus VERSION = "0.9.1" end end
ruby
MIT
50398b155055631596fac238997812a7705fdac3
2026-01-04T17:55:50.186689Z
false
yabeda-rb/yabeda-prometheus
https://github.com/yabeda-rb/yabeda-prometheus/blob/50398b155055631596fac238997812a7705fdac3/lib/yabeda/prometheus/exporter.rb
lib/yabeda/prometheus/exporter.rb
# frozen_string_literal: true require "prometheus/middleware/exporter" require "rack" require "logger" module Yabeda module Prometheus # Rack application or middleware that provides metrics exposition endpoint class Exporter < ::Prometheus::Middleware::Exporter NOT_FOUND_HANDLER = lambda do |_env| ...
ruby
MIT
50398b155055631596fac238997812a7705fdac3
2026-01-04T17:55:50.186689Z
false
yabeda-rb/yabeda-prometheus
https://github.com/yabeda-rb/yabeda-prometheus/blob/50398b155055631596fac238997812a7705fdac3/lib/yabeda/prometheus/adapter.rb
lib/yabeda/prometheus/adapter.rb
# frozen_string_literal: true require "prometheus/client" require 'prometheus/client/data_stores/direct_file_store' require 'prometheus/client/data_stores/single_threaded' require "yabeda/base_adapter" module Yabeda class Prometheus::Adapter < BaseAdapter class UndeclaredMetricTags < RuntimeError attr_rea...
ruby
MIT
50398b155055631596fac238997812a7705fdac3
2026-01-04T17:55:50.186689Z
false
coinbase/coinbase-exchange-ruby
https://github.com/coinbase/coinbase-exchange-ruby/blob/3e01d2ea5ade324bec82233ca29304c80b1058d2/spec/response_spec.rb
spec/response_spec.rb
require 'spec_helper' describe Coinbase::Exchange do before :all do @obj = Coinbase::Exchange::APIObject.new('text' => 'test 123', 'decimal' => '123456.789', 'btc' => '฿ 1.23456789', ...
ruby
Apache-2.0
3e01d2ea5ade324bec82233ca29304c80b1058d2
2026-01-04T17:55:58.161349Z
false
coinbase/coinbase-exchange-ruby
https://github.com/coinbase/coinbase-exchange-ruby/blob/3e01d2ea5ade324bec82233ca29304c80b1058d2/spec/synchronous_spec.rb
spec/synchronous_spec.rb
require 'spec_helper' describe Coinbase::Exchange::Client do before :all do @client = Coinbase::Exchange::Client.new 'api_pass', 'api_key', 'api_secret' end it "responds to all endpoints" do endpoints.each do |ref| expect(@client).to respond_to(ref) end end it "makes requests synchronousl...
ruby
Apache-2.0
3e01d2ea5ade324bec82233ca29304c80b1058d2
2026-01-04T17:55:58.161349Z
false
coinbase/coinbase-exchange-ruby
https://github.com/coinbase/coinbase-exchange-ruby/blob/3e01d2ea5ade324bec82233ca29304c80b1058d2/spec/async_spec.rb
spec/async_spec.rb
require 'spec_helper' describe Coinbase::Exchange::AsyncClient do before :all do @client = Coinbase::Exchange::AsyncClient.new('api_pass', 'api_key', 'api_secret') end it "makes asynchronous requests" do ...
ruby
Apache-2.0
3e01d2ea5ade324bec82233ca29304c80b1058d2
2026-01-04T17:55:58.161349Z
false
coinbase/coinbase-exchange-ruby
https://github.com/coinbase/coinbase-exchange-ruby/blob/3e01d2ea5ade324bec82233ca29304c80b1058d2/spec/error_spec.rb
spec/error_spec.rb
require 'spec_helper' describe Coinbase::Exchange do before :all do @client = Coinbase::Exchange::Client.new 'api_pass', 'api_key', 'api_secret' end it "raises BadRequestError on 400" do stub_request(:get, /.*/) .to_return(body: mock_item.to_json, status: 400) expect { @client.orders }.to rais...
ruby
Apache-2.0
3e01d2ea5ade324bec82233ca29304c80b1058d2
2026-01-04T17:55:58.161349Z
false
coinbase/coinbase-exchange-ruby
https://github.com/coinbase/coinbase-exchange-ruby/blob/3e01d2ea5ade324bec82233ca29304c80b1058d2/spec/websocket_spec.rb
spec/websocket_spec.rb
ruby
Apache-2.0
3e01d2ea5ade324bec82233ca29304c80b1058d2
2026-01-04T17:55:58.161349Z
false
coinbase/coinbase-exchange-ruby
https://github.com/coinbase/coinbase-exchange-ruby/blob/3e01d2ea5ade324bec82233ca29304c80b1058d2/spec/spec_helper.rb
spec/spec_helper.rb
require 'bundler/setup' require 'webmock/rspec' require 'em-http' Bundler.setup require 'coinbase/exchange' MARKET_REFS = [ :currencies, :products, :orderbook, :last_trade, :trade_history, :price_history, :d...
ruby
Apache-2.0
3e01d2ea5ade324bec82233ca29304c80b1058d2
2026-01-04T17:55:58.161349Z
false
coinbase/coinbase-exchange-ruby
https://github.com/coinbase/coinbase-exchange-ruby/blob/3e01d2ea5ade324bec82233ca29304c80b1058d2/lib/coinbase/exchange.rb
lib/coinbase/exchange.rb
require "bigdecimal" require "json" require "uri" require "net/http" require "em-http-request" require "faye/websocket" require "coinbase/exchange/errors" require "coinbase/exchange/api_object" require "coinbase/exchange/api_response" require "coinbase/exchange/api_client.rb" require "coinbase/exchange/adapters/net_ht...
ruby
Apache-2.0
3e01d2ea5ade324bec82233ca29304c80b1058d2
2026-01-04T17:55:58.161349Z
false
coinbase/coinbase-exchange-ruby
https://github.com/coinbase/coinbase-exchange-ruby/blob/3e01d2ea5ade324bec82233ca29304c80b1058d2/lib/coinbase/exchange/version.rb
lib/coinbase/exchange/version.rb
module Coinbase # Gem version module Exchange VERSION = "0.2.0" end end
ruby
Apache-2.0
3e01d2ea5ade324bec82233ca29304c80b1058d2
2026-01-04T17:55:58.161349Z
false
coinbase/coinbase-exchange-ruby
https://github.com/coinbase/coinbase-exchange-ruby/blob/3e01d2ea5ade324bec82233ca29304c80b1058d2/lib/coinbase/exchange/errors.rb
lib/coinbase/exchange/errors.rb
module Coinbase module Exchange # # Websocket Errors # class WebsocketError < RuntimeError end class DroppedPackets < WebsocketError end # # Rest API Errors # class APIError < RuntimeError end # Status 400 class BadRequestError < APIError end # Statu...
ruby
Apache-2.0
3e01d2ea5ade324bec82233ca29304c80b1058d2
2026-01-04T17:55:58.161349Z
false
coinbase/coinbase-exchange-ruby
https://github.com/coinbase/coinbase-exchange-ruby/blob/3e01d2ea5ade324bec82233ca29304c80b1058d2/lib/coinbase/exchange/api_object.rb
lib/coinbase/exchange/api_object.rb
module Coinbase module Exchange # Response item abstract model class APIObject < Hash def initialize(data) super update(data) end def update(data) return if data.nil? data.each { |key, val| self[key] = val } if data.is_a?(Hash) end def format(var...
ruby
Apache-2.0
3e01d2ea5ade324bec82233ca29304c80b1058d2
2026-01-04T17:55:58.161349Z
false
coinbase/coinbase-exchange-ruby
https://github.com/coinbase/coinbase-exchange-ruby/blob/3e01d2ea5ade324bec82233ca29304c80b1058d2/lib/coinbase/exchange/api_response.rb
lib/coinbase/exchange/api_response.rb
module Coinbase module Exchange # Encapsulate data for an API response class APIResponse attr_reader :received_at def initialize(resp) @received_at = Time.now @response = resp end def raw @response end def body fail NotImplementedError ...
ruby
Apache-2.0
3e01d2ea5ade324bec82233ca29304c80b1058d2
2026-01-04T17:55:58.161349Z
false
coinbase/coinbase-exchange-ruby
https://github.com/coinbase/coinbase-exchange-ruby/blob/3e01d2ea5ade324bec82233ca29304c80b1058d2/lib/coinbase/exchange/client.rb
lib/coinbase/exchange/client.rb
module Coinbase module Exchange class Client < NetHTTPClient end class AsyncClient < EMHTTPClient end end end
ruby
Apache-2.0
3e01d2ea5ade324bec82233ca29304c80b1058d2
2026-01-04T17:55:58.161349Z
false
coinbase/coinbase-exchange-ruby
https://github.com/coinbase/coinbase-exchange-ruby/blob/3e01d2ea5ade324bec82233ca29304c80b1058d2/lib/coinbase/exchange/api_client.rb
lib/coinbase/exchange/api_client.rb
module Coinbase module Exchange # Net-http client for Coinbase Exchange API class APIClient def initialize(api_key = '', api_secret = '', api_pass = '', options = {}) @api_uri = URI.parse(options[:api_url] || "https://api.pro.coinbase.com") @api_pass = api_pass @api_key = api_key...
ruby
Apache-2.0
3e01d2ea5ade324bec82233ca29304c80b1058d2
2026-01-04T17:55:58.161349Z
false