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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b51b3b3424c22f7b7eba5af6e221abdea9adcb77
4
- data.tar.gz: 9847c0226785c69c854488bb8a0dd607ef5c8b70
3
+ metadata.gz: 888479aa2afb60445b3c837ae67a597d2b799569
4
+ data.tar.gz: f86bb06ff3b0d2edfe8f0e524e34b8ed1d8076bb
5
5
  SHA512:
6
- metadata.gz: 5f1e2b8e83b4bb47686d9dcecfb82dae020f21a6993dbf75c71d20022c8b90c37295000044d2bebc509c0c8078a3d5c40d763ddb2ee70e15099bf2c9fb764a42
7
- data.tar.gz: 9407222259bcf7c5f2e2ee375de1a859a39f072cde39df1ffaa3b66fc56df003d9414adb3886117ebb04d62f0084c6829b6a1e257d4711f07e02973e98f300a2
6
+ metadata.gz: 429f8e647553fa58bb61bd0318446aca7b6b00496e01fd9f3686614129b3ac57d7621d6b073182db5c366bd24eb9da70a31e1d6aa081741e6291fc41d388ff12
7
+ data.tar.gz: 0a96d8276ef10685005852d9c8d4c86bab7e0a01ca6eac93dded99b6b13c04459809f2cf9b9b0a901bf3d9dcc6688cc422203f266727b60918878e5ab451ad25
data/Appraisals CHANGED
@@ -9,3 +9,7 @@ end
9
9
  appraise 'rails4_1' do
10
10
  gem 'rails', '~> 4.1.0'
11
11
  end
12
+
13
+ appraise 'rails4_2' do
14
+ gem 'rails', '~> 4.2.0'
15
+ end
@@ -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.1', '< 4.2']
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'
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 4.2.0"
6
+
7
+ gemspec :path => "../"
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordViews
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
@@ -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.5
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-09 00:00:00.000000000 Z
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.1'
19
+ version: '3.2'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '4.2'
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.1'
29
+ version: '3.2'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '4.2'
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