Hello community, here is the log from the commit of package rubygem-simplecov for openSUSE:Factory checked in at 2017-09-14 21:18:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-simplecov (Old) and /work/SRC/openSUSE:Factory/.rubygem-simplecov.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-simplecov" Thu Sep 14 21:18:10 2017 rev:18 rq:526042 version:0.15.1 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-simplecov/rubygem-simplecov.changes 2017-08-16 16:18:54.541627859 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-simplecov.new/rubygem-simplecov.changes 2017-09-14 21:18:32.482489849 +0200 @@ -1,0 +2,10 @@ +Tue Sep 12 12:49:16 UTC 2017 - [email protected] + +- updated to version 0.15.1 + +## Bugfixes + +* Filter directories outside SimpleCov.root that have it as a prefix. See [#617](https://github.com/colszowka/simplecov/pull/617) (thanks @jenseng) +* Fix standard rails profile rails filter (didn't work). See [#618](https://github.com/colszowka/simplecov/pull/618) (thanks @jenseng again!) + +------------------------------------------------------------------- Old: ---- simplecov-0.15.0.gem New: ---- simplecov-0.15.1.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-simplecov.spec ++++++ --- /var/tmp/diff_new_pack.cj76YK/_old 2017-09-14 21:18:33.590333925 +0200 +++ /var/tmp/diff_new_pack.cj76YK/_new 2017-09-14 21:18:33.598332800 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-simplecov -Version: 0.15.0 +Version: 0.15.1 Release: 0 %define mod_name simplecov %define mod_full_name %{mod_name}-%{version} ++++++ simplecov-0.15.0.gem -> simplecov-0.15.1.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.travis.yml new/.travis.yml --- old/.travis.yml 2017-08-14 07:32:08.000000000 +0200 +++ new/.travis.yml 2017-09-11 21:13:07.000000000 +0200 @@ -18,7 +18,7 @@ - 2.2.7 - 2.3.4 - 2.4.1 - - jruby-9.1.12.0 + - jruby-9.1.13.0 - ruby-head - jruby-head diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md 2017-08-14 07:32:08.000000000 +0200 +++ new/CHANGELOG.md 2017-09-11 21:13:07.000000000 +0200 @@ -1,3 +1,11 @@ +0.15.1 (2017-09-11) ([changes](https://github.com/colszowka/simplecov/compare/v0.15.0...v0.15.1)) +======= + +## Bugfixes + +* Filter directories outside SimpleCov.root that have it as a prefix. See [#617](https://github.com/colszowka/simplecov/pull/617) (thanks @jenseng) +* Fix standard rails profile rails filter (didn't work). See [#618](https://github.com/colszowka/simplecov/pull/618) (thanks @jenseng again!) + 0.15.0 (2017-08-14) ([changes](https://github.com/colszowka/simplecov/compare/v0.14.1...v0.15.0)) ======= @@ -271,7 +279,7 @@ * Average hits per line for groups of files is now computed correctly. See [#192](http://github.com/colszowka/simplecov/pull/192) and [#179](http://github.com/colszowka/simplecov/issues/179) (thanks to @graysonwright) - * Compatability with BINARY internal encoding. + * Compatibility with BINARY internal encoding. See [#194](https://github.com/colszowka/simplecov/pull/194) and [#127](https://github.com/colszowka/simplecov/issues/127) (thanks to @justfalter) * Special characters in `SimpleCov.root` are now correctly escaped before being used as a RegExp. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2017-08-14 07:32:08.000000000 +0200 +++ new/README.md 2017-09-11 21:13:07.000000000 +0200 @@ -349,8 +349,7 @@ # :nocov: ``` -The name of the token can be changed to your liking. [Learn more about the nocov feature.][nocov] -[nocov]: https://github.com/colszowka/simplecov/blob/master/features/config_nocov_token.feature +The name of the token can be changed to your liking. [Learn more about the nocov feature.]( https://github.com/colszowka/simplecov/blob/master/features/config_nocov_token.feature) **Note:** You shouldn't have to use the nocov token to skip private methods that are being included in your coverage. If you appropriately test the public interface of your classes and objects you should automatically get full coverage of your private methods. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Rakefile new/Rakefile --- old/Rakefile 2017-08-14 07:32:08.000000000 +0200 +++ new/Rakefile 2017-09-11 21:13:07.000000000 +0200 @@ -1,5 +1,3 @@ -#!/usr/bin/env rake - require "rubygems" require "bundler/setup" Bundler::GemHelper.install_tasks Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/doc/alternate-formatters.md new/doc/alternate-formatters.md --- old/doc/alternate-formatters.md 2017-08-14 07:32:08.000000000 +0200 +++ new/doc/alternate-formatters.md 2017-09-11 21:13:07.000000000 +0200 @@ -33,4 +33,9 @@ #### [simplecov-single_file_reporter](https://github.com/grosser/simplecov-single_file_reporter) *by [Michael Grosser](http://grosser.it)* -A formatter that prints the coverage of the file under test when you run a single test file. \ No newline at end of file +A formatter that prints the coverage of the file under test when you run a single test file. + +#### [simplecov-t_wada](https://github.com/ysksn/simplecov-t_wada) +*by [Yosuke Kabuto](https://github.com/ysksn)* + +t_wada AA formatter for SimpleCov diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/simplecov/defaults.rb new/lib/simplecov/defaults.rb --- old/lib/simplecov/defaults.rb 2017-08-14 07:32:08.000000000 +0200 +++ new/lib/simplecov/defaults.rb 2017-09-11 21:13:07.000000000 +0200 @@ -6,7 +6,7 @@ # Exclude all files outside of simplecov root root_filter = nil add_filter do |src| - root_filter ||= /\A#{Regexp.escape(SimpleCov.root)}/io + root_filter ||= /\A#{Regexp.escape(SimpleCov.root + File::SEPARATOR)}/io src.filename !~ root_filter end end @@ -26,7 +26,7 @@ load_profile "test_frameworks" add_filter %r{^/config/} - add_filter %r{/^/db/} + add_filter %r{^/db/} add_group "Controllers", "app/controllers" add_group "Channels", "app/channels" if defined?(ActionCable) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/simplecov/version.rb new/lib/simplecov/version.rb --- old/lib/simplecov/version.rb 2017-08-14 07:32:08.000000000 +0200 +++ new/lib/simplecov/version.rb 2017-09-11 21:13:07.000000000 +0200 @@ -1,3 +1,3 @@ module SimpleCov - VERSION = "0.15.0".freeze + VERSION = "0.15.1".freeze end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2017-08-14 07:32:08.000000000 +0200 +++ new/metadata 2017-09-11 21:13:07.000000000 +0200 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: simplecov version: !ruby/object:Gem::Version - version: 0.15.0 + version: 0.15.1 platform: ruby authors: - Christoph Olszowka autorequire: bindir: bin cert_chain: [] -date: 2017-08-14 00:00:00.000000000 Z +date: 2017-09-11 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency requirement: !ruby/object:Gem::Requirement @@ -159,6 +159,7 @@ - spec/command_guesser_spec.rb - spec/config_loader_spec.rb - spec/configuration_spec.rb +- spec/defaults_spec.rb - spec/deleted_source_spec.rb - spec/faked_project/Gemfile - spec/faked_project/Rakefile diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/defaults_spec.rb new/spec/defaults_spec.rb --- old/spec/defaults_spec.rb 1970-01-01 01:00:00.000000000 +0100 +++ new/spec/defaults_spec.rb 2017-09-11 21:13:07.000000000 +0200 @@ -0,0 +1,41 @@ +require "helper" + +if SimpleCov.usable? + describe SimpleCov do + skip "requires the default configuration" if ENV["SIMPLECOV_NO_DEFAULTS"] + + context "profiles" do + let(:config_class) do + Class.new do + include SimpleCov::Configuration + + def load_profile(name) + configure(&SimpleCov.profiles[name.to_sym]) + end + end + end + + let(:config) { config_class.new } + + def filtered?(config, filename) + path = File.join(SimpleCov.root, filename) + file = SimpleCov::SourceFile.new(path, [nil, 1, 1, 1, nil, nil, 1, 0, nil, nil]) + config.filters.any? { |filter| filter.matches?(file) } + end + + it "provides a sensible test_frameworks profile" do + config.load_profile(:test_frameworks) + expect(filtered?(config, "foo.rb")).not_to be + expect(filtered?(config, "test/foo.rb")).to be + expect(filtered?(config, "spec/bar.rb")).to be + end + + it "provides a sensible rails profile" do + config.load_profile(:rails) + expect(filtered?(config, "app/models/user.rb")).not_to be + expect(filtered?(config, "db/schema.rb")).to be + expect(filtered?(config, "config/environment.rb")).to be + end + end + end +end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/filters_spec.rb new/spec/filters_spec.rb --- old/spec/filters_spec.rb 2017-08-14 07:32:08.000000000 +0200 +++ new/spec/filters_spec.rb 2017-09-11 21:13:07.000000000 +0200 @@ -155,6 +155,36 @@ end end + context "with the default configuration" do + skip "requires the default configuration" if ENV["SIMPLECOV_NO_DEFAULTS"] + + def a_file(path) + path = File.join(SimpleCov.root, path) unless path.start_with?("/") + SimpleCov::SourceFile.new(path, [nil, 1, 1, 1, nil, nil, 1, 0, nil, nil]) + end + + context "inside the project" do + it "doesn't filter" do + expect(SimpleCov.filtered([a_file("foo.rb")]).count).to eq(1) + end + + it "filters vendor/bundle" do + expect(SimpleCov.filtered([a_file("vendor/bundle/foo.rb")]).count).to eq(0) + end + end + + context "outside the project" do + it "filters" do + expect(SimpleCov.filtered([a_file("/other/path/foo.rb")]).count).to eq(0) + end + + it "filters even if the sibling directory has SimpleCov.root as a prefix" do + sibling_dir = SimpleCov.root + "_cache" + expect(SimpleCov.filtered([a_file(sibling_dir + "/foo.rb")]).count).to eq(0) + end + end + end + describe ".class_for_argument" do it "returns SimpleCov::StringFilter for a string" do expect(SimpleCov::Filter.class_for_argument("filestring")).to eq(SimpleCov::StringFilter)
