pludoni_rspec 0.24 → 0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6947e883499f29cbad09c9f09aea5bf9a5eac29436b515792407432eaf138247
4
- data.tar.gz: 2765111a086ee0eab3eaf73a5e2015fe39b06e869deafbb4cb7971579266b3c9
3
+ metadata.gz: 83f51aed79413617c8f7c48d7eeb90b5615ad0a0b4e4c6828ad929cdf5e29bbf
4
+ data.tar.gz: bf2e9390b8a01cb3097d1380e2b2de03def35ca83a70587f0cc01c2bd57a95cc
5
5
  SHA512:
6
- metadata.gz: 180c359a97d17384adc63787531ad2ae7d1c5c7c20c2b871e18a1bd34c5bc77f80c58a474adfb96608f0e3ef18bd1886e74a31050e6cdca317c82053aee1962f
7
- data.tar.gz: 3df6eb2ca61c1f986aad6ccb9416d156672fbe43fd504a6ca9422fcc710df50c19ebb1bdb8f1cff3d2bb7f485edae06931be72123de76a4ae90720962cc90556
6
+ metadata.gz: a362afdf538d8a620959db0ec9bc966a6fd6d83a6a5c3b3c5c534c7f1075e836d2a90d7d478a1dce7d80ed45e1efff35d8d869f78d8dade4fca7dbbc6eaad585
7
+ data.tar.gz: c9a807ead1957f69965cec299965bdc403256e464c4f17d1e3683cd5a1f3392cd7eb896681f07040cdaf85621ad10bb4050c439933cce37b6fb87e5bb7721a0a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ### 0.25
2
+
3
+ - SimpleCov 0.x works again: `skip` is only used when available (SimpleCov 1.0),
4
+ otherwise `add_filter`. 0.23/0.24 raised `undefined method 'skip'` with simplecov 0.22.
5
+
1
6
  ### 0.24
2
7
 
3
8
  - `benchmark` is required explicitly (and declared as dependency). It was loaded
@@ -1,3 +1,3 @@
1
1
  module PludoniRspec
2
- VERSION = "0.24".freeze
2
+ VERSION = "0.25".freeze
3
3
  end
data/lib/pludoni_rspec.rb CHANGED
@@ -55,9 +55,9 @@ module PludoniRspec
55
55
  SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
56
56
  end
57
57
  SimpleCov.start 'rails' do
58
- skip do |source_file|
59
- source_file.lines.count < 10
60
- end
58
+ # SimpleCov 1.0 benennt add_filter in skip um; Projekte mit 0.x weiter unterstützen
59
+ short_file = ->(source_file) { source_file.lines.count < 10 }
60
+ respond_to?(:skip) ? skip(&short_file) : add_filter(&short_file)
61
61
  add_group "Long files" do |src_file|
62
62
  src_file.lines.count > 150
63
63
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pludoni_rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.24'
4
+ version: '0.25'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Wienert
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-11-04 00:00:00.000000000 Z
11
+ date: 2026-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: benchmark