connection_ninja 0.4.0 → 0.4.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/README.markdown CHANGED
@@ -6,8 +6,18 @@ Connection Ninja is a really simple gem to help connection to multiple databases
6
6
  Installation
7
7
  ============
8
8
 
9
+ Due to hopefully everyone upgrading to rails 3, if you need to use this with Rails 2.x just install the old version.
10
+
9
11
  Install the gem:
10
12
 
13
+ Rails 2.x
14
+ =========
15
+
16
+ gem install connection_ninja -v 0.3.5
17
+
18
+ Rails 3
19
+ =======
20
+
11
21
  gem install connection_ninja
12
22
 
13
23
  Configuration
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{connection_ninja}
8
- s.version = "0.4.0"
8
+ s.version = "0.4.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Chris Herring"]
@@ -11,9 +11,9 @@ module ConnectionNinja
11
11
  protected
12
12
  def ninja_config(config_group)
13
13
  begin
14
- configurations[config_group.to_s][Rails.env]
14
+ configurations[config_group.to_s][::Rails.env]
15
15
  rescue
16
- raise ::ActiveRecord::AdapterNotFound, "connection ninja could not find the #{Rails.env} configuration for group \"#{config_group.to_s}\""
16
+ raise ::ActiveRecord::AdapterNotFound, "connection ninja could not find the #{::Rails.env} configuration for group \"#{config_group.to_s}\""
17
17
  end
18
18
  end
19
19
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: connection_ninja
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 0
10
- version: 0.4.0
9
+ - 1
10
+ version: 0.4.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Herring