pronto-undercover 0.1.3 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 36c190ee3c0a90197563bf705f2acae68e02f38aa9f5099219d220045819cfbb
4
- data.tar.gz: 778c4f02ddb90de21f84a488d711880ac1fada51ecabec8b68f9362e7209e0f0
3
+ metadata.gz: 548420a442b234b3b1f27d2487bf4737d831f1bd190ec611d523921acaec03d3
4
+ data.tar.gz: ba2c46649307c3cbec11a1ce01e2609231593796ad5d97b299ffd58a684ffbc4
5
5
  SHA512:
6
- metadata.gz: 040a0a2d26aa4e2133fd39b3e5fec2496cf877ed78f0cf474c0d97894711e86f826faa311914764d103ae734342cc613ee5830d5e3baa788d47a3ec766b52dc8
7
- data.tar.gz: e6ff17f212391c3bd1cee95c70fc6723f062e57a7a4b2adcf78462ff8fa2d6bfdc17445f162c19e520f6d45bd2db9f78ac79a73c55f07f420cf0d7f0ae48b04a
6
+ metadata.gz: d1de1b50badeef015e2dedeb979a2967945e4c6affb7d4324dfaa65d767d0508305eb59ad094ba3e4561b67dcc9efd931f0fcd4a02d537000b2deac0897d4e15
7
+ data.tar.gz: 4e6f1cedd2e5de4c7e316a69e2f06bdcf5b1f513bcf9e7cede2873a632c3d245d1c16dc538909ced697e66df1834dda1ef36aaa7ff066b7477f995651c211186
@@ -0,0 +1,8 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ time: "04:00"
8
+ open-pull-requests-limit: 10
data/.rubocop.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.4.4
2
+ TargetRubyVersion: 2.5
3
+ NewCops: enable
3
4
 
4
5
  Style/RegexpLiteral:
5
6
  EnforcedStyle: slashes
data/.travis.yml CHANGED
@@ -1,7 +1,14 @@
1
- sudo: false
2
1
  language: ruby
2
+ dist: focal
3
3
  rvm:
4
- - 2.5.1
5
- - 2.4.4
6
- - 2.3.4
7
- before_install: gem install bundler -v 1.16.2
4
+ - 2.7.1
5
+ - 2.6.6
6
+ - 2.5.8
7
+ - 3.0.2
8
+ before_install:
9
+ - gem install bundler undercover
10
+ - gem update --system
11
+ script:
12
+ - bundle exec rake
13
+ - git pull origin master:master
14
+ - undercover --compare master
data/CHANGELOG.md ADDED
@@ -0,0 +1,32 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
+ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## [0.2.0] - 2021-10-19
10
+ ### Added
11
+ - Update `undercover` to `0.4.3`, now with coverage support (@korrs)
12
+
13
+ ## [0.1.6] - 2020-02-06
14
+ ### Changed
15
+ - Update pronto dependency
16
+
17
+ ## [0.1.5] - 2019-03-19
18
+ ### Added
19
+ - Use flagged_results accessor by @yassinecc
20
+
21
+ ## [0.1.4] - 2019-03-19
22
+ ### Added
23
+ - This `CHANGELOG.md`
24
+
25
+ ### Changed
26
+ - support `pronto >= 0.9`
27
+
28
+ [Unreleased]: https://github.com/grodowski/pronto-undercover/compare/v0.2.0...HEAD
29
+ [0.2.0]: https://github.com/grodowski/pronto-undercover/compare/v0.1.6...v0.2.0
30
+ [0.1.6]: https://github.com/grodowski/pronto-undercover/compare/v0.1.5...v0.1.6
31
+ [0.1.5]: https://github.com/grodowski/pronto-undercover/compare/v0.1.4...v0.1.5
32
+ [0.1.4]: https://github.com/grodowski/pronto-undercover/compare/v0.1.3...v0.1.4
@@ -55,7 +55,7 @@ module Pronto
55
55
  def undercover_warnings
56
56
  @undercover_warnings ||= ::Undercover::Report.new(
57
57
  @patch_changeset, undercover_options
58
- ).build.build_warnings
58
+ ).build.flagged_results
59
59
  end
60
60
 
61
61
  def offending_line_numbers(patch)
@@ -75,7 +75,6 @@ module Pronto
75
75
  end.compact
76
76
  end
77
77
 
78
- # rubocop:disable Metrics/AbcSize
79
78
  def undercover_options
80
79
  config = Pronto::ConfigFile.new.to_h['pronto-undercover']
81
80
  return ::Undercover::Options.new.parse([]) unless config
@@ -86,6 +85,5 @@ module Pronto
86
85
  opts << "-p#{config['path']}" if config['path']
87
86
  ::Undercover::Options.new.parse(opts)
88
87
  end
89
- # rubocop:enable Metrics/AbcSize
90
88
  end
91
89
  end
data/lib/version.rb CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Pronto
4
4
  module UndercoverVersion
5
- VERSION = '0.1.3'
5
+ VERSION = '0.2.0'
6
6
  end
7
7
  end
@@ -18,11 +18,12 @@ Gem::Specification.new do |spec|
18
18
  f.match(/^(test|spec|features)\//)
19
19
  end
20
20
  spec.require_paths = ['lib']
21
+ spec.required_ruby_version = '>= 2.5'
21
22
 
22
- spec.add_dependency 'pronto', '~> 0.9.0'
23
- spec.add_dependency 'undercover', '~> 0.3.0'
23
+ spec.add_dependency 'pronto', '>= 0.9', '< 0.12'
24
+ spec.add_dependency 'undercover', '~> 0.4.3'
24
25
  spec.add_development_dependency 'pry'
25
- spec.add_development_dependency 'rake', '~> 10.0'
26
+ spec.add_development_dependency 'rake', '~> 13.0'
26
27
  spec.add_development_dependency 'rspec', '~> 3.0'
27
28
  spec.add_development_dependency 'rubocop'
28
29
  spec.add_development_dependency 'simplecov'
metadata CHANGED
@@ -1,43 +1,49 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pronto-undercover
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Grodowski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-21 00:00:00.000000000 Z
11
+ date: 2021-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pronto
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.0
19
+ version: '0.9'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '0.12'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.9'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: 0.9.0
32
+ version: '0.12'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: undercover
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - "~>"
32
38
  - !ruby/object:Gem::Version
33
- version: 0.3.0
39
+ version: 0.4.3
34
40
  type: :runtime
35
41
  prerelease: false
36
42
  version_requirements: !ruby/object:Gem::Requirement
37
43
  requirements:
38
44
  - - "~>"
39
45
  - !ruby/object:Gem::Version
40
- version: 0.3.0
46
+ version: 0.4.3
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: pry
43
49
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +64,14 @@ dependencies:
58
64
  requirements:
59
65
  - - "~>"
60
66
  - !ruby/object:Gem::Version
61
- version: '10.0'
67
+ version: '13.0'
62
68
  type: :development
63
69
  prerelease: false
64
70
  version_requirements: !ruby/object:Gem::Requirement
65
71
  requirements:
66
72
  - - "~>"
67
73
  - !ruby/object:Gem::Version
68
- version: '10.0'
74
+ version: '13.0'
69
75
  - !ruby/object:Gem::Dependency
70
76
  name: rspec
71
77
  requirement: !ruby/object:Gem::Requirement
@@ -157,10 +163,12 @@ executables: []
157
163
  extensions: []
158
164
  extra_rdoc_files: []
159
165
  files:
166
+ - ".github/dependabot.yml"
160
167
  - ".gitignore"
161
168
  - ".rspec"
162
169
  - ".rubocop.yml"
163
170
  - ".travis.yml"
171
+ - CHANGELOG.md
164
172
  - Gemfile
165
173
  - LICENSE.txt
166
174
  - README.md
@@ -181,15 +189,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
181
189
  requirements:
182
190
  - - ">="
183
191
  - !ruby/object:Gem::Version
184
- version: '0'
192
+ version: '2.5'
185
193
  required_rubygems_version: !ruby/object:Gem::Requirement
186
194
  requirements:
187
195
  - - ">="
188
196
  - !ruby/object:Gem::Version
189
197
  version: '0'
190
198
  requirements: []
191
- rubyforge_project:
192
- rubygems_version: 2.7.6
199
+ rubygems_version: 3.2.22
193
200
  signing_key:
194
201
  specification_version: 4
195
202
  summary: Pronto runner for Undercover - actionable code coverage