Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
julienXX committed Feb 8, 2012
0 parents commit b50405b
Show file tree
Hide file tree
Showing 10 changed files with 86 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.gem
.bundle
Gemfile.lock
pkg/*
1 change: 1 addition & 0 deletions .rbenv-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.9.3-p0
3 changes: 3 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--colour
--format Fuubar
--drb
4 changes: 4 additions & 0 deletions Gemfile
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
6 changes: 6 additions & 0 deletions Guardfile
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

7 changes: 7 additions & 0 deletions Rakefile
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
7 changes: 7 additions & 0 deletions lib/resque/plugins/waiting-room.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module Resque
module Plugins
module WaitingRoom

end
end
end
31 changes: 31 additions & 0 deletions resque-waiting_room.gemspec
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
9 changes: 9 additions & 0 deletions spec/resque/plugins/waiting-room_spec.rb
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

14 changes: 14 additions & 0 deletions spec/spec_helper.rb
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

0 comments on commit b50405b

Please sign in to comment.