herdst_worker 0.1.9 → 0.1.10

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
  SHA256:
3
- metadata.gz: e394fc18334aecfcbb21d5c9e639067a1f777b2d137edd9fb404bc6c86722613
4
- data.tar.gz: ed79d59376596ec7f57d753d9c87f5ed939362834fdbde91a84392857f304a65
3
+ metadata.gz: 6754dcab06ceedfa472bae8e9f36308d5b72865ed9d49c9b50119c923ad7f33a
4
+ data.tar.gz: 52d94cf004fb6e482d19b0f1ad254dc1c19a6069fc97e27c758414e38e496b41
5
5
  SHA512:
6
- metadata.gz: 8e4f9442a39b0d8b0e14ce93c14963ce7ca9297e054a9df5d66e0a1e335de543731ccef5b8fd41939efa74907ca7c1167bb3b60ed65404d7c6f497da84ca7739
7
- data.tar.gz: 49e2e8e2e01b3fcebf58b48f253cf763f59b18013b560aabe80f719ed2f52b0594494f9809e2e3c0bb3429ba71644622b9c04632cd90fc4118a55219bffaace5
6
+ metadata.gz: 923627aabe68609ac0378cbf90ff33ef96d583902100d8537a6fbfb5cf8dd5c850f888c22d3e2f4a30a0e744c4ceea64cd73d62c7b41b31738c0517f5a53bc2e
7
+ data.tar.gz: 42b2742887f6a3db02a715acecee2203b8c787dd4be04bd57320b21fe28d60a1a684b13f7d599da5fde55473f5841679a6e3d55f1e1d8a743cd2a6d6338f8575
@@ -5,14 +5,14 @@ module HerdstWorker
5
5
 
6
6
  def self.setup(app)
7
7
  begin
8
+ if app.config.is_dev?
9
+ ActiveRecord::Base.logger = app.logger.activerecord
10
+ end
11
+
8
12
  db_config = app.config_for(:database)
9
13
  db_config.each do |k, v|
10
14
  db_config[k] = ActiveRecord::DatabaseConfigurations::HashConfig.new(app.config.env, k, v)
11
15
  end
12
-
13
- if app.config.is_dev?
14
- ActiveRecord::Base.logger = app.logger.activerecord
15
- end
16
16
 
17
17
  ActiveRecord::Base.configurations = db_config.values
18
18
  ActiveRecord::Base.default_timezone = :utc
@@ -1,3 +1,3 @@
1
1
  module HerdstWorker
2
- VERSION = '0.1.9'
2
+ VERSION = '0.1.10'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: herdst_worker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Herd.St