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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cce54b3ca86af1db3baa979278f68036d03da1a5
4
- data.tar.gz: e3df14ecdf920e210fdb35f868db099fbc66e9b9
3
+ metadata.gz: 53c03a4718400fc74b97c12ee8d62c41e065fc91
4
+ data.tar.gz: acc6d4a0c18633f2acd72f47b08d1a4c59088092
5
5
  SHA512:
6
- metadata.gz: e54bcb55cb4aeb26371740bfdd6d08623170f768bd3d1aa692cc13de8067d376c15dacc4c7726cccb6e05cc2155232f0c42736dfdc257b7e9863c25b0ba45971
7
- data.tar.gz: 2062dbecbe6e8ea52fc148728f7974b3f4ae2596e69de932caa2f1a62ba086aecee54995e13a32816a7c69496a70bdfe4a4ae80744bab42ab75cda7288e4339d
6
+ metadata.gz: a41c7d577e5076f4af79612af0e7bfc0b63861d75d78a85138cfb74dcd103abe115f3262792ff8859c3073175dd5faaaf0edf5a171c25a4c039c56afb3294f1b
7
+ data.tar.gz: e1f3b1fe1da105f5358d84973611d05ce675f2d4f17bdb82a1e3cb21669b40a4f9837f6ce2993d1f2a8a0f3bcce97fd69e627c36dbda2a5140a7bbf50237860c
data/.gitignore CHANGED
@@ -9,3 +9,4 @@
9
9
  /tmp/
10
10
 
11
11
  .linterbot.yml
12
+ vendor
@@ -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
- [match[1].to_i...match[2].to_i, line_number]
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
 
@@ -1,3 +1,3 @@
1
1
  module Linterbot
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
@@ -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.0"
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.6
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: 2016-10-21 00:00:00.000000000 Z
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.0
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.0
68
+ version: '3.3'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: octokit
71
71
  requirement: !ruby/object:Gem::Requirement