pronto 0.7.0 → 0.7.1

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
  SHA1:
3
- metadata.gz: ed857182c87afee371e2822b26f8303a42cd848a
4
- data.tar.gz: 152bd31948ddf2b999dbc7334c5292842e99ffcd
3
+ metadata.gz: a27da5811cbcfa71ddffc5842dc3295214206496
4
+ data.tar.gz: 233865c5cf619728fcd26dfbf3607feb0d5fed51
5
5
  SHA512:
6
- metadata.gz: c06cb847d4a953da70c9b79944a55d7b93058c49e737cd898d7247ca803ea00960b8343395b0376cea0efc2c2d18bda55ae6cd52a65aa60d391e55aa95b16a86
7
- data.tar.gz: 181ab9b31d663a84e3a49c38d4e59826cda02f7cf047813dc92c8d4350ea81c6940da803b5109c7c031f918edd5c2cb79f31992179c922b76a1dcbe34a95a020
6
+ metadata.gz: b9fb4cb872bca3c99d59ffe3a931dfac4911c617363a72f3307353792e514390fe5995382f11897da40694653e8029a8d181ed7a453aef27b0a79ba318a6423b
7
+ data.tar.gz: fa1ff35ec5743311ff86453f2487a14903e40c9ea00b6df04a507dc2949d696957c6067d7d4dfee9e0e6412d0fc3331394f1db247e399157d62d75fd2723c45a
@@ -1,7 +1,14 @@
1
1
  # Changelog
2
2
 
3
- ## Unreleased
3
+ ## 0.7.1
4
4
 
5
+ ### Changes
6
+
7
+ * Remove support for Ruby 1.9.3.
8
+
9
+ ## Bugs fixed
10
+
11
+ * [#149](https://github.com/mmozuras/pronto/issues/149): Use patches to correctly find line position for GitHub pull request formatter.
5
12
 
6
13
  ## 0.7.0
7
14
 
data/README.md CHANGED
@@ -211,7 +211,8 @@ Currently available:
211
211
  * [pronto-brakeman](https://github.com/mmozuras/pronto-brakeman)
212
212
  * [pronto-coffeelint](https://github.com/siebertm/pronto-coffeelint)
213
213
  * [pronto-credo](https://github.com/carakan/pronto-credo)
214
- * [pronto-eslint](https://github.com/mmozuras/pronto-eslint)
214
+ * [pronto-eslint](https://github.com/mmozuras/pronto-eslint) (uses [eslintrb](https://github.com/zendesk/eslintrb))
215
+ * [pronto-eslint_npm](https://github.com/doits/pronto-eslint_npm) (uses eslint installed from npm)
215
216
  * [pronto-fasterer](https://github.com/mmozuras/pronto-fasterer)
216
217
  * [pronto-flay](https://github.com/mmozuras/pronto-flay)
217
218
  * [pronto-foodcritic](https://github.com/mmozuras/pronto-foodcritic)
@@ -226,6 +227,7 @@ Currently available:
226
227
  * [pronto-reek](https://github.com/mmozuras/pronto-reek)
227
228
  * [pronto-rubocop](https://github.com/mmozuras/pronto-rubocop)
228
229
  * [pronto-scss](https://github.com/mmozuras/pronto-scss)
230
+ * [pronto-slim](https://github.com/nysthee/pronto-slim)
229
231
  * [pronto-spell](https://github.com/mmozuras/pronto-spell)
230
232
  * [pronto-swiftlint](https://github.com/ajanauskas/pronto-swiftlint)
231
233
  * [pronto-tailor](https://github.com/ajanauskas/pronto-tailor)
@@ -9,7 +9,7 @@ module Pronto
9
9
  'BitBucket'
10
10
  end
11
11
 
12
- def line_number(message)
12
+ def line_number(message, _)
13
13
  message.line.new_lineno
14
14
  end
15
15
  end
@@ -6,7 +6,7 @@ module Pronto
6
6
  grouped_comments(comments)
7
7
  end
8
8
 
9
- def line_number(message)
9
+ def line_number(message, _)
10
10
  message.line.new_lineno
11
11
  end
12
12
 
@@ -63,10 +63,10 @@ module Pronto
63
63
  comments.map { |comment| "- #{comment.body}" }.join("\n")
64
64
  end
65
65
 
66
- def new_comment(message, _patches, sha)
66
+ def new_comment(message, patches, sha)
67
67
  body = message.msg
68
68
  path = message.path
69
- lineno = line_number(message)
69
+ lineno = line_number(message, patches)
70
70
 
71
71
  Comment.new(sha, body, path, lineno)
72
72
  end
@@ -9,8 +9,8 @@ module Pronto
9
9
  'GitHub'
10
10
  end
11
11
 
12
- def line_number(message)
13
- message.line.commit_line.position
12
+ def line_number(message, _)
13
+ message.line.commit_line.position if message.line
14
14
  end
15
15
  end
16
16
  end
@@ -8,6 +8,11 @@ module Pronto
8
8
  def pretty_name
9
9
  'GitHub'
10
10
  end
11
+
12
+ def line_number(message, patches)
13
+ line = patches.find_line(message.full_path, message.line.new_lineno)
14
+ line.position
15
+ end
11
16
  end
12
17
  end
13
18
  end
@@ -9,7 +9,7 @@ module Pronto
9
9
  'GitLab'
10
10
  end
11
11
 
12
- def line_number(message)
12
+ def line_number(message, _)
13
13
  message.line.commit_line.new_lineno
14
14
  end
15
15
  end
@@ -6,7 +6,7 @@ module Pronto
6
6
  grouped_comments(comments)
7
7
  end
8
8
 
9
- def line_number(message)
9
+ def line_number(message, _)
10
10
  message.line.line.new_lineno
11
11
  end
12
12
 
@@ -1,6 +1,6 @@
1
1
  module Pronto
2
2
  module Version
3
- STRING = '0.7.0'.freeze
3
+ STRING = '0.7.1'.freeze
4
4
 
5
5
  MSG = '%s (running on %s %s %s)'.freeze
6
6
 
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  EOF
21
21
 
22
22
  s.licenses = ['MIT']
23
- s.required_ruby_version = '>= 1.9.3'
23
+ s.required_ruby_version = '>= 2.0.0'
24
24
  s.rubygems_version = '1.8.23'
25
25
 
26
26
  s.files = `git ls-files`.split($RS).reject do |file|
@@ -52,6 +52,6 @@ Gem::Specification.new do |s|
52
52
  s.add_development_dependency('rspec-expectations', '~> 3.4')
53
53
  s.add_development_dependency('bundler', '~> 1.3')
54
54
  s.add_development_dependency('simplecov', '~> 0.11')
55
- s.add_development_dependency('rubocop', '~> 0.39.0')
56
- s.add_development_dependency('pronto-rubocop', '~> 0.6.2')
55
+ s.add_development_dependency('rubocop', '~> 0.42')
56
+ s.add_development_dependency('pronto-rubocop', '~> 0.7.0')
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pronto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
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: 2016-08-07 00:00:00.000000000 Z
11
+ date: 2016-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rugged
@@ -202,28 +202,28 @@ dependencies:
202
202
  requirements:
203
203
  - - "~>"
204
204
  - !ruby/object:Gem::Version
205
- version: 0.39.0
205
+ version: '0.42'
206
206
  type: :development
207
207
  prerelease: false
208
208
  version_requirements: !ruby/object:Gem::Requirement
209
209
  requirements:
210
210
  - - "~>"
211
211
  - !ruby/object:Gem::Version
212
- version: 0.39.0
212
+ version: '0.42'
213
213
  - !ruby/object:Gem::Dependency
214
214
  name: pronto-rubocop
215
215
  requirement: !ruby/object:Gem::Requirement
216
216
  requirements:
217
217
  - - "~>"
218
218
  - !ruby/object:Gem::Version
219
- version: 0.6.2
219
+ version: 0.7.0
220
220
  type: :development
221
221
  prerelease: false
222
222
  version_requirements: !ruby/object:Gem::Requirement
223
223
  requirements:
224
224
  - - "~>"
225
225
  - !ruby/object:Gem::Version
226
- version: 0.6.2
226
+ version: 0.7.0
227
227
  description: |2
228
228
  Pronto runs analysis quickly by checking only the relevant changes. Created
229
229
  to be used on pull requests, but suited for other scenarios as well. Perfect
@@ -295,7 +295,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
295
295
  requirements:
296
296
  - - ">="
297
297
  - !ruby/object:Gem::Version
298
- version: 1.9.3
298
+ version: 2.0.0
299
299
  required_rubygems_version: !ruby/object:Gem::Requirement
300
300
  requirements:
301
301
  - - ">="