summaryrefslogtreecommitdiff
path: root/devel/ruby-mocha
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2011-09-12 11:50:50 +0000
committertaca <taca@pkgsrc.org>2011-09-12 11:50:50 +0000
commit54bf9809f095654b1fcd5e2e466652398df44229 (patch)
treecd25a81f6ca8c4b5d20f9172bbb6cd40e848a1ff /devel/ruby-mocha
parent5aa5fab7e8b9c0d61c510ab9dc4ec37d6d336182 (diff)
downloadpkgsrc-54bf9809f095654b1fcd5e2e466652398df44229.tar.gz
Update ruby-mocha package to 0.10.0.
= 0.10.0 () * Add Expectation#throws to allow a stubbed method to use Kernel#throw. * Updates for versions of Test::Unit up to and including v2.3.3 (including patch by Jens Fahnenbruck). * Updates for versions of MiniTest up to and including v2.5.1. * Since the singleton method added by Mocha masks the underlying instance method, there's no need to move it out the way and then back again. This fixes Github issue #20, because the original method is left unchanged - https://github.com/floehopper/mocha/issues/20 (thanks to Nick Lewis). * Handle stubbing of a singleton method, leaving the original method unchanged after the test. * When stubbing an instance method that was originally defined as a singleton method, the original method should still exist after the test. * Fixed mis-print in Mocha::ObjectMethods#unstub documentation (patch by Gleb Pomykalov). * Improved test coverage around stubbing of methods defined in different ways - this makes use of the newly extracted introspection gem (although this means some tests are now failing in Ruby v1.9.2). * Added configuration for Travis continuous integration. * Make the gemspec the canonical reference and stop generating it from the Rakefile. * Use the built-in Bundler rake tasks for packaging the gem. * Use the "release" rake task provided by Bundler instead of using the Rake::XForge::Release functionality. * Extract Object#__metaclass__ into a new metaclass gem. * Run rake tasks without `bundle exec`. * Avoid deprecation warning for rdoc rake task. * Remove the `use_test_unit_gem` MOCHA_OPTION which hasn't worked since we switched to bundler - we can now run the tests specifying a different Gemfile instead. * Use multiple Gemfiles seems to run Travis CI builds against multiple version of test-unit & minitest.
Diffstat (limited to 'devel/ruby-mocha')
-rw-r--r--devel/ruby-mocha/Makefile6
-rw-r--r--devel/ruby-mocha/PLIST45
-rw-r--r--devel/ruby-mocha/distinfo8
3 files changed, 46 insertions, 13 deletions
diff --git a/devel/ruby-mocha/Makefile b/devel/ruby-mocha/Makefile
index 9bdb0a88074..05e750daab0 100644
--- a/devel/ruby-mocha/Makefile
+++ b/devel/ruby-mocha/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.8 2011/06/18 01:47:54 taca Exp $
+# $NetBSD: Makefile,v 1.9 2011/09/12 11:50:50 taca Exp $
-DISTNAME= mocha-0.9.12
+DISTNAME= mocha-0.10.0
CATEGORIES= devel
MAINTAINER= pkgsrc-users@NetBSD.org
@@ -8,5 +8,7 @@ HOMEPAGE= http://mocha.rubyforge.org/
COMMENT= Ruby library for mocking and stubbing
LICENSE= ruby-license OR mit
+DEPENDS+= ${RUBY_PKGPREFIX}-metaclass>=0.0.1<0.1:../../devel/ruby-metaclass
+
.include "../../lang/ruby/gem.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/devel/ruby-mocha/PLIST b/devel/ruby-mocha/PLIST
index e06003e01e6..d2c87cc2b50 100644
--- a/devel/ruby-mocha/PLIST
+++ b/devel/ruby-mocha/PLIST
@@ -1,7 +1,20 @@
-@comment $NetBSD: PLIST,v 1.6 2011/06/18 01:47:54 taca Exp $
+@comment $NetBSD: PLIST,v 1.7 2011/09/12 11:50:51 taca Exp $
${GEM_HOME}/cache/${GEM_NAME}.gem
${GEM_LIBDIR}/.gemtest
${GEM_LIBDIR}/COPYING.rdoc
+${GEM_LIBDIR}/Gemfile
+${GEM_LIBDIR}/Gemfile.minitest.1.3.0
+${GEM_LIBDIR}/Gemfile.minitest.1.4.0
+${GEM_LIBDIR}/Gemfile.minitest.1.4.1
+${GEM_LIBDIR}/Gemfile.minitest.1.4.2
+${GEM_LIBDIR}/Gemfile.minitest.2.0.0
+${GEM_LIBDIR}/Gemfile.minitest.2.0.1
+${GEM_LIBDIR}/Gemfile.minitest.2.3.0
+${GEM_LIBDIR}/Gemfile.minitest.latest
+${GEM_LIBDIR}/Gemfile.test-unit.2.0.0
+${GEM_LIBDIR}/Gemfile.test-unit.2.0.1
+${GEM_LIBDIR}/Gemfile.test-unit.2.0.3
+${GEM_LIBDIR}/Gemfile.test-unit.latest
${GEM_LIBDIR}/MIT-LICENSE.rdoc
${GEM_LIBDIR}/README.rdoc
${GEM_LIBDIR}/RELEASE.rdoc
@@ -9,6 +22,7 @@ ${GEM_LIBDIR}/Rakefile
${GEM_LIBDIR}/examples/misc.rb
${GEM_LIBDIR}/examples/mocha.rb
${GEM_LIBDIR}/examples/stubba.rb
+${GEM_LIBDIR}/init.rb
${GEM_LIBDIR}/lib/mocha.rb
${GEM_LIBDIR}/lib/mocha/any_instance_method.rb
${GEM_LIBDIR}/lib/mocha/api.rb
@@ -36,17 +50,18 @@ ${GEM_LIBDIR}/lib/mocha/integration/mini_test/version_140.rb
${GEM_LIBDIR}/lib/mocha/integration/mini_test/version_141.rb
${GEM_LIBDIR}/lib/mocha/integration/mini_test/version_142_to_172.rb
${GEM_LIBDIR}/lib/mocha/integration/mini_test/version_200.rb
-${GEM_LIBDIR}/lib/mocha/integration/mini_test/version_201_to_202.rb
+${GEM_LIBDIR}/lib/mocha/integration/mini_test/version_201_to_222.rb
+${GEM_LIBDIR}/lib/mocha/integration/mini_test/version_230_to_251.rb
${GEM_LIBDIR}/lib/mocha/integration/test_unit.rb
${GEM_LIBDIR}/lib/mocha/integration/test_unit/assertion_counter.rb
${GEM_LIBDIR}/lib/mocha/integration/test_unit/gem_version_200.rb
${GEM_LIBDIR}/lib/mocha/integration/test_unit/gem_version_201_to_202.rb
-${GEM_LIBDIR}/lib/mocha/integration/test_unit/gem_version_203_to_209.rb
+${GEM_LIBDIR}/lib/mocha/integration/test_unit/gem_version_203_to_220.rb
+${GEM_LIBDIR}/lib/mocha/integration/test_unit/gem_version_230_to_233.rb
${GEM_LIBDIR}/lib/mocha/integration/test_unit/ruby_version_185_and_below.rb
${GEM_LIBDIR}/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb
${GEM_LIBDIR}/lib/mocha/is_a.rb
${GEM_LIBDIR}/lib/mocha/logger.rb
-${GEM_LIBDIR}/lib/mocha/metaclass.rb
${GEM_LIBDIR}/lib/mocha/method_matcher.rb
${GEM_LIBDIR}/lib/mocha/mock.rb
${GEM_LIBDIR}/lib/mocha/mockery.rb
@@ -87,16 +102,20 @@ ${GEM_LIBDIR}/lib/mocha/single_yield.rb
${GEM_LIBDIR}/lib/mocha/standalone.rb
${GEM_LIBDIR}/lib/mocha/state_machine.rb
${GEM_LIBDIR}/lib/mocha/stubbing_error.rb
+${GEM_LIBDIR}/lib/mocha/thrower.rb
${GEM_LIBDIR}/lib/mocha/unexpected_invocation.rb
+${GEM_LIBDIR}/lib/mocha/version.rb
${GEM_LIBDIR}/lib/mocha/yield_parameters.rb
${GEM_LIBDIR}/lib/mocha_standalone.rb
${GEM_LIBDIR}/lib/stubba.rb
+${GEM_LIBDIR}/mocha.gemspec
${GEM_LIBDIR}/test/acceptance/acceptance_test_helper.rb
${GEM_LIBDIR}/test/acceptance/api_test.rb
${GEM_LIBDIR}/test/acceptance/bug_18914_test.rb
${GEM_LIBDIR}/test/acceptance/bug_21465_test.rb
${GEM_LIBDIR}/test/acceptance/bug_21563_test.rb
${GEM_LIBDIR}/test/acceptance/exception_rescue_test.rb
+${GEM_LIBDIR}/test/acceptance/expectations_on_multiple_methods_test.rb
${GEM_LIBDIR}/test/acceptance/expected_invocation_count_test.rb
${GEM_LIBDIR}/test/acceptance/failure_messages_test.rb
${GEM_LIBDIR}/test/acceptance/minitest_test.rb
@@ -109,13 +128,24 @@ ${GEM_LIBDIR}/test/acceptance/multiple_expectations_failure_message_test.rb
${GEM_LIBDIR}/test/acceptance/optional_parameters_test.rb
${GEM_LIBDIR}/test/acceptance/parameter_matcher_test.rb
${GEM_LIBDIR}/test/acceptance/partial_mocks_test.rb
+${GEM_LIBDIR}/test/acceptance/raise_exception_test.rb
${GEM_LIBDIR}/test/acceptance/return_value_test.rb
${GEM_LIBDIR}/test/acceptance/sequence_test.rb
${GEM_LIBDIR}/test/acceptance/states_test.rb
${GEM_LIBDIR}/test/acceptance/stub_any_instance_method_test.rb
-${GEM_LIBDIR}/test/acceptance/stub_class_method_test.rb
+${GEM_LIBDIR}/test/acceptance/stub_class_method_defined_on_active_record_association_proxy_test.rb
+${GEM_LIBDIR}/test/acceptance/stub_class_method_defined_on_class_test.rb
+${GEM_LIBDIR}/test/acceptance/stub_class_method_defined_on_module_test.rb
+${GEM_LIBDIR}/test/acceptance/stub_class_method_defined_on_superclass_test.rb
${GEM_LIBDIR}/test/acceptance/stub_everything_test.rb
-${GEM_LIBDIR}/test/acceptance/stub_instance_method_test.rb
+${GEM_LIBDIR}/test/acceptance/stub_instance_method_defined_on_active_record_association_proxy_test.rb
+${GEM_LIBDIR}/test/acceptance/stub_instance_method_defined_on_class_and_aliased_test.rb
+${GEM_LIBDIR}/test/acceptance/stub_instance_method_defined_on_class_test.rb
+${GEM_LIBDIR}/test/acceptance/stub_instance_method_defined_on_kernel_module_test.rb
+${GEM_LIBDIR}/test/acceptance/stub_instance_method_defined_on_module_test.rb
+${GEM_LIBDIR}/test/acceptance/stub_instance_method_defined_on_object_class_test.rb
+${GEM_LIBDIR}/test/acceptance/stub_instance_method_defined_on_singleton_class_test.rb
+${GEM_LIBDIR}/test/acceptance/stub_instance_method_defined_on_superclass_test.rb
${GEM_LIBDIR}/test/acceptance/stub_module_method_test.rb
${GEM_LIBDIR}/test/acceptance/stub_test.rb
${GEM_LIBDIR}/test/acceptance/stubba_example_test.rb
@@ -130,6 +160,7 @@ ${GEM_LIBDIR}/test/acceptance/stubbing_non_public_any_instance_method_test.rb
${GEM_LIBDIR}/test/acceptance/stubbing_non_public_class_method_test.rb
${GEM_LIBDIR}/test/acceptance/stubbing_non_public_instance_method_test.rb
${GEM_LIBDIR}/test/acceptance/stubbing_on_non_mock_object_test.rb
+${GEM_LIBDIR}/test/acceptance/throw_test.rb
${GEM_LIBDIR}/test/acceptance/unstubbing_test.rb
${GEM_LIBDIR}/test/deprecation_disabler.rb
${GEM_LIBDIR}/test/execution_point.rb
@@ -152,7 +183,6 @@ ${GEM_LIBDIR}/test/unit/expectation_list_test.rb
${GEM_LIBDIR}/test/unit/expectation_test.rb
${GEM_LIBDIR}/test/unit/hash_inspect_test.rb
${GEM_LIBDIR}/test/unit/in_state_ordering_constraint_test.rb
-${GEM_LIBDIR}/test/unit/metaclass_test.rb
${GEM_LIBDIR}/test/unit/method_matcher_test.rb
${GEM_LIBDIR}/test/unit/mock_test.rb
${GEM_LIBDIR}/test/unit/mockery_test.rb
@@ -184,5 +214,6 @@ ${GEM_LIBDIR}/test/unit/single_return_value_test.rb
${GEM_LIBDIR}/test/unit/single_yield_test.rb
${GEM_LIBDIR}/test/unit/state_machine_test.rb
${GEM_LIBDIR}/test/unit/string_inspect_test.rb
+${GEM_LIBDIR}/test/unit/thrower_test.rb
${GEM_LIBDIR}/test/unit/yield_parameters_test.rb
${GEM_HOME}/specifications/${GEM_NAME}.gemspec
diff --git a/devel/ruby-mocha/distinfo b/devel/ruby-mocha/distinfo
index 6b6359225c4..222e46078a0 100644
--- a/devel/ruby-mocha/distinfo
+++ b/devel/ruby-mocha/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.7 2011/06/18 01:47:54 taca Exp $
+$NetBSD: distinfo,v 1.8 2011/09/12 11:50:51 taca Exp $
-SHA1 (mocha-0.9.12.gem) = 9608f143af20514be95ac4385f693f9fe865acb6
-RMD160 (mocha-0.9.12.gem) = e15617c7074d1e7fea24f5344341a805bbbbc3df
-Size (mocha-0.9.12.gem) = 67584 bytes
+SHA1 (mocha-0.10.0.gem) = 9fe4c957e1eb1634d97e8621ce62e3e8330b7ec7
+RMD160 (mocha-0.10.0.gem) = 96075a586c50e8fdadd3017ef72b2b4bc48c5e27
+Size (mocha-0.10.0.gem) = 71168 bytes