ar_mysql_flexmaster 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,14 @@
1
+ appraise "rails2" do
2
+ gem "rails", "~> 2.3.15"
3
+ gem 'mysql2', "~> 0.2.0"
4
+ end
5
+
6
+ appraise "rails3" do
7
+ gem "rails", "~> 3.0.0"
8
+ gem 'mysql2', "~> 0.2.0"
9
+ end
10
+
11
+ appraise "rails3.2" do
12
+ gem "rails", "~> 3.2.0"
13
+ gem 'mysql2', "~> 0.3.0"
14
+ end
data/Gemfile CHANGED
@@ -3,4 +3,5 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in ar_mysql_flexmaster.gemspec
4
4
  gemspec
5
5
  gem "debugger", :platform => :ruby_19
6
+ gem "appraisal"
6
7
 
data/Rakefile CHANGED
@@ -1,11 +1,14 @@
1
1
  #!/usr/bin/env rake
2
- require 'yaggy'
3
2
  require 'rake/testtask'
4
3
 
4
+ require 'appraisal'
5
+ require 'yaggy'
6
+
5
7
  Yaggy.gem(File.expand_path("ar_mysql_flexmaster.gemspec", File.dirname(__FILE__)), :push_gem => true)
6
8
 
7
9
  Rake::TestTask.new(:test) do |test|
8
10
  test.libs << 'lib' << 'test'
9
- test.pattern = 'test/**/*_test.rb'
11
+ test.pattern = 'test/*_test.rb'
12
+ #test.test_files = ['test/integration/run_integration_tests']
10
13
  test.verbose = true
11
14
  end
@@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
12
12
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
13
13
  gem.name = "ar_mysql_flexmaster"
14
14
  gem.require_paths = ["lib"]
15
- gem.version = "0.0.5"
15
+ gem.version = "0.0.6"
16
16
 
17
17
  gem.add_runtime_dependency("mysql2")
18
18
  gem.add_runtime_dependency("activerecord")
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "debugger", :platform=>:ruby_19
6
+ gem "appraisal"
7
+ gem "rails", "~> 2.3.15"
8
+ gem "mysql2", "~> 0.2.0"
9
+
10
+ gemspec :path=>"../"
@@ -0,0 +1,54 @@
1
+ PATH
2
+ remote: /Users/ben/src/ar_mysql_flexmaster
3
+ specs:
4
+ ar_mysql_flexmaster (0.0.5)
5
+ activerecord
6
+ activesupport
7
+ mysql2
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ actionmailer (2.3.15)
13
+ actionpack (= 2.3.15)
14
+ actionpack (2.3.15)
15
+ activesupport (= 2.3.15)
16
+ rack (~> 1.1.3)
17
+ activerecord (2.3.15)
18
+ activesupport (= 2.3.15)
19
+ activeresource (2.3.15)
20
+ activesupport (= 2.3.15)
21
+ activesupport (2.3.15)
22
+ appraisal (0.5.1)
23
+ bundler
24
+ rake
25
+ columnize (0.3.6)
26
+ debugger (1.2.3)
27
+ columnize (>= 0.3.1)
28
+ debugger-linecache (~> 1.1.1)
29
+ debugger-ruby_core_source (~> 1.1.5)
30
+ debugger-linecache (1.1.2)
31
+ debugger-ruby_core_source (>= 1.1.1)
32
+ debugger-ruby_core_source (1.1.6)
33
+ mysql2 (0.2.18)
34
+ rack (1.1.5)
35
+ rails (2.3.15)
36
+ actionmailer (= 2.3.15)
37
+ actionpack (= 2.3.15)
38
+ activerecord (= 2.3.15)
39
+ activeresource (= 2.3.15)
40
+ activesupport (= 2.3.15)
41
+ rake (>= 0.8.3)
42
+ rake (10.0.3)
43
+ yaggy (0.1.7)
44
+
45
+ PLATFORMS
46
+ ruby
47
+
48
+ DEPENDENCIES
49
+ appraisal
50
+ ar_mysql_flexmaster!
51
+ debugger
52
+ mysql2 (~> 0.2.0)
53
+ rails (~> 2.3.15)
54
+ yaggy
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "debugger", :platform=>:ruby_19
6
+ gem "appraisal"
7
+ gem "rails", "~> 3.2.0"
8
+ gem "mysql2", "~> 0.3.0"
9
+
10
+ gemspec :path=>"../"
@@ -0,0 +1,112 @@
1
+ PATH
2
+ remote: /Users/ben/src/ar_mysql_flexmaster
3
+ specs:
4
+ ar_mysql_flexmaster (0.0.5)
5
+ activerecord
6
+ activesupport
7
+ mysql2
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ actionmailer (3.2.11)
13
+ actionpack (= 3.2.11)
14
+ mail (~> 2.4.4)
15
+ actionpack (3.2.11)
16
+ activemodel (= 3.2.11)
17
+ activesupport (= 3.2.11)
18
+ builder (~> 3.0.0)
19
+ erubis (~> 2.7.0)
20
+ journey (~> 1.0.4)
21
+ rack (~> 1.4.0)
22
+ rack-cache (~> 1.2)
23
+ rack-test (~> 0.6.1)
24
+ sprockets (~> 2.2.1)
25
+ activemodel (3.2.11)
26
+ activesupport (= 3.2.11)
27
+ builder (~> 3.0.0)
28
+ activerecord (3.2.11)
29
+ activemodel (= 3.2.11)
30
+ activesupport (= 3.2.11)
31
+ arel (~> 3.0.2)
32
+ tzinfo (~> 0.3.29)
33
+ activeresource (3.2.11)
34
+ activemodel (= 3.2.11)
35
+ activesupport (= 3.2.11)
36
+ activesupport (3.2.11)
37
+ i18n (~> 0.6)
38
+ multi_json (~> 1.0)
39
+ appraisal (0.5.1)
40
+ bundler
41
+ rake
42
+ arel (3.0.2)
43
+ builder (3.0.4)
44
+ columnize (0.3.6)
45
+ debugger (1.2.3)
46
+ columnize (>= 0.3.1)
47
+ debugger-linecache (~> 1.1.1)
48
+ debugger-ruby_core_source (~> 1.1.5)
49
+ debugger-linecache (1.1.2)
50
+ debugger-ruby_core_source (>= 1.1.1)
51
+ debugger-ruby_core_source (1.1.6)
52
+ erubis (2.7.0)
53
+ hike (1.2.1)
54
+ i18n (0.6.1)
55
+ journey (1.0.4)
56
+ json (1.7.6)
57
+ mail (2.4.4)
58
+ i18n (>= 0.4.0)
59
+ mime-types (~> 1.16)
60
+ treetop (~> 1.4.8)
61
+ mime-types (1.19)
62
+ multi_json (1.5.0)
63
+ mysql2 (0.3.11)
64
+ polyglot (0.3.3)
65
+ rack (1.4.4)
66
+ rack-cache (1.2)
67
+ rack (>= 0.4)
68
+ rack-ssl (1.3.2)
69
+ rack
70
+ rack-test (0.6.2)
71
+ rack (>= 1.0)
72
+ rails (3.2.11)
73
+ actionmailer (= 3.2.11)
74
+ actionpack (= 3.2.11)
75
+ activerecord (= 3.2.11)
76
+ activeresource (= 3.2.11)
77
+ activesupport (= 3.2.11)
78
+ bundler (~> 1.0)
79
+ railties (= 3.2.11)
80
+ railties (3.2.11)
81
+ actionpack (= 3.2.11)
82
+ activesupport (= 3.2.11)
83
+ rack-ssl (~> 1.3.2)
84
+ rake (>= 0.8.7)
85
+ rdoc (~> 3.4)
86
+ thor (>= 0.14.6, < 2.0)
87
+ rake (10.0.3)
88
+ rdoc (3.12)
89
+ json (~> 1.4)
90
+ sprockets (2.2.2)
91
+ hike (~> 1.2)
92
+ multi_json (~> 1.0)
93
+ rack (~> 1.0)
94
+ tilt (~> 1.1, != 1.3.0)
95
+ thor (0.16.0)
96
+ tilt (1.3.3)
97
+ treetop (1.4.12)
98
+ polyglot
99
+ polyglot (>= 0.3.1)
100
+ tzinfo (0.3.35)
101
+ yaggy (0.1.7)
102
+
103
+ PLATFORMS
104
+ ruby
105
+
106
+ DEPENDENCIES
107
+ appraisal
108
+ ar_mysql_flexmaster!
109
+ debugger
110
+ mysql2 (~> 0.3.0)
111
+ rails (~> 3.2.0)
112
+ yaggy
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "debugger", :platform=>:ruby_19
6
+ gem "appraisal"
7
+ gem "rails", "~> 3.0.0"
8
+ gem "mysql2", "~> 0.2.0"
9
+
10
+ gemspec :path=>"../"
@@ -0,0 +1,102 @@
1
+ PATH
2
+ remote: /Users/ben/src/ar_mysql_flexmaster
3
+ specs:
4
+ ar_mysql_flexmaster (0.0.5)
5
+ activerecord
6
+ activesupport
7
+ mysql2
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ abstract (1.0.0)
13
+ actionmailer (3.0.19)
14
+ actionpack (= 3.0.19)
15
+ mail (~> 2.2.19)
16
+ actionpack (3.0.19)
17
+ activemodel (= 3.0.19)
18
+ activesupport (= 3.0.19)
19
+ builder (~> 2.1.2)
20
+ erubis (~> 2.6.6)
21
+ i18n (~> 0.5.0)
22
+ rack (~> 1.2.5)
23
+ rack-mount (~> 0.6.14)
24
+ rack-test (~> 0.5.7)
25
+ tzinfo (~> 0.3.23)
26
+ activemodel (3.0.19)
27
+ activesupport (= 3.0.19)
28
+ builder (~> 2.1.2)
29
+ i18n (~> 0.5.0)
30
+ activerecord (3.0.19)
31
+ activemodel (= 3.0.19)
32
+ activesupport (= 3.0.19)
33
+ arel (~> 2.0.10)
34
+ tzinfo (~> 0.3.23)
35
+ activeresource (3.0.19)
36
+ activemodel (= 3.0.19)
37
+ activesupport (= 3.0.19)
38
+ activesupport (3.0.19)
39
+ appraisal (0.5.1)
40
+ bundler
41
+ rake
42
+ arel (2.0.10)
43
+ builder (2.1.2)
44
+ columnize (0.3.6)
45
+ debugger (1.2.3)
46
+ columnize (>= 0.3.1)
47
+ debugger-linecache (~> 1.1.1)
48
+ debugger-ruby_core_source (~> 1.1.5)
49
+ debugger-linecache (1.1.2)
50
+ debugger-ruby_core_source (>= 1.1.1)
51
+ debugger-ruby_core_source (1.1.6)
52
+ erubis (2.6.6)
53
+ abstract (>= 1.0.0)
54
+ i18n (0.5.0)
55
+ json (1.7.6)
56
+ mail (2.2.19)
57
+ activesupport (>= 2.3.6)
58
+ i18n (>= 0.4.0)
59
+ mime-types (~> 1.16)
60
+ treetop (~> 1.4.8)
61
+ mime-types (1.19)
62
+ mysql2 (0.2.18)
63
+ polyglot (0.3.3)
64
+ rack (1.2.7)
65
+ rack-mount (0.6.14)
66
+ rack (>= 1.0.0)
67
+ rack-test (0.5.7)
68
+ rack (>= 1.0)
69
+ rails (3.0.19)
70
+ actionmailer (= 3.0.19)
71
+ actionpack (= 3.0.19)
72
+ activerecord (= 3.0.19)
73
+ activeresource (= 3.0.19)
74
+ activesupport (= 3.0.19)
75
+ bundler (~> 1.0)
76
+ railties (= 3.0.19)
77
+ railties (3.0.19)
78
+ actionpack (= 3.0.19)
79
+ activesupport (= 3.0.19)
80
+ rake (>= 0.8.7)
81
+ rdoc (~> 3.4)
82
+ thor (~> 0.14.4)
83
+ rake (10.0.3)
84
+ rdoc (3.12)
85
+ json (~> 1.4)
86
+ thor (0.14.6)
87
+ treetop (1.4.12)
88
+ polyglot
89
+ polyglot (>= 0.3.1)
90
+ tzinfo (0.3.35)
91
+ yaggy (0.1.7)
92
+
93
+ PLATFORMS
94
+ ruby
95
+
96
+ DEPENDENCIES
97
+ appraisal
98
+ ar_mysql_flexmaster!
99
+ debugger
100
+ mysql2 (~> 0.2.0)
101
+ rails (~> 3.0.0)
102
+ yaggy
@@ -127,7 +127,12 @@ module ActiveRecord
127
127
  end
128
128
 
129
129
  def flush_column_information
130
- ActiveRecord::Base.descendants.each do |k|
130
+ if ActiveRecord::Base.respond_to?(:descendants)
131
+ klass_list = ActiveRecord::Base.descendants
132
+ else
133
+ klass_list = ActiveRecord::Base.send(:subclasses)
134
+ end
135
+ klass_list.each do |k|
131
136
  k.reset_column_information
132
137
  end
133
138
  end
@@ -101,7 +101,7 @@ class MysqlIsolatedServer
101
101
  end
102
102
  at_exit {
103
103
  Process.kill("TERM", pid)
104
- system("rm -Rf #{base}")
104
+ #system("rm -Rf #{base}")
105
105
  }
106
106
  @pid = pid
107
107
  devnull.close
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ar_mysql_flexmaster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
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: 2013-01-09 00:00:00.000000000 Z
12
+ date: 2013-01-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mysql2
@@ -101,12 +101,19 @@ extensions: []
101
101
  extra_rdoc_files: []
102
102
  files:
103
103
  - .gitignore
104
+ - Appraisals
104
105
  - Gemfile
105
106
  - LICENSE
106
107
  - README.md
107
108
  - Rakefile
108
109
  - ar_mysql_flexmaster.gemspec
109
110
  - bin/master_cut
111
+ - gemfiles/rails2.gemfile
112
+ - gemfiles/rails2.gemfile.lock
113
+ - gemfiles/rails3.2.gemfile
114
+ - gemfiles/rails3.2.gemfile.lock
115
+ - gemfiles/rails3.gemfile
116
+ - gemfiles/rails3.gemfile.lock
110
117
  - lib/active_record/connection_adapters/mysql_flexmaster_adapter.rb
111
118
  - lib/ar_mysql_flexmaster.rb
112
119
  - test/ar_flexmaster_test.rb
@@ -130,7 +137,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
130
137
  version: '0'
131
138
  segments:
132
139
  - 0
133
- hash: 52903327559544532
140
+ hash: -3392143039168594248
134
141
  required_rubygems_version: !ruby/object:Gem::Requirement
135
142
  none: false
136
143
  requirements:
@@ -139,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
146
  version: '0'
140
147
  segments:
141
148
  - 0
142
- hash: 52903327559544532
149
+ hash: -3392143039168594248
143
150
  requirements: []
144
151
  rubyforge_project:
145
152
  rubygems_version: 1.8.24