graphenedb 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/requests.rb +1 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 807d28aea20369b663681983670787e8b324a427
4
- data.tar.gz: 186c99ec28b2fb1085cc2d01dcf55cd1380dc57b
3
+ metadata.gz: 626154d4176a227314e9fa20d50530bd2c67e440
4
+ data.tar.gz: e5d13253e798167cb2767187c71359d3b733c9c9
5
5
  SHA512:
6
- metadata.gz: cb8ac16c7a662e38f66ba6fadc61bc4413d7d9e1e6f6a46fc95b8bef9a7610e18e86054a689f9f5a98e7a7d9de5b29e8fd3c1c0a89230efa7268094aa079d43f
7
- data.tar.gz: d2a2124aa56ca60c5ca6676b57530e1918fea69e1dd2290b04345a35c47bac284cd8ada128e41d73d5342f32d960a71c79b9d26a61f41e2ad7f508c82facc035
6
+ metadata.gz: 17e37b82b2fcd21608c5413d68043272ca5cbb2e87cdb3c23bcf602c43098ff3acad1e8cb9bbbdc00c48bfb461a724c1e298bc259fd89179d9aa0bc6893bd938
7
+ data.tar.gz: d88fd5de3f0a1e147cba1ca8f6572cf1c20fcf1ce720436ab59bcc4df4fe285f5730dc29852019b4e43a28db627219cbfdb23bc3deaf5e7a8178337ff0e96e72
@@ -21,7 +21,6 @@ def call(args)
21
21
  path = args[1]
22
22
  params = args[2]
23
23
 
24
- # arguments = args.flatten
25
24
  # construct api endpoint
26
25
  uri = URI("#{ENDPOINT}/#{path}")
27
26
  http = Net::HTTP.new(uri.host, uri.port)
@@ -43,6 +42,6 @@ def call(args)
43
42
  if res.code == '401'
44
43
  "Unauthorized. Have you configured your GrapheneDB api key?"
45
44
  else
46
- JSON.parse(res.body)
45
+ res.body ? JSON.parse(res.body) : 'no content'
47
46
  end
48
47
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphenedb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricky Brown