qwirk 0.2.1 → 0.2.2
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/History.md +5 -0
- data/lib/qwirk.rb +3 -2
- data/lib/qwirk/adapter/base/expanding_worker_config.rb +1 -1
- data/lib/qwirk/adapter/base/worker_config.rb +1 -1
- data/lib/qwirk/adapter/in_memory/reply_queue.rb +1 -0
- data/lib/qwirk/adapter_factory.rb +9 -2
- data/lib/qwirk/base_worker.rb +1 -1
- data/lib/qwirk/manager.rb +1 -1
- data/lib/qwirk/publish_handle.rb +9 -4
- data/lib/qwirk/publisher.rb +1 -1
- data/lib/qwirk/remote.rb +62 -0
- data/lib/qwirk/remote/client.rb +71 -0
- data/lib/qwirk/remote/worker.rb +33 -0
- data/lib/qwirk/task.rb +2 -2
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/fixtures/qwirk/jobs.yml +11 -0
- data/test/functional/qwirk/jobs_controller_test.rb +9 -0
- data/test/integration/navigation_test.rb +7 -0
- data/test/support/integration_case.rb +5 -0
- data/test/test_helper.rbold +22 -0
- data/test/unit/helpers/qwirk/jobs_helper_test.rb +6 -0
- data/test/unit/qwirk/job_test.rb +9 -0
- metadata +77 -4
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Configure Rails Envinronment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require "rails/test_help"
|
6
|
+
|
7
|
+
ActionMailer::Base.delivery_method = :test
|
8
|
+
ActionMailer::Base.perform_deliveries = true
|
9
|
+
ActionMailer::Base.default_url_options[:host] = "test.com"
|
10
|
+
|
11
|
+
Rails.backtrace_cleaner.remove_silencers!
|
12
|
+
|
13
|
+
# Configure capybara for integration testing
|
14
|
+
require "capybara/rails"
|
15
|
+
Capybara.default_driver = :rack_test
|
16
|
+
Capybara.default_selector = :css
|
17
|
+
|
18
|
+
# Run any available migration
|
19
|
+
ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__)
|
20
|
+
|
21
|
+
# Load support files
|
22
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qwirk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
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: 2012-10-
|
12
|
+
date: 2012-10-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rumx
|
@@ -203,6 +203,9 @@ files:
|
|
203
203
|
- lib/qwirk/marshal_strategy.rb
|
204
204
|
- lib/qwirk/publish_handle.rb
|
205
205
|
- lib/qwirk/publisher.rb
|
206
|
+
- lib/qwirk/remote/client.rb
|
207
|
+
- lib/qwirk/remote/worker.rb
|
208
|
+
- lib/qwirk/remote.rb
|
206
209
|
- lib/qwirk/remote_exception.rb
|
207
210
|
- lib/qwirk/reply_worker.rb
|
208
211
|
- lib/qwirk/task.rb
|
@@ -219,6 +222,37 @@ files:
|
|
219
222
|
- History.md
|
220
223
|
- README.md
|
221
224
|
- test/database.yml
|
225
|
+
- test/dummy/app/assets/javascripts/application.js
|
226
|
+
- test/dummy/app/assets/stylesheets/application.css
|
227
|
+
- test/dummy/app/controllers/application_controller.rb
|
228
|
+
- test/dummy/app/helpers/application_helper.rb
|
229
|
+
- test/dummy/app/views/layouts/application.html.erb
|
230
|
+
- test/dummy/config/application.rb
|
231
|
+
- test/dummy/config/boot.rb
|
232
|
+
- test/dummy/config/database.yml
|
233
|
+
- test/dummy/config/environment.rb
|
234
|
+
- test/dummy/config/environments/development.rb
|
235
|
+
- test/dummy/config/environments/production.rb
|
236
|
+
- test/dummy/config/environments/test.rb
|
237
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
238
|
+
- test/dummy/config/initializers/inflections.rb
|
239
|
+
- test/dummy/config/initializers/mime_types.rb
|
240
|
+
- test/dummy/config/initializers/secret_token.rb
|
241
|
+
- test/dummy/config/initializers/session_store.rb
|
242
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
243
|
+
- test/dummy/config/locales/en.yml
|
244
|
+
- test/dummy/config/routes.rb
|
245
|
+
- test/dummy/config.ru
|
246
|
+
- test/dummy/public/404.html
|
247
|
+
- test/dummy/public/422.html
|
248
|
+
- test/dummy/public/500.html
|
249
|
+
- test/dummy/public/favicon.ico
|
250
|
+
- test/dummy/Rakefile
|
251
|
+
- test/dummy/README.rdoc
|
252
|
+
- test/dummy/script/rails
|
253
|
+
- test/fixtures/qwirk/jobs.yml
|
254
|
+
- test/functional/qwirk/jobs_controller_test.rb
|
255
|
+
- test/integration/navigation_test.rb
|
222
256
|
- test/jms.yml
|
223
257
|
- test/jms_fail_test.rb
|
224
258
|
- test/jms_requestor_block_test.rb
|
@@ -229,8 +263,12 @@ files:
|
|
229
263
|
- test/models/qwirk/batch/acquire_file_strategy_test.rb
|
230
264
|
- test/models/qwirk/batch/active_record/batch_job_test.rb
|
231
265
|
- test/models/qwirk/batch/parse_file_strategy_test.rb
|
266
|
+
- test/support/integration_case.rb
|
232
267
|
- test/test_helper.rb
|
268
|
+
- test/test_helper.rbold
|
233
269
|
- test/test_helper_active_record.rb
|
270
|
+
- test/unit/helpers/qwirk/jobs_helper_test.rb
|
271
|
+
- test/unit/qwirk/job_test.rb
|
234
272
|
homepage: http://github.com/ClarityServices/qwirk
|
235
273
|
licenses: []
|
236
274
|
post_install_message:
|
@@ -245,7 +283,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
245
283
|
version: '0'
|
246
284
|
segments:
|
247
285
|
- 0
|
248
|
-
hash:
|
286
|
+
hash: 1332245089792626443
|
249
287
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
250
288
|
none: false
|
251
289
|
requirements:
|
@@ -254,7 +292,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
254
292
|
version: '0'
|
255
293
|
segments:
|
256
294
|
- 0
|
257
|
-
hash:
|
295
|
+
hash: 1332245089792626443
|
258
296
|
requirements: []
|
259
297
|
rubyforge_project:
|
260
298
|
rubygems_version: 1.8.23
|
@@ -263,6 +301,37 @@ specification_version: 3
|
|
263
301
|
summary: Background task and Asynchronous RPC library
|
264
302
|
test_files:
|
265
303
|
- test/database.yml
|
304
|
+
- test/dummy/app/assets/javascripts/application.js
|
305
|
+
- test/dummy/app/assets/stylesheets/application.css
|
306
|
+
- test/dummy/app/controllers/application_controller.rb
|
307
|
+
- test/dummy/app/helpers/application_helper.rb
|
308
|
+
- test/dummy/app/views/layouts/application.html.erb
|
309
|
+
- test/dummy/config/application.rb
|
310
|
+
- test/dummy/config/boot.rb
|
311
|
+
- test/dummy/config/database.yml
|
312
|
+
- test/dummy/config/environment.rb
|
313
|
+
- test/dummy/config/environments/development.rb
|
314
|
+
- test/dummy/config/environments/production.rb
|
315
|
+
- test/dummy/config/environments/test.rb
|
316
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
317
|
+
- test/dummy/config/initializers/inflections.rb
|
318
|
+
- test/dummy/config/initializers/mime_types.rb
|
319
|
+
- test/dummy/config/initializers/secret_token.rb
|
320
|
+
- test/dummy/config/initializers/session_store.rb
|
321
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
322
|
+
- test/dummy/config/locales/en.yml
|
323
|
+
- test/dummy/config/routes.rb
|
324
|
+
- test/dummy/config.ru
|
325
|
+
- test/dummy/public/404.html
|
326
|
+
- test/dummy/public/422.html
|
327
|
+
- test/dummy/public/500.html
|
328
|
+
- test/dummy/public/favicon.ico
|
329
|
+
- test/dummy/Rakefile
|
330
|
+
- test/dummy/README.rdoc
|
331
|
+
- test/dummy/script/rails
|
332
|
+
- test/fixtures/qwirk/jobs.yml
|
333
|
+
- test/functional/qwirk/jobs_controller_test.rb
|
334
|
+
- test/integration/navigation_test.rb
|
266
335
|
- test/jms.yml
|
267
336
|
- test/jms_fail_test.rb
|
268
337
|
- test/jms_requestor_block_test.rb
|
@@ -273,5 +342,9 @@ test_files:
|
|
273
342
|
- test/models/qwirk/batch/acquire_file_strategy_test.rb
|
274
343
|
- test/models/qwirk/batch/active_record/batch_job_test.rb
|
275
344
|
- test/models/qwirk/batch/parse_file_strategy_test.rb
|
345
|
+
- test/support/integration_case.rb
|
276
346
|
- test/test_helper.rb
|
347
|
+
- test/test_helper.rbold
|
277
348
|
- test/test_helper_active_record.rb
|
349
|
+
- test/unit/helpers/qwirk/jobs_helper_test.rb
|
350
|
+
- test/unit/qwirk/job_test.rb
|