pronto-poper 0.5.0 → 0.6.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: 51096b663e5255d39a152b51ab0b867c9011c50f
4
- data.tar.gz: f65c0fefcdfbcea008a543739a9804264e74a338
3
+ metadata.gz: 3ee8dd40af6dacd0be0bbcfbbdb51cd8a886980e
4
+ data.tar.gz: f5a65d09379ab5b0106aa08d8b5e55bb6ff6325b
5
5
  SHA512:
6
- metadata.gz: daa7453bf39868b90e448d3d47a7669357873435002a90efe3a235b446b4f8bb669ba626d4a1ed09a81a8612e347639df76edc13350d15a63463ffa10818f871
7
- data.tar.gz: 66d992ce746521023fe55099c71c3e0c62bf18859648feea5f1bf0bc6d598c4701b682fa2a48d30ae2d04b28c17ca2b54e665ec87c63e6527d54199c1ad3cfb7
6
+ metadata.gz: 2cc3d58e70d56c958d07431a4d4a814ebcb4a0e35b10ddeb83ae011bdc47f1f45f44c596b265d8d4af6211efdcd5838a247d2da2957d74594bb67fe78c8ce646
7
+ data.tar.gz: 0c32d3e494bca04dbcbd50e70d349e6f055a1ccdb9c39852f114dcaedeff859c8f38b8133c1d44dd5c21bfbadb121d4d983d7757b6dba069499e78f2ed16f0d7
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License
2
2
 
3
- Copyright (c) 2015 Mindaugas Mozūras
3
+ Copyright (c) 2016 Mindaugas Mozūras
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/lib/pronto/poper.rb CHANGED
@@ -3,18 +3,19 @@ require 'poper'
3
3
 
4
4
  module Pronto
5
5
  class Poper < Runner
6
- def run(patches, commit)
7
- return [] unless patches
6
+ def run
7
+ return [] unless @patches
8
8
 
9
- poper_runner = ::Poper::Runner.new(commit, patches.repo.path.to_s)
9
+ poper_runner = ::Poper::Runner.new(@commit, repo_path.to_s)
10
10
 
11
11
  poper_runner.run
12
- .select { |error| error.commit != commit }
12
+ .select { |error| error.commit != @commit }
13
13
  .map { |error| message_for(error) }
14
14
  end
15
15
 
16
16
  def message_for(error)
17
- Message.new(nil, nil, :warning, error.message.capitalize, error.commit)
17
+ Message.new(nil, nil, :warning, error.message.capitalize, error.commit,
18
+ self.class)
18
19
  end
19
20
  end
20
21
  end
@@ -1,5 +1,5 @@
1
1
  module Pronto
2
2
  module PoperVersion
3
- VERSION = '0.5.0'
3
+ VERSION = '0.6.0'.freeze
4
4
  end
5
5
  end
data/pronto-poper.gemspec CHANGED
@@ -32,9 +32,9 @@ Gem::Specification.new do |s|
32
32
  s.extra_rdoc_files = ['LICENSE', 'README.md']
33
33
  s.require_paths = ['lib']
34
34
 
35
- s.add_dependency('pronto', '~> 0.5.0')
35
+ s.add_dependency('pronto', '~> 0.6.0')
36
36
  s.add_dependency('poper', '~> 0.1.0')
37
- s.add_development_dependency('rake', '~> 10.4')
38
- s.add_development_dependency('rspec', '~> 3.3')
37
+ s.add_development_dependency('rake', '~> 11.0')
38
+ s.add_development_dependency('rspec', '~> 3.4')
39
39
  s.add_development_dependency('rspec-its', '~> 1.2')
40
40
  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.5.0
4
+ version: 0.6.0
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-11-11 00:00:00.000000000 Z
11
+ date: 2016-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pronto
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.5.0
19
+ version: 0.6.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.5.0
26
+ version: 0.6.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: poper
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,28 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '10.4'
47
+ version: '11.0'
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.4'
54
+ version: '11.0'
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.3'
61
+ version: '3.4'
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'
68
+ version: '3.4'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec-its
71
71
  requirement: !ruby/object:Gem::Requirement