git_diff_parser 2.2.0 → 2.3.0

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: 5a39ab2710d525d8674cad580b457c9b91f26d42
4
- data.tar.gz: 06e5e4229ec3638bb07484ef6ca38f68e01353ab
3
+ metadata.gz: c2645c17bdb3a03e0e5e682b09bec26ec55e4c7f
4
+ data.tar.gz: db74ad832ed897a054f903325b1371ca2855c651
5
5
  SHA512:
6
- metadata.gz: b1455c92a35925da353a218db73d6f6f88be0799c037bad628b346f6f67df2232e1ec6de01a86c0935b46d1441705de15864e2cb680577674b242418a85f4469
7
- data.tar.gz: a270ee8fe1e9fde3241d7143b5c5e85bcdfe03a2cd0ffd0b12ba3ae568e844a34e4596e2db2c98a0a17afbf90234a7eb840b7a58615ffe8286911414a9b4458a
6
+ metadata.gz: 2da9a469671eff3420da2e260d4310d6be027e1404f0d2f823208b5eb182b2d0a129483533becaff71e88928d4f41b6849da77adea9d46e780f5cd069a0c38db
7
+ data.tar.gz: e21000998d0d4a425c3da28ddeaa166c8ec57752578e5eed797182068250d0563841fba289061735a01dddb6b79da1e8a2ef5e1bfe020bc2746b634bbf8317e5
File without changes
data/.gitignore CHANGED
File without changes
data/.rspec CHANGED
File without changes
File without changes
File without changes
@@ -3,8 +3,9 @@ sudo: false
3
3
  rvm:
4
4
  - "1.9"
5
5
  - "2.0"
6
- - "2.1"
7
- - "2.2"
6
+ - "2.1.10"
7
+ - "2.2.5"
8
+ - "2.3.1"
8
9
  - "ruby-head"
9
10
  matrix:
10
11
  allow_failures:
File without changes
data/Gemfile CHANGED
File without changes
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
@@ -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
 
@@ -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
- .split("\x0")
19
- .reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ .split("\x0")
19
+ .reject { |f| f.match(%r{^(test|spec|features)/}) }
20
20
  spec.bindir = 'exe'
21
21
  spec.executables = spec
22
- .files
23
- .grep(%r{^exe/}) { |f| File.basename(f) }
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'
File without changes
File without changes
@@ -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
- fail(ArgumentError('number is required')) unless params[:number]
16
- fail(ArgumentError('content is required')) unless params[:content]
17
- fail(ArgumentError('patch_position is required')) unless params[:patch_position]
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
@@ -1,3 +1,3 @@
1
1
  module GitDiffParser
2
- VERSION = '2.2.0'
2
+ VERSION = '2.3.0'.freeze
3
3
  end
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "devDependencies": {
3
- "conventional-changelog": "0.4.3",
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 --overwrite --preset angular --context .conventional-changelog.context.js",
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
  }
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.2.0
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: 2015-10-01 00:00:00.000000000 Z
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.4.5
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.