fanforce-plugin-worker 2.0.0.rc7 → 2.0.0.rc8

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a5d8022ddf38cfc6116518c057b44251c175bd08
4
- data.tar.gz: 17177241973def846c0795ea33accaa7e949e789
3
+ metadata.gz: 71e14a39029c1c83d92402fb9834b57bfcc13c2a
4
+ data.tar.gz: ee81d36b510b3e83b8da81666e656ad9ba0384d3
5
5
  SHA512:
6
- metadata.gz: 1b1af9eec6413a91b39f349555e793efba64f483d9e1b57e500f0ea689cb443fa7fefd1e0f618832dceb32ba5f189d351a8cab39b5e681525eccb8add995ea3c
7
- data.tar.gz: b3ebc993abaa096f1c7ebe36df58ab6a7a9bc3c6e32da2fc568b6d2a4f3f64ee5940d5edd34e42856495698fb9ebf4e5e35a1320bcd4e0e6d6b859ab4aff56ea
6
+ metadata.gz: 5dea53c7fce7913e605827b243abd8e6a831c86f83b085d6f1afe0e0cd617fb71b4c2efcb2a04b0c9572693ee984c0a490542388f44046abfa1e70d4162e3ba2
7
+ data.tar.gz: b9e35175220525cf4d73b86feb84e8fa16d383a83c639221ede4ede7acfe8a46e1e14a8ca6a67170f637259b5a78260184e66e6a0b3b00a884b6cce22d9bedac
@@ -1,5 +1,5 @@
1
1
  class Fanforce
2
2
  class PluginWorker
3
- VERSION = '2.0.0.rc7'
3
+ VERSION = '2.0.0.rc8'
4
4
  end
5
5
  end
@@ -40,7 +40,7 @@ class Fanforce::PluginWorker
40
40
  def self.enqueue(queue_id, params, options={})
41
41
  raise 'Params being sent to the queue must be a Hash' if !params.is_a?(Hash)
42
42
 
43
- if ENV['FANFORCE_WORKER_SHOULD_BYPASS_ENQUEUE']
43
+ if [true,'true'].include?(ENV['FANFORCE_WORKER_SHOULD_BYPASS_ENQUEUE'])
44
44
  bypass_enqueue(queue_id, params)
45
45
  else
46
46
  queue_id = Utils.iron_queue_id(queue_id)
@@ -58,7 +58,7 @@ class Fanforce::PluginWorker
58
58
  end
59
59
 
60
60
  def self.run(worker_data, min_execution_time=300, &code_block)
61
- if ENV['FANFORCE_WORKER_SHOULD_BYPASS_ENQUEUE']
61
+ if [true,'true'].include?(ENV['FANFORCE_WORKER_SHOULD_BYPASS_ENQUEUE'])
62
62
  RunnerLocal.new(worker_data, min_execution_time, &code_block)
63
63
  else
64
64
  Runner.new(worker_data, min_execution_time, &code_block)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fanforce-plugin-worker
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.rc7
4
+ version: 2.0.0.rc8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Clark