linterbot 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/linterbot/patch.rb +3 -1
- data/lib/linterbot/version.rb +1 -1
- data/linterbot.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53c03a4718400fc74b97c12ee8d62c41e065fc91
|
4
|
+
data.tar.gz: acc6d4a0c18633f2acd72f47b08d1a4c59088092
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a41c7d577e5076f4af79612af0e7bfc0b63861d75d78a85138cfb74dcd103abe115f3262792ff8859c3073175dd5faaaf0edf5a171c25a4c039c56afb3294f1b
|
7
|
+
data.tar.gz: e1f3b1fe1da105f5358d84973611d05ce675f2d4f17bdb82a1e3cb21669b40a4f9837f6ce2993d1f2a8a0f3bcce97fd69e627c36dbda2a5140a7bbf50237860c
|
data/.gitignore
CHANGED
data/lib/linterbot/patch.rb
CHANGED
@@ -17,7 +17,9 @@ module Linterbot
|
|
17
17
|
def additions_ranges
|
18
18
|
chunks_headers.map do |diff_header, line_number|
|
19
19
|
match = diff_header.match(MODIFIED_FILE_DIFF_REGEXP)
|
20
|
-
|
20
|
+
line_start = match[1].to_i
|
21
|
+
line_end = line_start + match[2].to_i
|
22
|
+
[line_start...line_end, line_number]
|
21
23
|
end
|
22
24
|
end
|
23
25
|
|
data/lib/linterbot/version.rb
CHANGED
data/linterbot.gemspec
CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.add_development_dependency "bundler", "~> 1.11"
|
28
28
|
spec.add_development_dependency "rake", "~> 10.0"
|
29
29
|
spec.add_development_dependency "rspec", "~> 3.0"
|
30
|
-
spec.add_development_dependency "pry-byebug", "~> 3.3
|
30
|
+
spec.add_development_dependency "pry-byebug", "~> 3.3"
|
31
31
|
|
32
32
|
spec.add_dependency "octokit", "~> 4.2"
|
33
33
|
spec.add_dependency "commander", "~> 4.3"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linterbot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guido Marucci Blas
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 3.3
|
61
|
+
version: '3.3'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 3.3
|
68
|
+
version: '3.3'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: octokit
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|