remockable 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +8 -3
- data/Appraisals +6 -0
- data/CHANGELOG.md +4 -0
- data/gemfiles/rails_4.2.gemfile.lock +5 -5
- data/gemfiles/rails_5.0.gemfile.lock +5 -5
- data/gemfiles/rails_5.1.gemfile.lock +5 -5
- data/gemfiles/rails_5.2.gemfile +9 -0
- data/gemfiles/rails_5.2.gemfile.lock +65 -0
- data/lib/remockable/version.rb +1 -1
- data/remockable.gemspec +3 -3
- data/spec/active_record/have_scope_spec.rb +4 -4
- metadata +11 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ef80f7b524d17e73de94dafc8d36b8120edae8b6aab8170e57039615e1557c97
|
4
|
+
data.tar.gz: 80c872679d99fd3069ad06aa10cdcdd13c038032587b7fae013b59fe772e3475
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d5cf787a0c433229049974f76aad5298ce52adf1a01714a2a88b0edc6f1c6b8088af6c9b26d377dfadd6397941f863848ff06cadc4dbaa2f3740f11c0a59c9b
|
7
|
+
data.tar.gz: 862979cfc511476b7b0ca74aec5760cb5dbd01d697c7f17c525ea26176bc1b25bfa15c1ca971c2bfaadfc6eadd3c7717f13a9d3864a189de42b66506ae230ef8
|
data/.travis.yml
CHANGED
@@ -7,13 +7,14 @@ gemfile:
|
|
7
7
|
- gemfiles/rails_4.2.gemfile
|
8
8
|
- gemfiles/rails_5.0.gemfile
|
9
9
|
- gemfiles/rails_5.1.gemfile
|
10
|
+
- gemfiles/rails_5.2.gemfile
|
10
11
|
|
11
12
|
rvm:
|
12
13
|
- 2.0.0
|
13
14
|
- 2.1.10
|
14
|
-
- 2.2.
|
15
|
-
- 2.3.
|
16
|
-
- 2.4.
|
15
|
+
- 2.2.8
|
16
|
+
- 2.3.5
|
17
|
+
- 2.4.2
|
17
18
|
|
18
19
|
matrix:
|
19
20
|
exclude:
|
@@ -21,7 +22,11 @@ matrix:
|
|
21
22
|
gemfile: gemfiles/rails_5.0.gemfile
|
22
23
|
- rvm: 2.0.0
|
23
24
|
gemfile: gemfiles/rails_5.1.gemfile
|
25
|
+
- rvm: 2.0.0
|
26
|
+
gemfile: gemfiles/rails_5.2.gemfile
|
24
27
|
- rvm: 2.1.10
|
25
28
|
gemfile: gemfiles/rails_5.0.gemfile
|
26
29
|
- rvm: 2.1.10
|
27
30
|
gemfile: gemfiles/rails_5.1.gemfile
|
31
|
+
- rvm: 2.1.10
|
32
|
+
gemfile: gemfiles/rails_5.2.gemfile
|
data/Appraisals
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
remockable (0.3.
|
5
|
-
activemodel (>= 4.0, < 5.
|
6
|
-
activerecord (>= 4.0, < 5.
|
7
|
-
activesupport (>= 4.0, < 5.
|
4
|
+
remockable (0.3.5)
|
5
|
+
activemodel (>= 4.0, < 5.3)
|
6
|
+
activerecord (>= 4.0, < 5.3)
|
7
|
+
activesupport (>= 4.0, < 5.3)
|
8
8
|
rspec-core (~> 3.0)
|
9
9
|
rspec-expectations (~> 3.0)
|
10
10
|
rspec-mocks (~> 3.0)
|
@@ -62,4 +62,4 @@ DEPENDENCIES
|
|
62
62
|
sqlite3 (~> 1.3.4)
|
63
63
|
|
64
64
|
BUNDLED WITH
|
65
|
-
1.
|
65
|
+
1.16.1
|
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
remockable (0.3.
|
5
|
-
activemodel (>= 4.0, < 5.
|
6
|
-
activerecord (>= 4.0, < 5.
|
7
|
-
activesupport (>= 4.0, < 5.
|
4
|
+
remockable (0.3.5)
|
5
|
+
activemodel (>= 4.0, < 5.3)
|
6
|
+
activerecord (>= 4.0, < 5.3)
|
7
|
+
activesupport (>= 4.0, < 5.3)
|
8
8
|
rspec-core (~> 3.0)
|
9
9
|
rspec-expectations (~> 3.0)
|
10
10
|
rspec-mocks (~> 3.0)
|
@@ -61,4 +61,4 @@ DEPENDENCIES
|
|
61
61
|
sqlite3 (~> 1.3.4)
|
62
62
|
|
63
63
|
BUNDLED WITH
|
64
|
-
1.
|
64
|
+
1.16.1
|
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
remockable (0.3.
|
5
|
-
activemodel (>= 4.0, < 5.
|
6
|
-
activerecord (>= 4.0, < 5.
|
7
|
-
activesupport (>= 4.0, < 5.
|
4
|
+
remockable (0.3.5)
|
5
|
+
activemodel (>= 4.0, < 5.3)
|
6
|
+
activerecord (>= 4.0, < 5.3)
|
7
|
+
activesupport (>= 4.0, < 5.3)
|
8
8
|
rspec-core (~> 3.0)
|
9
9
|
rspec-expectations (~> 3.0)
|
10
10
|
rspec-mocks (~> 3.0)
|
@@ -61,4 +61,4 @@ DEPENDENCIES
|
|
61
61
|
sqlite3 (~> 1.3.4)
|
62
62
|
|
63
63
|
BUNDLED WITH
|
64
|
-
1.
|
64
|
+
1.16.1
|
@@ -0,0 +1,65 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
remockable (0.3.5)
|
5
|
+
activemodel (>= 4.0, < 5.3)
|
6
|
+
activerecord (>= 4.0, < 5.3)
|
7
|
+
activesupport (>= 4.0, < 5.3)
|
8
|
+
rspec-core (~> 3.0)
|
9
|
+
rspec-expectations (~> 3.0)
|
10
|
+
rspec-mocks (~> 3.0)
|
11
|
+
|
12
|
+
GEM
|
13
|
+
remote: https://rubygems.org/
|
14
|
+
specs:
|
15
|
+
activemodel (5.2.0)
|
16
|
+
activesupport (= 5.2.0)
|
17
|
+
activerecord (5.2.0)
|
18
|
+
activemodel (= 5.2.0)
|
19
|
+
activesupport (= 5.2.0)
|
20
|
+
arel (>= 9.0)
|
21
|
+
activesupport (5.2.0)
|
22
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
23
|
+
i18n (>= 0.7, < 2)
|
24
|
+
minitest (~> 5.1)
|
25
|
+
tzinfo (~> 1.1)
|
26
|
+
appraisal (2.2.0)
|
27
|
+
bundler
|
28
|
+
rake
|
29
|
+
thor (>= 0.14.0)
|
30
|
+
arel (9.0.0)
|
31
|
+
concurrent-ruby (1.0.5)
|
32
|
+
diff-lcs (1.3)
|
33
|
+
i18n (1.0.1)
|
34
|
+
concurrent-ruby (~> 1.0)
|
35
|
+
minitest (5.11.3)
|
36
|
+
rake (12.3.1)
|
37
|
+
rspec-core (3.7.1)
|
38
|
+
rspec-support (~> 3.7.0)
|
39
|
+
rspec-expectations (3.7.0)
|
40
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
41
|
+
rspec-support (~> 3.7.0)
|
42
|
+
rspec-mocks (3.7.0)
|
43
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
44
|
+
rspec-support (~> 3.7.0)
|
45
|
+
rspec-support (3.7.1)
|
46
|
+
sqlite3 (1.3.13)
|
47
|
+
thor (0.20.0)
|
48
|
+
thread_safe (0.3.6)
|
49
|
+
tzinfo (1.2.5)
|
50
|
+
thread_safe (~> 0.1)
|
51
|
+
|
52
|
+
PLATFORMS
|
53
|
+
ruby
|
54
|
+
|
55
|
+
DEPENDENCIES
|
56
|
+
activemodel (~> 5.2)
|
57
|
+
activerecord (~> 5.2)
|
58
|
+
activesupport (~> 5.2)
|
59
|
+
appraisal (~> 2.1)
|
60
|
+
rake
|
61
|
+
remockable!
|
62
|
+
sqlite3 (~> 1.3.4)
|
63
|
+
|
64
|
+
BUNDLED WITH
|
65
|
+
1.16.1
|
data/lib/remockable/version.rb
CHANGED
data/remockable.gemspec
CHANGED
@@ -8,9 +8,9 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.homepage = 'http://github.com/tylerhunt/remockable'
|
9
9
|
spec.license = 'MIT'
|
10
10
|
|
11
|
-
spec.add_dependency 'activemodel', '>= 4.0', '< 5.
|
12
|
-
spec.add_dependency 'activerecord', '>= 4.0', '< 5.
|
13
|
-
spec.add_dependency 'activesupport', '>= 4.0', '< 5.
|
11
|
+
spec.add_dependency 'activemodel', '>= 4.0', '< 5.3'
|
12
|
+
spec.add_dependency 'activerecord', '>= 4.0', '< 5.3'
|
13
|
+
spec.add_dependency 'activesupport', '>= 4.0', '< 5.3'
|
14
14
|
spec.add_dependency 'rspec-core', '~> 3.0'
|
15
15
|
spec.add_dependency 'rspec-expectations', '~> 3.0'
|
16
16
|
spec.add_dependency 'rspec-mocks', '~> 3.0'
|
@@ -52,13 +52,13 @@ describe :have_scope do
|
|
52
52
|
end
|
53
53
|
|
54
54
|
it 'matches if the scope exists and the query matches' do
|
55
|
-
model.instance_eval { scope :
|
56
|
-
expect(model).to have_scope(:
|
55
|
+
model.instance_eval { scope :eager_loaded, -> { eager_load :posts } }
|
56
|
+
expect(model).to have_scope(:eager_loaded).eager_load(:posts)
|
57
57
|
end
|
58
58
|
|
59
59
|
it 'does not match if the query does not match' do
|
60
|
-
model.instance_eval { scope :
|
61
|
-
expect(model).to_not have_scope(:
|
60
|
+
model.instance_eval { scope :eager_loaded, -> { eager_load :posts } }
|
61
|
+
expect(model).to_not have_scope(:eager_loaded).eager_load(:comments)
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: remockable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tyler Hunt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '4.0'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '5.
|
22
|
+
version: '5.3'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '4.0'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '5.
|
32
|
+
version: '5.3'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: activerecord
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
version: '4.0'
|
40
40
|
- - "<"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '5.
|
42
|
+
version: '5.3'
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -49,7 +49,7 @@ dependencies:
|
|
49
49
|
version: '4.0'
|
50
50
|
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: '5.
|
52
|
+
version: '5.3'
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: activesupport
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,7 +59,7 @@ dependencies:
|
|
59
59
|
version: '4.0'
|
60
60
|
- - "<"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: '5.
|
62
|
+
version: '5.3'
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -69,7 +69,7 @@ dependencies:
|
|
69
69
|
version: '4.0'
|
70
70
|
- - "<"
|
71
71
|
- !ruby/object:Gem::Version
|
72
|
-
version: '5.
|
72
|
+
version: '5.3'
|
73
73
|
- !ruby/object:Gem::Dependency
|
74
74
|
name: rspec-core
|
75
75
|
requirement: !ruby/object:Gem::Requirement
|
@@ -175,6 +175,8 @@ files:
|
|
175
175
|
- gemfiles/rails_5.0.gemfile.lock
|
176
176
|
- gemfiles/rails_5.1.gemfile
|
177
177
|
- gemfiles/rails_5.1.gemfile.lock
|
178
|
+
- gemfiles/rails_5.2.gemfile
|
179
|
+
- gemfiles/rails_5.2.gemfile.lock
|
178
180
|
- lib/remockable.rb
|
179
181
|
- lib/remockable/active_model.rb
|
180
182
|
- lib/remockable/active_model/allow_values_for.rb
|
@@ -248,7 +250,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
248
250
|
version: '0'
|
249
251
|
requirements: []
|
250
252
|
rubyforge_project:
|
251
|
-
rubygems_version: 2.6
|
253
|
+
rubygems_version: 2.7.6
|
252
254
|
signing_key:
|
253
255
|
specification_version: 4
|
254
256
|
summary: A collection of RSpec matchers for web apps.
|