multi_exiftool 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99d1a39d6b7f86838edecca534c52316000eab5672381af22fd1917a0f0db2d5
4
- data.tar.gz: bf6f42b5424c6f32c0f1e99b9869185ccb578e936d66df6799d3e24a53b8efc4
3
+ metadata.gz: db85645acf3c182d809fc2e7d451973e9ed076619f20c5ad589d873d8245cea1
4
+ data.tar.gz: 9e1e31248d31c431110a8aed55830b7b300582097cca5f44d29f5b1e3200b9c4
5
5
  SHA512:
6
- metadata.gz: fb7d247b98ca7e00ed5f0380f1780ca91c0792bca46b24756d09984a5852b7fec216da28a960ac7c517593db62537c8f6bee21e228ac1ee4bc3a349de1961937
7
- data.tar.gz: 8642935529ad89d65e9dea387b46a0ab340a7ef0ad7a816b18d4ef4d4665b8fe9f1cc2169c7e23f0ea0983c6114ed15d164e3c47fc0457cea71109024f0239ff
6
+ metadata.gz: 92f963afbfdea45ddae7cdb1c7cb2b993ea006b1f8deb94ad86e19e4925aef2148586bf56ef220dd17cf7fc87ed3d49a8ade4d649d96529303d3c6369da42835
7
+ data.tar.gz: 19df7c19363abc9714a14737d5eb86382dd01d9d087db873773a34ada2f275879740a0172e3a138d1b29b38653b2d0e212f08b62572583434dd73fbe359c24b6
data/Changelog CHANGED
@@ -1,3 +1,7 @@
1
+ 0.9.1
2
+ Fix bug in handling of timestamps with fractions of second introduced in
3
+ version 0.6.0. Thanks to Andrew Kendall for reporting and analyzing.
4
+
1
5
  0.9.0
2
6
  Add method MultiExiftool.delete_values.
3
7
 
@@ -10,7 +14,6 @@ really big bug in test suite: Would always pass because run_in_temp_dir was
10
14
  broken, so the block was never executed. Therefor 46 assertions were not
11
15
  executed since version 0.7.0. Many thanks to szTheory for this great catch!
12
16
 
13
-
14
17
  0.7.0
15
18
  Use Dir.tmpdir instead of test/temp for tests which manipulates images.
16
19
  Update to rim 2.15.
@@ -7,7 +7,7 @@ require_relative 'multi_exiftool/writer'
7
7
 
8
8
  module MultiExiftool
9
9
 
10
- VERSION = '0.9.0'
10
+ VERSION = '0.9.1'
11
11
 
12
12
  @exiftool_command = 'exiftool'
13
13
 
@@ -80,12 +80,12 @@ module MultiExiftool
80
80
  return val
81
81
  end
82
82
  case val
83
- when /^(\d{4}):(\d\d):(\d\d) (\d\d):(\d\d)(?::(\d\d)(?:\.\d+)?)?((?:[-+]\d\d:\d\d)|(?:Z))?(?: *DST)?$/
84
- arr = $~.captures[0,6].map {|cap| cap.to_i}
83
+ when /^(\d{4}):(\d\d):(\d\d) (\d\d):(\d\d)(?::((?:\d\d)(?:\.\d+)?))?((?:[-+]\d\d:\d\d)|(?:Z))?(?: *DST)?$/
84
+ year, month, day, hour, minute = $~.captures[0,5].map {|cap| cap.to_i}
85
+ second = $6.to_f
85
86
  zone = $7
86
87
  zone = '+00:00' if zone == 'Z'
87
- arr << zone if zone
88
- Time.new(*arr)
88
+ Time.new(year, month, day, hour, minute, second, zone)
89
89
  when %r(^(\d+)/(\d+)$)
90
90
  Rational($1, $2)
91
91
  else
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: multi_exiftool 0.9.0 ruby lib
2
+ # stub: multi_exiftool 0.9.1 ruby lib
3
3
  #
4
4
  # This file is automatically generated by rim.
5
5
  # PLEASE DO NOT EDIT IT DIRECTLY!
@@ -7,12 +7,12 @@
7
7
 
8
8
  Gem::Specification.new do |s|
9
9
  s.name = "multi_exiftool"
10
- s.version = "0.9.0"
10
+ s.version = "0.9.1"
11
11
 
12
12
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
13
13
  s.require_paths = ["lib"]
14
14
  s.authors = ["Jan Friedrich"]
15
- s.date = "2018-04-09"
15
+ s.date = "2018-07-31"
16
16
  s.description = "This library a is wrapper for the ExifTool command-line application (http://www.sno.phy.queensu.ca/~phil/exiftool) written by Phil Harvey. It is designed for dealing with multiple files at once by creating commands to call exiftool with various arguments, call it and parsing the results."
17
17
  s.email = "janfri26@gmail.com"
18
18
  s.files = ["./.aspell.pws", "Changelog", "Gemfile", "LICENSE", "README.md", "Rakefile", "lib/multi_exiftool", "lib/multi_exiftool.rb", "lib/multi_exiftool/executable.rb", "lib/multi_exiftool/reader.rb", "lib/multi_exiftool/values.rb", "lib/multi_exiftool/writer.rb", "multi_exiftool.gemspec", "regtest/read_all_tags.rb", "regtest/read_all_tags.yml", "regtest/test.jpg", "test/data", "test/data/a.jpg", "test/data/b.jpg", "test/data/c.jpg", "test/helper.rb", "test/temp", "test/temp/a.jpg", "test/temp/a.jpg_original", "test/temp/b.jpg", "test/temp/b.jpg_original", "test/temp/c.jpg", "test/temp/c.jpg_original", "test/test_executable.rb", "test/test_exiftool_stuff.rb", "test/test_functional_api.rb", "test/test_reader.rb", "test/test_values.rb", "test/test_values_using_groups.rb", "test/test_writer.rb", "test/test_writer_groups.rb"]
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
21
21
  s.post_install_message = "\n+-----------------------------------------------------------------------+\n| Please ensure you have installed exiftool version 7.65 or higher and |\n| it's found in your PATH (Try \"exiftool -ver\" on your commandline). |\n| For more details see |\n| http://www.sno.phy.queensu.ca/~phil/exiftool/install.html |\n+-----------------------------------------------------------------------+\n "
22
22
  s.required_ruby_version = Gem::Requirement.new(">= 1.9.1")
23
23
  s.requirements = ["exiftool, version 7.65 or higher"]
24
- s.rubygems_version = "2.7.6"
24
+ s.rubygems_version = "3.0.0.beta1"
25
25
  s.summary = "This library is a wrapper for the ExifTool command-line application (http://www.sno.phy.queensu.ca/~phil/exiftool)."
26
26
 
27
27
  if s.respond_to? :specification_version then
@@ -54,25 +54,26 @@ class TestValues < Test::Unit::TestCase
54
54
  assert_equal time, @values['TimestampWithoutSeconds']
55
55
  time = Time.local(2009, 8, 25, 12, 35, 42)
56
56
  assert_equal time, @values['Timestamp']
57
+ time = Time.local(2009, 8, 25, 12, 35, 42.123)
57
58
  assert_equal time, @values['TimestampWithFraction']
58
59
  end
59
60
 
60
61
  test 'Time object with given zone' do
61
- time = Time.new(2009,8,26,20,22,24,'+05:00')
62
+ time = Time.new(2009, 8, 26, 20, 22, 24, '+05:00')
62
63
  values_time = @values['TimestampWithPositiveZone']
63
64
  assert_equal time, values_time
64
65
  assert_equal 5 * 3600, values_time.utc_offset
65
- time = Time.new(2009,8,26,20,22,24,'-07:00')
66
+ time = Time.new(2009, 8, 26, 20, 22, 24, '-07:00')
66
67
  values_time = @values['TimestampWithNegativeZone']
67
68
  assert_equal time, values_time
68
69
  assert_equal -7 * 3600, values_time.utc_offset
69
- time = Time.new(2016,7, 23,15, 40,55,'+02:00')
70
+ time = Time.new(2016, 7, 23, 15, 40, 55.123,'+02:00')
70
71
  values_time = @values['TimestampWithFractionAndZone']
71
72
  assert_equal time, values_time
72
73
  end
73
74
 
74
75
  test 'Time object with zone and DST' do
75
- time = Time.new(2016,7, 23,15, 40,55,'+02:00')
76
+ time = Time.new(2016, 7, 23, 15, 40, 55,'+02:00')
76
77
  values_time = @values['TimestampWithZoneAndDST']
77
78
  assert_equal time, values_time
78
79
  end
@@ -82,6 +83,7 @@ class TestValues < Test::Unit::TestCase
82
83
  values_time = @values['TimestampWithZ']
83
84
  assert_equal time, values_time
84
85
  assert_equal 0, values_time.utc_offset
86
+ time = Time.new(2017, 4, 8, 17, 57, 27.123, '+00:00')
85
87
  values_time = @values['TimestampWithFractionAndZ']
86
88
  assert_equal time, values_time
87
89
  assert_equal 0, values_time.utc_offset
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multi_exiftool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Friedrich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-09 00:00:00.000000000 Z
11
+ date: 2018-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  requirements:
149
149
  - exiftool, version 7.65 or higher
150
150
  rubyforge_project:
151
- rubygems_version: 2.7.6
151
+ rubygems_version: 3.0.0.beta1
152
152
  signing_key:
153
153
  specification_version: 4
154
154
  summary: This library is a wrapper for the ExifTool command-line application (http://www.sno.phy.queensu.ca/~phil/exiftool).