pg_adaptor 0.0.8 → 0.0.9

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: eef2150c45a3ee92c334ea6780ed43478b36452e
4
- data.tar.gz: bf5a4e5b3f896f4e0d81bbc6c5eb64cce2cd1fa1
3
+ metadata.gz: fba0fdb0791b71a8d1636bae4ba38dee73159589
4
+ data.tar.gz: 48145ff3b8419051bb50c366335ea1aebaf20524
5
5
  SHA512:
6
- metadata.gz: 279841e7b9e0cba9ace6a1056a3c61484064b538d37378db1271a3de12e1dcc2cb0ba752c89f90d0d297034c3e0ffd38bdaa952d7aa1ab8cb7086f2f962ce33c
7
- data.tar.gz: 21788720eab70253f5cfe9a748b77fbf9ed5886935ea324e4850301123eb8eeb3055750924f7cf66db5716e82045bd72c521ef4713c4e6b5d99a15499aa5ac55
6
+ metadata.gz: c8f901b6ed4643f6129517573598e9fb8f4cbcafd79574c681f49cc229e59fc023ae31986200d2b3a78f3db02a6063edb692ded99a85928a26768409db31c761
7
+ data.tar.gz: 5b0f3555787c30786ac45ac93d74bd95c12990a872e58020057d654e27875bfc231ee49d0c4154b0c78ed851243940b2f3dd4d65a46045c45a713b247c75e140
@@ -26,16 +26,16 @@ class PGAdaptor
26
26
  @table.where(query).update process(model)
27
27
  end
28
28
 
29
- def fetch selector = {}, opts = {}
30
- build @table.where(selector).first
29
+ def fetch selector = {}, *args
30
+ build @table.where(selector, *args).first
31
31
  end
32
32
 
33
33
  def remove selector = {}
34
34
  @table.where(selector).delete
35
35
  end
36
36
 
37
- def find selector = {}
38
- @table.where(selector).map { |row| build row }
37
+ def find selector = {}, *args
38
+ @table.where(selector, *args).map { |row| build row }
39
39
  end
40
40
 
41
41
  private
@@ -1,3 +1,3 @@
1
1
  class PGAdaptor
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_adaptor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Rowe