believer 0.1.1 → 0.1.2

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.rb CHANGED
@@ -14,6 +14,7 @@ require 'cql/client'
14
14
  require 'yaml'
15
15
 
16
16
  require 'believer/environment.rb'
17
+ require 'believer/environment/rails_env'
17
18
  require 'believer/connection.rb'
18
19
  require 'believer/values.rb'
19
20
  require 'believer/columns.rb'
@@ -1,3 +1,5 @@
1
+ #require "believer/environment/rails_env"
2
+
1
3
  module Believer
2
4
  module Environment
3
5
  extend ::ActiveSupport::Concern
@@ -7,7 +9,7 @@ module Believer
7
9
  def environment
8
10
  if @environment.nil?
9
11
  if defined?(::Rails)
10
- @environment = Believer::Environment::RailsEnv.new
12
+ @environment = ::Believer::Environment::RailsEnv.new
11
13
  end
12
14
  end
13
15
  @environment
@@ -1,7 +1,7 @@
1
1
 
2
2
  module Believer
3
3
  module Environment
4
- class RailsEnv < BaseEnv
4
+ class RailsEnv < Believer::Environment::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.1'
3
+ VERSION = '0.1.2'
4
4
  end
5
5
  end
File without changes
@@ -41,7 +41,7 @@ module Test
41
41
 
42
42
  end
43
43
 
44
- class Environment < Believer::Environment::Base
44
+ class Environment < Believer::Environment::BaseEnv
45
45
  def connection_configuration
46
46
  {:host => '127.0.0.1', :keyspace => 'believer_test_space'}
47
47
  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.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -131,6 +131,7 @@ files:
131
131
  - spec/believer/base_spec.rb
132
132
  - spec/believer/callback_spec.rb
133
133
  - spec/believer/delete_spec.rb
134
+ - spec/believer/environment/rails_env_spec.rb
134
135
  - spec/believer/insert_spec.rb
135
136
  - spec/believer/limit_spec.rb
136
137
  - spec/believer/order_by_spec.rb
@@ -169,6 +170,7 @@ test_files:
169
170
  - spec/believer/base_spec.rb
170
171
  - spec/believer/callback_spec.rb
171
172
  - spec/believer/delete_spec.rb
173
+ - spec/believer/environment/rails_env_spec.rb
172
174
  - spec/believer/insert_spec.rb
173
175
  - spec/believer/limit_spec.rb
174
176
  - spec/believer/order_by_spec.rb