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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ade669c4d8c8e8cf9dc4f03f5e383e9f0341d8d9
4
- data.tar.gz: c385c96569b2f9301590e6052a1076c44f0f4e2f
3
+ metadata.gz: 33c530b0e96d07ff4760a44622a7f1328705ccce
4
+ data.tar.gz: e75c4e54536f26b15a12de00c756501fa35de5d1
5
5
  SHA512:
6
- metadata.gz: dd0d2352b67e3ea169bee3951c0856893c5fd4383593939f047adf196803ccd6171dd52abc3e1d488d2f805cf3987d7772eb314a6226eaf9a0b393dff33cd8fa
7
- data.tar.gz: e447692892c3cc072396c2d09cdab4159697f1797639c7f0a84a065528404f33a582a483f12502b93310d63b1f985236efa40f5ddbd8ae6b4b4cc035ff1e9467
6
+ metadata.gz: a408f7295d239c4e8ce3007d876d5b7e22bb53040970e84082fc95e3d93422277096f1005adfbf55c3cc3101fad605cccf9c5c4f6002357825e4ba6a81be2fba
7
+ data.tar.gz: 52f96b43009c33f99b85ccce968eaec15b7cb2673ecf4fb6d7027d936cc40bde84cf9d407e4a12dff2dc49493521934f74c67c677fe6d6e93b9309649cd7f3c6
@@ -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::RuntimeError.new(error)
270
+ raise GoodGuide::Gibbon::Failure.new(error)
248
271
  when nil
249
272
  values
250
273
  else
@@ -1,7 +1,7 @@
1
1
  module GoodGuide
2
2
  module Gibbon
3
3
  def self.version
4
- '0.9.2'
4
+ '0.10.0'
5
5
  end
6
6
  end
7
7
  end
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.9.2
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-18 00:00:00.000000000 Z
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
- - ext/mkrf_conf.rb
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.14
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