Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 5a891bdb65b93d607821c5bc8dbf513c132a2614 1 parent 5894b87
Jan Friedrich authored
Showing with 7 additions and 3 deletions.
  1. +4 −0 Changelog
  2. +3 −3 lib/mini_exiftool.rb
View
4 Changelog
@@ -1,3 +1,7 @@
+Version 0.5.1
+- Warning "parenthesize argument(s) for future version" removed
+ Thanks to Greg from knobby.ws
+
Version 0.5.0
- New option :timestamps to create DateTime objects instead of Time objects
for timestamps (Fixing bug #16328)
View
6 lib/mini_exiftool.rb
@@ -27,7 +27,7 @@ class MiniExiftool
attr_reader :filename
attr_accessor :numerical, :composite, :errors, :timestamps
- VERSION = '0.5.0'
+ VERSION = '0.5.1'
# +opts+ support at the moment
# * <code>:numerical</code> for numerical values, default is +false+
@@ -257,7 +257,7 @@ def parse_line line
elsif @timestamps == DateTime
value = DateTime.strptime(value,'%Y:%m:%d %H:%M:%S')
else
- raise MiniExiftool::Error.new "Value #@timestamps not allowed for option timestamps."
+ raise MiniExiftool::Error.new("Value #@timestamps not allowed for option timestamps.")
end
rescue ArgumentError
value = false
@@ -272,7 +272,7 @@ def parse_line line
value = value.split(/ /)
end
else
- raise MiniExiftool::Error
+ raise MiniExiftool::Error.new("Malformed line #{line.inspect} of exiftool output.")
end
return [tag, value]
end
Please sign in to comment.
Something went wrong with that request. Please try again.