mvn2 2.6.1 → 2.6.2

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: b11fc145a701ab79f7c081f9cd9d0c8a1660bf59
4
- data.tar.gz: 3e6b2611e54e5d2f80c71510ab4cfbe0e6e3908e
3
+ metadata.gz: 0cb73e6e02df88b085d87363ec5d02a3091b671a
4
+ data.tar.gz: d9e87c444f6dc029c9061be0afb6732e7b1afb55
5
5
  SHA512:
6
- metadata.gz: d1989e5bca7ddaab374e7f0577997cbbacc882c3bfa17890b53b5b6b2c60a9491460982f08872cc7acad96cdaefb298ef6f27930f87005cc0b840b361861d4f0
7
- data.tar.gz: bf3bdcc8cb1c4d82d36d82684fe6d5327e42630a4fc80fcb75ca0da0cf04b979c25ae98a7f0aa93d85ce7cf152b0de8aad5b246019e4502d97eb9d4c8f90f4e8
6
+ metadata.gz: 9a7366d7911702d696204c3352b1523c770521092615200064cc2827a24511268a6d295c665c3ca19e2d40c69df331bf2d777a49260ee8c3d8b586fdfbc4ed68
7
+ data.tar.gz: ac9c182c5b368148722b5d00060f35d99898040da206ee118584ce8fd8ba79ec428608dd462382b110a21f404f8f9a0e4621397f42092a7970b4c6f896c94a2c
data/bin/mvn2 CHANGED
@@ -87,6 +87,7 @@ class Mvn2Runner
87
87
  Plugins.set_var :message_text, "#{operation_name} #{(@result ? 'Successful' : 'Failed')}"
88
88
 
89
89
  Plugins.get :notification
90
+ Plugins.get :after_notification
90
91
  end
91
92
  end
92
93
 
data/lib/mvn2/plugin.rb CHANGED
@@ -5,54 +5,6 @@ require 'everyday-plugins'
5
5
  include EverydayPlugins
6
6
 
7
7
  module Mvn2
8
-
9
- module TypeHelper
10
- def basic_type(list, *args)
11
- options = Plugins.get_var :options
12
- list.any? { |item|
13
- if item[:block].nil?
14
- flag_boolean(item, options)
15
- else
16
- item[:block].call(options, *args)
17
- end
18
- }
19
- end
20
-
21
- def flag_boolean(item, options)
22
- item[:options].has_key?(:option) && options[item[:options][:option]] == (item[:options].has_key?(:value) ? item[:options][:value] : true)
23
- end
24
-
25
- def complex_filter(list, options, symbol)
26
- list.filtermap { |item|
27
- if item[:block].nil?
28
- if item[:options].has_key?(symbol) && flag_boolean(item, options)
29
- item[:options][symbol]
30
- else
31
- item[:options].has_key?(:option) && !options[item[:options][:option]].nil? ? options[item[:options][:option]] : false
32
- end
33
- else
34
- rval = item[:block].call(options)
35
- (rval.nil? || !rval) ? false : rval
36
- end
37
- }
38
- end
39
-
40
- def simple_type(list, *args)
41
- options = Plugins.get_var :options
42
- list.sort_by { |v| v[:options][:order] }.each { |item| item[:block].call(options, *args) }
43
- end
44
-
45
- def simple_type_with_result(list)
46
- result = Plugins.get_var :result
47
- simple_type(list, result)
48
- end
49
-
50
- def get_name(list)
51
- options = Plugins.get_var :options
52
- rval = complex_filter(list.sort_by { |v| -v[:options][:priority] }, options, :name)
53
- (rval.nil? || rval.empty?) ? false : rval.first
54
- end
55
- end
56
8
  class OptionTypes
57
9
  extend PluginType
58
10
  extend TypeHelper
@@ -87,6 +39,7 @@ module Mvn2
87
39
  options, result, cmd_clean, message_text = Plugins.get_vars :options, :result, :cmd_clean, :message_text
88
40
  list.sort_by { |v| v[:options][:order] }.each { |item| item[:block].call(options, result, cmd_clean, message_text) }
89
41
  }
42
+ register_type(:after_notification) { |list| simple_type_with_result(list) }
90
43
  end
91
44
 
92
45
  def_actions
data/lib/mvn2/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mvn2
2
- VERSION = '2.6.1'
2
+ VERSION = '2.6.2'
3
3
  end
data/mvn2.gemspec CHANGED
@@ -24,6 +24,6 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency 'bundler', '~> 1.6'
25
25
  spec.add_development_dependency 'rake', '~> 10'
26
26
 
27
- spec.add_dependency 'everyday-cli-utils', '>= 1.7.4'
28
- spec.add_dependency 'everyday-plugins', '>= 1.1.1'
27
+ spec.add_dependency 'everyday-cli-utils', '~> 1.7'
28
+ spec.add_dependency 'everyday-plugins', '~> 1.2'
29
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mvn2
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.1
4
+ version: 2.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Henderson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-30 00:00:00.000000000 Z
11
+ date: 2014-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -42,30 +42,30 @@ dependencies:
42
42
  name: everyday-cli-utils
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.7.4
47
+ version: '1.7'
48
48
  type: :runtime
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: 1.7.4
54
+ version: '1.7'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: everyday-plugins
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 1.1.1
61
+ version: '1.2'
62
62
  type: :runtime
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: 1.1.1
68
+ version: '1.2'
69
69
  description: a Ruby script that runs a maven build, including (or not including) tests,
70
70
  and only outputs the lines that come after a compile failure, build success, test
71
71
  result, or reactor summary start line