wherelizer 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/wherelizer.rb +4 -0
  2. metadata +2 -2
@@ -7,6 +7,8 @@ class Sexp
7
7
  end
8
8
 
9
9
  class Wherelizer
10
+ class ConvertException < Exception; end
11
+
10
12
  attr_accessor :orig, :parsed, :final, :ruby2ruby
11
13
 
12
14
  def initialize(orig)
@@ -26,6 +28,8 @@ class Wherelizer
26
28
  others = options_hash.map{|key, value| parse_basic_param(key, value)}.join
27
29
 
28
30
  "#{assignment}#{receiver}#{where}#{others}#{method_name}"
31
+ rescue => e
32
+ raise ConvertException.new("Unable to convert: #{e.message}")
29
33
  end
30
34
 
31
35
  def handle_assignment
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wherelizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-05 00:00:00.000000000 Z
12
+ date: 2013-06-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ruby_parser