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
dtaniwaki/mandriller
https://github.com/dtaniwaki/mandriller/blob/c9f6c0d840dd78547491504fe4450bf2b1317dce/lib/mandriller/base.rb
lib/mandriller/base.rb
require 'action_mailer' require 'multi_json' require_relative 'settings_methods' class Mandriller::Base < ActionMailer::Base include Mandriller::SettingsMethods BOOLEAN_SETTINGS = { auto_text: 'X-MC-Autotext', auto_html: 'X-MC-AutoHtml', url_strip_qs: 'X-MC...
ruby
MIT
c9f6c0d840dd78547491504fe4450bf2b1317dce
2026-01-04T17:55:41.600973Z
false
dtaniwaki/mandriller
https://github.com/dtaniwaki/mandriller/blob/c9f6c0d840dd78547491504fe4450bf2b1317dce/lib/mandriller/settings_methods.rb
lib/mandriller/settings_methods.rb
module Mandriller module SettingsMethods def self.included(base) base.extend(ClassMethods) end module ClassMethods def define_settings_methods(*keys) options = keys[-1].is_a?(Hash) ? keys.pop : {} keys.flatten.each do |key| class_attribute "mandrill_#{key}" ...
ruby
MIT
c9f6c0d840dd78547491504fe4450bf2b1317dce
2026-01-04T17:55:41.600973Z
false
Shopify/toxiproxy-ruby
https://github.com/Shopify/toxiproxy-ruby/blob/7e04390a135b88ea28e866a1567b7284f4d58635/test/test_helper.rb
test/test_helper.rb
# frozen_string_literal: true require "minitest/autorun" require_relative "../lib/toxiproxy" require "webmock/minitest" WebMock.disable!
ruby
MIT
7e04390a135b88ea28e866a1567b7284f4d58635
2026-01-04T17:55:41.625156Z
false
Shopify/toxiproxy-ruby
https://github.com/Shopify/toxiproxy-ruby/blob/7e04390a135b88ea28e866a1567b7284f4d58635/test/toxiproxy_test.rb
test/toxiproxy_test.rb
# frozen_string_literal: true require "test_helper" class ToxiproxyTest < Minitest::Test def teardown Toxiproxy.grep(/\Atest_/).each(&:destroy) end def test_create_proxy proxy = Toxiproxy.create(upstream: "localhost:3306", name: "test_mysql_master") assert_equal("localhost:3306", proxy.upstream) ...
ruby
MIT
7e04390a135b88ea28e866a1567b7284f4d58635
2026-01-04T17:55:41.625156Z
false
Shopify/toxiproxy-ruby
https://github.com/Shopify/toxiproxy-ruby/blob/7e04390a135b88ea28e866a1567b7284f4d58635/lib/toxiproxy.rb
lib/toxiproxy.rb
# frozen_string_literal: true require "json" require "uri" require "net/http" require "forwardable" require "toxiproxy/toxic" require "toxiproxy/toxic_collection" require "toxiproxy/proxy_collection" class Toxiproxy extend SingleForwardable DEFAULT_URI = "http://127.0.0.1:8474" VALID_DIRECTIONS = [:upstream, ...
ruby
MIT
7e04390a135b88ea28e866a1567b7284f4d58635
2026-01-04T17:55:41.625156Z
false
Shopify/toxiproxy-ruby
https://github.com/Shopify/toxiproxy-ruby/blob/7e04390a135b88ea28e866a1567b7284f4d58635/lib/toxiproxy/toxic_collection.rb
lib/toxiproxy/toxic_collection.rb
# frozen_string_literal: true class Toxiproxy class ToxicCollection extend Forwardable attr_accessor :toxics attr_reader :proxies def_delegators :@toxics, :<<, :find def initialize(proxies) @proxies = proxies @toxics = [] end def apply(&block) names = toxics.group_by...
ruby
MIT
7e04390a135b88ea28e866a1567b7284f4d58635
2026-01-04T17:55:41.625156Z
false
Shopify/toxiproxy-ruby
https://github.com/Shopify/toxiproxy-ruby/blob/7e04390a135b88ea28e866a1567b7284f4d58635/lib/toxiproxy/version.rb
lib/toxiproxy/version.rb
# frozen_string_literal: true class Toxiproxy VERSION = "2.0.2" end
ruby
MIT
7e04390a135b88ea28e866a1567b7284f4d58635
2026-01-04T17:55:41.625156Z
false
Shopify/toxiproxy-ruby
https://github.com/Shopify/toxiproxy-ruby/blob/7e04390a135b88ea28e866a1567b7284f4d58635/lib/toxiproxy/proxy_collection.rb
lib/toxiproxy/proxy_collection.rb
# frozen_string_literal: true class Toxiproxy # ProxyCollection represents a set of proxies. This allows to easily perform # actions on every proxy in the collection. # # Unfortunately, it doesn't implement all of Enumerable because there's no way # to subclass an Array or include Enumerable for the methods ...
ruby
MIT
7e04390a135b88ea28e866a1567b7284f4d58635
2026-01-04T17:55:41.625156Z
false
Shopify/toxiproxy-ruby
https://github.com/Shopify/toxiproxy-ruby/blob/7e04390a135b88ea28e866a1567b7284f4d58635/lib/toxiproxy/toxic.rb
lib/toxiproxy/toxic.rb
# frozen_string_literal: true class Toxiproxy class Toxic attr_reader :name, :type, :stream, :proxy attr_accessor :attributes, :toxicity def initialize(attrs) raise "Toxic type is required" unless attrs[:type] @type = attrs[:type] @stream = attrs[:stream] || "downstream" @name =...
ruby
MIT
7e04390a135b88ea28e866a1567b7284f4d58635
2026-01-04T17:55:41.625156Z
false
bosko/rmre
https://github.com/bosko/rmre/blob/28a8ecc9c213f2288a4a913e2da330272a1c0501/spec/spec_helper.rb
spec/spec_helper.rb
require 'rmre'
ruby
MIT
28a8ecc9c213f2288a4a913e2da330272a1c0501
2026-01-04T17:55:44.759618Z
false
bosko/rmre
https://github.com/bosko/rmre/blob/28a8ecc9c213f2288a4a913e2da330272a1c0501/spec/rmre/migrator_spec.rb
spec/rmre/migrator_spec.rb
require "spec_helper" module Rmre describe Migrator do let(:src_connection) { double("source_connection") } let(:tgt_connection) { tgt_con = double("target_connection") } let(:src_db_opts) { { adapter: "fake_adapter", database: "source_db" } } let(:tgt_db_opts) { { adapter: "fake_adapter", database: ...
ruby
MIT
28a8ecc9c213f2288a4a913e2da330272a1c0501
2026-01-04T17:55:44.759618Z
false
bosko/rmre
https://github.com/bosko/rmre/blob/28a8ecc9c213f2288a4a913e2da330272a1c0501/spec/rmre/generator_spec.rb
spec/rmre/generator_spec.rb
require "spec_helper" module Rmre describe Generator do let(:settings) do { db: {adapter: 'some_adapter', database: 'db', username: 'user', password: 'pass'}, out_path: File.join(Dir.tmpdir, 'gne-test'), include: ['incl1_', 'incl2_'], inflections: [{plu...
ruby
MIT
28a8ecc9c213f2288a4a913e2da330272a1c0501
2026-01-04T17:55:44.759618Z
false
bosko/rmre
https://github.com/bosko/rmre/blob/28a8ecc9c213f2288a4a913e2da330272a1c0501/lib/rmre.rb
lib/rmre.rb
require 'rmre/generator' require "rmre/migrator" require 'rmre/version'
ruby
MIT
28a8ecc9c213f2288a4a913e2da330272a1c0501
2026-01-04T17:55:44.759618Z
false
bosko/rmre
https://github.com/bosko/rmre/blob/28a8ecc9c213f2288a4a913e2da330272a1c0501/lib/contrib/progressbar.rb
lib/contrib/progressbar.rb
# = progressbar.rb # # == Copyright (C) 2001 Satoru Takabayashi # # Ruby License # # This module is free software. You may use, modify, and/or redistribute this # software under the same terms as Ruby. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even...
ruby
MIT
28a8ecc9c213f2288a4a913e2da330272a1c0501
2026-01-04T17:55:44.759618Z
false
bosko/rmre
https://github.com/bosko/rmre/blob/28a8ecc9c213f2288a4a913e2da330272a1c0501/lib/rmre/db_utils.rb
lib/rmre/db_utils.rb
module Rmre module DbUtils COLUMN_CONVERSIONS = { "Mysql2" => { :raw => :binary, "LONG" => :text } } def self.convert_column_type(target_adapter_name, start_type) if COLUMN_CONVERSIONS[target_adapter_name] && COLUMN_CONVERSIONS[target_adapter_name][start_type] ...
ruby
MIT
28a8ecc9c213f2288a4a913e2da330272a1c0501
2026-01-04T17:55:44.759618Z
false
bosko/rmre
https://github.com/bosko/rmre/blob/28a8ecc9c213f2288a4a913e2da330272a1c0501/lib/rmre/version.rb
lib/rmre/version.rb
module Rmre VERSION = "0.0.9" unless defined?(::Rmre::VERSION) end
ruby
MIT
28a8ecc9c213f2288a4a913e2da330272a1c0501
2026-01-04T17:55:44.759618Z
false
bosko/rmre
https://github.com/bosko/rmre/blob/28a8ecc9c213f2288a4a913e2da330272a1c0501/lib/rmre/dynamic_db.rb
lib/rmre/dynamic_db.rb
require 'active_record' module Rmre module DynamicDb def self.included(base) base.send :extend, Rmre::DynamicDb end def connection_options @connection_options end def connection_options= v @connection_options = v end def create_model_for(table_name, primary_key_name) ...
ruby
MIT
28a8ecc9c213f2288a4a913e2da330272a1c0501
2026-01-04T17:55:44.759618Z
false
bosko/rmre
https://github.com/bosko/rmre/blob/28a8ecc9c213f2288a4a913e2da330272a1c0501/lib/rmre/generator.rb
lib/rmre/generator.rb
require "tmpdir" require "fileutils" require "erubis" require "rmre/active_record/schema_dumper" module Rmre class Generator attr_reader :connection attr_reader :output_path SETTINGS_ROOT = File.expand_path('../../../../db', __FILE__) def initialize(options, out_path, include, custom_inflections) ...
ruby
MIT
28a8ecc9c213f2288a4a913e2da330272a1c0501
2026-01-04T17:55:44.759618Z
false
bosko/rmre
https://github.com/bosko/rmre/blob/28a8ecc9c213f2288a4a913e2da330272a1c0501/lib/rmre/migrator.rb
lib/rmre/migrator.rb
require "rmre/db_utils" require "rmre/dynamic_db" require "contrib/progressbar" module Rmre module Source include DynamicDb class Db < ActiveRecord::Base self.abstract_class = true end end module Target include DynamicDb class Db < ActiveRecord::Base self.abstract_class = true ...
ruby
MIT
28a8ecc9c213f2288a4a913e2da330272a1c0501
2026-01-04T17:55:44.759618Z
false
bosko/rmre
https://github.com/bosko/rmre/blob/28a8ecc9c213f2288a4a913e2da330272a1c0501/lib/rmre/active_record/schema_dumper.rb
lib/rmre/active_record/schema_dumper.rb
require "active_record" require "active_record/base" require "active_record/schema_dumper" module ActiveRecord class SchemaDumper def self.dump_with_fk(connection=ActiveRecord::Base.connection, foreign_keys=[], stream=STDOUT) new(connection).dump_with_fk(foreign_keys, stream) stream end def ...
ruby
MIT
28a8ecc9c213f2288a4a913e2da330272a1c0501
2026-01-04T17:55:44.759618Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/spec/signal_thread_spec.rb
spec/signal_thread_spec.rb
require 'spec_helper' describe SignalThread do before(:each) do @th = SignalThread.new end after(:each) do @th.trap('SIGUSR1') @th.stop @th.join end context('trap') do it 'ignores Signal' do old = @th.trap('SIGUSR1', 'IGNORE') expect(old).to be_nil expect(@th.handlers)...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/spec/null_backend_spec.rb
spec/null_backend_spec.rb
require 'spec_helper' require 'perfectqueue/backend/null' describe Backend::NullBackend do let (:backend){ Backend::NullBackend.new } describe '#list' do subject { backend.list{} } it { is_expected.to be_nil } end describe '#acquire' do subject { backend.acquire(double('timeout')) } it { is_e...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/spec/client_spec.rb
spec/client_spec.rb
require 'spec_helper' describe PerfectQueue::Client do describe '#preempt' do it '(key)' do backend = double('backend') alive_time = double('alive_time') object_double('PerfectQueue::Backend', new_backend: backend).as_stubbed_const client = Client.new({alive_time: alive_time}) ret =...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/spec/rdb_stress.rb
spec/rdb_stress.rb
require 'spec_helper' require 'perfectqueue/backend/rdb_compat' require 'logger' # run this with `bundle exec rake spec SPEC_OPTS="-fd" SPEC=spec/rdb_stress.rb` describe Backend::RDBCompatBackend do let (:now){ Time.now.to_i } let (:client){ double('client') } let (:table){ 'test_queues' } let (:config){ { ...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/spec/queue_spec.rb
spec/queue_spec.rb
require 'spec_helper' describe Queue do include QueueTest it 'is a Queue' do expect(queue.class).to eq(PerfectQueue::Queue) end it 'succeess submit' do queue.submit('task01', 'type1', {}) end it 'fail duplicated submit' do now = Time.now.to_i queue.submit('task01', 'type1', {}, :now=>now...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/spec/supervisor_spec.rb
spec/supervisor_spec.rb
require 'spec_helper' class TestHandler < PerfectQueue::Application::Base def run #puts "TestHandler: #{task}" if num = task.data['sleep'] sleep num end #puts "Task finished" end end class RegexpHandler < PerfectQueue::Application::Base def run end end class TestApp < PerfectQueue::Appl...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/spec/task_metadata_spec.rb
spec/task_metadata_spec.rb
require 'spec_helper' describe PerfectQueue::TaskMetadata do let (:attributes){ double('attributes', delete: nil) } describe '#task' do it 'returns a task' do client = double('client') key = double('key') tm = TaskMetadata.new(client, key, attributes) task = tm.task expect(task).t...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/spec/worker_spec.rb
spec/worker_spec.rb
require 'spec_helper' describe PerfectQueue::Worker do let (:worker){ Worker.new(double, {}) } describe '.run' do let (:runner){ double } let (:config){ double } let (:worker){ double } context 'with config' do it 'calls Worker.new.run' do expect(worker).to receive(:run).with(no_args...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/spec/rdb_backend_spec.rb
spec/rdb_backend_spec.rb
require 'spec_helper' require 'perfectqueue/backend/rdb' require 'mysql2' describe Backend::RDBBackend do let (:now){ Time.now.to_i } let (:uri){ 'mysql2://root:@localhost/perfectqueue_test' } let (:table){ 'test_queues' } let (:db) do d = Backend::RDBCompatBackend.new(double, url: uri, table: table) s...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/spec/blocking_flag_spec.rb
spec/blocking_flag_spec.rb
require 'spec_helper' describe PerfectQueue::BlockingFlag do describe '.new' do it 'returns a BlockingFlag' do flag = BlockingFlag.new expect(flag).to be_an_instance_of(BlockingFlag) end end describe '#set!' do let (:flag){ BlockingFlag.new } it 'returns true if it was false' do ...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/spec/stress.rb
spec/stress.rb
require 'spec_helper' describe Queue do include QueueTest let :thread_num do 5 end let :loop_num do 50 end let :now do Time.now.to_i end def thread_main thread_id = Thread.current.object_id loop_num.times do |i| queue.submit("#{thread_id}-#{i}", "type01", {}, :now=>now-10...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/spec/daemons_logger_spec.rb
spec/daemons_logger_spec.rb
require 'spec_helper' describe DaemonsLogger do context 'new' do it 'creates logger with path string' do Tempfile.open('daemons_logger') do |io| logger = DaemonsLogger.new(io.path) expect(logger.class).to eq(DaemonsLogger) logger.close logger.close end end it ...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/spec/task_spec.rb
spec/task_spec.rb
require 'spec_helper' describe PerfectQueue::Task do describe '.new' do it 'returns a Task' do task = Task.new(double, double) expect(task).to be_an_instance_of(Task) end end describe '#config' do it 'returns the client' do config = double('config') client = double('client', ...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/spec/rdb_compat_backend_spec.rb
spec/rdb_compat_backend_spec.rb
require 'spec_helper' require 'perfectqueue/backend/rdb_compat' describe Backend::RDBCompatBackend do include QueueTest let :client do queue.client end let :backend do client.backend end it 'backward compatibility 1' do backend.db["INSERT INTO test_tasks (id, timeout, data, created_at, resou...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/spec/runner_spec.rb
spec/runner_spec.rb
require 'spec_helper' describe PerfectQueue::Runner do describe '#new' do it 'creates with task' do expect(PerfectQueue::Runner.new(double('task'))).to be_a(PerfectQueue::Runner) end end describe '#task' do let (:task) { double('task') } let (:runner) { PerfectQueue::Runner.new(task) } ...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/spec/backend_spec.rb
spec/backend_spec.rb
require 'spec_helper' describe PerfectQueue::Backend do describe '.new_backend' do it 'raises error if config[:type] is nil' do expect{Backend.new_backend(nil, {})}.to raise_error(ConfigError) end end end
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/spec/engine_spec.rb
spec/engine_spec.rb
require 'spec_helper' describe PerfectQueue::Engine do let (:logger){ double('logger').as_null_object } let (:engine) do config = {logger: logger, processor_type: :thread} Engine.new(double, config) end describe '.new' do it 'returns an Engine with ForkProcessor for processor_type: nil' do c...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/spec/task_monitor_spec.rb
spec/task_monitor_spec.rb
require 'spec_helper' describe PerfectQueue::TaskMonitor do describe '#kill_task' do it 'rescues exception' do tm = PerfectQueue::TaskMonitor.new(logger: double('logger').as_null_object) task = double('task') reason = double('reason') allow(task).to receive_message_chain(:runner, :kill) \...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/spec/spec_helper.rb
spec/spec_helper.rb
$LOAD_PATH.unshift(File.expand_path('../lib', File.dirname(__FILE__))) if ENV['SIMPLE_COV'] require 'simplecov' SimpleCov.start do add_filter 'pkg/' add_filter 'vendor/' end end require 'perfectqueue' if ENV["CI"] require 'coveralls' Coveralls.wear! end require 'fileutils' require 'tempfile' modu...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/spec/application/router_spec.rb
spec/application/router_spec.rb
require 'spec_helper' describe PerfectQueue::Application::Router do describe '.new' do it 'returns a PerfectQueue::Application::Router' do router = Application::Router.new expect(router).to be_an_instance_of(Application::Router) end end describe '#add' do let (:router){ Application::Rout...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/spec/application/base_spec.rb
spec/application/base_spec.rb
require 'spec_helper' describe PerfectQueue::Application::Base do describe '.decider=' do it 'defines .decider which returns the decider' do decider_klass = double('decider_klass') klass = PerfectQueue::Application::Base allow(klass).to receive(:decider).and_call_original allow(klass).to ...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/spec/application/decider_spec.rb
spec/application/decider_spec.rb
require 'spec_helper' describe PerfectQueue::Application::UndefinedDecisionError do it { is_expected.to be_an_instance_of(PerfectQueue::Application::UndefinedDecisionError) } it { is_expected.to be_a(Exception) } end describe PerfectQueue::Application::Decider do describe '#new' do let (:decider) { PerfectQ...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/spec/application/dispatch_spec.rb
spec/application/dispatch_spec.rb
require 'spec_helper' describe PerfectQueue::Application::Dispatch do describe '.new' do before do router = Application::Dispatch.router handler = double('handler') allow(handler).to receive(:new).and_return(nil) router.add(/\Afoo\z/, handler, nil) end it 'returns a PerfectQueue::...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/spec/multiprocess/thread_processor_spec.rb
spec/multiprocess/thread_processor_spec.rb
require 'spec_helper' describe PerfectQueue::Multiprocess::ThreadProcessor do describe '.new' do it 'returns a Multiprocess::ThreadProcessor' do runner = double('runner') processor_id = double('processor_id') config = {} processor = Multiprocess::ThreadProcessor.new(runner, processor_id, ...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/spec/multiprocess/child_process_spec.rb
spec/multiprocess/child_process_spec.rb
require 'spec_helper' describe PerfectQueue::Multiprocess::ChildProcess do let (:runner_insntace){ double('runner') } let (:runner) do runner = double('Runner') allow(runner).to receive(:new).and_return(runner_insntace) runner end let (:processor_id){ double('processor_id') } let (:logger){ doub...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/spec/multiprocess/child_process_monitor_spec.rb
spec/multiprocess/child_process_monitor_spec.rb
require 'spec_helper' describe PerfectQueue::Multiprocess::ChildProcessMonitor do let (:rpipe){ double('rpipe') } let (:last_heartbeat){ 42 } let (:last_kill_time){ 42 } let (:processor_id){ double('processor_id') } let (:log){ double('log').as_null_object } let (:cpm) { cpm = Multiprocess::ChildProces...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/spec/multiprocess/fork_processor_spec.rb
spec/multiprocess/fork_processor_spec.rb
require 'spec_helper' describe PerfectQueue::Multiprocess::ForkProcessor do describe '.new' do it 'returns a PerfectQueue::Multiprocess::ForkProcessor' do runner = double('runner') processor_id = double('processor_id') config = {} processor = Multiprocess::ForkProcessor.new(runner, proces...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/lib/perfectqueue.rb
lib/perfectqueue.rb
# # PerfectQueue # # Copyright (C) 2012-2013 Sadayuki Furuhashi # # 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 re...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/lib/perfectqueue/supervisor.rb
lib/perfectqueue/supervisor.rb
# # PerfectQueue # # Copyright (C) 2012-2013 Sadayuki Furuhashi # # 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 re...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/lib/perfectqueue/task.rb
lib/perfectqueue/task.rb
# # PerfectQueue # # Copyright (C) 2012-2013 Sadayuki Furuhashi # # 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 re...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/lib/perfectqueue/version.rb
lib/perfectqueue/version.rb
module PerfectQueue VERSION = "0.10.1" end
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/lib/perfectqueue/application.rb
lib/perfectqueue/application.rb
# # PerfectQueue # # Copyright (C) 2012-2013 Sadayuki Furuhashi # # 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 re...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/lib/perfectqueue/daemons_logger.rb
lib/perfectqueue/daemons_logger.rb
# # PerfectQueue # # Copyright (C) 2012-2013 Sadayuki Furuhashi # # 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 re...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/lib/perfectqueue/task_status.rb
lib/perfectqueue/task_status.rb
# # PerfectQueue # # Copyright (C) 2012-2013 Sadayuki Furuhashi # # 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 re...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/lib/perfectqueue/queue.rb
lib/perfectqueue/queue.rb
# # PerfectQueue # # Copyright (C) 2012-2013 Sadayuki Furuhashi # # 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 re...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/lib/perfectqueue/task_metadata.rb
lib/perfectqueue/task_metadata.rb
# # PerfectQueue # # Copyright (C) 2012-2013 Sadayuki Furuhashi # # 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 re...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/lib/perfectqueue/backend.rb
lib/perfectqueue/backend.rb
# # PerfectQueue # # Copyright (C) 2012-2013 Sadayuki Furuhashi # # 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 re...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/lib/perfectqueue/runner.rb
lib/perfectqueue/runner.rb
# # PerfectQueue # # Copyright (C) 2012-2013 Sadayuki Furuhashi # # 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 re...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/lib/perfectqueue/task_monitor.rb
lib/perfectqueue/task_monitor.rb
# # PerfectQueue # # Copyright (C) 2012-2013 Sadayuki Furuhashi # # 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 re...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/lib/perfectqueue/worker.rb
lib/perfectqueue/worker.rb
# # PerfectQueue # # Copyright (C) 2012-2013 Sadayuki Furuhashi # # 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 re...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/lib/perfectqueue/client.rb
lib/perfectqueue/client.rb
# # PerfectQueue # # Copyright (C) 2012-2013 Sadayuki Furuhashi # # 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 re...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/lib/perfectqueue/blocking_flag.rb
lib/perfectqueue/blocking_flag.rb
# # PerfectQueue # # Copyright (C) 2012-2013 Sadayuki Furuhashi # # 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 re...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/lib/perfectqueue/engine.rb
lib/perfectqueue/engine.rb
# # PerfectQueue # # Copyright (C) 2012-2013 Sadayuki Furuhashi # # 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 re...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/lib/perfectqueue/signal_thread.rb
lib/perfectqueue/signal_thread.rb
# # PerfectQueue # # Copyright (C) 2012-2013 Sadayuki Furuhashi # # 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 re...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/lib/perfectqueue/model.rb
lib/perfectqueue/model.rb
# # PerfectQueue # # Copyright (C) 2012-2013 Sadayuki Furuhashi # # 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 re...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/lib/perfectqueue/error.rb
lib/perfectqueue/error.rb
# # PerfectQueue # # Copyright (C) 2012-2013 Sadayuki Furuhashi # # 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 re...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/lib/perfectqueue/command/perfectqueue.rb
lib/perfectqueue/command/perfectqueue.rb
require 'optparse' require 'perfectqueue/version' op = OptionParser.new op.banner += %[ <command> commands: list Show list of tasks submit <key> <type> <data> Submit a new task force_finish <key> Force finish a task run <class> Run ...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/lib/perfectqueue/application/decider.rb
lib/perfectqueue/application/decider.rb
# # PerfectQueue # # Copyright (C) 2012-2013 Sadayuki Furuhashi # # 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 re...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/lib/perfectqueue/application/dispatch.rb
lib/perfectqueue/application/dispatch.rb
# # PerfectQueue # # Copyright (C) 2012-2013 Sadayuki Furuhashi # # 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 re...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/lib/perfectqueue/application/router.rb
lib/perfectqueue/application/router.rb
# # PerfectQueue # # Copyright (C) 2012-2013 Sadayuki Furuhashi # # 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 re...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/lib/perfectqueue/application/base.rb
lib/perfectqueue/application/base.rb
# # PerfectQueue # # Copyright (C) 2012-2013 Sadayuki Furuhashi # # 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 re...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/lib/perfectqueue/backend/rdb.rb
lib/perfectqueue/backend/rdb.rb
require 'sequel' require 'uri' require_relative 'rdb_compat' module PerfectQueue::Backend class RDBBackend MAX_RETRY = ::PerfectQueue::Backend::RDBCompatBackend::MAX_RETRY DELETE_OFFSET = ::PerfectQueue::Backend::RDBCompatBackend::DELETE_OFFSET class Token < Struct.new(:key) end def initialize(u...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/lib/perfectqueue/backend/rdb_compat.rb
lib/perfectqueue/backend/rdb_compat.rb
# # PerfectQueue # # Copyright (C) 2012-2013 Sadayuki Furuhashi # # 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 re...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/lib/perfectqueue/backend/null.rb
lib/perfectqueue/backend/null.rb
module PerfectQueue::Backend class NullBackend def list(&block) nil end def acquire(timeout, now=Time.now.to_i) nil end def finish(token, delete_timeout=3600, now=Time.now.to_i) true end def update(token, timeout) nil end def cancel(id, delete_timeout=36...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/lib/perfectqueue/multiprocess/fork_processor.rb
lib/perfectqueue/multiprocess/fork_processor.rb
# # PerfectQueue # # Copyright (C) 2012-2013 Sadayuki Furuhashi # # 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 re...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/lib/perfectqueue/multiprocess/thread_processor.rb
lib/perfectqueue/multiprocess/thread_processor.rb
# # PerfectQueue # # Copyright (C) 2012-2013 Sadayuki Furuhashi # # 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 re...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/lib/perfectqueue/multiprocess/child_process_monitor.rb
lib/perfectqueue/multiprocess/child_process_monitor.rb
# # PerfectQueue # # Copyright (C) 2012-2013 Sadayuki Furuhashi # # 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 re...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
treasure-data/perfectqueue
https://github.com/treasure-data/perfectqueue/blob/3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9/lib/perfectqueue/multiprocess/child_process.rb
lib/perfectqueue/multiprocess/child_process.rb
# # PerfectQueue # # Copyright (C) 2012-2013 Sadayuki Furuhashi # # 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 re...
ruby
Apache-2.0
3ef2dd04786ce822ce4f2e66d54d17ecf98fe8c9
2026-01-04T17:55:40.813256Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/test/cookbooks/test/recipes/default.rb
test/cookbooks/test/recipes/default.rb
log 'Testing 1 2 3!'
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/spec/spec_helper.rb
spec/spec_helper.rb
if ENV['COVERAGE'] != 'false' require 'simplecov' require 'coveralls' SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([ SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter ]) SimpleCov.start # Normally classes are lazily loaded, so any class without a test # is mis...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/spec/vagrant-linode/config_spec.rb
spec/vagrant-linode/config_spec.rb
require 'spec_helper' require 'vagrant-linode/config' describe VagrantPlugins::Linode::Config do describe 'defaults' do let(:vagrant_public_key) { Vagrant.source_root.join('keys/vagrant.pub') } subject do super().tap(&:finalize!) end its(:api_key) { should be_nil } its(:api_url) { shoul...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/spec/vagrant-linode/services/volume_manager_spec.rb
spec/vagrant-linode/services/volume_manager_spec.rb
require "vagrant-linode/services/volume_manager" describe VagrantPlugins::Linode::Services::VolumeManager do subject { described_class.new(machine, client, logger) } let(:provider_config) { double(:config, volumes: [{label: "testvolume", size: 3}]) } let(:machine) { double(:machine, id: 123, name: "test", provid...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/spec/vagrant-linode/actions/list_distributions_spec.rb
spec/vagrant-linode/actions/list_distributions_spec.rb
require 'spec_helper' require 'vagrant-linode/actions/list_distributions' describe VagrantPlugins::Linode::Actions::ListImages do let(:app) { lambda { |_env| } } let(:ui) { Vagrant::UI::Silent.new } let(:distributions) do Fog.mock! Fog::Compute.new(provider: :linode, linode_region: :...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/spec/vagrant-linode/actions/list_plans_spec.rb
spec/vagrant-linode/actions/list_plans_spec.rb
require 'spec_helper' require 'vagrant-linode/actions/list_plans' describe VagrantPlugins::Linode::Actions::ListPlans do let(:app) { lambda { |_env| } } let(:ui) { Vagrant::UI::Silent.new } let(:plans) do Fog.mock! Fog::Compute.new(provider: :linode, linode_datacenter: :dallas, ...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode.rb
lib/vagrant-linode.rb
require 'pathname' require 'vagrant-linode/plugin' module VagrantPlugins module Linode lib_path = Pathname.new(File.expand_path('../vagrant-linode', __FILE__)) autoload :Errors, lib_path.join('errors') # This initializes the i18n load path so that the plugin-specific # translations work. def se...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/provider.rb
lib/vagrant-linode/provider.rb
require 'vagrant-linode/helpers/client' require 'vagrant-linode/actions' module VagrantPlugins module Linode class Provider < Vagrant.plugin('2', :provider) def initialize(machine) @machine = machine end # This class method caches status for all linodes within # the Linode accoun...
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.rb
lib/vagrant-linode/actions.rb
require 'pathname' require 'vagrant/action/builder' module VagrantPlugins module Linode module Actions include Vagrant::Action::Builtin def self.action_destroy Vagrant::Action::Builder.new.tap do |builder| builder.use ConfigValidate builder.use Call, IsCreated do |env, b...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/version.rb
lib/vagrant-linode/version.rb
module VagrantPlugins module Linode VERSION = '0.4.1' 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/errors.rb
lib/vagrant-linode/errors.rb
module VagrantPlugins module Linode module Errors class LinodeError < Vagrant::Errors::VagrantError error_namespace('vagrant_linode.errors') end class APIStatusError < LinodeError error_key(:api_status) end class DiskSize < LinodeError error_key(:disk_size) ...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/client_wrapper.rb
lib/vagrant-linode/client_wrapper.rb
require "log4r" module VagrantPlugins module Linode class ClientWrapper def initialize(client, logger) @client = client @logger = logger end def method_missing(method, *args, &block) result = @client.send(method, *args, &block) if result.is_a? LinodeAPI::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/plugin.rb
lib/vagrant-linode/plugin.rb
begin require 'vagrant' rescue LoadError raise 'The Linode provider must be run within Vagrant.' end # This is a sanity check to make sure no one is attempting to install # this into an early Vagrant version. if Vagrant::VERSION < '1.1.0' fail 'Linode provider is only compatible with Vagrant 1.1+' end module 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/config.rb
lib/vagrant-linode/config.rb
module VagrantPlugins module Linode class Config < Vagrant.plugin('2', :config) attr_accessor :token # deprecated attr_accessor :api_key attr_accessor :api_url attr_accessor :distributionid attr_accessor :distribution attr_accessor :imageid attr_accessor :image attr...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/services/volume_manager.rb
lib/vagrant-linode/services/volume_manager.rb
require "vagrant-linode/errors" module VagrantPlugins module Linode module Services class VolumeManager def initialize(machine, api, logger) @machine = machine @volumes_api = api @logger = logger end def perform volume_definitions.each do |vo...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/helpers/waiter.rb
lib/vagrant-linode/helpers/waiter.rb
module VagrantPlugins module Linode module Helpers module Waiter include Vagrant::Util::Retryable def wait_for_event(env, id) retryable(tries: 120, sleep: 10) do # stop waiting if interrupted next if env[:interrupted] # check action 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/helpers/result.rb
lib/vagrant-linode/helpers/result.rb
module VagrantPlugins module Linode module Helpers class Result def initialize(body) @result = body end def [](key) @result[key.to_s] end def find_id(sub_obj, search) #:ssh_keys, {:name => 'ijin (vagrant)'} find(sub_obj, search)['id'] ...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/helpers/normalizer.rb
lib/vagrant-linode/helpers/normalizer.rb
module VagrantPlugins module Linode module Helpers module Normalizer def normalize_plan_label(plan_label) # if config plan is "Linode x" instead of "Linode xGB", look for "(x/1024)GB instead", when x >= 1024 plan_label_has_size = plan_label.match(/(\d{4,})$/) if plan_la...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false
displague/vagrant-linode
https://github.com/displague/vagrant-linode/blob/0b06818ea50a408b793d14653d3bc34835b1dac0/lib/vagrant-linode/helpers/client.rb
lib/vagrant-linode/helpers/client.rb
require 'vagrant-linode/helpers/result' require 'vagrant-linode/version' require 'linodeapi' require 'json' require 'vagrant/util/retryable' include Vagrant::Util::Retryable module VagrantPlugins module Linode module Helpers # module Client # def client # def wait_for_event(env, id) # ...
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/datacenters.rb
lib/vagrant-linode/commands/datacenters.rb
module VagrantPlugins module Linode module Commands class Datacenters < Vagrant.plugin('2', :command) def execute options = {} opts = OptionParser.new do |o| o.banner = 'Usage: vagrant linode datacenters [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/servers.rb
lib/vagrant-linode/commands/servers.rb
module VagrantPlugins module Linode module Commands class Servers < Vagrant.plugin('2', :command) def execute options = {} opts = OptionParser.new do |o| o.banner = 'Usage: vagrant linode servers [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_volumes.rb
lib/vagrant-linode/commands/list_volumes.rb
module VagrantPlugins module Linode module Commands class ListVolumes < Vagrant.plugin('2', :command) def execute opts = OptionParser.new do |o| o.banner = 'Usage: vagrant linode volumes list [options]' end argv = parse_options(opts) return unless...
ruby
MIT
0b06818ea50a408b793d14653d3bc34835b1dac0
2026-01-04T17:55:46.227254Z
false