jenkins-plugin-runtime 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  module Jenkins
2
2
  class Plugin
3
3
  module Runtime
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
6
6
  end
7
7
  end
@@ -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.2
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-09 00:00:00 -07:00
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