dao-repository 1.1.2 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/dao-repository.gemspec +1 -1
- data/lib/dao/repository/scope.rb +5 -5
- data/lib/dao/repository/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16668f6ae4ffbf77f204f293e591797fb17b55c4
|
4
|
+
data.tar.gz: 6a1599778d435c7ad58a930907cc56fce99ab10d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b03578f51c0592ffb13237e880e654f24933b849c6c9a3788025caa54938921c9b7e8039e6c1c0a07299ef3c33c0690d23c74219f94fe7e81a56e356dc9d4d77
|
7
|
+
data.tar.gz: 8d9e77eeef01e32a3278694e5f74035fc751bc93dbb39dc4a6a618405ab00f93219ee6d4c910924de812df451346d55c2a127d2e52d61ca125fb2346564e611b
|
data/dao-repository.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
|
20
20
|
spec.required_ruby_version = '>= 2.2.2'
|
21
21
|
|
22
|
-
spec.add_dependency 'dao-gateway', '
|
22
|
+
spec.add_dependency 'dao-gateway', '>= 1.4'
|
23
23
|
|
24
24
|
spec.add_development_dependency 'bundler', '~> 1.11'
|
25
25
|
spec.add_development_dependency 'rake', '~> 10.0'
|
data/lib/dao/repository/scope.rb
CHANGED
@@ -19,8 +19,8 @@ module Dao
|
|
19
19
|
self
|
20
20
|
end
|
21
21
|
|
22
|
-
def with(
|
23
|
-
add_relations(
|
22
|
+
def with(relations, options = {})
|
23
|
+
add_relations(relations, options)
|
24
24
|
|
25
25
|
self
|
26
26
|
end
|
@@ -35,9 +35,9 @@ module Dao
|
|
35
35
|
|
36
36
|
private
|
37
37
|
|
38
|
-
def add_relations(
|
39
|
-
@scope = @gateway.add_relations(scope,
|
40
|
-
@with += @gateway.serializable_relations(
|
38
|
+
def add_relations(relations, options = {})
|
39
|
+
@scope = @gateway.add_relations(scope, relations, options)
|
40
|
+
@with += @gateway.serializable_relations(relations)
|
41
41
|
end
|
42
42
|
|
43
43
|
def respond_to?(method_name, include_private = false)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dao-repository
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- llxff
|
@@ -9,22 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-12-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dao-gateway
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '1.
|
20
|
+
version: '1.4'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - "
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '1.
|
27
|
+
version: '1.4'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: bundler
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|