-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b50405b
Showing
10 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
*.gem | ||
.bundle | ||
Gemfile.lock | ||
pkg/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.9.3-p0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--colour | ||
--format Fuubar | ||
--drb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
source "http://rubygems.org" | ||
|
||
# Specify your gem's dependencies in resque-waiting-room.gemspec | ||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
guard 'rspec', :version => 2, :cli => "--drb --format Fuubar --color" do | ||
watch(%r{^spec/.+_spec\.rb$}) | ||
watch(%r{^lib/(.+)\.rb$}) | ||
watch('spec/spec_helper.rb') | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
require "bundler/gem_tasks" | ||
require 'rspec/core/rake_task' | ||
|
||
Bundler::GemHelper.install_tasks | ||
RSpec::Core::RakeTask.new(:spec) | ||
|
||
task :default => :spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module Resque | ||
module Plugins | ||
module WaitingRoom | ||
|
||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# -*- encoding: utf-8 -*- | ||
$:.push File.expand_path("../lib", __FILE__) | ||
|
||
Gem::Specification.new do |s| | ||
s.name = "resque-waiting-room" | ||
s.version = "0.0.1" | ||
s.authors = ["Julien Blanchard"] | ||
s.email = ["julien@sideburns.eu"] | ||
s.homepage = "" | ||
s.summary = %q{Put your Resque jobs in a waiting room} | ||
s.description = %q{Throttle your Resque jobs} | ||
|
||
s.rubyforge_project = "resque-waiting-room" | ||
|
||
s.files = `git ls-files`.split("\n") | ||
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") | ||
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } | ||
s.require_paths = ["lib"] | ||
|
||
s.add_development_dependency 'rake', '~>0.9.2.2' | ||
s.add_development_dependency 'resque', '~>1.19.0' | ||
s.add_development_dependency 'rspec', '~>2.8.0' | ||
s.add_development_dependency 'rr', '~>1.0.4' | ||
s.add_development_dependency 'fuubar', '~>1.0.0' | ||
s.add_development_dependency 'spork', '~>0.9.0' | ||
s.add_development_dependency 'guard', '~>0.10.0' | ||
s.add_development_dependency 'guard-rspec', '~>0.6.0' | ||
s.add_development_dependency 'guard-spork', '~>0.3.0' | ||
s.add_development_dependency 'rb-fsevent', '~>0.4.3.1' | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
require File.join(File.dirname(__FILE__) + '/../../spec_helper') | ||
|
||
describe Resque::Plugins::WaitingRoom do | ||
it "should follow the convention" do | ||
Resque::Plugin.lint(Resque::Plugins::WaitingRoom) | ||
end | ||
|
||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
require 'spork' | ||
require 'rr' | ||
require 'resque' | ||
require 'resque/plugins/waiting-room' | ||
|
||
Spork.prefork do | ||
spec_dir = File.dirname(__FILE__) | ||
lib_dir = File.expand_path(File.join(spec_dir, '..', 'lib')) | ||
$:.unshift(lib_dir) | ||
$:.uniq! | ||
RSpec.configure do |config| | ||
config.mock_with :rr | ||
end | ||
end |