jenkins_api_client 0.13.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/.travis.yml +1 -0
- data/CHANGELOG.md +13 -0
- data/Gemfile +4 -3
- data/README.md +11 -2
- data/Rakefile +63 -1
- data/jenkins_api_client.gemspec +15 -8
- data/jenkins_api_client_class_diagram.png +0 -0
- data/lib/jenkins_api_client.rb +1 -0
- data/lib/jenkins_api_client/build_queue.rb +6 -4
- data/lib/jenkins_api_client/client.rb +95 -30
- data/lib/jenkins_api_client/exceptions.rb +67 -11
- data/lib/jenkins_api_client/job.rb +217 -93
- data/lib/jenkins_api_client/node.rb +3 -1
- data/lib/jenkins_api_client/system.rb +11 -2
- data/lib/jenkins_api_client/user.rb +119 -0
- data/lib/jenkins_api_client/version.rb +1 -1
- data/lib/jenkins_api_client/view.rb +5 -3
- data/spec/func_tests/job_spec.rb +7 -0
- data/spec/func_tests/system_spec.rb +1 -1
- data/spec/func_tests/user_spec.rb +49 -0
- data/spec/unit_tests/build_queue_spec.rb +1 -1
- data/spec/unit_tests/job_spec.rb +10 -1
- data/spec/unit_tests/node_spec.rb +1 -1
- data/spec/unit_tests/system_spec.rb +1 -1
- data/spec/unit_tests/user_spec.rb +126 -0
- data/spec/unit_tests/view_spec.rb +1 -1
- metadata +26 -6
@@ -4,7 +4,7 @@ describe JenkinsApi::Client::View do
|
|
4
4
|
context "With properly initialized Client" do
|
5
5
|
before do
|
6
6
|
mock_logger = Logger.new "/dev/null"
|
7
|
-
@client =
|
7
|
+
@client = double
|
8
8
|
@client.should_receive(:logger).and_return(mock_logger)
|
9
9
|
@view = JenkinsApi::Client::View.new(@client)
|
10
10
|
@sample_views_json = {
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jenkins_api_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-08-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
@@ -80,7 +80,7 @@ dependencies:
|
|
80
80
|
requirement: !ruby/object:Gem::Requirement
|
81
81
|
none: false
|
82
82
|
requirements:
|
83
|
-
- -
|
83
|
+
- - ! '>='
|
84
84
|
- !ruby/object:Gem::Version
|
85
85
|
version: 1.1.0
|
86
86
|
type: :runtime
|
@@ -88,7 +88,7 @@ dependencies:
|
|
88
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
89
|
none: false
|
90
90
|
requirements:
|
91
|
-
- -
|
91
|
+
- - ! '>='
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: 1.1.0
|
94
94
|
- !ruby/object:Gem::Dependency
|
@@ -123,6 +123,22 @@ dependencies:
|
|
123
123
|
- - ! '>='
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: 1.6.4
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: rspec
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ~>
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: 2.13.0
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ~>
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: 2.13.0
|
126
142
|
- !ruby/object:Gem::Dependency
|
127
143
|
name: simplecov
|
128
144
|
requirement: !ruby/object:Gem::Requirement
|
@@ -140,7 +156,7 @@ dependencies:
|
|
140
156
|
- !ruby/object:Gem::Version
|
141
157
|
version: '0'
|
142
158
|
- !ruby/object:Gem::Dependency
|
143
|
-
name:
|
159
|
+
name: yard
|
144
160
|
requirement: !ruby/object:Gem::Requirement
|
145
161
|
none: false
|
146
162
|
requirements:
|
@@ -181,6 +197,7 @@ files:
|
|
181
197
|
- config/login.yml.example
|
182
198
|
- java_deps/jenkins-cli.jar
|
183
199
|
- jenkins_api_client.gemspec
|
200
|
+
- jenkins_api_client_class_diagram.png
|
184
201
|
- lib/jenkins_api_client.rb
|
185
202
|
- lib/jenkins_api_client/build_queue.rb
|
186
203
|
- lib/jenkins_api_client/cli/base.rb
|
@@ -193,6 +210,7 @@ files:
|
|
193
210
|
- lib/jenkins_api_client/job.rb
|
194
211
|
- lib/jenkins_api_client/node.rb
|
195
212
|
- lib/jenkins_api_client/system.rb
|
213
|
+
- lib/jenkins_api_client/user.rb
|
196
214
|
- lib/jenkins_api_client/version.rb
|
197
215
|
- lib/jenkins_api_client/view.rb
|
198
216
|
- scripts/login_with_irb.rb
|
@@ -201,6 +219,7 @@ files:
|
|
201
219
|
- spec/func_tests/node_spec.rb
|
202
220
|
- spec/func_tests/spec_helper.rb
|
203
221
|
- spec/func_tests/system_spec.rb
|
222
|
+
- spec/func_tests/user_spec.rb
|
204
223
|
- spec/func_tests/view_spec.rb
|
205
224
|
- spec/unit_tests/build_queue_spec.rb
|
206
225
|
- spec/unit_tests/client_spec.rb
|
@@ -210,6 +229,7 @@ files:
|
|
210
229
|
- spec/unit_tests/node_spec.rb
|
211
230
|
- spec/unit_tests/spec_helper.rb
|
212
231
|
- spec/unit_tests/system_spec.rb
|
232
|
+
- spec/unit_tests/user_spec.rb
|
213
233
|
- spec/unit_tests/view_spec.rb
|
214
234
|
- travis/jenkins_config.xml
|
215
235
|
- travis/jenkins_config_with_crumb.xml
|
@@ -231,7 +251,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
231
251
|
version: '0'
|
232
252
|
segments:
|
233
253
|
- 0
|
234
|
-
hash: -
|
254
|
+
hash: -2522134501944430216
|
235
255
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
236
256
|
none: false
|
237
257
|
requirements:
|