activegraphql 0.4.0 → 0.4.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
  SHA1:
3
- metadata.gz: 7d7b827f9b88c797862ac466ea064c90a7f1d310
4
- data.tar.gz: 84a3cbb3591d9b0578148c035a05497c58b2c141
3
+ metadata.gz: 0dcf1eed2bc27ed6ffc87cb190f2ee3a9fb4a0e1
4
+ data.tar.gz: 8b339ecef3f057edf877421fa9e68617d51d8c25
5
5
  SHA512:
6
- metadata.gz: 565f09a87675ddf99b4d6408e5fb0479323778f44f14873aa7d19aac493c3c15c81b9533cf2d01b61d8c821eac731d76a70d604e62ae06928cc415ee94582d85
7
- data.tar.gz: c63f44e7d151303ef0b3794ca305e9342a84909eb493d842ab18f5c2a5981175c1b5e939966995a334e41f9825c68397244ade7a803b04636a5b6a6ad8d18682
6
+ metadata.gz: c5a57a0d3f79a8f02dd279bc80253737785c2ba08f181686151a22fd52a85b00cd82c415f7ff1ca6bd77eeee67f572ae298bf923f85f5af1428beba627aa1255
7
+ data.tar.gz: c2ab6b725e9f4e2ccd29df991d687fa6a30aa7ec554ff2f9dddcae1354e0d52fef8fc9cd9bfa4cf0079ccb01d14510f4fb77cf390d80effa848ac589feccc863
@@ -23,10 +23,9 @@ module ActiveGraphQL
23
23
  def fetch(*graph)
24
24
  response = query_get(*graph)
25
25
 
26
- return if response.blank?
27
-
28
26
  case response
29
27
  when Hash
28
+ return nil if response.empty?
30
29
  klass.new(response)
31
30
  when Array
32
31
  response.map { |h| klass.new(h) }
@@ -1,3 +1,3 @@
1
1
  module ActiveGraphQL
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activegraphql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wakoopa
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-31 00:00:00.000000000 Z
11
+ date: 2016-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler