activerecord_views 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Appraisals +4 -0
- data/activerecord_views.gemspec +1 -1
- data/gemfiles/rails4_2.gemfile +7 -0
- data/lib/active_record_views/version.rb +1 -1
- data/spec/active_record_views_checksum_cache_spec.rb +3 -0
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 888479aa2afb60445b3c837ae67a597d2b799569
|
4
|
+
data.tar.gz: f86bb06ff3b0d2edfe8f0e524e34b8ed1d8076bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 429f8e647553fa58bb61bd0318446aca7b6b00496e01fd9f3686614129b3ac57d7621d6b073182db5c366bd24eb9da70a31e1d6aa081741e6291fc41d388ff12
|
7
|
+
data.tar.gz: 0a96d8276ef10685005852d9c8d4c86bab7e0a01ca6eac93dded99b6b13c04459809f2cf9b9b0a901bf3d9dcc6688cc422203f266727b60918878e5ab451ad25
|
data/Appraisals
CHANGED
data/activerecord_views.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ['lib']
|
19
19
|
|
20
|
-
gem.add_dependency 'activerecord', ['>= 3.
|
20
|
+
gem.add_dependency 'activerecord', ['>= 3.2', '< 4.3']
|
21
21
|
|
22
22
|
gem.add_development_dependency 'appraisal'
|
23
23
|
gem.add_development_dependency 'rspec-rails', '>= 2.14'
|
@@ -39,6 +39,9 @@ describe ActiveRecordViews::ChecksumCache do
|
|
39
39
|
|
40
40
|
it 'drops existing managed views recreates the table' do
|
41
41
|
expect(ActiveRecord::Base.connection).to receive(:execute).with(/\ABEGIN\z/).once.and_call_original
|
42
|
+
if Rails::VERSION::MAJOR < 4
|
43
|
+
expect(ActiveRecord::Base.connection).to receive(:execute).with('SELECT name FROM active_record_views;', nil).once.and_call_original
|
44
|
+
end
|
42
45
|
expect(ActiveRecord::Base.connection).to receive(:execute).with(/\ADROP VIEW IF EXISTS test_view CASCADE;\z/).once.and_call_original
|
43
46
|
expect(ActiveRecord::Base.connection).to receive(:execute).with(/\ADROP TABLE active_record_views;\z/).once.and_call_original
|
44
47
|
expect(ActiveRecord::Base.connection).to receive(:execute).with(/\ACREATE TABLE active_record_views/).once.and_call_original
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord_views
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Weathered
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -16,20 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '3.
|
19
|
+
version: '3.2'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '4.
|
22
|
+
version: '4.3'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '3.
|
29
|
+
version: '3.2'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '4.
|
32
|
+
version: '4.3'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: appraisal
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -104,6 +104,7 @@ files:
|
|
104
104
|
- gemfiles/rails3_2.gemfile
|
105
105
|
- gemfiles/rails4_0.gemfile
|
106
106
|
- gemfiles/rails4_1.gemfile
|
107
|
+
- gemfiles/rails4_2.gemfile
|
107
108
|
- lib/active_record_views.rb
|
108
109
|
- lib/active_record_views/checksum_cache.rb
|
109
110
|
- lib/active_record_views/extension.rb
|