theine 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/theine/worker.rb +4 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a725ca8fb94098b7c8a22c3a20060423f460ea2c
4
- data.tar.gz: ad60b0331d09109a055bbed9b24a88a452d8cd30
3
+ metadata.gz: 9c8fa9f9182c84eff3454d9c249191e94c964462
4
+ data.tar.gz: 22148811142944d582ab7ce313f9ce1468e4cffb
5
5
  SHA512:
6
- metadata.gz: 2fbd349c19047ab9b8eb27cd0f72d8d8d8092e3235d62e65f63930e2d24a77bb4b6aa15aca7d907a251d8d9ddc2e259a833faadd7af56d11d7df270d5b773568
7
- data.tar.gz: 2c3931769b602b0e0882dcca9875d12deee91127a57659bb89fdca70d8dc4285ddc212d5a8b747a4b574081857bf7132a7e61b603053edcb31a68ca5901a8e80
6
+ metadata.gz: 928ac83a67344ad2fee17a53de8245fa042a96c4c97ea3ad3102040217cfe1a6a0884616b73dd619fb5fdc8cccb252bcd4a650d4b3de3320fc809e5c1c22eba1
7
+ data.tar.gz: c07d3fd6bcd87a257f069d266878db0e6e64f9d2f5438708f69f4b96006e925ba7b68150ece063975cd56ee1131a54ef68cf2611dbbb0d48aad5f1002f8cec77
@@ -93,6 +93,10 @@ module Theine
93
93
  # load config/environments/test.rb
94
94
  test_env_rb = ::Rails.root.join("config/environments/#{env}.rb")
95
95
  load(test_env_rb) if File.exist?(test_env_rb)
96
+
97
+ if defined? ActiveRecord
98
+ ActiveRecord::Base.establish_connection rescue nil
99
+ end
96
100
  end
97
101
  end
98
102
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: theine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Berdajs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-28 00:00:00.000000000 Z
11
+ date: 2013-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry