jenkins-plugin-runtime 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/jenkins-plugin-runtime.gemspec +4 -5
- data/lib/jenkins/model/descriptor.rb +1 -1
- data/lib/jenkins/model/listener.rb +5 -5
- data/lib/jenkins/plugin/runtime/version.rb +1 -1
- data/lib/jenkins/plugin/specification.rb +3 -2
- data/spec/jenkins/plugin/specification_spec.rb +1 -1
- data/spec/spec_helper.rb +2 -2
- metadata +237 -204
@@ -22,9 +22,8 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.add_dependency "json"
|
23
23
|
s.add_dependency "slop", "~> 3.0.2"
|
24
24
|
|
25
|
-
s.add_development_dependency "rake"
|
26
|
-
s.add_development_dependency "rspec"
|
27
|
-
s.add_development_dependency "rspec-spies"
|
28
|
-
s.add_development_dependency "jenkins-war", "
|
29
|
-
|
25
|
+
s.add_development_dependency "rake"
|
26
|
+
s.add_development_dependency "rspec"
|
27
|
+
s.add_development_dependency "rspec-spies", ">= 2.1.3"
|
28
|
+
s.add_development_dependency "jenkins-war", "> 1.445"
|
30
29
|
end
|
@@ -50,7 +50,7 @@ module Jenkins
|
|
50
50
|
# TODO: use Descriptor.getPossibleViewNames() that's made protected in 1.441 when it gets released
|
51
51
|
base = "/#{name_to_path}/global"
|
52
52
|
[base+".erb",base+".haml"].find { |n|
|
53
|
-
self.
|
53
|
+
self.getKlass.getResource(n)
|
54
54
|
}
|
55
55
|
end
|
56
56
|
|
@@ -29,7 +29,7 @@ module Jenkins
|
|
29
29
|
def unknown(msg = nil, &block); add(Logger::UNKNOWN, msg, &block); end
|
30
30
|
|
31
31
|
def <<(msg)
|
32
|
-
logger.
|
32
|
+
logger.println(msg.to_s)
|
33
33
|
end
|
34
34
|
|
35
35
|
private
|
@@ -39,15 +39,15 @@ module Jenkins
|
|
39
39
|
if msg.nil? && block_given?
|
40
40
|
msg = yield
|
41
41
|
end
|
42
|
-
str = msg2str(msg)
|
42
|
+
str = msg2str(msg)
|
43
43
|
return true if severity < @level
|
44
44
|
case severity
|
45
45
|
when Logger::DEBUG, Logger::INFO
|
46
|
-
logger.
|
46
|
+
logger.println(str)
|
47
47
|
when Logger::WARN, Logger::ERROR
|
48
|
-
@native.error(str)
|
48
|
+
@native.error(str + "\n")
|
49
49
|
else
|
50
|
-
@native.fatalError(str)
|
50
|
+
@native.fatalError(str + "\n")
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
@@ -106,7 +106,8 @@ module Jenkins
|
|
106
106
|
#
|
107
107
|
# @return [Jenkins::Plugin::Specification] the loaded specification
|
108
108
|
def self.load(path)
|
109
|
-
|
109
|
+
_path = path.to_s
|
110
|
+
eval(File.read(_path), binding, _path, 1)
|
110
111
|
end
|
111
112
|
|
112
113
|
# Looks inside `dir` for a file ending in .pluginspec, and if found,
|
@@ -116,7 +117,7 @@ module Jenkins
|
|
116
117
|
def self.find(dir = Dir.pwd)
|
117
118
|
dir = Pathname(dir)
|
118
119
|
if spec_path = Pathname(dir).entries.find {|e| e.to_s =~ /\.pluginspec$/}
|
119
|
-
load(dir.join(spec_path))
|
120
|
+
load(dir.join(spec_path).to_s)
|
120
121
|
end
|
121
122
|
rescue Errno::ENOENT => e
|
122
123
|
fail SpecificationNotFound, "#{dir} does not appear to be a directory"
|
@@ -20,7 +20,7 @@ describe Jenkins::Plugin::Specification do
|
|
20
20
|
end
|
21
21
|
|
22
22
|
describe "a spec loaded from a file" do
|
23
|
-
subject {Specification.load(Pathname(__FILE__).dirname.join('example.pluginspec'))}
|
23
|
+
subject {Specification.load(Pathname(__FILE__).dirname.join('example.pluginspec').to_s)}
|
24
24
|
its(:name) {should eql "the-name"}
|
25
25
|
its(:version) {should eql "1.0.0"}
|
26
26
|
its(:description) {should eql "one great plugin"}
|
data/spec/spec_helper.rb
CHANGED
@@ -11,8 +11,8 @@ require 'jenkins/war'
|
|
11
11
|
for path in Dir[File.join(ENV['HOME'], '.jenkins', 'wars', Jenkins::War::VERSION, "**/*.jar")]
|
12
12
|
$CLASSPATH << path
|
13
13
|
end
|
14
|
-
$CLASSPATH << Pathname(__FILE__).dirname.join('../target/')
|
15
|
-
$:.unshift Pathname(__FILE__).dirname.join('../lib')
|
14
|
+
$CLASSPATH << Pathname(__FILE__).dirname.join('../target/').to_s
|
15
|
+
$:.unshift Pathname(__FILE__).dirname.join('../lib').to_s
|
16
16
|
|
17
17
|
require 'jenkins/plugin/runtime'
|
18
18
|
require 'jenkins/plugin/proxies/proxy_helper'
|
metadata
CHANGED
@@ -1,221 +1,254 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: jenkins-plugin-runtime
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.3
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
8
|
-
|
9
|
-
autorequire:
|
7
|
+
authors:
|
8
|
+
- Charles Lowell
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
12
|
+
date: 2012-11-14 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: json
|
16
|
+
version_requirements: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ! '>='
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: !binary |-
|
21
|
+
MA==
|
22
|
+
none: false
|
23
|
+
requirement: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ! '>='
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: !binary |-
|
28
|
+
MA==
|
29
|
+
none: false
|
30
|
+
prerelease: false
|
31
|
+
type: :runtime
|
32
|
+
- !ruby/object:Gem::Dependency
|
33
|
+
name: slop
|
34
|
+
version_requirements: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - ~>
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: 3.0.2
|
39
|
+
none: false
|
40
|
+
requirement: !ruby/object:Gem::Requirement
|
41
|
+
requirements:
|
42
|
+
- - ~>
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: 3.0.2
|
45
|
+
none: false
|
46
|
+
prerelease: false
|
47
|
+
type: :runtime
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: rake
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: !binary |-
|
55
|
+
MA==
|
56
|
+
none: false
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: !binary |-
|
62
|
+
MA==
|
63
|
+
none: false
|
64
|
+
prerelease: false
|
65
|
+
type: :development
|
66
|
+
- !ruby/object:Gem::Dependency
|
67
|
+
name: rspec
|
68
|
+
version_requirements: !ruby/object:Gem::Requirement
|
69
|
+
requirements:
|
70
|
+
- - ! '>='
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: !binary |-
|
73
|
+
MA==
|
74
|
+
none: false
|
75
|
+
requirement: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - ! '>='
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: !binary |-
|
80
|
+
MA==
|
81
|
+
none: false
|
82
|
+
prerelease: false
|
83
|
+
type: :development
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: rspec-spies
|
86
|
+
version_requirements: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ! '>='
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: 2.1.3
|
91
|
+
none: false
|
92
|
+
requirement: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ! '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 2.1.3
|
97
|
+
none: false
|
98
|
+
prerelease: false
|
99
|
+
type: :development
|
100
|
+
- !ruby/object:Gem::Dependency
|
101
|
+
name: jenkins-war
|
102
|
+
version_requirements: !ruby/object:Gem::Requirement
|
103
|
+
requirements:
|
104
|
+
- - !binary |-
|
105
|
+
Pg==
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '1.445'
|
108
|
+
none: false
|
109
|
+
requirement: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - !binary |-
|
112
|
+
Pg==
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
version: '1.445'
|
115
|
+
none: false
|
116
|
+
prerelease: false
|
117
|
+
type: :development
|
81
118
|
description: I'll think of a better description later, but if you're reading this, then I haven't
|
82
|
-
email:
|
83
|
-
|
119
|
+
email:
|
120
|
+
- cowboyd@thefrontside.net
|
84
121
|
executables: []
|
85
|
-
|
86
122
|
extensions: []
|
87
|
-
|
88
123
|
extra_rdoc_files: []
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
- src/jenkins/ruby/Get.java
|
124
|
+
files:
|
125
|
+
- Gemfile
|
126
|
+
- README.md
|
127
|
+
- Rakefile
|
128
|
+
- jenkins-plugin-runtime.gemspec
|
129
|
+
- lib/core_ext/exception.rb
|
130
|
+
- lib/jenkins/cli.rb
|
131
|
+
- lib/jenkins/cli/command.rb
|
132
|
+
- lib/jenkins/cli/command_proxy.rb
|
133
|
+
- lib/jenkins/extension.rb
|
134
|
+
- lib/jenkins/filepath.rb
|
135
|
+
- lib/jenkins/launcher.rb
|
136
|
+
- lib/jenkins/listeners.rb
|
137
|
+
- lib/jenkins/listeners/run_listener.rb
|
138
|
+
- lib/jenkins/listeners/run_listener_proxy.rb
|
139
|
+
- lib/jenkins/model.rb
|
140
|
+
- lib/jenkins/model/action.rb
|
141
|
+
- lib/jenkins/model/action_proxy.rb
|
142
|
+
- lib/jenkins/model/build.rb
|
143
|
+
- lib/jenkins/model/describable.rb
|
144
|
+
- lib/jenkins/model/describable_native.rb
|
145
|
+
- lib/jenkins/model/describable_proxy.rb
|
146
|
+
- lib/jenkins/model/descriptor.rb
|
147
|
+
- lib/jenkins/model/environment.rb
|
148
|
+
- lib/jenkins/model/environment_proxy.rb
|
149
|
+
- lib/jenkins/model/listener.rb
|
150
|
+
- lib/jenkins/model/root_action.rb
|
151
|
+
- lib/jenkins/model/root_action_proxy.rb
|
152
|
+
- lib/jenkins/plugin.rb
|
153
|
+
- lib/jenkins/plugin/behavior.rb
|
154
|
+
- lib/jenkins/plugin/proxies.rb
|
155
|
+
- lib/jenkins/plugin/proxy.rb
|
156
|
+
- lib/jenkins/plugin/runtime.rb
|
157
|
+
- lib/jenkins/plugin/runtime/version.rb
|
158
|
+
- lib/jenkins/plugin/specification.rb
|
159
|
+
- lib/jenkins/plugin/wrapper.rb
|
160
|
+
- lib/jenkins/rack.rb
|
161
|
+
- lib/jenkins/slaves.rb
|
162
|
+
- lib/jenkins/slaves/cloud.rb
|
163
|
+
- lib/jenkins/slaves/computer_listener.rb
|
164
|
+
- lib/jenkins/slaves/computer_listener_proxy.rb
|
165
|
+
- lib/jenkins/slaves/node_property.rb
|
166
|
+
- lib/jenkins/slaves/node_property_proxy.rb
|
167
|
+
- lib/jenkins/tasks.rb
|
168
|
+
- lib/jenkins/tasks/build_step.rb
|
169
|
+
- lib/jenkins/tasks/build_step_proxy.rb
|
170
|
+
- lib/jenkins/tasks/build_wrapper.rb
|
171
|
+
- lib/jenkins/tasks/build_wrapper_proxy.rb
|
172
|
+
- lib/jenkins/tasks/builder.rb
|
173
|
+
- lib/jenkins/tasks/builder_proxy.rb
|
174
|
+
- lib/jenkins/tasks/publisher.rb
|
175
|
+
- lib/jenkins/tasks/publisher_proxy.rb
|
176
|
+
- spec/jenkins/cli/command_proxy_spec.rb
|
177
|
+
- spec/jenkins/cli/command_spec.rb
|
178
|
+
- spec/jenkins/extension_spec.rb
|
179
|
+
- spec/jenkins/filepath_spec.rb
|
180
|
+
- spec/jenkins/launcher_spec.rb
|
181
|
+
- spec/jenkins/listeners/run_listener_proxy_spec.rb
|
182
|
+
- spec/jenkins/model/action_spec.rb
|
183
|
+
- spec/jenkins/model/build_spec.rb
|
184
|
+
- spec/jenkins/model/describable_spec.rb
|
185
|
+
- spec/jenkins/model/listener_spec.rb
|
186
|
+
- spec/jenkins/model/root_action_proxy_spec.rb
|
187
|
+
- spec/jenkins/model_spec.rb
|
188
|
+
- spec/jenkins/plugin/behavior_spec.rb
|
189
|
+
- spec/jenkins/plugin/example.pluginspec
|
190
|
+
- spec/jenkins/plugin/proxies/proxy_helper.rb
|
191
|
+
- spec/jenkins/plugin/proxies_spec.rb
|
192
|
+
- spec/jenkins/plugin/proxy_spec.rb
|
193
|
+
- spec/jenkins/plugin/specification_spec.rb
|
194
|
+
- spec/jenkins/plugin_spec.rb
|
195
|
+
- spec/jenkins/tasks/build_wrapper_proxy_spec.rb
|
196
|
+
- spec/jenkins/tasks/build_wrapper_spec.rb
|
197
|
+
- spec/jenkins/tasks/builder_proxy_spec.rb
|
198
|
+
- spec/jenkins/tasks/builder_spec.rb
|
199
|
+
- spec/jenkins/tasks/publisher_proxy_spec.rb
|
200
|
+
- spec/spec_helper.rb
|
201
|
+
- src/jenkins/ruby/DoDynamic.java
|
202
|
+
- src/jenkins/ruby/Get.java
|
169
203
|
homepage: https://github.com/jenkinsci/jenkins.rb/tree/master/ruby-runtime
|
170
204
|
licenses: []
|
171
|
-
|
172
|
-
post_install_message:
|
205
|
+
post_install_message:
|
173
206
|
rdoc_options: []
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
207
|
+
require_paths:
|
208
|
+
- lib
|
209
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
210
|
+
requirements:
|
211
|
+
- - ! '>='
|
212
|
+
- !ruby/object:Gem::Version
|
213
|
+
version: !binary |-
|
214
|
+
MA==
|
178
215
|
none: false
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
216
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
217
|
+
requirements:
|
218
|
+
- - ! '>='
|
219
|
+
- !ruby/object:Gem::Version
|
220
|
+
version: !binary |-
|
221
|
+
MA==
|
184
222
|
none: false
|
185
|
-
requirements:
|
186
|
-
- - ">="
|
187
|
-
- !ruby/object:Gem::Version
|
188
|
-
version: "0"
|
189
223
|
requirements: []
|
190
|
-
|
191
224
|
rubyforge_project: jenkins-plugin-runtime
|
192
|
-
rubygems_version: 1.8.
|
193
|
-
signing_key:
|
225
|
+
rubygems_version: 1.8.24
|
226
|
+
signing_key:
|
194
227
|
specification_version: 3
|
195
228
|
summary: Runtime support libraries for Jenkins Ruby plugins
|
196
|
-
test_files:
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
229
|
+
test_files:
|
230
|
+
- spec/jenkins/cli/command_proxy_spec.rb
|
231
|
+
- spec/jenkins/cli/command_spec.rb
|
232
|
+
- spec/jenkins/extension_spec.rb
|
233
|
+
- spec/jenkins/filepath_spec.rb
|
234
|
+
- spec/jenkins/launcher_spec.rb
|
235
|
+
- spec/jenkins/listeners/run_listener_proxy_spec.rb
|
236
|
+
- spec/jenkins/model/action_spec.rb
|
237
|
+
- spec/jenkins/model/build_spec.rb
|
238
|
+
- spec/jenkins/model/describable_spec.rb
|
239
|
+
- spec/jenkins/model/listener_spec.rb
|
240
|
+
- spec/jenkins/model/root_action_proxy_spec.rb
|
241
|
+
- spec/jenkins/model_spec.rb
|
242
|
+
- spec/jenkins/plugin/behavior_spec.rb
|
243
|
+
- spec/jenkins/plugin/example.pluginspec
|
244
|
+
- spec/jenkins/plugin/proxies/proxy_helper.rb
|
245
|
+
- spec/jenkins/plugin/proxies_spec.rb
|
246
|
+
- spec/jenkins/plugin/proxy_spec.rb
|
247
|
+
- spec/jenkins/plugin/specification_spec.rb
|
248
|
+
- spec/jenkins/plugin_spec.rb
|
249
|
+
- spec/jenkins/tasks/build_wrapper_proxy_spec.rb
|
250
|
+
- spec/jenkins/tasks/build_wrapper_spec.rb
|
251
|
+
- spec/jenkins/tasks/builder_proxy_spec.rb
|
252
|
+
- spec/jenkins/tasks/builder_spec.rb
|
253
|
+
- spec/jenkins/tasks/publisher_proxy_spec.rb
|
254
|
+
- spec/spec_helper.rb
|