Skip to content
This repository
Browse code

Warning "parenthesize argument(s) for future version" removed

  • Loading branch information...
commit 5a891bdb65b93d607821c5bc8dbf513c132a2614 1 parent 5894b87
authored
4  Changelog
... ...
@@ -1,3 +1,7 @@
  1
+Version 0.5.1
  2
+- Warning "parenthesize argument(s) for future version" removed
  3
+  Thanks to Greg from knobby.ws
  4
+
1 5
 Version 0.5.0
2 6
 - New option :timestamps to create DateTime objects instead of Time objects
3 7
   for timestamps (Fixing bug #16328)
6  lib/mini_exiftool.rb
@@ -27,7 +27,7 @@ class MiniExiftool
27 27
   attr_reader :filename
28 28
   attr_accessor :numerical, :composite, :errors, :timestamps
29 29
 
30  
-  VERSION = '0.5.0'
  30
+  VERSION = '0.5.1'
31 31
 
32 32
   # +opts+ support at the moment
33 33
   # * <code>:numerical</code> for numerical values, default is +false+
@@ -257,7 +257,7 @@ def parse_line line
257 257
           elsif @timestamps == DateTime
258 258
             value = DateTime.strptime(value,'%Y:%m:%d %H:%M:%S') 
259 259
           else
260  
-            raise MiniExiftool::Error.new "Value #@timestamps not allowed for option timestamps."
  260
+            raise MiniExiftool::Error.new("Value #@timestamps not allowed for option timestamps.")
261 261
           end
262 262
         rescue ArgumentError
263 263
           value = false
@@ -272,7 +272,7 @@ def parse_line line
272 272
         value = value.split(/ /)
273 273
       end
274 274
     else
275  
-      raise MiniExiftool::Error
  275
+      raise MiniExiftool::Error.new("Malformed line #{line.inspect} of exiftool output.")
276 276
     end
277 277
     return [tag, value]
278 278
   end

0 notes on commit 5a891bd

Please sign in to comment.
Something went wrong with that request. Please try again.