geoloqi 0.9.31 → 0.9.32

Sign up to get free protection for your applications and to get access to all the features.
@@ -48,7 +48,7 @@ module Geoloqi
48
48
 
49
49
  if hash.is_a?(Hash) && hash['error'] && @config.throw_exceptions
50
50
  if @config.use_dynamic_exceptions && !hash['error'].nil? && !hash['error'].empty?
51
- exception_class_name = hash['error'].split('_').collect {|w| w.capitalize}.join+'Error'
51
+ exception_class_name = hash['error'].gsub(/\W+/, '_').split('_').collect {|w| w.capitalize}.join+'Error'
52
52
  Geoloqi.const_set exception_class_name, Class.new(Geoloqi::ApiError) unless Geoloqi.const_defined? exception_class_name
53
53
  raise_class = Geoloqi.const_get exception_class_name
54
54
  else
@@ -1,5 +1,5 @@
1
1
  module Geoloqi
2
2
  def self.version
3
- '0.9.31'
3
+ '0.9.32'
4
4
  end
5
5
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: geoloqi
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.9.31
5
+ version: 0.9.32
6
6
  platform: ruby
7
7
  authors:
8
8
  - Kyle Drake
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2011-10-10 00:00:00 -07:00
14
+ date: 2011-10-11 00:00:00 -07:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency