goodguide-gibbon 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -111,6 +111,8 @@ module GoodGuide
111
111
 
112
112
  def semantic_error_message(e)
113
113
  case e['_tag']
114
+ when 'parse'
115
+ "parse error: #{e['message']}"
114
116
  when 'match'
115
117
  lhs = inspect_expr e['lhs']
116
118
  rhs = inspect_expr e['rhs']
@@ -304,6 +306,8 @@ module GoodGuide
304
306
 
305
307
  def parse(str)
306
308
  obj_to_ruby self.gibbon.parse(str).asJSON
309
+ rescue V8::Error => e
310
+ raise SemanticError.new([{'_tag' => 'parse', 'message' => e.value}])
307
311
  end
308
312
 
309
313
  def analyze(syntax, global_table, static_client)
@@ -1,7 +1,7 @@
1
1
  module GoodGuide
2
2
  module Gibbon
3
3
  def self.version
4
- '0.5.0'
4
+ '0.5.1'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: goodguide-gibbon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,21 +12,21 @@ cert_chain: []
12
12
  date: 2013-10-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: therubyracer
16
15
  type: :runtime
16
+ name: therubyracer
17
+ prerelease: false
17
18
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
19
  requirements:
20
20
  - - ! '>='
21
21
  - !ruby/object:Gem::Version
22
22
  version: '0'
23
- version_requirements: !ruby/object:Gem::Requirement
24
23
  none: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - ! '>='
27
27
  - !ruby/object:Gem::Version
28
28
  version: '0'
29
- prerelease: false
29
+ none: false
30
30
  description: Run and analyze gibbon code from ruby or a browser (via a ruby app).
31
31
  email:
32
32
  - jjmadkisson@gmail.com
@@ -48,23 +48,17 @@ rdoc_options: []
48
48
  require_paths:
49
49
  - lib
50
50
  required_ruby_version: !ruby/object:Gem::Requirement
51
- none: false
52
51
  requirements:
53
52
  - - ! '>='
54
53
  - !ruby/object:Gem::Version
55
54
  version: '0'
56
- segments:
57
- - 0
58
- hash: -1060181650978331982
59
- required_rubygems_version: !ruby/object:Gem::Requirement
60
55
  none: false
56
+ required_rubygems_version: !ruby/object:Gem::Requirement
61
57
  requirements:
62
58
  - - ! '>='
63
59
  - !ruby/object:Gem::Version
64
60
  version: '0'
65
- segments:
66
- - 0
67
- hash: -1060181650978331982
61
+ none: false
68
62
  requirements: []
69
63
  rubyforge_project: goodguide-gibbon
70
64
  rubygems_version: 1.8.23
@@ -72,3 +66,4 @@ signing_key:
72
66
  specification_version: 3
73
67
  summary: Ruby bindings for the gibbon data language
74
68
  test_files: []
69
+ has_rdoc: