Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 9e034638369d7be26d3cea413962fce6b821510d 1 parent 3b2b138
Myron Marston myronmarston authored
1  Gemfile
View
@@ -1,7 +1,6 @@
source "http://rubygems.org"
gem "rake"
-gem "jeweler"
gem "cucumber"
gem "aruba", ">= 0.2.0"
gem "autotest"
29 Rakefile
View
@@ -1,36 +1,11 @@
require 'bundler'
Bundler.setup
+Bundler::GemHelper.install_tasks
require 'rake'
-require 'rspec/mocks/version'
require 'rspec/core/rake_task'
require 'cucumber/rake/task'
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "rspec-mocks"
- gem.version = RSpec::Mocks::Version::STRING
- gem.summary = "rspec-mocks-#{RSpec::Mocks::Version::STRING}"
- gem.description = "RSpec's 'test double' framework, with support for stubbing and mocking"
- gem.email = "dchelimsky@gmail.com;chad.humphries@gmail.com"
- gem.homepage = "http://github.com/rspec/mocks"
- gem.authors = ["David Chelimsky", "Chad Humphries"]
- gem.rubyforge_project = "rspec"
- gem.add_development_dependency 'rspec-core', RSpec::Mocks::Version::STRING
- gem.add_development_dependency 'rspec-expectations', RSpec::Mocks::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-mocks-#{RSpec::Mocks::Version::STRING}.gem"
- end
-end
-
RSpec::Core::RakeTask.new(:spec)
RSpec::Core::RakeTask.new(:rcov) do |spec|
@@ -64,4 +39,4 @@ Rake::RDocTask.new do |rdoc|
rdoc.rdoc_files.include('lib/**/*.rb')
end
-task :default => [:check_dependencies, :spec, :cucumber]
+task :default => [:spec, :cucumber]
1  VERSION
View
@@ -1 +0,0 @@
-2.0.0.beta.20
2  lib/rspec/mocks/version.rb
View
@@ -1,7 +1,7 @@
module RSpec # :nodoc:
module Mocks # :nodoc:
module Version # :nodoc:
- STRING = File.readlines(File.expand_path('../../../../VERSION', __FILE__)).first
+ STRING = '2.0.0.beta.20'
end
end
end
182 rspec-mocks.gemspec
View
@@ -1,170 +1,28 @@
-# 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/mocks/version"
Gem::Specification.new do |s|
- s.name = %q{rspec-mocks}
- s.version = "2.0.0.beta.20"
+ s.name = "rspec-mocks"
+ s.version = RSpec::Mocks::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-mocks"
+ s.summary = "rspec-mocks-#{RSpec::Mocks::Version::STRING}"
+ s.description = "RSpec's 'test double' framework, with support for stubbing and mocking"
- 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's 'test double' framework, with support for stubbing and mocking}
- s.email = %q{dchelimsky@gmail.com;chad.humphries@gmail.com}
- s.extra_rdoc_files = [
- "README.markdown"
- ]
- s.files = [
- ".autotest",
- ".document",
- ".gitignore",
- "Gemfile",
- "License.txt",
- "README.markdown",
- "Rakefile",
- "VERSION",
- "autotest/discover.rb",
- "cucumber.yml",
- "features/README.markdown",
- "features/configuration.feature",
- "features/mocks/block_local_expectations.feature",
- "features/mocks/warn_when_expectation_is_set_on_nil.feature",
- "features/stubs/stub_implementation.feature",
- "features/support/env.rb",
- "lib/rspec/mocks.rb",
- "lib/rspec/mocks/argument_expectation.rb",
- "lib/rspec/mocks/argument_matchers.rb",
- "lib/rspec/mocks/error_generator.rb",
- "lib/rspec/mocks/errors.rb",
- "lib/rspec/mocks/extensions.rb",
- "lib/rspec/mocks/extensions/instance_exec.rb",
- "lib/rspec/mocks/extensions/object.rb",
- "lib/rspec/mocks/framework.rb",
- "lib/rspec/mocks/message_expectation.rb",
- "lib/rspec/mocks/method_double.rb",
- "lib/rspec/mocks/methods.rb",
- "lib/rspec/mocks/mock.rb",
- "lib/rspec/mocks/order_group.rb",
- "lib/rspec/mocks/proxy.rb",
- "lib/rspec/mocks/space.rb",
- "lib/rspec/mocks/spec_methods.rb",
- "lib/rspec/mocks/version.rb",
- "lib/spec/mocks.rb",
- "rspec-mocks.gemspec",
- "spec/rspec/mocks/and_yield_spec.rb",
- "spec/rspec/mocks/any_number_of_times_spec.rb",
- "spec/rspec/mocks/argument_expectation_spec.rb",
- "spec/rspec/mocks/at_least_spec.rb",
- "spec/rspec/mocks/at_most_spec.rb",
- "spec/rspec/mocks/block_return_value_spec.rb",
- "spec/rspec/mocks/bug_report_10260_spec.rb",
- "spec/rspec/mocks/bug_report_10263_spec.rb",
- "spec/rspec/mocks/bug_report_11545_spec.rb",
- "spec/rspec/mocks/bug_report_15719_spec.rb",
- "spec/rspec/mocks/bug_report_496_spec.rb",
- "spec/rspec/mocks/bug_report_600_spec.rb",
- "spec/rspec/mocks/bug_report_7611_spec.rb",
- "spec/rspec/mocks/bug_report_7805_spec.rb",
- "spec/rspec/mocks/bug_report_8165_spec.rb",
- "spec/rspec/mocks/bug_report_8302_spec.rb",
- "spec/rspec/mocks/bug_report_830_spec.rb",
- "spec/rspec/mocks/bug_report_957_spec.rb",
- "spec/rspec/mocks/double_spec.rb",
- "spec/rspec/mocks/failing_argument_matchers_spec.rb",
- "spec/rspec/mocks/hash_including_matcher_spec.rb",
- "spec/rspec/mocks/hash_not_including_matcher_spec.rb",
- "spec/rspec/mocks/mock_ordering_spec.rb",
- "spec/rspec/mocks/mock_space_spec.rb",
- "spec/rspec/mocks/mock_spec.rb",
- "spec/rspec/mocks/multiple_return_value_spec.rb",
- "spec/rspec/mocks/nil_expectation_warning_spec.rb",
- "spec/rspec/mocks/null_object_mock_spec.rb",
- "spec/rspec/mocks/once_counts_spec.rb",
- "spec/rspec/mocks/options_hash_spec.rb",
- "spec/rspec/mocks/partial_mock_spec.rb",
- "spec/rspec/mocks/partial_mock_using_mocks_directly_spec.rb",
- "spec/rspec/mocks/passing_argument_matchers_spec.rb",
- "spec/rspec/mocks/precise_counts_spec.rb",
- "spec/rspec/mocks/record_messages_spec.rb",
- "spec/rspec/mocks/stash_spec.rb",
- "spec/rspec/mocks/stub_chain_spec.rb",
- "spec/rspec/mocks/stub_implementation_spec.rb",
- "spec/rspec/mocks/stub_spec.rb",
- "spec/rspec/mocks/stubbed_message_expectations_spec.rb",
- "spec/rspec/mocks/twice_counts_spec.rb",
- "spec/rspec/mocks_spec.rb",
- "spec/spec_helper.rb",
- "spec/support/macros.rb",
- "specs.watchr"
- ]
- s.homepage = %q{http://github.com/rspec/mocks}
- 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-mocks-2.0.0.beta.20}
- s.test_files = [
- "spec/rspec/mocks/and_yield_spec.rb",
- "spec/rspec/mocks/any_number_of_times_spec.rb",
- "spec/rspec/mocks/argument_expectation_spec.rb",
- "spec/rspec/mocks/at_least_spec.rb",
- "spec/rspec/mocks/at_most_spec.rb",
- "spec/rspec/mocks/block_return_value_spec.rb",
- "spec/rspec/mocks/bug_report_10260_spec.rb",
- "spec/rspec/mocks/bug_report_10263_spec.rb",
- "spec/rspec/mocks/bug_report_11545_spec.rb",
- "spec/rspec/mocks/bug_report_15719_spec.rb",
- "spec/rspec/mocks/bug_report_496_spec.rb",
- "spec/rspec/mocks/bug_report_600_spec.rb",
- "spec/rspec/mocks/bug_report_7611_spec.rb",
- "spec/rspec/mocks/bug_report_7805_spec.rb",
- "spec/rspec/mocks/bug_report_8165_spec.rb",
- "spec/rspec/mocks/bug_report_8302_spec.rb",
- "spec/rspec/mocks/bug_report_830_spec.rb",
- "spec/rspec/mocks/bug_report_957_spec.rb",
- "spec/rspec/mocks/double_spec.rb",
- "spec/rspec/mocks/failing_argument_matchers_spec.rb",
- "spec/rspec/mocks/hash_including_matcher_spec.rb",
- "spec/rspec/mocks/hash_not_including_matcher_spec.rb",
- "spec/rspec/mocks/mock_ordering_spec.rb",
- "spec/rspec/mocks/mock_space_spec.rb",
- "spec/rspec/mocks/mock_spec.rb",
- "spec/rspec/mocks/multiple_return_value_spec.rb",
- "spec/rspec/mocks/nil_expectation_warning_spec.rb",
- "spec/rspec/mocks/null_object_mock_spec.rb",
- "spec/rspec/mocks/once_counts_spec.rb",
- "spec/rspec/mocks/options_hash_spec.rb",
- "spec/rspec/mocks/partial_mock_spec.rb",
- "spec/rspec/mocks/partial_mock_using_mocks_directly_spec.rb",
- "spec/rspec/mocks/passing_argument_matchers_spec.rb",
- "spec/rspec/mocks/precise_counts_spec.rb",
- "spec/rspec/mocks/record_messages_spec.rb",
- "spec/rspec/mocks/stash_spec.rb",
- "spec/rspec/mocks/stub_chain_spec.rb",
- "spec/rspec/mocks/stub_implementation_spec.rb",
- "spec/rspec/mocks/stub_spec.rb",
- "spec/rspec/mocks/stubbed_message_expectations_spec.rb",
- "spec/rspec/mocks/twice_counts_spec.rb",
- "spec/rspec/mocks_spec.rb",
- "spec/spec_helper.rb",
- "spec/support/macros.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_development_dependency(%q<rspec-core>, ["= 2.0.0.beta.20"])
- s.add_development_dependency(%q<rspec-expectations>, ["= 2.0.0.beta.20"])
- else
- s.add_dependency(%q<rspec-core>, ["= 2.0.0.beta.20"])
- s.add_dependency(%q<rspec-expectations>, ["= 2.0.0.beta.20"])
- end
- else
- s.add_dependency(%q<rspec-core>, ["= 2.0.0.beta.20"])
- s.add_dependency(%q<rspec-expectations>, ["= 2.0.0.beta.20"])
- end
+ s.add_dependency "rspec-core", RSpec::Mocks::Version::STRING
+ s.add_dependency "rspec-expectations", RSpec::Mocks::Version::STRING
end
Please sign in to comment.
Something went wrong with that request. Please try again.