ig3client 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/ig3client.rb +3 -5
  2. metadata +3 -3
data/lib/ig3client.rb CHANGED
@@ -171,11 +171,9 @@ module Ig3tool
171
171
  private
172
172
 
173
173
  def _reraise(sym, msg)
174
- if Kernel.respond_to? :constant # facets sucks
175
- raise constant(sym), msg
176
- else
177
- raise "#{sym}: #{msg}"
178
- end
174
+ raise constant(sym), msg
175
+ rescue NameError
176
+ raise "#{sym}: #{msg}"
179
177
  end
180
178
 
181
179
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ig3client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Pinte
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-03-28 00:00:00 +01:00
12
+ date: 2008-04-25 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -30,8 +30,8 @@ extensions: []
30
30
  extra_rdoc_files: []
31
31
 
32
32
  files:
33
- - lib/ig3client.rb
34
33
  - lib/lib
34
+ - lib/ig3client.rb
35
35
  - lib/lib/errors.rb
36
36
  - lib/lib/util.rb
37
37
  has_rdoc: false