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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f2d02019d262a0867dc9fa96dc5364c34e09ebf7
4
- data.tar.gz: 5ef740be7f00a0d171a2efe5186e4fae02c9b7d0
3
+ metadata.gz: 16668f6ae4ffbf77f204f293e591797fb17b55c4
4
+ data.tar.gz: 6a1599778d435c7ad58a930907cc56fce99ab10d
5
5
  SHA512:
6
- metadata.gz: 8dc9076f70640c23176a226a6fdfa96335c53f6ddd0a7a73954ea398feb24c54a322edb5f4bbc704818f49b38f293e8b526c8436e6b7a372705b69e85c5cf2f0
7
- data.tar.gz: bb7470f28110c84e2e137aaf777eaa715d60f7f69c6f1fcc10317f1b2bd6d0ce94f10cd520e663c56dab5a116b95413217837d16e0a4b76b917f473fdf693fc2
6
+ metadata.gz: b03578f51c0592ffb13237e880e654f24933b849c6c9a3788025caa54938921c9b7e8039e6c1c0a07299ef3c33c0690d23c74219f94fe7e81a56e356dc9d4d77
7
+ data.tar.gz: 8d9e77eeef01e32a3278694e5f74035fc751bc93dbb39dc4a6a618405ab00f93219ee6d4c910924de812df451346d55c2a127d2e52d61ca125fb2346564e611b
@@ -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', '~> 1.0'
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'
@@ -19,8 +19,8 @@ module Dao
19
19
  self
20
20
  end
21
21
 
22
- def with(*args)
23
- add_relations(args)
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(args)
39
- @scope = @gateway.add_relations(scope, args)
40
- @with += @gateway.serializable_relations(args)
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)
@@ -1,5 +1,5 @@
1
1
  module Dao
2
2
  module Repository
3
- VERSION = '1.1.2'
3
+ VERSION = '1.4.0'
4
4
  end
5
5
  end
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.1.2
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-10-14 00:00:00.000000000 Z
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.0'
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.0'
27
+ version: '1.4'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: bundler
30
30
  requirement: !ruby/object:Gem::Requirement