goodguide-gibbon 0.9.2 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/goodguide/gibbon.rb +24 -1
- data/lib/goodguide/gibbon/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33c530b0e96d07ff4760a44622a7f1328705ccce
|
4
|
+
data.tar.gz: e75c4e54536f26b15a12de00c756501fa35de5d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a408f7295d239c4e8ce3007d876d5b7e22bb53040970e84082fc95e3d93422277096f1005adfbf55c3cc3101fad605cccf9c5c4f6002357825e4ba6a81be2fba
|
7
|
+
data.tar.gz: 52f96b43009c33f99b85ccce968eaec15b7cb2673ecf4fb6d7027d936cc40bde84cf9d407e4a12dff2dc49493521934f74c67c677fe6d6e93b9309649cd7f3c6
|
data/lib/goodguide/gibbon.rb
CHANGED
@@ -187,6 +187,29 @@ module GoodGuide
|
|
187
187
|
annotations == other.annotations
|
188
188
|
].all?
|
189
189
|
end
|
190
|
+
|
191
|
+
def as_json(*)
|
192
|
+
{
|
193
|
+
'status' => 'missing_data',
|
194
|
+
'query_type' => query_type,
|
195
|
+
'entity_id' => id,
|
196
|
+
'annotations' => annotations,
|
197
|
+
}
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
201
|
+
class Failure < RuntimeError
|
202
|
+
attr_reader :message
|
203
|
+
def initialize(message)
|
204
|
+
@message = message
|
205
|
+
end
|
206
|
+
|
207
|
+
def as_json(*)
|
208
|
+
{
|
209
|
+
'status' => 'failure',
|
210
|
+
'message' => message,
|
211
|
+
}
|
212
|
+
end
|
190
213
|
end
|
191
214
|
|
192
215
|
class Program
|
@@ -244,7 +267,7 @@ module GoodGuide
|
|
244
267
|
|
245
268
|
case error
|
246
269
|
when String
|
247
|
-
raise GoodGuide::Gibbon::
|
270
|
+
raise GoodGuide::Gibbon::Failure.new(error)
|
248
271
|
when nil
|
249
272
|
values
|
250
273
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: goodguide-gibbon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jay Adkisson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Run and analyze gibbon code from ruby or a browser (via a ruby app).
|
14
14
|
email:
|
@@ -19,13 +19,13 @@ extensions:
|
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
21
|
- Gemfile
|
22
|
+
- ext/mkrf_conf.rb
|
22
23
|
- goodguide-gibbon.gemspec
|
23
24
|
- lib/goodguide/gibbon.rb
|
24
25
|
- lib/goodguide/gibbon/version.rb
|
25
|
-
- vendor/gibbon/package.json
|
26
|
-
- vendor/gibbon/lib/gibbon.browser.js
|
27
26
|
- vendor/gibbon/lib/gibbon.browser.dev.js
|
28
|
-
-
|
27
|
+
- vendor/gibbon/lib/gibbon.browser.js
|
28
|
+
- vendor/gibbon/package.json
|
29
29
|
homepage: http://github.com/GoodGuide/goodguide-gibbon
|
30
30
|
licenses: []
|
31
31
|
metadata: {}
|
@@ -35,17 +35,17 @@ require_paths:
|
|
35
35
|
- lib
|
36
36
|
required_ruby_version: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
42
42
|
requirements:
|
43
|
-
- -
|
43
|
+
- - ">="
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '0'
|
46
46
|
requirements: []
|
47
47
|
rubyforge_project: goodguide-gibbon
|
48
|
-
rubygems_version: 2.0
|
48
|
+
rubygems_version: 2.2.0
|
49
49
|
signing_key:
|
50
50
|
specification_version: 4
|
51
51
|
summary: Ruby bindings for the gibbon data language
|