believer 0.1 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/believer/environment.rb
CHANGED
|
@@ -6,8 +6,8 @@ module Believer
|
|
|
6
6
|
|
|
7
7
|
def environment
|
|
8
8
|
if @environment.nil?
|
|
9
|
-
if defined?(Rails)
|
|
10
|
-
@environment =
|
|
9
|
+
if defined?(::Rails)
|
|
10
|
+
@environment = Believer::Environment::RailsEnv.new
|
|
11
11
|
end
|
|
12
12
|
end
|
|
13
13
|
@environment
|
|
@@ -19,7 +19,11 @@ module Believer
|
|
|
19
19
|
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
-
class
|
|
22
|
+
class BaseEnv
|
|
23
|
+
#def connection_configuration
|
|
24
|
+
# {:host => '127.0.0.1'}
|
|
25
|
+
#end
|
|
26
|
+
|
|
23
27
|
def create_connection(options = {})
|
|
24
28
|
cc = connection_configuration
|
|
25
29
|
|
data/lib/believer/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: believer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -108,7 +108,7 @@ files:
|
|
|
108
108
|
- lib/believer/ddl.rb
|
|
109
109
|
- lib/believer/delete.rb
|
|
110
110
|
- lib/believer/empty_result.rb
|
|
111
|
-
- lib/believer/environment/
|
|
111
|
+
- lib/believer/environment/rails_env.rb
|
|
112
112
|
- lib/believer/environment.rb
|
|
113
113
|
- lib/believer/insert.rb
|
|
114
114
|
- lib/believer/limit.rb
|