Skip to content

Commit

Permalink
Bundlerized remaining deps and added Rakefile with spec task
Browse files Browse the repository at this point in the history
  • Loading branch information
freshtonic committed May 15, 2012
1 parent 06b2ee0 commit adcea67
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 19 deletions.
11 changes: 11 additions & 0 deletions Rakefile
@@ -0,0 +1,11 @@
require 'rubygems'
require 'bundler'

require "rspec/core/rake_task" # RSpec 2.0

RSpec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = 'spec/*_spec.rb'
spec.rspec_opts = ['--backtrace']
end

task :default => :spec
1 change: 1 addition & 0 deletions lib/resque-brokered.rb
@@ -1,2 +1,3 @@
require 'resque'
require 'resque/plugins/brokered'
require 'resque/plugins/brokered/broker'
14 changes: 2 additions & 12 deletions resque-brokered.gemspec
Expand Up @@ -12,22 +12,12 @@ Gem::Specification.new do |s|

s.required_rubygems_version = ">= 1.3.6"

s.add_runtime_dependency 'resque', '~>1.0'
s.add_runtime_dependency 'resque', '~>1.20.0'
s.add_runtime_dependency 'redis'

s.add_development_dependency 'rake'
s.add_development_dependency 'rspec', '~>2.0'


# If you have other dependencies, add them here
# s.add_dependency "another", "~> 1.2"

# If you need to check in files that aren't .rb files, add them here
s.files = Dir["{lib}/**/*.rb", "bin/*", "LICENSE", "*.md"]
s.require_path = 'lib'

# If you need an executable, add it here
# s.executables = ["newgem"]

# If you have C extensions, uncomment this line
# s.extensions = "ext/extconf.rb"
end
8 changes: 1 addition & 7 deletions spec/spec_helper.rb
@@ -1,10 +1,4 @@
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

require 'rspec'
require 'resque'
require 'redis'
require 'resque-brokered'
Bundler.require :default, :development

def test_redis
Redis.new
Expand Down

0 comments on commit adcea67

Please sign in to comment.