bitsy-bitcoin 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 849b89c147bb11b16bc2b109d3b1ae3488e1970a
4
- data.tar.gz: 764da3e8d74fcc49ec21e2afbe3314c4f343744e
3
+ metadata.gz: 681bef65d602526fe7bb899153a3d7340e3690e5
4
+ data.tar.gz: b4f3e854a2e876a6c62f9f6f4f7f8623f9c4425f
5
5
  SHA512:
6
- metadata.gz: 58d98db718f82b2c67cbdd980f380edc35b77e631402b891b21fc07950f5dac1e34b15d1e61fd43f60cc341bcd77eb572b2e0a7dbd8b1ef67462800f56c0c00c
7
- data.tar.gz: 119be683f3f9e53b7995aa17b9a253c26b50a103189eb633ff22a6ae6a51052481801f99d9e21b8c034b3deaae089167ce18c4660c522a468dd9d240bf57ebdc
6
+ metadata.gz: 0a473c073839403d57f554790d81990d6ff53caf11c1d9277880e4b5d7cb06cde70bf90400912df36f26ea83153cf3a6760ff744b48d7e1cb69c55004a4108ad
7
+ data.tar.gz: 7bdb362a55a7c50202fc2185188a5c17be25a0401ff88c15e2842b26c8efeb22ed8ea50309c4a0c57eabafc0a9ae0c1c4ef471f672b12c3a738c0a062a49b18f
@@ -1,3 +1,3 @@
1
1
  module Bitsy
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
@@ -1,5 +1,22 @@
1
1
  require 'clockwork'
2
2
  require "sidekiq"
3
+ require 'yml'
4
+
5
+ RAILS_ENV = ENV['RAILS_ENV']
6
+ if RAILS_ENV.nil?
7
+ fail ArgumentError, "clockwork must be started with RAILS_ENV"
8
+ end
9
+
10
+ bitsy_config_yml = File.join(File.dirname(__FILE__), "bitsy.yml")
11
+ CONFIG = YAML.load_file(bitsy_config_yml)[RAILS_ENV]
12
+
13
+ Sidekiq.configure_server do |config|
14
+ config.redis = { url: CONFIG['redis_url'] }
15
+ end
16
+
17
+ Sidekiq.configure_client do |config|
18
+ config.redis = { url: CONFIG['redis_url'] }
19
+ end
3
20
 
4
21
  module Clockwork
5
22
  handler do |job|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitsy-bitcoin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ramon Tayag