fig18 0.1.46-i386-mingw32 → 0.1.47-i386-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/fig/environment.rb +1 -1
  3. data/lib/fig.rb +6 -1
  4. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.46
1
+ 0.1.47
@@ -159,7 +159,7 @@ module Fig
159
159
  stacktrace = string_handle.to_s
160
160
  Logging.fatal \
161
161
  "Version mismatch: #{package_name}" \
162
- + stacktrace.empty? ? '' : "\n#{stacktrace}"
162
+ + ( stacktrace.empty? ? '' : "\n#{stacktrace}" )
163
163
  raise RepositoryError.new
164
164
  end
165
165
  package
data/lib/fig.rb CHANGED
@@ -218,7 +218,7 @@ module Fig
218
218
  return 1
219
219
  rescue UserInputError => exception
220
220
  # If there's no message, we assume that the cause has already been logged.
221
- if not exception.message.nil?
221
+ if not exception_has_message?(exception)
222
222
  $stderr.puts exception.to_s
223
223
  end
224
224
 
@@ -229,4 +229,9 @@ module Fig
229
229
  return 1
230
230
  end
231
231
  end
232
+
233
+ def exception_has_message?(exception)
234
+ class_name = exception.class.name
235
+ return exception.message == class_name
236
+ end
232
237
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: fig18
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.46
5
+ version: 0.1.47
6
6
  platform: i386-mingw32
7
7
  authors:
8
8
  - Matthew Foemmel