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 +4 -4
- data/lib/bitsy/version.rb +1 -1
- data/lib/generators/bitsy/config/templates/clock.rb +17 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 681bef65d602526fe7bb899153a3d7340e3690e5
|
4
|
+
data.tar.gz: b4f3e854a2e876a6c62f9f6f4f7f8623f9c4425f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a473c073839403d57f554790d81990d6ff53caf11c1d9277880e4b5d7cb06cde70bf90400912df36f26ea83153cf3a6760ff744b48d7e1cb69c55004a4108ad
|
7
|
+
data.tar.gz: 7bdb362a55a7c50202fc2185188a5c17be25a0401ff88c15e2842b26c8efeb22ed8ea50309c4a0c57eabafc0a9ae0c1c4ef471f672b12c3a738c0a062a49b18f
|
data/lib/bitsy/version.rb
CHANGED
@@ -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|
|