Skip to content
Browse files

use Bundler gem tasks

  • Loading branch information...
1 parent 40f76a2 commit 24fc4f536b2df6b45e44314bf0ab4ae8cfa5195a @dchelimsky committed Apr 11, 2011
Showing with 36 additions and 435 deletions.
  1. +2 −4 Gemfile
  2. +0 −384 Manifest.txt
  3. +8 −47 Rakefile
  4. +26 −0 rspec.gemspec
View
6 Gemfile
@@ -1,16 +1,14 @@
source :rubygems
-gem "cucumber", '>= 0.3.101'
-gem "diff-lcs", '>= 1.1.2'
-gem "fakefs", '>= 0.2'
+gemspec
+
gem "flexmock", '>= 0.8.6'
gem "heckle", '>= 1.4.2'
gem "hoe", '>= 2.0'
gem "nokogiri", '>= 1.2.3'
gem "mocha", '>= 0.9.5'
gem "rake", '>= 0.8.4'
gem "rcov", '>= 0.9.7.1'
-gem "syntax", '>= 1.0.0'
gem "rr", '>= 0.10.0'
gem "ruby-debug", :platforms => :mri_18
gem "ruby-debug19", "~> 0.11.6", :platforms => :mri_19
View
384 Manifest.txt
@@ -1,384 +0,0 @@
-.document
-History.rdoc
-License.txt
-Manifest.txt
-README.rdoc
-Rakefile
-Ruby1.9.rdoc
-TODO.txt
-Upgrade.rdoc
-bin/autospec
-bin/spec
-cucumber.yml
-examples/failing/README.txt
-examples/failing/diffing_spec.rb
-examples/failing/failing_implicit_docstrings_example.rb
-examples/failing/failure_in_after.rb
-examples/failing/failure_in_before.rb
-examples/failing/mocking_example.rb
-examples/failing/mocking_with_flexmock.rb
-examples/failing/mocking_with_mocha.rb
-examples/failing/mocking_with_rr.rb
-examples/failing/partial_mock_example.rb
-examples/failing/pending_example.rb
-examples/failing/predicate_example.rb
-examples/failing/raising_example.rb
-examples/failing/syntax_error_example.rb
-examples/failing/team_spec.rb
-examples/failing/timeout_behaviour.rb
-examples/passing/custom_formatter.rb
-examples/passing/custom_matchers.rb
-examples/passing/dynamic_spec.rb
-examples/passing/file_accessor.rb
-examples/passing/file_accessor_spec.rb
-examples/passing/filtered_formatter.rb
-examples/passing/filtered_formatter_example.rb
-examples/passing/greeter_spec.rb
-examples/passing/helper_method_example.rb
-examples/passing/implicit_docstrings_example.rb
-examples/passing/io_processor.rb
-examples/passing/io_processor_spec.rb
-examples/passing/mocking_example.rb
-examples/passing/multi_threaded_example_group_runner.rb
-examples/passing/nested_classes_example.rb
-examples/passing/options_example.rb
-examples/passing/options_formatter.rb
-examples/passing/partial_mock_example.rb
-examples/passing/pending_example.rb
-examples/passing/predicate_example.rb
-examples/passing/shared_example_group_example.rb
-examples/passing/shared_stack_examples.rb
-examples/passing/simple_matcher_example.rb
-examples/passing/stack.rb
-examples/passing/stack_spec.rb
-examples/passing/stack_spec_with_nested_example_groups.rb
-examples/passing/stubbing_example.rb
-examples/passing/yielding_example.rb
-examples/ruby1.9.compatibility/access_to_constants_spec.rb
-features/before_and_after_blocks/before_and_after_blocks.feature
-features/command_line/line_number_option.feature
-features/command_line/line_number_option_with_example_with_no_name.feature
-features/example_groups/define_example_attribute.feature
-features/example_groups/example_group_with_should_methods.feature
-features/example_groups/implicit_docstrings.feature
-features/example_groups/nested_groups.feature
-features/expectations/customized_message.feature
-features/expectations/expect_change.feature
-features/expectations/expect_error.feature
-features/extensions/custom_example_group.feature
-features/formatters/custom_formatter.feature
-features/formatters/nested_formatter.feature
-features/interop/cucumber_stubs_dont_leak.feature
-features/interop/examples_and_tests_together.feature
-features/interop/rspec_output.feature
-features/interop/test_but_not_test_unit.feature
-features/interop/test_case_with_should_methods.feature
-features/load_paths/add_lib_to_load_path.feature
-features/load_paths/add_spec_to_load_path.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/define_wrapped_matcher.feature
-features/matchers/match_unless_raises.feature
-features/matchers/match_unless_raises_unexpected_error.feature
-features/mock_framework_integration/use_flexmock.feature
-features/mock_framework_integration/use_mocha.feature
-features/mock_framework_integration/use_rr.feature
-features/mocks/block_local_expectations.feature
-features/mocks/mix_stubs_and_mocks.feature
-features/mocks/stub_implementation.feature
-features/pending/pending_examples.feature
-features/runner/specify_line_number.feature
-features/spec_helper/spec_helper.feature
-features/step_definitions/running_rspec_steps.rb
-features/step_definitions/stubbing_steps.rb
-features/subject/explicit_subject.feature
-features/subject/implicit_subject.feature
-features/support/env.rb
-features/support/matchers/smart_match.rb
-geminstaller.yml
-init.rb
-lib/autotest/discover.rb
-lib/autotest/rspec.rb
-lib/spec.rb
-lib/spec/adapters/mock_frameworks/flexmock.rb
-lib/spec/adapters/mock_frameworks/mocha.rb
-lib/spec/adapters/mock_frameworks/rr.rb
-lib/spec/adapters/mock_frameworks/rspec.rb
-lib/spec/autorun.rb
-lib/spec/deprecation.rb
-lib/spec/dsl.rb
-lib/spec/dsl/main.rb
-lib/spec/example.rb
-lib/spec/example/args_and_options.rb
-lib/spec/example/before_and_after_hooks.rb
-lib/spec/example/errors.rb
-lib/spec/example/example_group.rb
-lib/spec/example/example_group_factory.rb
-lib/spec/example/example_group_hierarchy.rb
-lib/spec/example/example_group_methods.rb
-lib/spec/example/example_group_proxy.rb
-lib/spec/example/example_matcher.rb
-lib/spec/example/example_methods.rb
-lib/spec/example/example_proxy.rb
-lib/spec/example/module_reopening_fix.rb
-lib/spec/example/pending.rb
-lib/spec/example/predicate_matchers.rb
-lib/spec/example/shared_example_group.rb
-lib/spec/example/subject.rb
-lib/spec/expectations.rb
-lib/spec/expectations/errors.rb
-lib/spec/expectations/extensions.rb
-lib/spec/expectations/extensions/kernel.rb
-lib/spec/expectations/fail_with.rb
-lib/spec/expectations/handler.rb
-lib/spec/extensions/instance_exec.rb
-lib/spec/interop/test.rb
-lib/spec/interop/test/unit/autorunner.rb
-lib/spec/interop/test/unit/testcase.rb
-lib/spec/interop/test/unit/testresult.rb
-lib/spec/interop/test/unit/testsuite_adapter.rb
-lib/spec/interop/test/unit/ui/console/testrunner.rb
-lib/spec/matchers.rb
-lib/spec/matchers/be.rb
-lib/spec/matchers/be_close.rb
-lib/spec/matchers/be_instance_of.rb
-lib/spec/matchers/be_kind_of.rb
-lib/spec/matchers/change.rb
-lib/spec/matchers/compatibility.rb
-lib/spec/matchers/dsl.rb
-lib/spec/matchers/eql.rb
-lib/spec/matchers/equal.rb
-lib/spec/matchers/errors.rb
-lib/spec/matchers/exist.rb
-lib/spec/matchers/generated_descriptions.rb
-lib/spec/matchers/has.rb
-lib/spec/matchers/have.rb
-lib/spec/matchers/include.rb
-lib/spec/matchers/match.rb
-lib/spec/matchers/match_array.rb
-lib/spec/matchers/matcher.rb
-lib/spec/matchers/method_missing.rb
-lib/spec/matchers/operator_matcher.rb
-lib/spec/matchers/pretty.rb
-lib/spec/matchers/raise_exception.rb
-lib/spec/matchers/respond_to.rb
-lib/spec/matchers/satisfy.rb
-lib/spec/matchers/simple_matcher.rb
-lib/spec/matchers/throw_symbol.rb
-lib/spec/matchers/wrap_expectation.rb
-lib/spec/mocks.rb
-lib/spec/mocks/argument_expectation.rb
-lib/spec/mocks/argument_matchers.rb
-lib/spec/mocks/error_generator.rb
-lib/spec/mocks/errors.rb
-lib/spec/mocks/example_methods.rb
-lib/spec/mocks/extensions.rb
-lib/spec/mocks/extensions/object.rb
-lib/spec/mocks/framework.rb
-lib/spec/mocks/message_expectation.rb
-lib/spec/mocks/methods.rb
-lib/spec/mocks/mock.rb
-lib/spec/mocks/order_group.rb
-lib/spec/mocks/proxy.rb
-lib/spec/mocks/space.rb
-lib/spec/rake/spectask.rb
-lib/spec/rake/verify_rcov.rb
-lib/spec/ruby.rb
-lib/spec/runner.rb
-lib/spec/runner/backtrace_tweaker.rb
-lib/spec/runner/class_and_arguments_parser.rb
-lib/spec/runner/command_line.rb
-lib/spec/runner/configuration.rb
-lib/spec/runner/differs/default.rb
-lib/spec/runner/differs/load-diff-lcs.rb
-lib/spec/runner/drb_command_line.rb
-lib/spec/runner/example_group_runner.rb
-lib/spec/runner/extensions/kernel.rb
-lib/spec/runner/formatter/base_formatter.rb
-lib/spec/runner/formatter/base_text_formatter.rb
-lib/spec/runner/formatter/failing_example_groups_formatter.rb
-lib/spec/runner/formatter/failing_examples_formatter.rb
-lib/spec/runner/formatter/html_formatter.rb
-lib/spec/runner/formatter/nested_text_formatter.rb
-lib/spec/runner/formatter/no_op_method_missing.rb
-lib/spec/runner/formatter/profile_formatter.rb
-lib/spec/runner/formatter/progress_bar_formatter.rb
-lib/spec/runner/formatter/silent_formatter.rb
-lib/spec/runner/formatter/snippet_extractor.rb
-lib/spec/runner/formatter/specdoc_formatter.rb
-lib/spec/runner/formatter/text_mate_formatter.rb
-lib/spec/runner/heckle_runner.rb
-lib/spec/runner/heckle_runner_unsupported.rb
-lib/spec/runner/line_number_query.rb
-lib/spec/runner/option_parser.rb
-lib/spec/runner/options.rb
-lib/spec/runner/reporter.rb
-lib/spec/stubs/cucumber.rb
-lib/spec/test/unit.rb
-lib/spec/version.rb
-resources/helpers/cmdline.rb
-resources/rake/examples.rake
-resources/rake/examples_with_rcov.rake
-resources/rake/failing_examples_with_html.rake
-resources/rake/verify_rcov.rake
-spec/README.jruby
-spec/autotest/autotest_helper.rb
-spec/autotest/autotest_matchers.rb
-spec/autotest/discover_spec.rb
-spec/autotest/failed_results_re_spec.rb
-spec/autotest/rspec_spec.rb
-spec/ruby_forker.rb
-spec/spec.opts
-spec/spec/dsl/main_spec.rb
-spec/spec/example/example_group_class_definition_spec.rb
-spec/spec/example/example_group_factory_spec.rb
-spec/spec/example/example_group_methods_spec.rb
-spec/spec/example/example_group_proxy_spec.rb
-spec/spec/example/example_group_spec.rb
-spec/spec/example/example_matcher_spec.rb
-spec/spec/example/example_methods_spec.rb
-spec/spec/example/example_proxy_spec.rb
-spec/spec/example/helper_method_spec.rb
-spec/spec/example/nested_example_group_spec.rb
-spec/spec/example/pending_module_spec.rb
-spec/spec/example/predicate_matcher_spec.rb
-spec/spec/example/shared_example_group_spec.rb
-spec/spec/example/subclassing_example_group_spec.rb
-spec/spec/example/subject_spec.rb
-spec/spec/expectations/differs/default_spec.rb
-spec/spec/expectations/extensions/kernel_spec.rb
-spec/spec/expectations/fail_with_spec.rb
-spec/spec/expectations/handler_spec.rb
-spec/spec/expectations/wrap_expectation_spec.rb
-spec/spec/interop/test/unit/resources/spec_that_fails.rb
-spec/spec/interop/test/unit/resources/spec_that_passes.rb
-spec/spec/interop/test/unit/resources/spec_with_errors.rb
-spec/spec/interop/test/unit/resources/spec_with_options_hash.rb
-spec/spec/interop/test/unit/resources/test_case_that_fails.rb
-spec/spec/interop/test/unit/resources/test_case_that_passes.rb
-spec/spec/interop/test/unit/resources/test_case_with_errors.rb
-spec/spec/interop/test/unit/resources/test_case_with_various_names.rb
-spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
-spec/spec/interop/test/unit/spec_spec.rb
-spec/spec/interop/test/unit/test_unit_spec_helper.rb
-spec/spec/interop/test/unit/testcase_spec.rb
-spec/spec/interop/test/unit/testsuite_adapter_spec.rb
-spec/spec/matchers/be_close_spec.rb
-spec/spec/matchers/be_instance_of_spec.rb
-spec/spec/matchers/be_kind_of_spec.rb
-spec/spec/matchers/be_spec.rb
-spec/spec/matchers/change_spec.rb
-spec/spec/matchers/compatibility_spec.rb
-spec/spec/matchers/description_generation_spec.rb
-spec/spec/matchers/dsl_spec.rb
-spec/spec/matchers/eql_spec.rb
-spec/spec/matchers/equal_spec.rb
-spec/spec/matchers/exist_spec.rb
-spec/spec/matchers/has_spec.rb
-spec/spec/matchers/have_spec.rb
-spec/spec/matchers/include_spec.rb
-spec/spec/matchers/match_array_spec.rb
-spec/spec/matchers/match_spec.rb
-spec/spec/matchers/matcher_spec.rb
-spec/spec/matchers/matchers_spec.rb
-spec/spec/matchers/operator_matcher_spec.rb
-spec/spec/matchers/raise_exception_spec.rb
-spec/spec/matchers/respond_to_spec.rb
-spec/spec/matchers/satisfy_spec.rb
-spec/spec/matchers/simple_matcher_spec.rb
-spec/spec/matchers/throw_symbol_spec.rb
-spec/spec/mocks/and_yield_spec.rb
-spec/spec/mocks/any_number_of_times_spec.rb
-spec/spec/mocks/argument_expectation_spec.rb
-spec/spec/mocks/argument_matchers_spec.rb
-spec/spec/mocks/at_least_spec.rb
-spec/spec/mocks/at_most_spec.rb
-spec/spec/mocks/bug_report_10260_spec.rb
-spec/spec/mocks/bug_report_10263_spec.rb
-spec/spec/mocks/bug_report_11545_spec.rb
-spec/spec/mocks/bug_report_15719_spec.rb
-spec/spec/mocks/bug_report_496_spec.rb
-spec/spec/mocks/bug_report_600_spec.rb
-spec/spec/mocks/bug_report_7611_spec.rb
-spec/spec/mocks/bug_report_7805_spec.rb
-spec/spec/mocks/bug_report_8165_spec.rb
-spec/spec/mocks/bug_report_8302_spec.rb
-spec/spec/mocks/bug_report_830_spec.rb
-spec/spec/mocks/double_spec.rb
-spec/spec/mocks/failing_argument_matchers_spec.rb
-spec/spec/mocks/hash_including_matcher_spec.rb
-spec/spec/mocks/hash_not_including_matcher_spec.rb
-spec/spec/mocks/mock_ordering_spec.rb
-spec/spec/mocks/mock_space_spec.rb
-spec/spec/mocks/mock_spec.rb
-spec/spec/mocks/multiple_return_value_spec.rb
-spec/spec/mocks/nil_expectation_warning_spec.rb
-spec/spec/mocks/null_object_mock_spec.rb
-spec/spec/mocks/once_counts_spec.rb
-spec/spec/mocks/options_hash_spec.rb
-spec/spec/mocks/partial_mock_spec.rb
-spec/spec/mocks/partial_mock_using_mocks_directly_spec.rb
-spec/spec/mocks/passing_argument_matchers_spec.rb
-spec/spec/mocks/precise_counts_spec.rb
-spec/spec/mocks/record_messages_spec.rb
-spec/spec/mocks/stub_chain_spec.rb
-spec/spec/mocks/stub_implementation_spec.rb
-spec/spec/mocks/stub_spec.rb
-spec/spec/mocks/stubbed_message_expectations_spec.rb
-spec/spec/mocks/twice_counts_spec.rb
-spec/spec/mocks/unstub_spec.rb
-spec/spec/package/bin_spec_spec.rb
-spec/spec/rake/spectask_spec.rb
-spec/spec/runner/class_and_argument_parser_spec.rb
-spec/spec/runner/command_line_spec.rb
-spec/spec/runner/configuration_spec.rb
-spec/spec/runner/drb_command_line_spec.rb
-spec/spec/runner/empty_file.txt
-spec/spec/runner/example_group_runner_spec.rb
-spec/spec/runner/examples.txt
-spec/spec/runner/failed.txt
-spec/spec/runner/formatter/base_formatter_spec.rb
-spec/spec/runner/formatter/base_text_formatter_spec.rb
-spec/spec/runner/formatter/failing_example_groups_formatter_spec.rb
-spec/spec/runner/formatter/failing_examples_formatter_spec.rb
-spec/spec/runner/formatter/html_formatted-1.8.6-jruby.html
-spec/spec/runner/formatter/html_formatted-1.8.6.html
-spec/spec/runner/formatter/html_formatted-1.8.7.html
-spec/spec/runner/formatter/html_formatted-1.9.1.html
-spec/spec/runner/formatter/html_formatter_spec.rb
-spec/spec/runner/formatter/nested_text_formatter_spec.rb
-spec/spec/runner/formatter/profile_formatter_spec.rb
-spec/spec/runner/formatter/progress_bar_formatter_spec.rb
-spec/spec/runner/formatter/snippet_extractor_spec.rb
-spec/spec/runner/formatter/specdoc_formatter_spec.rb
-spec/spec/runner/formatter/text_mate_formatted-1.8.6-jruby.html
-spec/spec/runner/formatter/text_mate_formatted-1.8.6.html
-spec/spec/runner/formatter/text_mate_formatted-1.8.7.html
-spec/spec/runner/formatter/text_mate_formatted-1.9.1.html
-spec/spec/runner/formatter/text_mate_formatter_spec.rb
-spec/spec/runner/heckle_runner_spec.rb
-spec/spec/runner/heckler_spec.rb
-spec/spec/runner/line_number_query/line_number_query_fixture.rb
-spec/spec/runner/line_number_query_spec.rb
-spec/spec/runner/noisy_backtrace_tweaker_spec.rb
-spec/spec/runner/option_parser_spec.rb
-spec/spec/runner/options_spec.rb
-spec/spec/runner/output_one_time_fixture.rb
-spec/spec/runner/output_one_time_fixture_runner.rb
-spec/spec/runner/output_one_time_spec.rb
-spec/spec/runner/quiet_backtrace_tweaker_spec.rb
-spec/spec/runner/reporter_spec.rb
-spec/spec/runner/resources/a_bar.rb
-spec/spec/runner/resources/a_foo.rb
-spec/spec/runner/resources/a_spec.rb
-spec/spec/runner/resources/custom_example_group_runner.rb
-spec/spec/runner/resources/utf8_encoded.rb
-spec/spec/runner/spec.opts
-spec/spec/runner/spec_drb.opts
-spec/spec/runner/spec_spaced.opts
-spec/spec/runner_spec.rb
-spec/spec_helper.rb
-spec/support/macros.rb
-spec/support/spec_classes.rb
View
55 Rakefile
@@ -1,45 +1,12 @@
-# -*- ruby -*-
-gem 'hoe', '>=2.0.0'
-require 'hoe'
+require 'bundler'
+Bundler::GemHelper.install_tasks
$:.unshift 'lib'
require 'spec/version'
require 'spec/rake/spectask'
require 'spec/ruby'
-Hoe.spec 'rspec' do
- self.version = Spec::VERSION::STRING
- self.summary = Spec::VERSION::SUMMARY
- self.description = "Behaviour Driven Development for Ruby."
- self.rubyforge_name = 'rspec'
- self.developer('RSpec Development Team', 'rspec-devel@rubyforge.org')
- self.extra_dev_deps << ["cucumber",">=0.3"] << ["fakefs",">=0.2.1"] << ["syntax",">=1.0"] << ["diff-lcs",">=1.1.2"]
- self.extra_dev_deps << ["heckle",">=1.4.3"] unless Spec::Ruby.version >= "1.9"
- self.remote_rdoc_dir = "rspec/#{Spec::VERSION::STRING}"
- self.rspec_options = ['--options', 'spec/spec.opts']
- self.history_file = 'History.rdoc'
- self.readme_file = 'README.rdoc'
- self.post_install_message = <<-POST_INSTALL_MESSAGE
-#{'*'*50}
-
- Thank you for installing rspec-#{Spec::VERSION::STRING}
-
- Please be sure to read History.rdoc and Upgrade.rdoc
- for useful information about this release.
-
-#{'*'*50}
-POST_INSTALL_MESSAGE
-end
-
-['audit','test','test_deps','default','post_blog'].each do |task|
- Rake.application.instance_variable_get('@tasks').delete(task)
-end
-
-task :post_blog do
- # no-op
-end
-
# Some of the tasks are in separate files since they are also part of the website documentation
load 'resources/rake/examples.rake'
load 'resources/rake/examples_with_rcov.rake'
@@ -50,15 +17,19 @@ task :cleanup_rcov_files do
rm_rf 'coverage.data'
end
-
if RUBY_VERSION =~ /^1.8/
task :default => [:cleanup_rcov_files, :features, :verify_rcov]
else
task :default => [:spec, :features]
end
-namespace :spec do
+desc "Run all specs"
+Spec::Rake::SpecTask.new(:spec) do |t|
+ t.spec_files = FileList['spec/**/*_spec.rb']
+ t.spec_opts = ['--options', 'spec/spec.opts']
+end
+namespace :spec do
desc "Run all specs with rcov"
Spec::Rake::SpecTask.new(:rcov) do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
@@ -121,9 +92,6 @@ task :todo do
egrep /(FIXME|TODO|TBD)/
end
-desc "verify_committed, verify_rcov, post_news, release"
-task :complete_release => [:verify_committed, :verify_rcov, :post_news, :release]
-
desc "Verifies that there is no uncommitted code"
task :verify_committed do
IO.popen('git status') do |io|
@@ -133,13 +101,6 @@ task :verify_committed do
end
end
-namespace :update do
- desc "update the manifest"
- task :manifest do
- system %q[touch Manifest.txt; rake check_manifest | grep -v "(in " | patch]
- end
-end
-
task :clobber => :clobber_tmp
task :clobber_tmp do
View
26 rspec.gemspec
@@ -0,0 +1,26 @@
+# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "spec/version"
+
+Gem::Specification.new do |s|
+ s.name = "rspec"
+ s.version = Spec::VERSION::STRING
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["The RSpec Development Team"]
+ s.email = ["rspec-devel@rubyforge.org"]
+ s.homepage = ""
+ s.summary = Spec::VERSION::SUMMARY
+ s.description = "Behaviour Driven Development for Ruby."
+
+ s.rubyforge_project = "rspec"
+
+ 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("cucumber",">=0.3")
+ s.add_development_dependency("fakefs",">=0.2.1")
+ s.add_development_dependency("syntax",">=1.0")
+ s.add_development_dependency("diff-lcs",">=1.1.2")
+end

0 comments on commit 24fc4f5

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