theine 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/theine/worker.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c8fa9f9182c84eff3454d9c249191e94c964462
|
4
|
+
data.tar.gz: 22148811142944d582ab7ce313f9ce1468e4cffb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 928ac83a67344ad2fee17a53de8245fa042a96c4c97ea3ad3102040217cfe1a6a0884616b73dd619fb5fdc8cccb252bcd4a650d4b3de3320fc809e5c1c22eba1
|
7
|
+
data.tar.gz: c07d3fd6bcd87a257f069d266878db0e6e64f9d2f5438708f69f4b96006e925ba7b68150ece063975cd56ee1131a54ef68cf2611dbbb0d48aad5f1002f8cec77
|
data/lib/theine/worker.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2013-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|