jenkins_pipeline_builder 0.9.10 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTIyNGIzNTAxYzhmM2YzMTZhNTdlOGFiOGI1MjA3NTk4ZmJjZGUzMA==
4
+ ODkxMTI3ZjEzZDRmMWZhZWNhZDIzZmQ5M2ZmOWU5ODlkODdmNTM2Mw==
5
5
  data.tar.gz: !binary |-
6
- ZDBmOWJhYzBkN2M5NWJhYWFmM2Y5YTdjMjRjOTc4OGQ0MTZiNjljMA==
6
+ NzhhODIxNTBjNzVmOGEyN2QwZjhmZDI0OWZhMmY2ZjEwZThlOGYyNg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzFhNzRiZDc1YTZlYzdlNzYwNWMxYjgyN2Q2YWZhZGMzYmZjZjg0ZTBhNjE0
10
- ZmIxYTk0MzM2N2JmNjM1MjhlY2U3MzIyNWQwOGVjZjlhNjg0ZTQzOWRjYzAx
11
- NjQ1MDRjODBjNzdhZjM1ZjU1NzAyYmZkZjZhZWRjY2E5N2FlMGM=
9
+ MjQzYTZkNTE1ZWE2MDVhMmM4MTE3NTE5MGJiM2RjOWFmY2FiZjE2NmZlZjMw
10
+ MzM1YmU1M2ZjYTNjNDczMDBmYzU4MWU2NjJjODk1MTMxNDJjOTc3YWQ2MmU0
11
+ YWQ0OTk4OTA2ZjBkNjAzZTYwYjIwYzY1YjYzNDVjNGMxYTdkNjY=
12
12
  data.tar.gz: !binary |-
13
- NjViM2M4MTNiMDQxYmI1OWI2MGExNTRkNzE5NWM2N2UwZWU0NGJmZTc2MmUw
14
- MzA0NTc5ZjcwMjlkZWU1YWU4M2FmM2VlNmNhYTk2Y2Q3NmQ2ODViMmUwNWU4
15
- YmYyNGEzYjYwZDEyOGJjNzY1Zjc4M2Q4OTk1N2QyYzUyZjE5N2U=
13
+ Y2E2NWVhYTY2ZjlmZWY4ZmRlNDU2MzNhODZjNjczYTk4NWE5YTRiMmZiMjNk
14
+ NTE0OTBmMzJmMDE0NzBhMTYxOTczN2U1MjBiNzEwM2FlMTE1ZThhZmUzNDg3
15
+ NGU4NGYyNWU2NTM3YWVkOTdjMjIxMzg4ZjdjYTRjNDNkOGNhODk=
@@ -103,9 +103,22 @@ module JenkinsPipelineBuilder
103
103
  [true, result]
104
104
  end
105
105
 
106
+ def self.handle_enable(item)
107
+ if item.key?(:enabled) && item.key?(:parameters) && item.length == 2
108
+ return {} unless item[:enabled]
109
+ item = item.merge item[:parameters]
110
+ item.delete :parameters
111
+ item.delete :enabled
112
+ end
113
+ item
114
+ end
115
+
106
116
  def self.compile_hash(item, settings, job_collection)
107
117
  errors = {}
108
118
  result = {}
119
+
120
+ item = handle_enable item
121
+
109
122
  item.each do |key, value|
110
123
  if value.nil?
111
124
  errors[key] = "key: #{key} has a nil value, this is often a yaml syntax error. Skipping children and siblings"
@@ -21,5 +21,5 @@
21
21
  #
22
22
 
23
23
  module JenkinsPipelineBuilder
24
- VERSION = '0.9.10'
24
+ VERSION = '0.10.0'
25
25
  end
@@ -172,7 +172,7 @@ module JenkinsPipelineBuilder
172
172
  if type == 'categorizedView'
173
173
  column_names << 'Categorized - Job'
174
174
  else
175
- column_names << 'Name'
175
+ column_names.insert(2, 'Name')
176
176
  end
177
177
 
178
178
  result = []
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jenkins_pipeline_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.10
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Moochnick
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-02 00:00:00.000000000 Z
12
+ date: 2014-12-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -411,7 +411,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
411
411
  version: '0'
412
412
  requirements: []
413
413
  rubyforge_project:
414
- rubygems_version: 2.4.2
414
+ rubygems_version: 2.4.5
415
415
  signing_key:
416
416
  specification_version: 4
417
417
  summary: This gem is will boostrap your Jenkins pipelines