jruby-rack-worker 0.10.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 79e6cdb762c8ca1709f949ce0cdf33ab8f088cdd
4
+ data.tar.gz: 2127f097a8fbde6679d970c1ea545e30e822e61e
5
+ SHA512:
6
+ metadata.gz: cb5827de01f1ca6aeff4f40545de78260df1192976f24612d04e2754b06288666ba6d0d0dd448fdc859710bea950a7955190cbefc9799036bae2fedec1f13330
7
+ data.tar.gz: f9805d0006178c83b39cd8527a9bc7af6b5f15c36ed5f7d996daa1ce233f8a40f89b3de7d8e6bef69e640fcb65ae1cf445a6a8f6e25c3bc627ec4e7349bb96de
data/LICENSE CHANGED
@@ -186,7 +186,7 @@
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright (c) 2010-2013 Karol Bucek
189
+ Copyright (c) 2010-2014 Karol Bucek
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # JRuby-Rack-Worker
2
2
 
3
- Thread based workers on top of [jruby-rack](http://github.com/jruby/jruby-rack).
3
+ Thread based workers on top of [JRuby-Rack](http://github.com/jruby/jruby-rack).
4
4
 
5
5
  With out of the box thread-safe [JRuby](http://jruby.org) "adapters" for:
6
6
 
7
- * [Resque](http://github.com/defunkt/resque) (>= 1.20.0, ~> 2.0.0 [master])
7
+ * [Resque](http://github.com/defunkt/resque) (>= 1.21.0, ~> 2.0.0 [master])
8
8
  * [Delayed::Job](http://github.com/collectiveidea/delayed_job) (~> 2.1, >= 3.0)
9
9
  * [Navvy](http://github.com/jeffkreeftmeijer/navvy) (not-maintained)
10
10
 
@@ -106,15 +106,16 @@ default a single worker thread is started with the default NORM priority) :
106
106
 
107
107
  ### Warbler
108
108
 
109
- If you're using [Warbler](http://caldersphere.rubyforge.org/warbler) to assemble
110
- your application you might simply declare a gem dependency with Bundler as your
111
- gems will be scanned for jars and packaged correctly:
109
+ If you're using [Warbler](http://github.com/jruby/warbler) to assemble your
110
+ application you might simply declare a gem dependency with Bundler as your
111
+ gems will be scanned for .jars among all gem files and packaged correctly :
112
112
 
113
113
  gem 'jruby-rack-worker', :platform => :jruby, :require => nil
114
114
 
115
115
  Otherwise copy the jar into your *warble.rb* configured `config.java_libs`.
116
116
 
117
- Warbler checks for a *config/web.xml.erb* thus configure the worker there, e.g. :
117
+ Warbler checks for a *config/web.xml.erb* (or simply a *config/web.xml*) thus
118
+ configure the worker there, e.g. :
118
119
 
119
120
  ```
120
121
  <!DOCTYPE web-app PUBLIC
@@ -153,7 +154,7 @@ Warbler checks for a *config/web.xml.erb* thus configure the worker there, e.g.
153
154
 
154
155
  <context-param>
155
156
  <param-name>jruby.worker</param-name>
156
- <param-value>delayed_job</param-value> <!-- or resque or navvy -->
157
+ <param-value>delayed_job</param-value> <!-- or resque (navvy) -->
157
158
  </context-param>
158
159
 
159
160
  <listener>
@@ -163,12 +164,43 @@ Warbler checks for a *config/web.xml.erb* thus configure the worker there, e.g.
163
164
  </web-app>
164
165
  ```
165
166
 
167
+ NOTE: on Warbler 1.4.x the .jar files from gems might no longer get packaged unless
168
+ configured to do so, assuming you only need the defaults and the worker jar, setup
169
+ a *config/warble.rb* file as follow :
170
+
171
+ ```ruby
172
+ # Warbler web application assembly configuration file
173
+ Warbler::Config.new do |config|
174
+ # ...
175
+
176
+ # Additional Java .jar files to include. Note that if .jar files are placed
177
+ # in lib (and not otherwise excluded) then they need not be mentioned here.
178
+ # JRuby and JRuby-Rack are pre-loaded in this list. Be sure to include your
179
+ # own versions if you directly set the value
180
+ # config.java_libs += FileList["lib/java/*.jar"]
181
+
182
+ # If set to true, moves jar files into WEB-INF/lib.
183
+ # Prior to version 1.4.2 of Warbler this was done by default.
184
+ # But since 1.4.2 this config defaults to false.
185
+ # Alternatively, this option can be set to a regular expression, which will
186
+ # act as a jar selector -- only jar files that match the pattern will be
187
+ # included in the archive.
188
+ config.move_jars_to_webinf_lib = /jruby\-(core|stdlib|rack)/
189
+
190
+ # Value of RAILS_ENV for the webapp -- default as shown below
191
+ # config.webxml.rails.env = ENV['RAILS_ENV'] || 'production'
192
+
193
+ #config.webxml.jruby.runtime.env = "DATABASE_URL=mysql://11.1.1.11/mydb\n" <<
194
+ # 'PATH=/home/tomcat/bin:/usr/local/bin:/opt/bin,HOME="/home/tomcat"'
195
+ end
196
+ ```
197
+
166
198
  If you're deploying a Rails application on JRuby it's highly **recommended** to
167
199
  uncomment `config.threadsafe!`. Otherwise, if unsure or you're code is not
168
200
  thread-safe yet you'll end up polling several JRuby runtimes in a single process,
169
- in this case however each worker thread will use (block) an application runtime
170
- from the pool (consider it while setting
171
- `jruby.min.runtimes` and `jruby.max.runtimes` parameters).
201
+ in this case however each worker thread will use (and thus block) an application
202
+ runtime from the pool (consider it while setting `jruby.min.runtimes` and
203
+ `jruby.max.runtimes` parameters).
172
204
 
173
205
  ### Trinidad
174
206
 
@@ -231,7 +263,7 @@ end
231
263
 
232
264
  ## Build
233
265
 
234
- [JRuby](http://jruby.org) 1.6+ is required to build the project.
266
+ [JRuby](http://jruby.org) 1.6.8+ is required to build the project.
235
267
 
236
268
  The build is performed by [rake](http://rake.rubyforge.org) which should be part
237
269
  of your JRuby installation, if you're experiencing conflicts with another Ruby and
@@ -249,7 +281,7 @@ Build the gem (includes the .jar packaged) :
249
281
 
250
282
  ## Copyright
251
283
 
252
- Copyright (c) 2013 [Karol Bucek](https://github.com/kares).
284
+ Copyright (c) 2014 [Karol Bucek](https://github.com/kares).
253
285
  See LICENSE (http://www.apache.org/licenses/LICENSE-2.0) for details.
254
286
 
255
287
  [0]: https://secure.travis-ci.org/kares/jruby-rack-worker.png
@@ -1,7 +1,7 @@
1
1
  module JRuby
2
2
  module Rack
3
3
  module Worker
4
- VERSION = '0.10.0'
4
+ VERSION = '0.10.1'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,33 +1,30 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jruby-rack-worker
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.10.0
4
+ version: 0.10.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Karol Bucek
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-06-06 00:00:00.000000000 Z
11
+ date: 2016-02-28 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: jruby-rack
16
15
  version_requirements: !ruby/object:Gem::Requirement
17
16
  requirements:
18
- - - '>='
17
+ - - "~>"
19
18
  - !ruby/object:Gem::Version
20
19
  version: 1.1.10
21
- none: false
22
20
  requirement: !ruby/object:Gem::Requirement
23
21
  requirements:
24
- - - '>='
22
+ - - "~>"
25
23
  - !ruby/object:Gem::Version
26
24
  version: 1.1.10
27
- none: false
28
25
  prerelease: false
29
26
  type: :runtime
30
- description: Implements a thread based worker pattern on top of JRuby-Rack. Useful if you'd like to run background workers within your (deployed) web-application (concurrently in 'native' threads) instead of using separate daemon processes. Provides (thread-safe) implementations for popular worker libraries such as Resque and Delayed::Job, but one can easily write their own 'daemon' scripts as well.
27
+ description: Implements a thread based worker pattern on top of JRuby-Rack. Useful if you'd like to run background workers within your (deployed) web-application, concurrently in 'native' threads, instead of using separate daemon processes. Provides (thread-safe) implementations for popular worker libraries such as Resque and Delayed::Job, but one can easily write their own 'daemon' work processing loop as well.
31
28
  email:
32
29
  - self@kares.org
33
30
  executables: []
@@ -36,37 +33,34 @@ extra_rdoc_files: []
36
33
  files:
37
34
  - LICENSE
38
35
  - README.md
39
- - lib/jruby-rack-worker_0.10.0.jar
36
+ - lib/jruby-rack-worker_0.10.1.jar
40
37
  - lib/jruby/rack/worker.rb
41
38
  - lib/jruby/rack/worker/env.rb
42
39
  - lib/jruby/rack/worker/logger.rb
43
40
  - lib/jruby/rack/worker/version.rb
44
41
  - lib/jruby_rack_worker.rb
45
- homepage: http://github.com/kares/jruby-rack-worker
46
- licenses: []
42
+ homepage: https://github.com/kares/jruby-rack-worker
43
+ licenses:
44
+ - Apache-2.0
45
+ metadata: {}
47
46
  post_install_message:
48
47
  rdoc_options: []
49
48
  require_paths:
50
49
  - lib
51
50
  required_ruby_version: !ruby/object:Gem::Requirement
52
51
  requirements:
53
- - - '>='
52
+ - - ">="
54
53
  - !ruby/object:Gem::Version
55
- segments:
56
- - 0
57
- hash: 2
58
54
  version: '0'
59
- none: false
60
55
  required_rubygems_version: !ruby/object:Gem::Requirement
61
56
  requirements:
62
- - - '>='
57
+ - - ">="
63
58
  - !ruby/object:Gem::Version
64
59
  version: '0'
65
- none: false
66
60
  requirements: []
67
- rubyforge_project: '[none]'
68
- rubygems_version: 1.8.24
61
+ rubyforge_project: "[none]"
62
+ rubygems_version: 2.4.8
69
63
  signing_key:
70
- specification_version: 3
64
+ specification_version: 4
71
65
  summary: Threaded Workers with JRuby-Rack
72
66
  test_files: []