lol_dba 1.6.6 → 1.6.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ac0b85b66b11cef7a5a9f061f9882e174ebd6873
4
- data.tar.gz: dc82fa017c77d78ba1d29e2ab7eea95713f0d7a7
3
+ metadata.gz: 4d22c2c708f37f6cc0d362a4f14a5cc793f7500a
4
+ data.tar.gz: 40ef7243e0925d1cf8f6578ba17cf828954303ce
5
5
  SHA512:
6
- metadata.gz: 4104dea3e0f47a9af87cebd86baa446088b2e4bbebceedadfa57f753fa2e55cccd2c47278ae1906d7d77eb7464c8fb70c75c65e4da3f868bbaddec1fc579af6c
7
- data.tar.gz: 772690ccc91087cec77b7b2451fdf246638351f3d821b8c581b828bdff64777c9d94847d4d934d8ca9b155a3397b3213f8dd7dedfab6d3a5f4365b576c7a2c2a
6
+ metadata.gz: 53602c33e18f3660ec3ec01741edf97dd5a328cb524e5651cad67eae4483e8402178bf745aa5e40e158451971bd416c19098381b80855355d467d3d9c7af4b72
7
+ data.tar.gz: d3de40d77b479e81d8523389a1b4e668b11706997113bfd4a67f0421c898ed25cfc410aa652b254bc8c072ab2f528cbed9e4485dd82222155d0853d8699fcf17
@@ -1,10 +1,22 @@
1
+ # Send builds to container-based infrastructure
2
+ # http://docs.travis-ci.com/user/workers/container-based-infrastructure/
3
+ sudo: false
1
4
  language: ruby
2
5
  rvm:
3
- - 2.2.1
4
- - 2.1.5
6
+ - 2.0
7
+ - 2.1
8
+ - 2.2
9
+ - ruby-head
5
10
  gemfile:
6
- - Gemfile
11
+ - gemfiles/rails_3_2.gemfile
12
+ - gemfiles/rails_4_0.gemfile
13
+ - gemfiles/rails_4_1.gemfile
14
+ - gemfiles/rails_4_2.gemfile
7
15
  script: "bundle exec rake"
8
16
  notifications:
9
17
  recipients:
10
18
  - diego@plentz.org
19
+ matrix:
20
+ fast_finish: true
21
+ allow_failures:
22
+ - rvm: ruby-head
@@ -0,0 +1,27 @@
1
+ appraise "rails_3_2" do
2
+ version = "~> 3.2.21"
3
+ gem 'activerecord', version
4
+ gem 'actionpack', version
5
+ gem 'railties', version
6
+ end
7
+
8
+ appraise "rails_4_0" do
9
+ version = "~> 4.0.13"
10
+ gem 'activerecord', version
11
+ gem 'actionpack', version
12
+ gem 'railties', version
13
+ end
14
+
15
+ appraise "rails_4_1" do
16
+ version = "~> 4.1.9"
17
+ gem 'activerecord', version
18
+ gem 'actionpack', version
19
+ gem 'railties', version
20
+ end
21
+
22
+ appraise "rails_4_2" do
23
+ version = "~> 4.2.0"
24
+ gem 'activerecord', version
25
+ gem 'actionpack', version
26
+ gem 'railties', version
27
+ end
data/Gemfile CHANGED
@@ -1,5 +1,7 @@
1
- source 'https://rubygems.org'
1
+ source "https://rubygems.org"
2
2
 
3
- gem 'rails'
4
- gem 'rspec-rails'
5
- gem 'sqlite3'
3
+ gemspec
4
+
5
+ gem "rails"
6
+ gem "rspec-rails", "~> 3.0.0"
7
+ gem "sqlite3"
@@ -1,41 +1,53 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ lol_dba (1.6.6)
5
+ actionpack (>= 3.0, < 5.0)
6
+ activerecord (>= 3.0, < 5.0)
7
+ railties (>= 3.0, < 5.0)
8
+
1
9
  GEM
2
10
  remote: https://rubygems.org/
3
11
  specs:
4
- actionmailer (4.2.0)
5
- actionpack (= 4.2.0)
6
- actionview (= 4.2.0)
7
- activejob (= 4.2.0)
12
+ actionmailer (4.2.1)
13
+ actionpack (= 4.2.1)
14
+ actionview (= 4.2.1)
15
+ activejob (= 4.2.1)
8
16
  mail (~> 2.5, >= 2.5.4)
9
17
  rails-dom-testing (~> 1.0, >= 1.0.5)
10
- actionpack (4.2.0)
11
- actionview (= 4.2.0)
12
- activesupport (= 4.2.0)
13
- rack (~> 1.6.0)
18
+ actionpack (4.2.1)
19
+ actionview (= 4.2.1)
20
+ activesupport (= 4.2.1)
21
+ rack (~> 1.6)
14
22
  rack-test (~> 0.6.2)
15
23
  rails-dom-testing (~> 1.0, >= 1.0.5)
16
24
  rails-html-sanitizer (~> 1.0, >= 1.0.1)
17
- actionview (4.2.0)
18
- activesupport (= 4.2.0)
25
+ actionview (4.2.1)
26
+ activesupport (= 4.2.1)
19
27
  builder (~> 3.1)
20
28
  erubis (~> 2.7.0)
21
29
  rails-dom-testing (~> 1.0, >= 1.0.5)
22
30
  rails-html-sanitizer (~> 1.0, >= 1.0.1)
23
- activejob (4.2.0)
24
- activesupport (= 4.2.0)
31
+ activejob (4.2.1)
32
+ activesupport (= 4.2.1)
25
33
  globalid (>= 0.3.0)
26
- activemodel (4.2.0)
27
- activesupport (= 4.2.0)
34
+ activemodel (4.2.1)
35
+ activesupport (= 4.2.1)
28
36
  builder (~> 3.1)
29
- activerecord (4.2.0)
30
- activemodel (= 4.2.0)
31
- activesupport (= 4.2.0)
37
+ activerecord (4.2.1)
38
+ activemodel (= 4.2.1)
39
+ activesupport (= 4.2.1)
32
40
  arel (~> 6.0)
33
- activesupport (4.2.0)
41
+ activesupport (4.2.1)
34
42
  i18n (~> 0.7)
35
43
  json (~> 1.7, >= 1.7.7)
36
44
  minitest (~> 5.1)
37
45
  thread_safe (~> 0.3, >= 0.3.4)
38
46
  tzinfo (~> 1.1)
47
+ appraisal (1.0.3)
48
+ bundler
49
+ rake
50
+ thor (>= 0.14.0)
39
51
  arel (6.0.0)
40
52
  builder (3.2.2)
41
53
  diff-lcs (1.2.5)
@@ -55,51 +67,51 @@ GEM
55
67
  multi_json (1.11.0)
56
68
  nokogiri (1.6.6.2)
57
69
  mini_portile (~> 0.6.0)
70
+ power_assert (0.2.3)
58
71
  rack (1.6.0)
59
72
  rack-test (0.6.3)
60
73
  rack (>= 1.0)
61
- rails (4.2.0)
62
- actionmailer (= 4.2.0)
63
- actionpack (= 4.2.0)
64
- actionview (= 4.2.0)
65
- activejob (= 4.2.0)
66
- activemodel (= 4.2.0)
67
- activerecord (= 4.2.0)
68
- activesupport (= 4.2.0)
74
+ rails (4.2.1)
75
+ actionmailer (= 4.2.1)
76
+ actionpack (= 4.2.1)
77
+ actionview (= 4.2.1)
78
+ activejob (= 4.2.1)
79
+ activemodel (= 4.2.1)
80
+ activerecord (= 4.2.1)
81
+ activesupport (= 4.2.1)
69
82
  bundler (>= 1.3.0, < 2.0)
70
- railties (= 4.2.0)
83
+ railties (= 4.2.1)
71
84
  sprockets-rails
72
85
  rails-deprecated_sanitizer (1.0.3)
73
86
  activesupport (>= 4.2.0.alpha)
74
- rails-dom-testing (1.0.5)
87
+ rails-dom-testing (1.0.6)
75
88
  activesupport (>= 4.2.0.beta, < 5.0)
76
89
  nokogiri (~> 1.6.0)
77
90
  rails-deprecated_sanitizer (>= 1.0.1)
78
91
  rails-html-sanitizer (1.0.2)
79
92
  loofah (~> 2.0)
80
- railties (4.2.0)
81
- actionpack (= 4.2.0)
82
- activesupport (= 4.2.0)
93
+ railties (4.2.1)
94
+ actionpack (= 4.2.1)
95
+ activesupport (= 4.2.1)
83
96
  rake (>= 0.8.7)
84
97
  thor (>= 0.18.1, < 2.0)
85
98
  rake (10.4.2)
86
- rspec-core (3.2.2)
87
- rspec-support (~> 3.2.0)
88
- rspec-expectations (3.2.0)
89
- diff-lcs (>= 1.2.0, < 2.0)
90
- rspec-support (~> 3.2.0)
91
- rspec-mocks (3.2.1)
99
+ rspec-core (3.0.4)
100
+ rspec-support (~> 3.0.0)
101
+ rspec-expectations (3.0.4)
92
102
  diff-lcs (>= 1.2.0, < 2.0)
93
- rspec-support (~> 3.2.0)
94
- rspec-rails (3.2.1)
95
- actionpack (>= 3.0, < 4.3)
96
- activesupport (>= 3.0, < 4.3)
97
- railties (>= 3.0, < 4.3)
98
- rspec-core (~> 3.2.0)
99
- rspec-expectations (~> 3.2.0)
100
- rspec-mocks (~> 3.2.0)
101
- rspec-support (~> 3.2.0)
102
- rspec-support (3.2.2)
103
+ rspec-support (~> 3.0.0)
104
+ rspec-mocks (3.0.4)
105
+ rspec-support (~> 3.0.0)
106
+ rspec-rails (3.0.2)
107
+ actionpack (>= 3.0)
108
+ activesupport (>= 3.0)
109
+ railties (>= 3.0)
110
+ rspec-core (~> 3.0.0)
111
+ rspec-expectations (~> 3.0.0)
112
+ rspec-mocks (~> 3.0.0)
113
+ rspec-support (~> 3.0.0)
114
+ rspec-support (3.0.4)
103
115
  sprockets (2.12.3)
104
116
  hike (~> 1.2)
105
117
  multi_json (~> 1.0)
@@ -110,6 +122,8 @@ GEM
110
122
  activesupport (>= 3.0)
111
123
  sprockets (>= 2.8, < 4.0)
112
124
  sqlite3 (1.3.10)
125
+ test-unit (3.0.9)
126
+ power_assert
113
127
  thor (0.19.1)
114
128
  thread_safe (0.3.5)
115
129
  tilt (1.4.1)
@@ -120,6 +134,9 @@ PLATFORMS
120
134
  ruby
121
135
 
122
136
  DEPENDENCIES
137
+ appraisal (~> 1.0)
138
+ lol_dba!
123
139
  rails
124
- rspec-rails
140
+ rspec-rails (~> 3.0.0)
125
141
  sqlite3
142
+ test-unit (~> 3.0)
data/README.md CHANGED
@@ -76,6 +76,8 @@ All feedback, bug reports and thoughts on this gratefully received.
76
76
  * [Grant Gongaware](https://github.com/ggongaware)
77
77
  * [Przemysław “Szeryf” Kowalczyk](https://szeryf.wordpress.com)
78
78
  * [Philipp Weissensteiner](http://philippweissensteiner.com)
79
+ * [Leung Ho Kuen](https://twitter.com/PikachuEXE)
80
+ * [Lucas Mazza](https://twitter.com/lucasmazza)
79
81
 
80
82
  ### License
81
83
 
data/Rakefile CHANGED
@@ -1,9 +1,17 @@
1
1
  require 'rubygems'
2
2
  require 'rspec/core/rake_task'
3
3
  require 'rdoc/task'
4
+ require "appraisal"
4
5
 
5
- desc 'Default: run unit tests.'
6
- task :default => :spec
6
+ if !ENV["APPRAISAL_INITIALIZED"] && !ENV["TRAVIS"]
7
+ desc 'Default: run unit tests with appraisal.'
8
+ task :default do
9
+ sh "appraisal install && rake appraisal spec"
10
+ end
11
+ else
12
+ desc 'Default: run unit tests.'
13
+ task :default => :spec
14
+ end
7
15
 
8
16
  desc 'Testing the rails indexes plugin.'
9
17
  RSpec::Core::RakeTask.new('spec')
@@ -0,0 +1,12 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails"
6
+ gem "rspec-rails", "~> 3.0.0"
7
+ gem "sqlite3"
8
+ gem "activerecord", "~> 3.2.21"
9
+ gem "actionpack", "~> 3.2.21"
10
+ gem "railties", "~> 3.2.21"
11
+
12
+ gemspec :path => "../"
@@ -0,0 +1,126 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ lol_dba (1.6.6)
5
+ actionpack (>= 3.0, < 5.0)
6
+ activerecord (>= 3.0, < 5.0)
7
+ railties (>= 3.0, < 5.0)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ actionmailer (3.2.21)
13
+ actionpack (= 3.2.21)
14
+ mail (~> 2.5.4)
15
+ actionpack (3.2.21)
16
+ activemodel (= 3.2.21)
17
+ activesupport (= 3.2.21)
18
+ builder (~> 3.0.0)
19
+ erubis (~> 2.7.0)
20
+ journey (~> 1.0.4)
21
+ rack (~> 1.4.5)
22
+ rack-cache (~> 1.2)
23
+ rack-test (~> 0.6.1)
24
+ sprockets (~> 2.2.1)
25
+ activemodel (3.2.21)
26
+ activesupport (= 3.2.21)
27
+ builder (~> 3.0.0)
28
+ activerecord (3.2.21)
29
+ activemodel (= 3.2.21)
30
+ activesupport (= 3.2.21)
31
+ arel (~> 3.0.2)
32
+ tzinfo (~> 0.3.29)
33
+ activeresource (3.2.21)
34
+ activemodel (= 3.2.21)
35
+ activesupport (= 3.2.21)
36
+ activesupport (3.2.21)
37
+ i18n (~> 0.6, >= 0.6.4)
38
+ multi_json (~> 1.0)
39
+ appraisal (1.0.3)
40
+ bundler
41
+ rake
42
+ thor (>= 0.14.0)
43
+ arel (3.0.3)
44
+ builder (3.0.4)
45
+ diff-lcs (1.2.5)
46
+ erubis (2.7.0)
47
+ hike (1.2.3)
48
+ i18n (0.7.0)
49
+ journey (1.0.4)
50
+ json (1.8.2)
51
+ mail (2.5.4)
52
+ mime-types (~> 1.16)
53
+ treetop (~> 1.4.8)
54
+ mime-types (1.25.1)
55
+ multi_json (1.11.0)
56
+ polyglot (0.3.5)
57
+ power_assert (0.2.3)
58
+ rack (1.4.5)
59
+ rack-cache (1.2)
60
+ rack (>= 0.4)
61
+ rack-ssl (1.3.4)
62
+ rack
63
+ rack-test (0.6.3)
64
+ rack (>= 1.0)
65
+ rails (3.2.21)
66
+ actionmailer (= 3.2.21)
67
+ actionpack (= 3.2.21)
68
+ activerecord (= 3.2.21)
69
+ activeresource (= 3.2.21)
70
+ activesupport (= 3.2.21)
71
+ bundler (~> 1.0)
72
+ railties (= 3.2.21)
73
+ railties (3.2.21)
74
+ actionpack (= 3.2.21)
75
+ activesupport (= 3.2.21)
76
+ rack-ssl (~> 1.3.2)
77
+ rake (>= 0.8.7)
78
+ rdoc (~> 3.4)
79
+ thor (>= 0.14.6, < 2.0)
80
+ rake (10.4.2)
81
+ rdoc (3.12.2)
82
+ json (~> 1.4)
83
+ rspec-core (3.0.4)
84
+ rspec-support (~> 3.0.0)
85
+ rspec-expectations (3.0.4)
86
+ diff-lcs (>= 1.2.0, < 2.0)
87
+ rspec-support (~> 3.0.0)
88
+ rspec-mocks (3.0.4)
89
+ rspec-support (~> 3.0.0)
90
+ rspec-rails (3.0.2)
91
+ actionpack (>= 3.0)
92
+ activesupport (>= 3.0)
93
+ railties (>= 3.0)
94
+ rspec-core (~> 3.0.0)
95
+ rspec-expectations (~> 3.0.0)
96
+ rspec-mocks (~> 3.0.0)
97
+ rspec-support (~> 3.0.0)
98
+ rspec-support (3.0.4)
99
+ sprockets (2.2.3)
100
+ hike (~> 1.2)
101
+ multi_json (~> 1.0)
102
+ rack (~> 1.0)
103
+ tilt (~> 1.1, != 1.3.0)
104
+ sqlite3 (1.3.10)
105
+ test-unit (3.0.9)
106
+ power_assert
107
+ thor (0.19.1)
108
+ tilt (1.4.1)
109
+ treetop (1.4.15)
110
+ polyglot
111
+ polyglot (>= 0.3.1)
112
+ tzinfo (0.3.43)
113
+
114
+ PLATFORMS
115
+ ruby
116
+
117
+ DEPENDENCIES
118
+ actionpack (~> 3.2.21)
119
+ activerecord (~> 3.2.21)
120
+ appraisal (~> 1.0)
121
+ lol_dba!
122
+ rails
123
+ railties (~> 3.2.21)
124
+ rspec-rails (~> 3.0.0)
125
+ sqlite3
126
+ test-unit (~> 3.0)
@@ -0,0 +1,12 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails"
6
+ gem "rspec-rails", "~> 3.0.0"
7
+ gem "sqlite3"
8
+ gem "activerecord", "~> 4.0.13"
9
+ gem "actionpack", "~> 4.0.13"
10
+ gem "railties", "~> 4.0.13"
11
+
12
+ gemspec :path => "../"
@@ -0,0 +1,114 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ lol_dba (1.6.6)
5
+ actionpack (>= 3.0, < 5.0)
6
+ activerecord (>= 3.0, < 5.0)
7
+ railties (>= 3.0, < 5.0)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ actionmailer (4.0.13)
13
+ actionpack (= 4.0.13)
14
+ mail (~> 2.5, >= 2.5.4)
15
+ actionpack (4.0.13)
16
+ activesupport (= 4.0.13)
17
+ builder (~> 3.1.0)
18
+ erubis (~> 2.7.0)
19
+ rack (~> 1.5.2)
20
+ rack-test (~> 0.6.2)
21
+ activemodel (4.0.13)
22
+ activesupport (= 4.0.13)
23
+ builder (~> 3.1.0)
24
+ activerecord (4.0.13)
25
+ activemodel (= 4.0.13)
26
+ activerecord-deprecated_finders (~> 1.0.2)
27
+ activesupport (= 4.0.13)
28
+ arel (~> 4.0.0)
29
+ activerecord-deprecated_finders (1.0.3)
30
+ activesupport (4.0.13)
31
+ i18n (~> 0.6, >= 0.6.9)
32
+ minitest (~> 4.2)
33
+ multi_json (~> 1.3)
34
+ thread_safe (~> 0.1)
35
+ tzinfo (~> 0.3.37)
36
+ appraisal (1.0.3)
37
+ bundler
38
+ rake
39
+ thor (>= 0.14.0)
40
+ arel (4.0.2)
41
+ builder (3.1.4)
42
+ diff-lcs (1.2.5)
43
+ erubis (2.7.0)
44
+ hike (1.2.3)
45
+ i18n (0.7.0)
46
+ mail (2.6.3)
47
+ mime-types (>= 1.16, < 3)
48
+ mime-types (2.4.3)
49
+ minitest (4.7.5)
50
+ multi_json (1.11.0)
51
+ power_assert (0.2.3)
52
+ rack (1.5.2)
53
+ rack-test (0.6.3)
54
+ rack (>= 1.0)
55
+ rails (4.0.13)
56
+ actionmailer (= 4.0.13)
57
+ actionpack (= 4.0.13)
58
+ activerecord (= 4.0.13)
59
+ activesupport (= 4.0.13)
60
+ bundler (>= 1.3.0, < 2.0)
61
+ railties (= 4.0.13)
62
+ sprockets-rails (~> 2.0)
63
+ railties (4.0.13)
64
+ actionpack (= 4.0.13)
65
+ activesupport (= 4.0.13)
66
+ rake (>= 0.8.7)
67
+ thor (>= 0.18.1, < 2.0)
68
+ rake (10.4.2)
69
+ rspec-core (3.0.4)
70
+ rspec-support (~> 3.0.0)
71
+ rspec-expectations (3.0.4)
72
+ diff-lcs (>= 1.2.0, < 2.0)
73
+ rspec-support (~> 3.0.0)
74
+ rspec-mocks (3.0.4)
75
+ rspec-support (~> 3.0.0)
76
+ rspec-rails (3.0.2)
77
+ actionpack (>= 3.0)
78
+ activesupport (>= 3.0)
79
+ railties (>= 3.0)
80
+ rspec-core (~> 3.0.0)
81
+ rspec-expectations (~> 3.0.0)
82
+ rspec-mocks (~> 3.0.0)
83
+ rspec-support (~> 3.0.0)
84
+ rspec-support (3.0.4)
85
+ sprockets (2.12.3)
86
+ hike (~> 1.2)
87
+ multi_json (~> 1.0)
88
+ rack (~> 1.0)
89
+ tilt (~> 1.1, != 1.3.0)
90
+ sprockets-rails (2.2.4)
91
+ actionpack (>= 3.0)
92
+ activesupport (>= 3.0)
93
+ sprockets (>= 2.8, < 4.0)
94
+ sqlite3 (1.3.10)
95
+ test-unit (3.0.9)
96
+ power_assert
97
+ thor (0.19.1)
98
+ thread_safe (0.3.5)
99
+ tilt (1.4.1)
100
+ tzinfo (0.3.43)
101
+
102
+ PLATFORMS
103
+ ruby
104
+
105
+ DEPENDENCIES
106
+ actionpack (~> 4.0.13)
107
+ activerecord (~> 4.0.13)
108
+ appraisal (~> 1.0)
109
+ lol_dba!
110
+ rails
111
+ railties (~> 4.0.13)
112
+ rspec-rails (~> 3.0.0)
113
+ sqlite3
114
+ test-unit (~> 3.0)
@@ -0,0 +1,12 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails"
6
+ gem "rspec-rails", "~> 3.0.0"
7
+ gem "sqlite3"
8
+ gem "activerecord", "~> 4.1.9"
9
+ gem "actionpack", "~> 4.1.9"
10
+ gem "railties", "~> 4.1.9"
11
+
12
+ gemspec :path => "../"
@@ -0,0 +1,120 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ lol_dba (1.6.6)
5
+ actionpack (>= 3.0, < 5.0)
6
+ activerecord (>= 3.0, < 5.0)
7
+ railties (>= 3.0, < 5.0)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ actionmailer (4.1.9)
13
+ actionpack (= 4.1.9)
14
+ actionview (= 4.1.9)
15
+ mail (~> 2.5, >= 2.5.4)
16
+ actionpack (4.1.9)
17
+ actionview (= 4.1.9)
18
+ activesupport (= 4.1.9)
19
+ rack (~> 1.5.2)
20
+ rack-test (~> 0.6.2)
21
+ actionview (4.1.9)
22
+ activesupport (= 4.1.9)
23
+ builder (~> 3.1)
24
+ erubis (~> 2.7.0)
25
+ activemodel (4.1.9)
26
+ activesupport (= 4.1.9)
27
+ builder (~> 3.1)
28
+ activerecord (4.1.9)
29
+ activemodel (= 4.1.9)
30
+ activesupport (= 4.1.9)
31
+ arel (~> 5.0.0)
32
+ activesupport (4.1.9)
33
+ i18n (~> 0.6, >= 0.6.9)
34
+ json (~> 1.7, >= 1.7.7)
35
+ minitest (~> 5.1)
36
+ thread_safe (~> 0.1)
37
+ tzinfo (~> 1.1)
38
+ appraisal (1.0.3)
39
+ bundler
40
+ rake
41
+ thor (>= 0.14.0)
42
+ arel (5.0.1.20140414130214)
43
+ builder (3.2.2)
44
+ diff-lcs (1.2.5)
45
+ erubis (2.7.0)
46
+ hike (1.2.3)
47
+ i18n (0.7.0)
48
+ json (1.8.2)
49
+ mail (2.6.3)
50
+ mime-types (>= 1.16, < 3)
51
+ mime-types (2.4.3)
52
+ minitest (5.5.1)
53
+ multi_json (1.11.0)
54
+ power_assert (0.2.3)
55
+ rack (1.5.2)
56
+ rack-test (0.6.3)
57
+ rack (>= 1.0)
58
+ rails (4.1.9)
59
+ actionmailer (= 4.1.9)
60
+ actionpack (= 4.1.9)
61
+ actionview (= 4.1.9)
62
+ activemodel (= 4.1.9)
63
+ activerecord (= 4.1.9)
64
+ activesupport (= 4.1.9)
65
+ bundler (>= 1.3.0, < 2.0)
66
+ railties (= 4.1.9)
67
+ sprockets-rails (~> 2.0)
68
+ railties (4.1.9)
69
+ actionpack (= 4.1.9)
70
+ activesupport (= 4.1.9)
71
+ rake (>= 0.8.7)
72
+ thor (>= 0.18.1, < 2.0)
73
+ rake (10.4.2)
74
+ rspec-core (3.0.4)
75
+ rspec-support (~> 3.0.0)
76
+ rspec-expectations (3.0.4)
77
+ diff-lcs (>= 1.2.0, < 2.0)
78
+ rspec-support (~> 3.0.0)
79
+ rspec-mocks (3.0.4)
80
+ rspec-support (~> 3.0.0)
81
+ rspec-rails (3.0.2)
82
+ actionpack (>= 3.0)
83
+ activesupport (>= 3.0)
84
+ railties (>= 3.0)
85
+ rspec-core (~> 3.0.0)
86
+ rspec-expectations (~> 3.0.0)
87
+ rspec-mocks (~> 3.0.0)
88
+ rspec-support (~> 3.0.0)
89
+ rspec-support (3.0.4)
90
+ sprockets (2.12.3)
91
+ hike (~> 1.2)
92
+ multi_json (~> 1.0)
93
+ rack (~> 1.0)
94
+ tilt (~> 1.1, != 1.3.0)
95
+ sprockets-rails (2.2.4)
96
+ actionpack (>= 3.0)
97
+ activesupport (>= 3.0)
98
+ sprockets (>= 2.8, < 4.0)
99
+ sqlite3 (1.3.10)
100
+ test-unit (3.0.9)
101
+ power_assert
102
+ thor (0.19.1)
103
+ thread_safe (0.3.5)
104
+ tilt (1.4.1)
105
+ tzinfo (1.2.2)
106
+ thread_safe (~> 0.1)
107
+
108
+ PLATFORMS
109
+ ruby
110
+
111
+ DEPENDENCIES
112
+ actionpack (~> 4.1.9)
113
+ activerecord (~> 4.1.9)
114
+ appraisal (~> 1.0)
115
+ lol_dba!
116
+ rails
117
+ railties (~> 4.1.9)
118
+ rspec-rails (~> 3.0.0)
119
+ sqlite3
120
+ test-unit (~> 3.0)
@@ -0,0 +1,12 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails"
6
+ gem "rspec-rails", "~> 3.0.0"
7
+ gem "sqlite3"
8
+ gem "activerecord", "~> 4.2.0"
9
+ gem "actionpack", "~> 4.2.0"
10
+ gem "railties", "~> 4.2.0"
11
+
12
+ gemspec :path => "../"
@@ -0,0 +1,145 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ lol_dba (1.6.6)
5
+ actionpack (>= 3.0, < 5.0)
6
+ activerecord (>= 3.0, < 5.0)
7
+ railties (>= 3.0, < 5.0)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ actionmailer (4.2.0)
13
+ actionpack (= 4.2.0)
14
+ actionview (= 4.2.0)
15
+ activejob (= 4.2.0)
16
+ mail (~> 2.5, >= 2.5.4)
17
+ rails-dom-testing (~> 1.0, >= 1.0.5)
18
+ actionpack (4.2.0)
19
+ actionview (= 4.2.0)
20
+ activesupport (= 4.2.0)
21
+ rack (~> 1.6.0)
22
+ rack-test (~> 0.6.2)
23
+ rails-dom-testing (~> 1.0, >= 1.0.5)
24
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
25
+ actionview (4.2.0)
26
+ activesupport (= 4.2.0)
27
+ builder (~> 3.1)
28
+ erubis (~> 2.7.0)
29
+ rails-dom-testing (~> 1.0, >= 1.0.5)
30
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
31
+ activejob (4.2.0)
32
+ activesupport (= 4.2.0)
33
+ globalid (>= 0.3.0)
34
+ activemodel (4.2.0)
35
+ activesupport (= 4.2.0)
36
+ builder (~> 3.1)
37
+ activerecord (4.2.0)
38
+ activemodel (= 4.2.0)
39
+ activesupport (= 4.2.0)
40
+ arel (~> 6.0)
41
+ activesupport (4.2.0)
42
+ i18n (~> 0.7)
43
+ json (~> 1.7, >= 1.7.7)
44
+ minitest (~> 5.1)
45
+ thread_safe (~> 0.3, >= 0.3.4)
46
+ tzinfo (~> 1.1)
47
+ appraisal (1.0.3)
48
+ bundler
49
+ rake
50
+ thor (>= 0.14.0)
51
+ arel (6.0.0)
52
+ builder (3.2.2)
53
+ diff-lcs (1.2.5)
54
+ erubis (2.7.0)
55
+ globalid (0.3.3)
56
+ activesupport (>= 4.1.0)
57
+ hike (1.2.3)
58
+ i18n (0.7.0)
59
+ json (1.8.2)
60
+ loofah (2.0.1)
61
+ nokogiri (>= 1.5.9)
62
+ mail (2.6.3)
63
+ mime-types (>= 1.16, < 3)
64
+ mime-types (2.4.3)
65
+ mini_portile (0.6.2)
66
+ minitest (5.5.1)
67
+ multi_json (1.11.0)
68
+ nokogiri (1.6.6.2)
69
+ mini_portile (~> 0.6.0)
70
+ power_assert (0.2.3)
71
+ rack (1.6.0)
72
+ rack-test (0.6.3)
73
+ rack (>= 1.0)
74
+ rails (4.2.0)
75
+ actionmailer (= 4.2.0)
76
+ actionpack (= 4.2.0)
77
+ actionview (= 4.2.0)
78
+ activejob (= 4.2.0)
79
+ activemodel (= 4.2.0)
80
+ activerecord (= 4.2.0)
81
+ activesupport (= 4.2.0)
82
+ bundler (>= 1.3.0, < 2.0)
83
+ railties (= 4.2.0)
84
+ sprockets-rails
85
+ rails-deprecated_sanitizer (1.0.3)
86
+ activesupport (>= 4.2.0.alpha)
87
+ rails-dom-testing (1.0.5)
88
+ activesupport (>= 4.2.0.beta, < 5.0)
89
+ nokogiri (~> 1.6.0)
90
+ rails-deprecated_sanitizer (>= 1.0.1)
91
+ rails-html-sanitizer (1.0.2)
92
+ loofah (~> 2.0)
93
+ railties (4.2.0)
94
+ actionpack (= 4.2.0)
95
+ activesupport (= 4.2.0)
96
+ rake (>= 0.8.7)
97
+ thor (>= 0.18.1, < 2.0)
98
+ rake (10.4.2)
99
+ rspec-core (3.0.4)
100
+ rspec-support (~> 3.0.0)
101
+ rspec-expectations (3.0.4)
102
+ diff-lcs (>= 1.2.0, < 2.0)
103
+ rspec-support (~> 3.0.0)
104
+ rspec-mocks (3.0.4)
105
+ rspec-support (~> 3.0.0)
106
+ rspec-rails (3.0.2)
107
+ actionpack (>= 3.0)
108
+ activesupport (>= 3.0)
109
+ railties (>= 3.0)
110
+ rspec-core (~> 3.0.0)
111
+ rspec-expectations (~> 3.0.0)
112
+ rspec-mocks (~> 3.0.0)
113
+ rspec-support (~> 3.0.0)
114
+ rspec-support (3.0.4)
115
+ sprockets (2.12.3)
116
+ hike (~> 1.2)
117
+ multi_json (~> 1.0)
118
+ rack (~> 1.0)
119
+ tilt (~> 1.1, != 1.3.0)
120
+ sprockets-rails (2.2.4)
121
+ actionpack (>= 3.0)
122
+ activesupport (>= 3.0)
123
+ sprockets (>= 2.8, < 4.0)
124
+ sqlite3 (1.3.10)
125
+ test-unit (3.0.9)
126
+ power_assert
127
+ thor (0.19.1)
128
+ thread_safe (0.3.5)
129
+ tilt (1.4.1)
130
+ tzinfo (1.2.2)
131
+ thread_safe (~> 0.1)
132
+
133
+ PLATFORMS
134
+ ruby
135
+
136
+ DEPENDENCIES
137
+ actionpack (~> 4.2.0)
138
+ activerecord (~> 4.2.0)
139
+ appraisal (~> 1.0)
140
+ lol_dba!
141
+ rails
142
+ railties (~> 4.2.0)
143
+ rspec-rails (~> 3.0.0)
144
+ sqlite3
145
+ test-unit (~> 3.0)
@@ -114,31 +114,21 @@ EOM
114
114
  when :has_many
115
115
  # has_many tables are threaten by the other side of the relation
116
116
  next unless reflection_options.options[:through]
117
- through_class = class_name.reflections[reflection_options.options[:through].to_s].klass
117
+ through_class = class_name.reflections.stringify_keys[reflection_options.options[:through].to_s].klass
118
118
  table_name = through_class.table_name
119
119
 
120
120
  foreign_key = get_through_foreign_key(class_name, reflection_options)
121
121
 
122
122
  if reflection_options.options[:source]
123
- association_class = through_class.reflections[reflection_options.options[:source].to_s].klass
123
+ association_class = through_class.reflections.stringify_keys[reflection_options.options[:source].to_s].klass
124
124
  association_foreign_key = get_through_foreign_key(association_class, reflection_options)
125
125
  else
126
126
  # go to joining model through has_many and find belongs_to
127
- blg_to_reflection = class_name.reflections[reflection_options.options[:through].to_s]
128
- if blg_to_reflection.options[:class_name]
129
- # has_many :class_name
130
- blg_to_class = blg_to_reflection.options[:class_name].constantize
131
- else
132
- # has_many
133
- blg_to_class = blg_to_reflection.name.to_s.singularize.camelize.constantize
134
- end
135
-
136
- #multiple level :through relation, can be ignored for now(it will be checked in the right relation)
137
- next if blg_to_class.reflections[reflection_name.to_s.singularize.to_s].nil?
138
-
127
+ blg_to_reflection = class_name.reflections.stringify_keys[reflection_options.options[:through].to_s]
128
+ blg_to_class = blg_to_reflection.class_name.constantize
139
129
 
140
130
  # get foreign_key from belongs_to
141
- association_foreign_key = blg_to_class.reflections[reflection_name.to_s.singularize.to_s].options[:foreign_key]
131
+ association_foreign_key = blg_to_class.reflections.stringify_keys[reflection_name.to_s.singularize.to_s].options[:foreign_key]
142
132
  end
143
133
 
144
134
  #FIXME currently we don't support :through => :another_regular_has_many_and_non_through_relation
@@ -1,3 +1,3 @@
1
1
  module LolDba
2
- VERSION = "1.6.6" unless defined? LolDba::VERSION
2
+ VERSION = "1.6.7" unless defined? LolDba::VERSION
3
3
  end
@@ -22,4 +22,7 @@ Gem::Specification.new do |s|
22
22
  s.add_dependency "activerecord", ">= 3.0", "< 5.0"
23
23
  s.add_dependency "actionpack", ">= 3.0", "< 5.0"
24
24
  s.add_dependency "railties", ">= 3.0", "< 5.0"
25
+
26
+ s.add_development_dependency "appraisal", "~> 1.0"
27
+ s.add_development_dependency "test-unit", "~> 3.0"
25
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lol_dba
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.6
4
+ version: 1.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diego Plentz
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-03-15 00:00:00.000000000 Z
15
+ date: 2015-03-21 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: activerecord
@@ -74,6 +74,34 @@ dependencies:
74
74
  - - "<"
75
75
  - !ruby/object:Gem::Version
76
76
  version: '5.0'
77
+ - !ruby/object:Gem::Dependency
78
+ name: appraisal
79
+ requirement: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: '1.0'
84
+ type: :development
85
+ prerelease: false
86
+ version_requirements: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - "~>"
89
+ - !ruby/object:Gem::Version
90
+ version: '1.0'
91
+ - !ruby/object:Gem::Dependency
92
+ name: test-unit
93
+ requirement: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '3.0'
98
+ type: :development
99
+ prerelease: false
100
+ version_requirements: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: '3.0'
77
105
  description: lol_dba is a small package of rake tasks that scan your application models
78
106
  and displays a list of columns that probably should be indexed. Also, it can generate
79
107
  .sql migration scripts.
@@ -89,11 +117,20 @@ extra_rdoc_files: []
89
117
  files:
90
118
  - ".gitignore"
91
119
  - ".travis.yml"
120
+ - Appraisals
92
121
  - Gemfile
93
122
  - Gemfile.lock
94
123
  - README.md
95
124
  - Rakefile
96
125
  - bin/lol_dba
126
+ - gemfiles/rails_3_2.gemfile
127
+ - gemfiles/rails_3_2.gemfile.lock
128
+ - gemfiles/rails_4_0.gemfile
129
+ - gemfiles/rails_4_0.gemfile.lock
130
+ - gemfiles/rails_4_1.gemfile
131
+ - gemfiles/rails_4_1.gemfile.lock
132
+ - gemfiles/rails_4_2.gemfile
133
+ - gemfiles/rails_4_2.gemfile.lock
97
134
  - lib/lol_dba.rb
98
135
  - lib/lol_dba/cli.rb
99
136
  - lib/lol_dba/migration.rb