ocelot 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.TXT +2 -0
- data/{README → README.TXT} +0 -2
- data/lib/ocelot/database.rb +5 -3
- data/ocelot.gemspec +1 -1
- metadata +15 -3
data/CHANGES.TXT
ADDED
data/{README → README.TXT}
RENAMED
data/lib/ocelot/database.rb
CHANGED
@@ -7,7 +7,7 @@ module Ocelot
|
|
7
7
|
attr_accessor :source
|
8
8
|
attr_accessor :target
|
9
9
|
attr_accessor :use_source
|
10
|
-
|
10
|
+
|
11
11
|
def initialize(source, target)
|
12
12
|
[source, target].each do |db|
|
13
13
|
require "active_record/connection_adapters/#{db['adapter']}_adapter"
|
@@ -18,9 +18,11 @@ module Ocelot
|
|
18
18
|
|
19
19
|
self.use_source = true
|
20
20
|
|
21
|
-
# AR doesn't like oop much, monkeypatch lots o stuff
|
22
|
-
|
21
|
+
# AR doesn't like oop much, monkeypatch lots o stuff, 1.8.7 compatability
|
22
|
+
|
23
|
+
ocelot_conn = self
|
23
24
|
ActiveRecord::ConnectionAdapters::ConnectionHandler.class_eval do
|
25
|
+
@@conn = ocelot_conn
|
24
26
|
def retrieve_connection(klass)
|
25
27
|
@@conn.current_connection
|
26
28
|
end
|
data/ocelot.gemspec
CHANGED
metadata
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ocelot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 15
|
4
5
|
prerelease:
|
5
|
-
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 8
|
10
|
+
version: 0.0.8
|
6
11
|
platform: ruby
|
7
12
|
authors:
|
8
13
|
- spencer p
|
@@ -10,7 +15,7 @@ autorequire:
|
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
17
|
|
13
|
-
date:
|
18
|
+
date: 2012-07-31 00:00:00 -04:00
|
14
19
|
default_executable:
|
15
20
|
dependencies: []
|
16
21
|
|
@@ -24,7 +29,8 @@ extensions: []
|
|
24
29
|
extra_rdoc_files: []
|
25
30
|
|
26
31
|
files:
|
27
|
-
-
|
32
|
+
- CHANGES.TXT
|
33
|
+
- README.TXT
|
28
34
|
- Rakefile
|
29
35
|
- bin/ocelot
|
30
36
|
- lib/ocelot.rb
|
@@ -50,12 +56,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
50
56
|
requirements:
|
51
57
|
- - ">="
|
52
58
|
- !ruby/object:Gem::Version
|
59
|
+
hash: 3
|
60
|
+
segments:
|
61
|
+
- 0
|
53
62
|
version: "0"
|
54
63
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
55
64
|
none: false
|
56
65
|
requirements:
|
57
66
|
- - ">="
|
58
67
|
- !ruby/object:Gem::Version
|
68
|
+
hash: 3
|
69
|
+
segments:
|
70
|
+
- 0
|
59
71
|
version: "0"
|
60
72
|
requirements: []
|
61
73
|
|