pronto-poper 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd6d517969af10d2f806fcf26a574cc87e9967f0
4
- data.tar.gz: 62938a9dd164bcb7c9b40f8b90c0dc3afd9d76f4
3
+ metadata.gz: 71a7226bebd8045ca9b5c2d98504cfbbe97e65a3
4
+ data.tar.gz: 00a5ee49e20ec241844e7772676010af26183e91
5
5
  SHA512:
6
- metadata.gz: b901b22c297fa4d69ad9345854b81f2460dc904e81fea2d87f7739f6318744284d079145806c26240797dba07343b66b7f0267844099be3732593c5eb91c6084
7
- data.tar.gz: e6862f50fec5df8fa91ca92734034b2e45b5e11ab21b44ca40e6993c1416b415773f352e9ba04642a35eb0c808e1239307ed117c6ee51c9a2f3917a2b0c2d880
6
+ metadata.gz: 28bf898973ca8ab46d3da81733dbfb13eabcf4050ecb040f3916ae8086344a68455c72c01a34514f19a636aff60127500bc644cb1e53a9f5131a7fe9ab66765b
7
+ data.tar.gz: 1c7f1167f515e4ba93bac71cc1c0347d3b21e042ba6f053eefd147437b273748fab931d1217de8be8a4208e742e5a3753463084a32f07cb22ae2936d93262349
@@ -1,5 +1,5 @@
1
1
  module Pronto
2
2
  module PoperVersion
3
- VERSION = '0.4.0'
3
+ VERSION = '0.4.1'
4
4
  end
5
5
  end
data/lib/pronto/poper.rb CHANGED
@@ -7,15 +7,14 @@ module Pronto
7
7
  return [] unless patches
8
8
 
9
9
  poper_runner = ::Poper::Runner.new(commit, patches.repo.path.to_s)
10
- errors = poper_runner.run
11
10
 
12
- messages_for(errors)
11
+ poper_runner.run
12
+ .select { |error| error.commit != commit }
13
+ .map { |error| message_for(error) }
13
14
  end
14
15
 
15
- def messages_for(errors)
16
- errors.map do |error|
17
- Message.new(nil, nil, :warning, error.message.capitalize, error.commit)
18
- end
16
+ def message_for(error)
17
+ Message.new(nil, nil, :warning, error.message.capitalize, error.commit)
19
18
  end
20
19
  end
21
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pronto-poper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mindaugas Mozūras
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-27 00:00:00.000000000 Z
11
+ date: 2015-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pronto
@@ -44,28 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '10.3'
47
+ version: '10.4'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '10.3'
54
+ version: '10.4'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '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.0'
68
+ version: '3.3'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec-its
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -110,9 +110,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  version: 1.3.6
111
111
  requirements: []
112
112
  rubyforge_project:
113
- rubygems_version: 2.2.2
113
+ rubygems_version: 2.4.5
114
114
  signing_key:
115
115
  specification_version: 4
116
116
  summary: Pronto runner for Poper, git commit message analyzer
117
117
  test_files: []
118
- has_rdoc: