Skip to content
Browse files

Remove dependency on jeweler.

- Allows us to have an always-up-to-date gemspec.
- Use bundler's build/install/release rake tasks rather than jeweler's.
- One less development dependency.
- No need for a separate VERSION file.
  • Loading branch information...
1 parent 8f740ac commit 15060b8a5a9ab9b90e997407838cf56d23b4792a @myronmarston myronmarston committed with dchelimsky Sep 2, 2010
Showing with 27 additions and 214 deletions.
  1. +0 −1 Gemfile
  2. +3 −40 Rakefile
  3. +0 −1 VERSION
  4. +1 −1 lib/rspec/expectations/version.rb
  5. +23 −171 rspec-expectations.gemspec
View
1 Gemfile
@@ -1,7 +1,6 @@
source "http://rubygems.org"
gem "rake"
-gem "jeweler"
gem "cucumber"
gem "aruba", ">= 0.2.0"
gem "autotest"
View
43 Rakefile
@@ -1,41 +1,12 @@
require 'bundler'
Bundler.setup
+Bundler::GemHelper.install_tasks
-$LOAD_PATH << File.expand_path("../lib", __FILE__)
require 'rake'
require 'rake/rdoctask'
-require 'rspec/expectations/version'
require 'rspec/core/rake_task'
require 'cucumber/rake/task'
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "rspec-expectations"
- gem.version = RSpec::Expectations::Version::STRING
- gem.summary = "rspec-expectations-#{RSpec::Expectations::Version::STRING}"
- gem.description = "rspec expectations (should[_not] and matchers)"
- gem.rubyforge_project = "rspec"
- gem.email = "dchelimsky@gmail.com;chad.humphries@gmail.com"
- gem.homepage = "http://github.com/rspec/expectations"
- gem.authors = ["David Chelimsky", "Chad Humphries"]
- gem.add_dependency('diff-lcs', ">= 1.1.2")
- gem.add_development_dependency('cucumber', ">= 0.6.2")
- gem.add_development_dependency('aruba', ">= 0.1.1")
- gem.add_development_dependency('rspec-core', ">= #{RSpec::Expectations::Version::STRING}")
- gem.add_development_dependency('rspec-mocks', ">= #{RSpec::Expectations::Version::STRING}")
- end
-rescue LoadError
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
-end
-
-namespace :gem do
- desc "push to gemcutter"
- task :push => :build do
- system "gem push pkg/rspec-expectations-#{RSpec::Expectations::Version::STRING}.gem"
- end
-end
-
RSpec::Core::RakeTask.new(:spec)
class Cucumber::Rake::Task::ForkedCucumberRunner
@@ -50,18 +21,11 @@ Cucumber::Rake::Task.new do |t|
t.cucumber_opts = %w{--format progress}
end
-task :default => [:check_dependencies, :spec, :cucumber]
+task :default => [:spec, :cucumber]
Rake::RDocTask.new do |rdoc|
- if File.exist?('VERSION.yml')
- config = YAML.load(File.read('VERSION.yml'))
- version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
- else
- version = ""
- end
-
rdoc.rdoc_dir = 'rdoc'
- rdoc.title = "rspec-expectations #{version}"
+ rdoc.title = "rspec-expectations #{RSpec::Expectations::Version::STRING}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
@@ -73,4 +37,3 @@ task :clobber do
rm_rf 'coverage'
end
-
View
1 VERSION
@@ -1 +0,0 @@
-2.0.0.beta.20
View
2 lib/rspec/expectations/version.rb
@@ -1,7 +1,7 @@
module RSpec # :nodoc:
module Expectations # :nodoc:
module Version # :nodoc:
- STRING = File.readlines(File.expand_path('../../../../VERSION', __FILE__)).first
+ STRING = '2.0.0.beta.20'
end
end
end
View
194 rspec-expectations.gemspec
@@ -1,179 +1,31 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-
+$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
+require "rspec/expectations/version"
Gem::Specification.new do |s|
- s.name = %q{rspec-expectations}
- s.version = "2.0.0.beta.20"
+ s.name = "rspec-expectations"
+ s.version = RSpec::Expectations::Version::STRING
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["David Chelimsky", "Chad Humphries"]
+ s.email = "dchelimsky@gmail.com;chad.humphries@gmail.com"
+ s.homepage = "http://github.com/rspec/rspec-expectations"
+ s.summary = "rspec-expectations-#{RSpec::Expectations::Version::STRING}"
+ s.description = "rspec expectations (should[_not] and matchers)"
- s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
- s.authors = ["David Chelimsky", "Chad Humphries"]
- s.date = %q{2010-08-24}
- s.description = %q{rspec expectations (should[_not] and matchers)}
- s.email = %q{dchelimsky@gmail.com;chad.humphries@gmail.com}
- s.extra_rdoc_files = [
- "README.markdown"
- ]
- s.files = [
- ".document",
- ".gitignore",
- "Gemfile",
- "License.txt",
- "README.markdown",
- "Rakefile",
- "Upgrade.markdown",
- "VERSION",
- "cucumber.yml",
- "features/README.markdown",
- "features/expectations/attribute_of_subject.feature",
- "features/expectations/customized_message.feature",
- "features/expectations/implicit_docstrings.feature",
- "features/matchers/access_running_example.feature",
- "features/matchers/define_diffable_matcher.feature",
- "features/matchers/define_matcher.feature",
- "features/matchers/define_matcher_outside_rspec.feature",
- "features/matchers/define_matcher_with_fluent_interface.feature",
- "features/matchers/expect_change.feature",
- "features/matchers/expect_error.feature",
- "features/support/env.rb",
- "lib/rspec-expectations.rb",
- "lib/rspec/expectations.rb",
- "lib/rspec/expectations/backward_compatibility.rb",
- "lib/rspec/expectations/differ.rb",
- "lib/rspec/expectations/errors.rb",
- "lib/rspec/expectations/extensions.rb",
- "lib/rspec/expectations/extensions/array.rb",
- "lib/rspec/expectations/extensions/kernel.rb",
- "lib/rspec/expectations/extensions/rspec/core/example_group.rb",
- "lib/rspec/expectations/fail_with.rb",
- "lib/rspec/expectations/handler.rb",
- "lib/rspec/expectations/version.rb",
- "lib/rspec/matchers.rb",
- "lib/rspec/matchers/be.rb",
- "lib/rspec/matchers/be_close.rb",
- "lib/rspec/matchers/be_instance_of.rb",
- "lib/rspec/matchers/be_kind_of.rb",
- "lib/rspec/matchers/change.rb",
- "lib/rspec/matchers/compatibility.rb",
- "lib/rspec/matchers/dsl.rb",
- "lib/rspec/matchers/eq.rb",
- "lib/rspec/matchers/eql.rb",
- "lib/rspec/matchers/equal.rb",
- "lib/rspec/matchers/errors.rb",
- "lib/rspec/matchers/exist.rb",
- "lib/rspec/matchers/extensions/instance_exec.rb",
- "lib/rspec/matchers/generated_descriptions.rb",
- "lib/rspec/matchers/has.rb",
- "lib/rspec/matchers/have.rb",
- "lib/rspec/matchers/include.rb",
- "lib/rspec/matchers/match.rb",
- "lib/rspec/matchers/match_array.rb",
- "lib/rspec/matchers/matcher.rb",
- "lib/rspec/matchers/method_missing.rb",
- "lib/rspec/matchers/operator_matcher.rb",
- "lib/rspec/matchers/pretty.rb",
- "lib/rspec/matchers/raise_error.rb",
- "lib/rspec/matchers/respond_to.rb",
- "lib/rspec/matchers/satisfy.rb",
- "lib/rspec/matchers/throw_symbol.rb",
- "rspec-expectations.gemspec",
- "spec/rspec/expectations/differ_spec.rb",
- "spec/rspec/expectations/extensions/kernel_spec.rb",
- "spec/rspec/expectations/fail_with_spec.rb",
- "spec/rspec/expectations/handler_spec.rb",
- "spec/rspec/matchers/be_close_spec.rb",
- "spec/rspec/matchers/be_instance_of_spec.rb",
- "spec/rspec/matchers/be_kind_of_spec.rb",
- "spec/rspec/matchers/be_spec.rb",
- "spec/rspec/matchers/change_spec.rb",
- "spec/rspec/matchers/compatibility_spec.rb",
- "spec/rspec/matchers/description_generation_spec.rb",
- "spec/rspec/matchers/dsl_spec.rb",
- "spec/rspec/matchers/eq_spec.rb",
- "spec/rspec/matchers/eql_spec.rb",
- "spec/rspec/matchers/equal_spec.rb",
- "spec/rspec/matchers/exist_spec.rb",
- "spec/rspec/matchers/has_spec.rb",
- "spec/rspec/matchers/have_spec.rb",
- "spec/rspec/matchers/include_spec.rb",
- "spec/rspec/matchers/match_array_spec.rb",
- "spec/rspec/matchers/match_spec.rb",
- "spec/rspec/matchers/matcher_spec.rb",
- "spec/rspec/matchers/matchers_spec.rb",
- "spec/rspec/matchers/operator_matcher_spec.rb",
- "spec/rspec/matchers/raise_error_spec.rb",
- "spec/rspec/matchers/respond_to_spec.rb",
- "spec/rspec/matchers/satisfy_spec.rb",
- "spec/rspec/matchers/throw_symbol_spec.rb",
- "spec/spec_helper.rb",
- "spec/suite.rb",
- "spec/support/classes.rb",
- "specs.watchr"
- ]
- s.homepage = %q{http://github.com/rspec/expectations}
- s.rdoc_options = ["--charset=UTF-8"]
- s.require_paths = ["lib"]
- s.rubyforge_project = %q{rspec}
- s.rubygems_version = %q{1.3.7}
- s.summary = %q{rspec-expectations-2.0.0.beta.20}
- s.test_files = [
- "spec/rspec/expectations/differ_spec.rb",
- "spec/rspec/expectations/extensions/kernel_spec.rb",
- "spec/rspec/expectations/fail_with_spec.rb",
- "spec/rspec/expectations/handler_spec.rb",
- "spec/rspec/matchers/be_close_spec.rb",
- "spec/rspec/matchers/be_instance_of_spec.rb",
- "spec/rspec/matchers/be_kind_of_spec.rb",
- "spec/rspec/matchers/be_spec.rb",
- "spec/rspec/matchers/change_spec.rb",
- "spec/rspec/matchers/compatibility_spec.rb",
- "spec/rspec/matchers/description_generation_spec.rb",
- "spec/rspec/matchers/dsl_spec.rb",
- "spec/rspec/matchers/eq_spec.rb",
- "spec/rspec/matchers/eql_spec.rb",
- "spec/rspec/matchers/equal_spec.rb",
- "spec/rspec/matchers/exist_spec.rb",
- "spec/rspec/matchers/has_spec.rb",
- "spec/rspec/matchers/have_spec.rb",
- "spec/rspec/matchers/include_spec.rb",
- "spec/rspec/matchers/match_array_spec.rb",
- "spec/rspec/matchers/match_spec.rb",
- "spec/rspec/matchers/matcher_spec.rb",
- "spec/rspec/matchers/matchers_spec.rb",
- "spec/rspec/matchers/operator_matcher_spec.rb",
- "spec/rspec/matchers/raise_error_spec.rb",
- "spec/rspec/matchers/respond_to_spec.rb",
- "spec/rspec/matchers/satisfy_spec.rb",
- "spec/rspec/matchers/throw_symbol_spec.rb",
- "spec/spec_helper.rb",
- "spec/suite.rb",
- "spec/support/classes.rb"
- ]
+ s.rubygems_version = "1.3.7"
+ s.rubyforge_project = "rspec"
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.extra_rdoc_files = [ "README.markdown" ]
+ s.rdoc_options = ["--charset=UTF-8"]
+ s.require_path = "lib"
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<diff-lcs>, [">= 1.1.2"])
- s.add_development_dependency(%q<cucumber>, [">= 0.6.2"])
- s.add_development_dependency(%q<aruba>, [">= 0.1.1"])
- s.add_development_dependency(%q<rspec-core>, [">= 2.0.0.beta.20"])
- s.add_development_dependency(%q<rspec-mocks>, [">= 2.0.0.beta.20"])
- else
- s.add_dependency(%q<diff-lcs>, [">= 1.1.2"])
- s.add_dependency(%q<cucumber>, [">= 0.6.2"])
- s.add_dependency(%q<aruba>, [">= 0.1.1"])
- s.add_dependency(%q<rspec-core>, [">= 2.0.0.beta.20"])
- s.add_dependency(%q<rspec-mocks>, [">= 2.0.0.beta.20"])
- end
- else
- s.add_dependency(%q<diff-lcs>, [">= 1.1.2"])
- s.add_dependency(%q<cucumber>, [">= 0.6.2"])
- s.add_dependency(%q<aruba>, [">= 0.1.1"])
- s.add_dependency(%q<rspec-core>, [">= 2.0.0.beta.20"])
- s.add_dependency(%q<rspec-mocks>, [">= 2.0.0.beta.20"])
- end
+ s.add_runtime_dependency 'diff-lcs', '>= 1.1.2'
+ s.add_development_dependency 'cucumber', ">= 0.6.2"
+ s.add_development_dependency 'aruba', ">= 0.1.1"
+ s.add_development_dependency 'rspec-core', ">= #{RSpec::Expectations::Version::STRING}"
+ s.add_development_dependency 'rspec-mocks', ">= #{RSpec::Expectations::Version::STRING}"
end

0 comments on commit 15060b8

Please sign in to comment.
Something went wrong with that request. Please try again.