git_diff 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -6
- data/lib/git_diff/line_number_range.rb +1 -1
- data/lib/git_diff/version.rb +1 -1
- data/test/line_number_range_test.rb +8 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 672b777fb8790a44f2e6b01556af296002a51951
|
4
|
+
data.tar.gz: 9b3070e4bdc69fbae0f2d037bc6523f899ff2f41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72bb72337221cee7f29073f6d4d4902858558413b86792cea4ed09cedf20db2ed51cd859ad32a0819020b3640000727a43a502d1dfeb0c46156d0488968c8d5c
|
7
|
+
data.tar.gz: 43b3bb333a718a2c56f5ddb671ef6b10daaf2dd7c314689b5b8d7d34e3e613ec0a08a80eb2c033df5638d6d5a602cf8c1c38a202f6626e5eaef0db6a04cd7cae
|
data/.travis.yml
CHANGED
data/lib/git_diff/version.rb
CHANGED
@@ -6,7 +6,7 @@ class LineNumberRangeTest < Minitest::Test
|
|
6
6
|
range = GitDiff::LineNumberRange.from_string("")
|
7
7
|
|
8
8
|
assert_equal 0, range.start
|
9
|
-
assert_equal
|
9
|
+
assert_equal 1, range.number_of_lines
|
10
10
|
end
|
11
11
|
|
12
12
|
def test_from_string_with_not_empty_string
|
@@ -16,6 +16,13 @@ class LineNumberRangeTest < Minitest::Test
|
|
16
16
|
assert_equal 7, range.number_of_lines
|
17
17
|
end
|
18
18
|
|
19
|
+
def test_from_string_with_start_no_count
|
20
|
+
range = GitDiff::LineNumberRange.from_string("180")
|
21
|
+
|
22
|
+
assert_equal 180, range.start
|
23
|
+
assert_equal 1, range.number_of_lines
|
24
|
+
end
|
25
|
+
|
19
26
|
def test_to_s
|
20
27
|
range = GitDiff::LineNumberRange.from_string("180,7")
|
21
28
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git_diff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Olson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
version: '0'
|
120
120
|
requirements: []
|
121
121
|
rubyforge_project:
|
122
|
-
rubygems_version: 2.6.
|
122
|
+
rubygems_version: 2.6.14
|
123
123
|
signing_key:
|
124
124
|
specification_version: 4
|
125
125
|
summary: A Ruby library for parsing git diffs.
|