jujube 0.8.0 → 0.9.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: 6524ef7e57991f6ffd460a6abdee60cdb03d42b2
4
- data.tar.gz: 75f458ff13ab07e3db113e97ee802e4d1b328f3c
3
+ metadata.gz: 0b6254ceba9c1a93a800e45bc6b83b070db296a7
4
+ data.tar.gz: 24a14d99e0fe10cd3b62f53bb3702218df993e57
5
5
  SHA512:
6
- metadata.gz: cf5a8812c001df66ded6cd60d931073896558b02039f437291cb4e711bcc6a2a43217feeb90711763ba26a9837d00ead0e257684edb10bd8beb5ec10dd3e47c7
7
- data.tar.gz: 4e816332bb4b91f374df9499f46899c8a27ef39735cb42492e10c99269b4c7580b515be9ccd52770d0a506173b546a65d4bb3c310b658cbb15ba0870ad2a67b3
6
+ metadata.gz: 734d1a4fe318ef9d31e086aaafec1a89c0fa08e6793bcb6985a6f4cda9c935e3322df364253a1ce40b760884d9ee1ca89e6a2f735a0da3971a8811435da43e2a
7
+ data.tar.gz: 34e504da721e3ed19e3d087be043ad0ec20b0067c941880d667d34e4dc318225eacce1ad5512ed5e9f28b5f989b90f9b176e3751be7c279833f99ed6b4984998
data/README.md CHANGED
@@ -101,6 +101,7 @@ The following job attributes are supported:
101
101
  * `block_upstream`
102
102
  * `block_downstream`
103
103
  * `quiet_period`
104
+ * `disabled`
104
105
 
105
106
  The following sections and components are supported:
106
107
 
@@ -4,6 +4,7 @@ job "endToEnd" do |j|
4
4
  j.block_upstream = true
5
5
  j.block_downstream = false
6
6
  j.quiet_period = 42
7
+ j.disabled = true
7
8
 
8
9
  j.axes << slave(:arch, %w{i386 amd64})
9
10
 
@@ -6,6 +6,7 @@
6
6
  block-upstream: true
7
7
  block-downstream: false
8
8
  quiet-period: 42
9
+ disabled: true
9
10
  project-type: matrix
10
11
  axes:
11
12
  - axis:
@@ -70,7 +70,7 @@ module Jujube
70
70
  #
71
71
  # See {http://ci.openstack.org/jenkins-job-builder/general.html}.
72
72
  #
73
- # @return [Booelan]
73
+ # @return [Boolean]
74
74
  attribute :block_downstream
75
75
 
76
76
  # @!attribute quiet_period
@@ -81,6 +81,14 @@ module Jujube
81
81
  # @return [Fixnum]
82
82
  attribute :quiet_period
83
83
 
84
+ # @!attribute disabled
85
+ # `true` if this job should be disabled.
86
+ #
87
+ # See {http://ci.openstack.org/jenkins-job-builder/general.html}.
88
+ #
89
+ # @return [Boolean]
90
+ attribute :disabled
91
+
84
92
  # @!endgroup
85
93
 
86
94
  # @!group Sections
@@ -1,3 +1,3 @@
1
1
  module Jujube
2
- VERSION = "0.8.0"
2
+ VERSION = "0.9.0"
3
3
  end
@@ -40,6 +40,11 @@ class JobTest < Minitest::Test
40
40
  assert_yaml_matches("quiet-period: 42")
41
41
  end
42
42
 
43
+ def test_includes_disabled
44
+ @job.disabled = true
45
+ assert_yaml_matches("disabled: true")
46
+ end
47
+
43
48
  def test_includes_single_item_section
44
49
  @job.triggers << "TRIGGER"
45
50
  assert_yaml_matches("triggers:\s*\n - TRIGGER")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jujube
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Randy Coulman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-29 00:00:00.000000000 Z
11
+ date: 2015-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
160
  version: '0'
161
161
  requirements: []
162
162
  rubyforge_project:
163
- rubygems_version: 2.2.2
163
+ rubygems_version: 2.4.6
164
164
  signing_key:
165
165
  specification_version: 4
166
166
  summary: Ruby front-end for jenkins-job-builder