pronto-reek 0.10.0 → 0.11.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: eadce1e9e58eb90475deae3fa584a826b5c63920a69e38f63eaabb76ac9872bf
4
- data.tar.gz: 82a4e5da5d45eefaa35684b135dc9da07d54e1b707703816cef13b1ee8286b3e
3
+ metadata.gz: ebed4d6ab7362fe0f4f1b37c40c5ba95edaa6a5c1b0f960e20322d613e1c8495
4
+ data.tar.gz: 6005887397fc4ee0ac778ea0a1bb7098487902b4b0fdf0ea4bab4184e92a1b42
5
5
  SHA512:
6
- metadata.gz: c14b0917f7a72f27439ca7a9dbd875688eb7ba4b1509a257f4649c9ee8e0f60305e28d36e89d88c9eae047b3edf60c50e2f8d9e73411c3737e9b5a2247beb82a
7
- data.tar.gz: 15c4524ae596a6780df9b8bc10b9ed7cf380a1ca7dfbb7a3bfbc244c75ba5011b3a2cafac5cf726bcb478f51a0603914a5bd248295120d97d5b625b64c9f6a23
6
+ metadata.gz: 22f5252739818daea901f4d555b532e62a5b8137fe5256c68f8c8885f558c129b7909669d2ec12c0f325a2807b7b184ee6411d53095d6662a12dbcae495915e1
7
+ data.tar.gz: e91411b91f0784f905e8cfb2c02c750e8de205387bf045b23b9ea20babb43293b96f00b7f9b3ba3c6b9be922326f3e3017a058f64ab69f973501b7c6dece533a
@@ -0,0 +1,3 @@
1
+ # Order is important. The last matching pattern takes the most precedence.
2
+ # Default owners for everything in the repo.
3
+ * @prontolabs/core
@@ -0,0 +1,22 @@
1
+ name: Checks
2
+
3
+ on:
4
+ push:
5
+ branches: [ master ]
6
+ pull_request:
7
+ branches: [ master ]
8
+
9
+ jobs:
10
+ ruby:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ ruby: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0']
15
+ steps:
16
+ - uses: actions/checkout@v2
17
+ - uses: ruby/setup-ruby@v1
18
+ with:
19
+ ruby-version: ${{ matrix.ruby }}
20
+ bundler-cache: true
21
+ - name: rake spec
22
+ run: bundle exec rake spec
@@ -4,7 +4,10 @@ require 'reek'
4
4
  module Pronto
5
5
  class Reek < Runner
6
6
  def run
7
- files = ruby_patches.map(&:new_file_full_path)
7
+ files = ruby_patches.map do |patch|
8
+ patch.new_file_full_path.relative_path_from(Pathname.pwd)
9
+ end
10
+
8
11
  configuration = ::Reek::Configuration::AppConfiguration.from_path(nil)
9
12
 
10
13
  smells = files.flat_map do |file|
@@ -30,14 +33,14 @@ module Pronto
30
33
 
31
34
  def new_message(line, error)
32
35
  path = line.patch.delta.new_file[:path]
33
- message = "#{error.message.capitalize} (#{error.smell_type})"
36
+ message = "#{error.message.capitalize} - [#{error.smell_type}](#{error.explanatory_link})"
34
37
 
35
38
  Message.new(path, line, :info, message, nil, self.class)
36
39
  end
37
40
 
38
41
  def patch_for_error(error)
39
42
  ruby_patches.find do |patch|
40
- patch.new_file_full_path.to_s == error.source
43
+ patch.new_file_full_path.relative_path_from(Pathname.pwd).to_s == error.source
41
44
  end
42
45
  end
43
46
  end
@@ -1,5 +1,5 @@
1
1
  module Pronto
2
2
  module ReekVersion
3
- VERSION = '0.10.0'.freeze
3
+ VERSION = '0.11.0'.freeze
4
4
  end
5
5
  end
@@ -32,8 +32,8 @@ Gem::Specification.new do |s|
32
32
  s.extra_rdoc_files = ['LICENSE', 'README.md']
33
33
  s.require_paths = ['lib']
34
34
 
35
- s.add_dependency('pronto', '~> 0.10.0')
36
- s.add_dependency('reek', '>= 4.2', '< 6.0')
35
+ s.add_dependency('pronto', '~> 0.11.0')
36
+ s.add_dependency('reek', '>= 4.2', '< 7.0')
37
37
  s.add_development_dependency('rake', '~> 12.0')
38
38
  s.add_development_dependency('rspec', '~> 3.4')
39
39
  s.add_development_dependency('rspec-its', '~> 1.2')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pronto-reek
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mindaugas Mozūras
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-03 00:00:00.000000000 Z
11
+ date: 2021-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pronto
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.10.0
19
+ version: 0.11.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.10.0
26
+ version: 0.11.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: reek
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: '4.2'
34
34
  - - "<"
35
35
  - !ruby/object:Gem::Version
36
- version: '6.0'
36
+ version: '7.0'
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '4.2'
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
- version: '6.0'
46
+ version: '7.0'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rake
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -94,6 +94,8 @@ extra_rdoc_files:
94
94
  - LICENSE
95
95
  - README.md
96
96
  files:
97
+ - ".github/CODEOWNERS"
98
+ - ".github/workflows/checks.yml"
97
99
  - LICENSE
98
100
  - README.md
99
101
  - lib/pronto/reek.rb
@@ -118,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
120
  - !ruby/object:Gem::Version
119
121
  version: '0'
120
122
  requirements: []
121
- rubygems_version: 3.0.1
123
+ rubygems_version: 3.0.3
122
124
  signing_key:
123
125
  specification_version: 4
124
126
  summary: Pronto runner for Reek, code smell detector for Ruby