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 +10 -0
- data/VERSION +1 -1
- data/connection_ninja.gemspec +1 -1
- data/lib/connection_ninja/orms/active_record.rb +2 -2
- metadata +3 -3
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.
|
1
|
+
0.4.1
|
data/connection_ninja.gemspec
CHANGED
@@ -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:
|
4
|
+
hash: 13
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 1
|
10
|
+
version: 0.4.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Chris Herring
|