believer 0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,8 +6,8 @@ module Believer
6
6
 
7
7
  def environment
8
8
  if @environment.nil?
9
- if defined?(Rails)
10
- @environment = RailsEnvironment.new
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 Base
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
 
@@ -1,7 +1,7 @@
1
1
 
2
2
  module Believer
3
3
  module Environment
4
- class RailsEnvironment < Base
4
+ class RailsEnv < BaseEnv
5
5
 
6
6
  def connection_configuration
7
7
  unless @connection_configuration
@@ -1,5 +1,5 @@
1
1
  module Believer
2
2
  module Version
3
- VERSION = '0.1'
3
+ VERSION = '0.1.1'
4
4
  end
5
5
  end
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: '0.1'
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/rails_environment.rb
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