ocelot 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ * 0.0.8
2
+ - 1.8.7 backwards compatability attempt 1 (for Han S. at headliner.fm)
@@ -1,5 +1,3 @@
1
- Expect constant flux until version 0.1.0.
2
-
3
1
  Source at https://bitbucket.org/exussum/ocelot
4
2
 
5
3
  Home at http://exussum.heroku.com
@@ -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
- ActiveRecord::ConnectionAdapters::ConnectionHandler.class_variable_set(:@@conn, self)
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
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "ocelot"
6
- s.version = "0.0.7"
6
+ s.version = "0.0.8"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["spencer p"]
9
9
  s.email = ["exussum@gmail.com"]
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
- version: 0.0.7
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: 2011-06-04 00:00:00 -04:00
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
- - README
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