fanforce-workers 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjhmZTRhZGVkZDNjNWYwNGJjOTgwYjBhODRmM2Q1NTQ2MDVjMzVhZA==
4
+ ZTFkMDRiYzYwMGJhNzA2ZGRmNTAwYjIzODY0YzViZGE2MTliMzlkMw==
5
5
  data.tar.gz: !binary |-
6
- ZGU1ZGZjZDJlOWUzOWNjZjlmYmRlYmJmMjM5YTcxOWVjMTUzMTQzZQ==
6
+ MDk5YzYxYTVlYjg3OWNkZDdlNmQ2ZGRkYzU0ZjVjZTIwZDRlYjkwNQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ODljMjZmN2RkZWEzOWRhNWZiZWRmOGI5YTYyMTAxMzEzNGI3YTgzZjg5Yzdk
10
- NzE4NzkyOWYyMDcwNTUxOTFhNTUwYWFmN2Q1NzNmYmE5MDM4ZTc3MTU1ZDJh
11
- ZDY3ZmViMzM1NDhjZjlmZTAwOGU1NDg5MDBiMGFiNjFjOTdiNzk=
9
+ MDI2YTQ2Y2JiMTVhMjdhM2M0YTFhM2U5YTNjMmVhNTA2ZjZiNzI5ZTRhM2Rl
10
+ MDI4MjhmOTEzZjE4MzQ1MmVkZjVjOWVjODRhOWI1MGRjOWRhZGY0ZTM4OTMw
11
+ ODZhY2I4ODg1MjljMzMyMDZkMGI0YTcwMTEzZmUwZDhlYTI5ZmQ=
12
12
  data.tar.gz: !binary |-
13
- Zjk5NWY1YzM5YTYzZWY4Yjc3ZjkwYmMwYzQxZGFiMWE2YmYxNGZhMmFjMjk3
14
- NGNlYTk5MGE1MTIyNTFkMjJhZTYxMzk4YzdhMGMxZTNhY2I2NTA2MzJjMTQ1
15
- NjMyMTAxOWIxYjAxNGE0MTZkNWY5ZjAzNDMxNzIxNzg3OTVmY2Q=
13
+ NTRiYmM4NDFhNmM3MzhjODQzNzBlODI2ZjZjMjAyNWY2MTRjMzVhNzEzY2U3
14
+ ODZkZmJjNGNlZTY4NGZkYzczY2I3M2U4M2JkZjMzYTYxNWQyYmNkOTRiMDQy
15
+ YWU0NzlmMWE2MmUxZmE1ZGI0MmM1NTkyZjgyYzQ2MzlhZTZhNTU=
@@ -1,5 +1,5 @@
1
1
  class Fanforce
2
2
  class Workers
3
- VERSION = '0.9.0'
3
+ VERSION = '0.9.1'
4
4
  end
5
5
  end
@@ -129,8 +129,18 @@ class Fanforce::Workers
129
129
  @current_job
130
130
  end
131
131
 
132
+ def self.load_env
133
+ if File.exists?('.developmentenv.rb')
134
+ require '.developmentenv'
135
+ elsif File.exists?('.stagingenv.rb')
136
+ require '.stagingenv'
137
+ elsif File.exists?('.productionenv.rb')
138
+ require '.productionenv'
139
+ end
140
+ end
141
+
132
142
  def self.run(worker_data, &code_block)
133
- require '.pluginenv'
143
+ load_env
134
144
  require 'iron_mq'
135
145
  require 'iron_cache'
136
146
  require 'fanforce/api'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fanforce-workers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Clark