pt-osc 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,6 +3,7 @@ branches:
3
3
  - master
4
4
  language: ruby
5
5
  rvm:
6
+ - 1.9.2
6
7
  - 1.9.3
7
8
  - 2.0.0
8
9
  - 2.1.2
@@ -1,3 +1,8 @@
1
+ ## 0.1.1
2
+
3
+ - now compatible with versions 0.5.0 and later of [zdennis/activerecord-import](https://github.com/zdennis/activerecord-import)
4
+ - fixed `LoadError` in `ActiveRecord::PtOscMigration`
5
+
1
6
  ## 0.1.0
2
7
 
3
8
  - renamed `PtOscAdapter` -> `MysqlPtOscAdapter` for better compatibility with Rails db Rake tasks.
data/README.md CHANGED
@@ -44,10 +44,16 @@ Additional/modified options for the `percona` hash include:
44
44
  ## Caveats
45
45
 
46
46
  This gem is not considered production ready. There will be bugs.
47
- It is tested against:
47
+
48
+ ##### Compatibility
49
+
50
+ `pt-osc` is tested against:
48
51
  - ActiveRecord 3.2 branch
49
52
  - Ruby 1.9.2
53
+ - Ruby 1.9.3
50
54
  - Ruby 2.0.0
51
55
  - Ruby 2.1.2
52
56
 
53
57
  Support for other versions of Ruby or ActiveRecord is unknown and not guaranteed.
58
+
59
+ `pt-osc` is compatible with versions 0.5.0 and later of [zdennis/activerecord-import](https://github.com/zdennis/activerecord-import). It will not work with earlier versions.
@@ -1,4 +1,5 @@
1
1
  require 'active_record/migration'
2
+ require 'active_record/connection_adapters/mysql_pt_osc_adapter'
2
3
 
3
4
  module ActiveRecord
4
5
  class PtOscMigration < Migration
@@ -0,0 +1 @@
1
+ require 'active_record/connection_adapters/mysql_pt_osc_adapter'
@@ -1,5 +1,5 @@
1
1
  module Pt
2
2
  module Osc
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  end
5
5
  end
@@ -26,6 +26,7 @@ Gem::Specification.new do |spec|
26
26
  # For testing using dummy Rails app
27
27
  spec.add_development_dependency 'rails', '~> 3.2'
28
28
  spec.add_development_dependency 'sqlite3'
29
+ spec.add_development_dependency 'activerecord-import', '~> 0.5.0'
29
30
 
30
31
  spec.add_runtime_dependency 'activerecord', '~> 3.2'
31
32
  spec.add_runtime_dependency 'mysql2'
@@ -13,4 +13,9 @@ class MysqlPtOscAdapterTest < Test::Unit::TestCase
13
13
  assert_equal true, TestConnection.connection.in_use
14
14
  assert_kind_of ActiveRecord::ConnectionAdapters::MysqlPtOscAdapter, TestConnection.connection
15
15
  end
16
+
17
+ def test_activerecord_import_compatibility
18
+ # Test that the adapter can be loaded when using the activerecord-import gem
19
+ assert_nothing_raised { require 'activerecord-import' }
20
+ end
16
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pt-osc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-07-04 00:00:00.000000000 Z
12
+ date: 2014-07-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -123,6 +123,22 @@ dependencies:
123
123
  - - ! '>='
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: activerecord-import
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ~>
132
+ - !ruby/object:Gem::Version
133
+ version: 0.5.0
134
+ type: :development
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ~>
140
+ - !ruby/object:Gem::Version
141
+ version: 0.5.0
126
142
  - !ruby/object:Gem::Dependency
127
143
  name: activerecord
128
144
  requirement: !ruby/object:Gem::Requirement
@@ -171,6 +187,7 @@ files:
171
187
  - Rakefile
172
188
  - lib/active_record/connection_adapters/mysql_pt_osc_adapter.rb
173
189
  - lib/active_record/pt_osc_migration.rb
190
+ - lib/activerecord-import/active_record/adapters/mysql_pt_osc_adapter.rb
174
191
  - lib/pt-osc.rb
175
192
  - lib/pt-osc/version.rb
176
193
  - pt-osc.gemspec
@@ -229,7 +246,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
229
246
  version: '0'
230
247
  segments:
231
248
  - 0
232
- hash: -1002230832062857032
249
+ hash: -544174187628415137
233
250
  required_rubygems_version: !ruby/object:Gem::Requirement
234
251
  none: false
235
252
  requirements:
@@ -238,7 +255,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
238
255
  version: '0'
239
256
  segments:
240
257
  - 0
241
- hash: -1002230832062857032
258
+ hash: -544174187628415137
242
259
  requirements: []
243
260
  rubyforge_project:
244
261
  rubygems_version: 1.8.23