git_diff_parser 2.2.0 → 2.3.0
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 +4 -4
- data/.conventional-changelog.context.js +0 -0
- data/.gitignore +0 -0
- data/.rspec +0 -0
- data/.rubocop.yml +0 -0
- data/.tachikoma.yml +0 -0
- data/.travis.yml +3 -2
- data/CODE_OF_CONDUCT.md +0 -0
- data/Gemfile +0 -0
- data/LICENSE.txt +0 -0
- data/README.md +0 -0
- data/Rakefile +2 -2
- data/bin/setup +2 -0
- data/changelog.md +8 -0
- data/git_diff_parser.gemspec +4 -4
- data/lib/git_diff_parser.rb +0 -0
- data/lib/git_diff_parser/diff_parser.rb +0 -0
- data/lib/git_diff_parser/line.rb +6 -4
- data/lib/git_diff_parser/patch.rb +0 -0
- data/lib/git_diff_parser/patches.rb +0 -0
- data/lib/git_diff_parser/version.rb +1 -1
- data/package.json +2 -2
- data/thoughtbot-hound/LICENSE +0 -0
- 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: c2645c17bdb3a03e0e5e682b09bec26ec55e4c7f
|
4
|
+
data.tar.gz: db74ad832ed897a054f903325b1371ca2855c651
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2da9a469671eff3420da2e260d4310d6be027e1404f0d2f823208b5eb182b2d0a129483533becaff71e88928d4f41b6849da77adea9d46e780f5cd069a0c38db
|
7
|
+
data.tar.gz: e21000998d0d4a425c3da28ddeaa166c8ec57752578e5eed797182068250d0563841fba289061735a01dddb6b79da1e8a2ef5e1bfe020bc2746b634bbf8317e5
|
File without changes
|
data/.gitignore
CHANGED
File without changes
|
data/.rspec
CHANGED
File without changes
|
data/.rubocop.yml
CHANGED
File without changes
|
data/.tachikoma.yml
CHANGED
File without changes
|
data/.travis.yml
CHANGED
data/CODE_OF_CONDUCT.md
CHANGED
File without changes
|
data/Gemfile
CHANGED
File without changes
|
data/LICENSE.txt
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/Rakefile
CHANGED
@@ -10,8 +10,8 @@ task default: :spec
|
|
10
10
|
|
11
11
|
require 'yard'
|
12
12
|
require 'yard/rake/yardoc_task'
|
13
|
-
DOC_FILES = ['lib/**/*.rb']
|
14
|
-
DOC_OPTIONS = ['--debug', '--verbose']
|
13
|
+
DOC_FILES = ['lib/**/*.rb'].freeze
|
14
|
+
DOC_OPTIONS = ['--debug', '--verbose'].freeze
|
15
15
|
YARD::Rake::YardocTask.new(:doc) do |t|
|
16
16
|
t.files = DOC_FILES
|
17
17
|
t.options = DOC_OPTIONS if Rake.application.options.trace
|
data/bin/setup
CHANGED
@@ -2,12 +2,14 @@
|
|
2
2
|
|
3
3
|
require 'open3'
|
4
4
|
unless ENV['CI']
|
5
|
+
$stdout.puts 'bundle install'
|
5
6
|
out, err, status = Open3.capture3(*%w(bundle install))
|
6
7
|
$stdout.puts out
|
7
8
|
$stderr.puts err
|
8
9
|
exit status.exitstatus if !status.exitstatus.nil? && status.exitstatus != 0
|
9
10
|
end
|
10
11
|
unless ENV['CI']
|
12
|
+
$stdout.puts 'npm install'
|
11
13
|
out, err, status = Open3.capture3(*%w(npm install))
|
12
14
|
$stdout.puts out
|
13
15
|
$stderr.puts err
|
data/changelog.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
<a name="2.3.0"></a>
|
2
|
+
# [2.3.0](https://github.com/packsaddle/ruby-git_diff_parser/compare/v2.2.0...v2.3.0) (2016-05-12)
|
3
|
+
|
4
|
+
### Features
|
5
|
+
|
6
|
+
* **line:** expose the line content ([16b8dec](https://github.com/packsaddle/ruby-git_diff_parser/commit/16b8dec))
|
7
|
+
|
8
|
+
|
1
9
|
<a name="2.2.0"></a>
|
2
10
|
# [2.2.0](https://github.com/packsaddle/ruby-git_diff_parser/compare/v2.1.3...v2.2.0) (2015-10-01)
|
3
11
|
|
data/git_diff_parser.gemspec
CHANGED
@@ -15,12 +15,12 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.license = 'MIT'
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`
|
18
|
-
|
19
|
-
|
18
|
+
.split("\x0")
|
19
|
+
.reject { |f| f.match(%r{^(test|spec|features)/}) }
|
20
20
|
spec.bindir = 'exe'
|
21
21
|
spec.executables = spec
|
22
|
-
|
23
|
-
|
22
|
+
.files
|
23
|
+
.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
24
|
spec.require_paths = ['lib']
|
25
25
|
|
26
26
|
spec.add_development_dependency 'bundler', '>= 0'
|
data/lib/git_diff_parser.rb
CHANGED
File without changes
|
File without changes
|
data/lib/git_diff_parser/line.rb
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
module GitDiffParser
|
2
2
|
# Parsed line
|
3
3
|
class Line
|
4
|
-
attr_reader :number, :patch_position
|
4
|
+
attr_reader :content, :number, :patch_position
|
5
|
+
# @!attribute [r] content
|
6
|
+
# @return [String] content
|
5
7
|
# @!attribute [r] number
|
6
8
|
# @return [Integer] line number
|
7
9
|
# @!attribute [r] patch_position
|
@@ -12,9 +14,9 @@ module GitDiffParser
|
|
12
14
|
# @option params [String] :content content (required)
|
13
15
|
# @option params [Integer] :patch_position patch position (required)
|
14
16
|
def initialize(params)
|
15
|
-
|
16
|
-
|
17
|
-
|
17
|
+
raise(ArgumentError('number is required')) unless params[:number]
|
18
|
+
raise(ArgumentError('content is required')) unless params[:content]
|
19
|
+
raise(ArgumentError('patch_position is required')) unless params[:patch_position]
|
18
20
|
@number = params[:number]
|
19
21
|
@content = params[:content]
|
20
22
|
@patch_position = params[:patch_position]
|
File without changes
|
File without changes
|
data/package.json
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"devDependencies": {
|
3
|
-
"conventional-changelog": "
|
3
|
+
"conventional-changelog-cli": "^1.2.0",
|
4
4
|
"npm-check-updates": "^2.2.3",
|
5
5
|
"urijs": "^1.16.1"
|
6
6
|
},
|
7
7
|
"scripts": {
|
8
|
-
"changelog": "conventional-changelog -i changelog.md --
|
8
|
+
"changelog": "conventional-changelog -i changelog.md --same-file --preset angular --context .conventional-changelog.context.js",
|
9
9
|
"ncu": "ncu -u"
|
10
10
|
}
|
11
11
|
}
|
data/thoughtbot-hound/LICENSE
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git_diff_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sanemat
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
102
|
version: '0'
|
103
103
|
requirements: []
|
104
104
|
rubyforge_project:
|
105
|
-
rubygems_version: 2.
|
105
|
+
rubygems_version: 2.5.1
|
106
106
|
signing_key:
|
107
107
|
specification_version: 4
|
108
108
|
summary: Parse `git diff` into patches and lines.
|