commit rubygem-rspec-core for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-rspec-core for openSUSE:Factory checked in at 2016-10-13 11:24:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-rspec-core (Old) and /work/SRC/openSUSE:Factory/.rubygem-rspec-core.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "rubygem-rspec-core" Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-rspec-core/rubygem-rspec-core.changes 2016-09-14 23:31:32.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rspec-core.new/rubygem-rspec-core.changes 2016-10-13 11:24:44.000000000 +0200 @@ -1,0 +2,14 @@ +Sun Oct 2 05:02:36 UTC 2016 - coolo@suse.com + +- updated to version 3.5.4 + see installed Changelog.md + + ### 3.5.4 / 2016-09-30 + [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.5.3...v3.5.4) + + Bug Fixes: + + * Remove accumulated `ExampleGroup` constants when reseting RSpec, + preventing a memory leak. (TravisSpangle, #2328) + +------------------------------------------------------------------- Old: ---- rspec-core-3.5.3.gem New: ---- rspec-core-3.5.4.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-rspec-core.spec ++++++ --- /var/tmp/diff_new_pack.oWWmw9/_old 2016-10-13 11:24:45.000000000 +0200 +++ /var/tmp/diff_new_pack.oWWmw9/_new 2016-10-13 11:24:45.000000000 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-rspec-core -Version: 3.5.3 +Version: 3.5.4 Release: 0 %define mod_name rspec-core %define mod_full_name %{mod_name}-%{version} ++++++ rspec-core-3.5.3.gem -> rspec-core-3.5.4.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Changelog.md new/Changelog.md --- old/Changelog.md 2016-09-02 14:31:34.000000000 +0200 +++ new/Changelog.md 2016-10-01 08:01:30.000000000 +0200 @@ -1,3 +1,11 @@ +### 3.5.4 / 2016-09-30 +[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.5.3...v3.5.4) + +Bug Fixes: + +* Remove accumulated `ExampleGroup` constants when reseting RSpec, + preventing a memory leak. (TravisSpangle, #2328) + ### 3.5.3 / 2016-09-02 [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.5.2...v3.5.3) Files old/checksums.yaml.gz and new/checksums.yaml.gz differ Files old/checksums.yaml.gz.sig and new/checksums.yaml.gz.sig differ Files old/data.tar.gz.sig and new/data.tar.gz.sig differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rspec/core/example_group.rb new/lib/rspec/core/example_group.rb --- old/lib/rspec/core/example_group.rb 2016-09-02 14:31:34.000000000 +0200 +++ new/lib/rspec/core/example_group.rb 2016-10-01 08:01:30.000000000 +0200 @@ -827,6 +827,12 @@ const_scope end + def self.remove_all_constants + constants.each do |constant| + __send__(:remove_const, constant) + end + end + def self.base_name_for(group) return "Anonymous" if group.description.empty? diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rspec/core/option_parser.rb new/lib/rspec/core/option_parser.rb --- old/lib/rspec/core/option_parser.rb 2016-09-02 14:31:35.000000000 +0200 +++ new/lib/rspec/core/option_parser.rb 2016-10-01 08:01:30.000000000 +0200 @@ -93,11 +93,6 @@ options[:failure_exit_code] = code end - parser.on('--dry-run', 'Print the formatter output of your suite without', - ' running any examples or hooks') do |_o| - options[:dry_run] = true - end - parser.on('-X', '--[no-]drb', 'Run examples via DRb.') do |use_drb| options[:drb] = use_drb options[:runner] = RSpec::Core::Invocations::DRbWithFallback.new if use_drb @@ -107,10 +102,6 @@ options[:drb_port] = o.to_i end - parser.on('--init', 'Initialize your project with RSpec.') do |_cmd| - options[:runner] = RSpec::Core::Invocations::InitializeProject.new - end - parser.separator("\n **** Output ****\n\n") parser.on('-f', '--format FORMATTER', 'Choose a formatter.', @@ -163,6 +154,11 @@ end end + parser.on('--dry-run', 'Print the formatter output of your suite without', + ' running any examples or hooks') do |_o| + options[:dry_run] = true + end + parser.on('-w', '--warnings', 'Enable ruby warnings') do $VERBOSE = true end @@ -244,6 +240,10 @@ parser.separator("\n **** Utility ****\n\n") + parser.on('--init', 'Initialize your project with RSpec.') do |_cmd| + options[:runner] = RSpec::Core::Invocations::InitializeProject.new + end + parser.on('-v', '--version', 'Display the version.') do options[:runner] = RSpec::Core::Invocations::PrintVersion.new end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rspec/core/version.rb new/lib/rspec/core/version.rb --- old/lib/rspec/core/version.rb 2016-09-02 14:31:35.000000000 +0200 +++ new/lib/rspec/core/version.rb 2016-10-01 08:01:30.000000000 +0200 @@ -3,7 +3,7 @@ # Version information for RSpec Core. module Version # Current version of RSpec Core, in semantic versioning format. - STRING = '3.5.3' + STRING = '3.5.4' end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rspec/core/world.rb new/lib/rspec/core/world.rb --- old/lib/rspec/core/world.rb 2016-09-02 14:31:35.000000000 +0200 +++ new/lib/rspec/core/world.rb 2016-10-01 08:01:30.000000000 +0200 @@ -38,6 +38,7 @@ # # Reset world to 'scratch' before running suite. def reset + RSpec::ExampleGroups.remove_all_constants example_groups.clear @shared_example_group_registry = nil end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rspec/core.rb new/lib/rspec/core.rb --- old/lib/rspec/core.rb 2016-09-02 14:31:34.000000000 +0200 +++ new/lib/rspec/core.rb 2016-10-01 08:01:30.000000000 +0200 @@ -56,6 +56,7 @@ # they use the runner multiple times within the same process. Users must deal # themselves with re-configuration of RSpec before run. def self.reset + RSpec::ExampleGroups.remove_all_constants @world = nil @configuration = nil end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2016-09-02 14:31:34.000000000 +0200 +++ new/metadata 2016-10-01 08:01:30.000000000 +0200 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: rspec-core version: !ruby/object:Gem::Version - version: 3.5.3 + version: 3.5.4 platform: ruby authors: - Steven Baker @@ -46,7 +46,7 @@ ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ F3MdtaDehhjC -----END CERTIFICATE----- -date: 2016-09-02 00:00:00.000000000 Z +date: 2016-10-01 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: rspec-support @@ -283,6 +283,6 @@ rubygems_version: 2.2.2 signing_key: specification_version: 4 -summary: rspec-core-3.5.3 +summary: rspec-core-3.5.4 test_files: [] has_rdoc: Files old/metadata.gz.sig and new/metadata.gz.sig differ
participants (1)
-
root@hilbert.suse.de