siphon 0.3.0 → 0.3.1

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
  SHA256:
3
- metadata.gz: 92365b6395921c463098560d6454e58724e390e16bce4290b2023c3cebded30a
4
- data.tar.gz: 6e039cc7825f96ce2d30719216f664534c9a300c8ab48cd4fcdae90cfa27d3f6
3
+ metadata.gz: 2bdc3c31bc5718d24835c2e8ed3fab2e01a8dd3b0bc1f048137c5914e84d417f
4
+ data.tar.gz: 9a1079f8d9061d31452ffcaeff2f867120afb73866f44650b23d3758baf8db69
5
5
  SHA512:
6
- metadata.gz: da28a7c8ff0099c029f7e7133a409f42928521d722d3c4322155829707d07f8ae43bc6458e92145fab8db341a60ee13bbe2a0fa1ad9250a8505a83ae43de6c44
7
- data.tar.gz: e32f5534c2f9c620abf63d09caa0da275a2f4bf8ed34ff81e39e0aebddc7c6e09e4434db8b5b5a2fa5959f40c705cbf399cb198ad44a2f6bf04513a0c8c47ecb
6
+ metadata.gz: d5d704cf2f244a89647f5cdbb412221699ba4afb2b69dd67b9cced9a97468e34ba277d868824cc69f0f521c7632a3b31f1549babe6ef4d3e039c974c4cecab18
7
+ data.tar.gz: 663828c3940e6e78cb3cca0f60fec9a4667dd8ce67b05b7870324bc1ec8f032c11d524b71e55882984b0dbb98ec4d4dda73e32c1c858c6cbf2326f4e1bce44bf
data/lib/siphon/base.rb CHANGED
@@ -21,7 +21,7 @@ module Siphon
21
21
 
22
22
  scopes_hash.each do |meth, arg|
23
23
  self.relation = if arg.is_a?(Array)
24
- relation.send(meth, *arg)
24
+ arg.any? ? relation.send(meth, *arg) : relation
25
25
  elsif arg.nil?
26
26
  relation.send(meth)
27
27
  else
@@ -1,3 +1,3 @@
1
1
  module Siphon
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: siphon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Sistovaris
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-05 00:00:00.000000000 Z
11
+ date: 2018-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport