Permalink
Browse files

Remove jeweler and use Bundler to lock dependencies

  • Loading branch information...
1 parent 82bfcbc commit 40fabf38d6ffb90f7cb8f1e6bfdf8928d9c0147f @bkeepers bkeepers committed Sep 5, 2010
Showing with 67 additions and 138 deletions.
  1. +10 −0 Gemfile
  2. +33 −0 Gemfile.lock
  3. +3 −37 Rakefile
  4. +0 −1 VERSION
  5. +20 −100 delayed_job.gemspec
  6. +1 −0 spec/spec_helper.rb
View
10 Gemfile
@@ -0,0 +1,10 @@
+source 'http://rubygems.org'
+gem 'activesupport', '~>3'
+gem 'daemons'
+
+group :development do
+ gem 'rspec'
+ gem 'rake'
+ gem 'activerecord', '~>3'
+ gem 'sqlite3-ruby'
+end
View
@@ -0,0 +1,33 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ activemodel (3.0.0)
+ activesupport (= 3.0.0)
+ builder (~> 2.1.2)
+ i18n (~> 0.4.1)
+ activerecord (3.0.0)
+ activemodel (= 3.0.0)
+ activesupport (= 3.0.0)
+ arel (~> 1.0.0)
+ tzinfo (~> 0.3.23)
+ activesupport (3.0.0)
+ arel (1.0.1)
+ activesupport (~> 3.0.0)
+ builder (2.1.2)
+ daemons (1.1.0)
+ i18n (0.4.1)
+ rake (0.8.7)
+ rspec (1.3.0)
+ sqlite3-ruby (1.3.1)
+ tzinfo (0.3.23)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ activerecord (~> 3)
+ activesupport (~> 3)
+ daemons
+ rake
+ rspec
+ sqlite3-ruby
View
@@ -1,47 +1,13 @@
# -*- encoding: utf-8 -*-
-begin
- require 'jeweler'
-rescue LoadError
- puts "Jeweler not available. Install it with: sudo gem install jeweler"
- exit 1
-end
-
-Jeweler::Tasks.new do |s|
- s.name = "delayed_job"
- s.summary = "Database-backed asynchronous priority queue system -- Extracted from Shopify"
- s.email = "tobi@leetsoft.com"
- s.homepage = "http://github.com/collectiveidea/delayed_job"
- s.description = "Delayed_job (or DJ) encapsulates the common pattern of asynchronously executing longer tasks in the background. It is a direct extraction from Shopify where the job table is responsible for a multitude of core tasks.\n\nThis gem is collectiveidea's fork (http://github.com/collectiveidea/delayed_job)."
- s.authors = ["Brandon Keepers", "Tobias Lütke"]
-
- s.has_rdoc = true
- s.rdoc_options = ["--main", "README.textile", "--inline-source", "--line-numbers"]
- s.extra_rdoc_files = ["README.textile"]
-
- s.test_files = Dir['spec/*_spec.rb']
-
- s.add_dependency "daemons"
- s.add_dependency "activesupport"
- s.add_development_dependency "rspec"
- s.add_development_dependency "sqlite3-ruby"
- s.add_development_dependency "activerecord"
-end
+require 'rubygems'
+require 'bundler/setup'
require 'spec/rake/spectask'
-
-
-task :default do
- %w(2.3.5 3.0.0.beta3).each do |version|
- puts "Running specs with Rails #{version}"
- system("RAILS_VERSION=#{version} rake -s spec;")
- end
-end
-
desc 'Run the specs'
Spec::Rake::SpecTask.new(:spec) do |t|
t.libs << 'lib'
t.pattern = 'spec/*_spec.rb'
t.verbose = true
end
-task :spec => :check_dependencies
+task :default => :spec
View
@@ -1 +0,0 @@
-2.1.0.pre
View
@@ -1,106 +1,26 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
- s.name = %q{delayed_job}
- s.version = "2.1.0.pre"
+ s.name = 'delayed_job'
+ s.version = '2.1.0.pre'
+ s.authors = ["Brandon Keepers", "Tobias L\303\274tke"]
+ s.summary = 'Database-backed asynchronous priority queue system -- Extracted from Shopify'
+ s.description = "Delayed_job (or DJ) encapsulates the common pattern of asynchronously executing longer tasks in the background. It is a direct extraction from Shopify where the job table is responsible for a multitude of core tasks.
- s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
- s.authors = ["Brandon Keepers", "Tobias L\303\274tke"]
- s.date = %q{2010-09-04}
- s.description = %q{Delayed_job (or DJ) encapsulates the common pattern of asynchronously executing longer tasks in the background. It is a direct extraction from Shopify where the job table is responsible for a multitude of core tasks.
-
-This gem is collectiveidea's fork (http://github.com/collectiveidea/delayed_job).}
- s.email = %q{tobi@leetsoft.com}
- s.extra_rdoc_files = [
- "README.textile"
- ]
- s.files = [
- ".gitignore",
- "MIT-LICENSE",
- "README.textile",
- "Rakefile",
- "VERSION",
- "benchmarks.rb",
- "contrib/delayed_job.monitrc",
- "contrib/delayed_job_multiple.monitrc",
- "delayed_job.gemspec",
- "generators/delayed_job/delayed_job_generator.rb",
- "generators/delayed_job/templates/migration.rb",
- "generators/delayed_job/templates/script",
- "init.rb",
- "lib/delayed/backend/active_record.rb",
- "lib/delayed/backend/base.rb",
- "lib/delayed/backend/couch_rest.rb",
- "lib/delayed/backend/shared_spec.rb",
- "lib/delayed/command.rb",
- "lib/delayed/message_sending.rb",
- "lib/delayed/performable_method.rb",
- "lib/delayed/railtie.rb",
- "lib/delayed/recipes.rb",
- "lib/delayed/tasks.rb",
- "lib/delayed/worker.rb",
- "lib/delayed/yaml_ext.rb",
- "lib/delayed_job.rb",
- "lib/generators/delayed_job/delayed_job_generator.rb",
- "lib/generators/delayed_job/templates/migration.rb",
- "lib/generators/delayed_job/templates/script",
- "rails/init.rb",
- "recipes/delayed_job.rb",
- "spec/autoloaded/clazz.rb",
- "spec/autoloaded/struct.rb",
- "spec/backend/active_record_job_spec.rb",
- "spec/backend/couch_rest_job_spec.rb",
- "spec/message_sending_spec.rb",
- "spec/performable_method_spec.rb",
- "spec/sample_jobs.rb",
- "spec/setup/active_record.rb",
- "spec/setup/couch_rest.rb",
- "spec/spec_helper.rb",
- "spec/worker_spec.rb",
- "spec/yaml_ext_spec.rb",
- "tasks/jobs.rake"
- ]
- s.homepage = %q{http://github.com/collectiveidea/delayed_job}
- s.rdoc_options = ["--main", "README.textile", "--inline-source", "--line-numbers"]
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.6}
- s.summary = %q{Database-backed asynchronous priority queue system -- Extracted from Shopify}
- s.test_files = [
- "spec/message_sending_spec.rb",
- "spec/performable_method_spec.rb",
- "spec/worker_spec.rb",
- "spec/yaml_ext_spec.rb"
- ]
-
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
-
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<daemons>, [">= 0"])
- s.add_runtime_dependency(%q<activesupport>, [">= 0"])
- s.add_development_dependency(%q<rspec>, [">= 0"])
- s.add_development_dependency(%q<sqlite3-ruby>, [">= 0"])
- s.add_development_dependency(%q<activerecord>, [">= 0"])
- s.add_development_dependency(%q<couchrest>, [">= 0"])
- else
- s.add_dependency(%q<daemons>, [">= 0"])
- s.add_dependency(%q<activesupport>, [">= 0"])
- s.add_dependency(%q<rspec>, [">= 0"])
- s.add_dependency(%q<sqlite3-ruby>, [">= 0"])
- s.add_dependency(%q<activerecord>, [">= 0"])
- s.add_dependency(%q<couchrest>, [">= 0"])
- end
- else
- s.add_dependency(%q<daemons>, [">= 0"])
- s.add_dependency(%q<activesupport>, [">= 0"])
- s.add_dependency(%q<rspec>, [">= 0"])
- s.add_dependency(%q<sqlite3-ruby>, [">= 0"])
- s.add_dependency(%q<activerecord>, [">= 0"])
- s.add_dependency(%q<couchrest>, [">= 0"])
- end
+This gem is collectiveidea's fork (http://github.com/collectiveidea/delayed_job)."
+ s.email = 'brandon@collectiveidea.com'
+ s.extra_rdoc_files = 'README.textile'
+ s.files = Dir.glob('{contrib,generators,lib,rails,recipes,spec,tasks}/**/*') +
+ %w(init.rb MIT-LICENSE README.textile)
+ s.homepage = 'http://github.com/collectiveidea/delayed_job'
+ s.rdoc_options = ["--main", "README.textile", "--inline-source", "--line-numbers"]
+ s.require_paths = ["lib"]
+ s.test_files = Dir.glob('spec/**/*')
+
+ s.add_runtime_dependency 'daemons'
+ s.add_runtime_dependency 'activesupport' '~>3'
+ s.add_development_dependency 'rspec'
+ s.add_development_dependency 'sqlite3-ruby'
+ s.add_development_dependency 'activerecord'
end
View
@@ -1,6 +1,7 @@
$:.unshift(File.dirname(__FILE__) + '/../lib')
require 'rubygems'
+require 'bundler/setup'
require 'spec'
require 'logger'

0 comments on commit 40fabf3

Please sign in to comment.