rundeck 1.0.1 → 1.0.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: b7b621a7132091422a6aa3950967b078fc054949
4
- data.tar.gz: 7d72079c260b9a6275735ac78ca95e8706fa78b6
3
+ metadata.gz: aec1277abd1d2467ca34d2821fac2b696365f7ca
4
+ data.tar.gz: 0254f8ced5c2433fc9034c35a380815f93401940
5
5
  SHA512:
6
- metadata.gz: 944acfc1b5262b541368af518080915062c060943171785cbd7fba87d1cb13c185db5ec369f6c54b02f03ae181265d686ebed0214e6e4c0a6140da6b5fce75ad
7
- data.tar.gz: de90f30a173206965347ffea9e9812cce828604ba6571d0802378e675f5f3ccdd6c9172e289dbe5645a625997ecaff28131bcee7e3bc49b3d5062671787cee42
6
+ metadata.gz: 30df27772233d3a417c58807e4b9dcf8dc1c227ae8503717e40533d3ad09cefeca7a3a44c4e73ae0ba50efa15eb5491e2d911818bf510f61ab032d9676cf1553
7
+ data.tar.gz: e26b875880ebb3362031a60edfb238c61064de9f003ff0a127bb5e45ec619b9ecdb103ef598c3c3e06f85d3c10c4541e7924357a15a2c7cc98133735bcc011b2
data/Guardfile CHANGED
@@ -1,7 +1,6 @@
1
1
  # A sample Guardfile
2
2
  # More info at https://github.com/guard/guard#readme
3
3
  group :red_green_refactor, halt_on_fail: true do
4
-
5
4
  guard :rspec, cmd: 'bundle exec rspec' do
6
5
  watch(/^spec\/.+_spec\.rb$/)
7
6
  watch(/^lib\/(.+)\.rb$/) { |m| "spec/lib/#{m[1]}_spec.rb" }
@@ -12,5 +11,4 @@ group :red_green_refactor, halt_on_fail: true do
12
11
  watch(/.+\.rb$/)
13
12
  watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
14
13
  end
15
-
16
14
  end
@@ -19,7 +19,13 @@ module Rundeck
19
19
  # @return [Rundeck::ObjectifiedHash]
20
20
  # @!macro exceptions
21
21
  def execute_job(id, options = {})
22
- objectify post("/job/#{id}/executions", options)['result']['executions']
22
+ e = post("/job/#{id}/executions", options)
23
+ # Temporary fix for https://github.com/dblessing/rundeck-ruby/issues/25
24
+ begin
25
+ objectify e['result']['executions']
26
+ rescue
27
+ objectify e['executions']
28
+ end
23
29
  end
24
30
  alias_method :run_job, :execute_job
25
31
 
@@ -121,7 +127,13 @@ module Rundeck
121
127
  # @return [Rundeck::ObjectifiedHash]
122
128
  # @!macro exceptions
123
129
  def execution(id, options = {})
124
- objectify get("/execution/#{id}", options)['result']['executions']['execution']
130
+ e = get("/execution/#{id}", options)
131
+ # Temporary fix for https://github.com/dblessing/rundeck-ruby/issues/25
132
+ begin
133
+ objectify e['result']['executions']['execution']
134
+ rescue
135
+ objectify e['executions']['execution']
136
+ end
125
137
  end
126
138
 
127
139
  # Bulk delete executions
@@ -168,7 +180,13 @@ module Rundeck
168
180
  # Rundeck API documentation for 'GET /api/12/executions'
169
181
  def execution_query(project, options = {})
170
182
  options = project_options_query(project, options)
171
- objectify get('/executions', options)['result']['executions']
183
+ q = get('/executions', options)
184
+ # Temporary fix for https://github.com/dblessing/rundeck-ruby/issues/25
185
+ begin
186
+ objectify q['result']['executions']
187
+ rescue
188
+ objectify q['executions']
189
+ end
172
190
  end
173
191
 
174
192
  private
@@ -1,3 +1,3 @@
1
1
  module Rundeck
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
@@ -148,7 +148,6 @@ describe Rundeck::Client do
148
148
 
149
149
  context 'when a job has executions',
150
150
  vcr: { cassette_name: 'delete_job_executions' } do
151
-
152
151
  it { is_expected.to respond_to(:successful) }
153
152
  it { is_expected.to respond_to(:allsuccessful) }
154
153
  it { is_expected.to respond_to(:requestcount) }
@@ -421,11 +420,11 @@ describe Rundeck::Client do
421
420
  end
422
421
  end
423
422
 
424
- describe '.execution_output' do
425
-
426
- end
423
+ # describe '.execution_output' do
424
+ #
425
+ # end
427
426
 
428
- describe '.execution_output_with_state' do
429
-
430
- end
427
+ # describe '.execution_output_with_state' do
428
+ #
429
+ # end
431
430
  end
metadata CHANGED
@@ -1,195 +1,195 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rundeck
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Drew A. Blessing
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-23 00:00:00.000000000 Z
11
+ date: 2015-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '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
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: libxml-ruby
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.3'
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
54
  version: '1.3'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
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
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: 3.1.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: 3.1.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec-core
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: 3.1.2
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: 3.1.2
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rspec-its
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
103
  version: 1.0.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ~>
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: 1.0.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rubocop
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: webmock
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '>='
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: codeclimate-test-reporter
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '>='
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - '>='
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: guard-rspec
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - ~>
157
+ - - "~>"
158
158
  - !ruby/object:Gem::Version
159
159
  version: 4.3.0
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - ~>
164
+ - - "~>"
165
165
  - !ruby/object:Gem::Version
166
166
  version: 4.3.0
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: guard-rubocop
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - '>='
171
+ - - ">="
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - '>='
178
+ - - ">="
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: vcr
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - '>='
185
+ - - ">="
186
186
  - !ruby/object:Gem::Version
187
187
  version: '0'
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - '>='
192
+ - - ">="
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
195
  description: Ruby client for Rundeck API
@@ -199,11 +199,11 @@ executables: []
199
199
  extensions: []
200
200
  extra_rdoc_files: []
201
201
  files:
202
- - .gitignore
203
- - .hound.yml
204
- - .rubocop.yml
205
- - .rubocop_todo.yml
206
- - .travis.yml
202
+ - ".gitignore"
203
+ - ".hound.yml"
204
+ - ".rubocop.yml"
205
+ - ".rubocop_todo.yml"
206
+ - ".travis.yml"
207
207
  - CHANGELOG.md
208
208
  - Gemfile
209
209
  - Guardfile
@@ -306,17 +306,17 @@ require_paths:
306
306
  - lib
307
307
  required_ruby_version: !ruby/object:Gem::Requirement
308
308
  requirements:
309
- - - '>='
309
+ - - ">="
310
310
  - !ruby/object:Gem::Version
311
311
  version: 1.9.3
312
312
  required_rubygems_version: !ruby/object:Gem::Requirement
313
313
  requirements:
314
- - - '>='
314
+ - - ">="
315
315
  - !ruby/object:Gem::Version
316
316
  version: '0'
317
317
  requirements: []
318
318
  rubyforge_project:
319
- rubygems_version: 2.0.3
319
+ rubygems_version: 2.4.1
320
320
  signing_key:
321
321
  specification_version: 4
322
322
  summary: A ruby wrapper for the Rundeck API