jenkins-plugin-runtime 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/jenkins/plugin/runtime/version.rb +1 -1
- data/lib/jenkins/rack.rb +14 -0
- metadata +3 -2
data/lib/jenkins/rack.rb
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
require 'rack/handler/servlet'
|
|
2
|
+
|
|
3
|
+
module Jenkins
|
|
4
|
+
# By including this module into your model class and defining the Rack-compatible call method,
|
|
5
|
+
# you can handle requests within your model object through a Rack application, effectively making
|
|
6
|
+
# Jenkins a rack server.
|
|
7
|
+
module RackSupport
|
|
8
|
+
include Java.jenkins.ruby.DoDynamic
|
|
9
|
+
|
|
10
|
+
def doDynamic(request, response)
|
|
11
|
+
$RUBYPLUGIN.rack(Rack::Handler::Servlet.new(self))
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: jenkins-plugin-runtime
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.1.
|
|
5
|
+
version: 0.1.3
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Charles Lowell
|
|
@@ -10,7 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2011-09-
|
|
13
|
+
date: 2011-09-10 00:00:00 -07:00
|
|
14
14
|
default_executable:
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
@@ -110,6 +110,7 @@ files:
|
|
|
110
110
|
- lib/jenkins/plugin/proxy.rb
|
|
111
111
|
- lib/jenkins/plugin/runtime.rb
|
|
112
112
|
- lib/jenkins/plugin/runtime/version.rb
|
|
113
|
+
- lib/jenkins/rack.rb
|
|
113
114
|
- lib/jenkins/slaves/cloud.rb
|
|
114
115
|
- lib/jenkins/tasks/build_wrapper.rb
|
|
115
116
|
- lib/jenkins/tasks/builder.rb
|