mini_exiftool 2.10.2 → 2.10.3

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: 51cea5ba80431798479c6bef0c1554fd9af1f228ebcfc7944215b4bff2206087
4
- data.tar.gz: ca0f34cc3e579a6a3fb06f60f10275e57f700c0ef48e8c6ea687bc6ce3256705
3
+ metadata.gz: a72b16712f8325fadc9e21589c126bc31f88f25492f2d47b916e0f59eda5ef24
4
+ data.tar.gz: 3eb4319d36886b2b7f0caf723177d6f2bd383df090f9421b433e46b3050a1fcf
5
5
  SHA512:
6
- metadata.gz: 54713433ddd51360894ed0ca8e0cda2cd91c45c7f9c14db0cffab40296b2bf7d359abf1d41fa8b646a932eb9169795133367da38d0be226c10720d7e91e068eb
7
- data.tar.gz: 4e1906897d09383272d8cbb69abe50e4e477e6d340cf1a13a4fc29f7d5cd53c454360af44ab45f7998383437fbe1ed3fbd7543debeab8fef8172773f1267ee95
6
+ metadata.gz: 56a5e0ac25ceb6b11ec7105f0bae6f69b0f871b63ab586ef50178e484acef162845115c75f9ba89b26e5858b94f937c703e7af16d40776b52da443c76e7a50ce
7
+ data.tar.gz: 2a7c1fe5b13bfaf9d88b2d26ccbfedc1c5a7379bfaa8d253c5b50ca7b8285e4b0bc35bb8785e671bf979e89b0009e4e28981ce853a8a57f9f7b0c006c55081f8
data/.aspell.pws CHANGED
@@ -1,4 +1,4 @@
1
- personal_ws-1.1 en 120
1
+ personal_ws-1.1 en 121
2
2
  Barushev
3
3
  Bugfix
4
4
  CaptionAbstract
@@ -56,6 +56,7 @@ Wil
56
56
  acki
57
57
  aiff
58
58
  atomar
59
+ backport
59
60
  backticks
60
61
  bundler
61
62
  ccoenen
data/Changelog CHANGED
@@ -1,3 +1,6 @@
1
+ 2.10.3
2
+ - Use YAML.unsafe_load and backport it if necessary.
3
+
1
4
  2.10.2
2
5
  - Escape backticks and use escaped values in option coord_format.
3
6
 
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # MiniExiftool [![Build Status](https://travis-ci.org/janfri/mini_exiftool.svg?branch=master)](https://travis-ci.org/janfri/mini_exiftool)
1
+ # MiniExiftool ![Test Status](https://github.com/janfri/mini_exiftool/actions/workflows/main.yml/badge.svg)
2
2
 
3
3
  This library is a wrapper for the ExifTool command-line application
4
4
  (https://exiftool.org) written by Phil Harvey.
data/lib/mini_exiftool.rb CHANGED
@@ -22,11 +22,12 @@ require 'rbconfig'
22
22
  require 'set'
23
23
  require 'tempfile'
24
24
  require 'time'
25
+ require 'yaml'
25
26
 
26
27
  # Simple OO access to the ExifTool command-line application.
27
28
  class MiniExiftool
28
29
 
29
- VERSION = '2.10.2'
30
+ VERSION = '2.10.3'
30
31
 
31
32
  # Name of the ExifTool command-line application
32
33
  @@cmd = 'exiftool'
@@ -304,7 +305,7 @@ class MiniExiftool
304
305
  # Create a MiniExiftool instance from YAML data created with
305
306
  # MiniExiftool#to_yaml
306
307
  def self.from_yaml yaml, opts={}
307
- MiniExiftool.from_hash YAML.load(yaml), opts
308
+ MiniExiftool.from_hash YAML.unsafe_load(yaml), opts
308
309
  end
309
310
 
310
311
  # Returns the command name of the called ExifTool application.
@@ -553,6 +554,16 @@ class MiniExiftool
553
554
  params
554
555
  end
555
556
 
557
+ # Backport YAML.unsafe_load
558
+ unless defined? YAML.unsafe_load
559
+ module BackportYAML
560
+ def unsafe_load *args
561
+ load *args
562
+ end
563
+ end
564
+ YAML.extend BackportYAML
565
+ end
566
+
556
567
  # Hash with indifferent access:
557
568
  # DateTimeOriginal == datetimeoriginal == date_time_original
558
569
  class TagHash < Hash # :nodoc:
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: mini_exiftool 2.10.2 ruby lib
2
+ # stub: mini_exiftool 2.10.3 ruby lib
3
3
  #
4
4
  # This file is automatically generated by rim.
5
5
  # PLEASE DO NOT EDIT IT DIRECTLY!
@@ -7,34 +7,25 @@
7
7
 
8
8
  Gem::Specification.new do |s|
9
9
  s.name = "mini_exiftool"
10
- s.version = "2.10.2"
10
+ s.version = "2.10.3"
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 = "2021-06-29"
15
+ s.date = "2023-10-06"
16
16
  s.description = "This library is a wrapper for the ExifTool command-line application\n(https://exiftool.org) written by Phil Harvey.\nIt provides the full power of ExifTool to Ruby: reading and writing of\nEXIF-data, IPTC-data and XMP-data.\n"
17
17
  s.email = "janfri26@gmail.com"
18
18
  s.files = ["./.aspell.pws", "COPYING", "Changelog", "Gemfile", "README.md", "Rakefile", "Tutorial.md", "examples/copy_icc_profile.rb", "examples/external_photo.rb", "examples/print_portraits.rb", "examples/shift_time.rb", "examples/show_speedup_with_fast_option.rb", "lib/mini_exiftool.rb", "mini_exiftool.gemspec", "regtest/read_all.rb", "regtest/read_all.yml", "test/data", "test/data/Bad_PreviewIFD.jpg", "test/data/Canon.jpg", "test/data/INFORMATION", "test/data/invalid_byte_sequence_in_utf8.json", "test/data/invalid_rational.json", "test/data/test.jpg", "test/data/test.jpg.json", "test/data/test_coordinates.jpg", "test/data/test_encodings.jpg", "test/data/test_special_dates.jpg", "test/helpers_for_test.rb", "test/test_bad_preview_ifd.rb", "test/test_class_methods.rb", "test/test_composite.rb", "test/test_copy_tags_from.rb", "test/test_dumping.rb", "test/test_encodings.rb", "test/test_filename_access.rb", "test/test_from_hash.rb", "test/test_instance_methods.rb", "test/test_invalid_byte_sequence_in_utf8.rb", "test/test_invalid_rational.rb", "test/test_io.rb", "test/test_pstore.rb", "test/test_read.rb", "test/test_read_coordinates.rb", "test/test_read_numerical.rb", "test/test_save.rb", "test/test_special.rb", "test/test_special_dates.rb", "test/test_write.rb"]
19
19
  s.homepage = "https://github.com/janfri/mini_exiftool"
20
20
  s.licenses = ["LGPL-2.1"]
21
21
  s.post_install_message = "+-----------------------------------------------------------------------+\n| Please ensure you have installed exiftool at least version 7.65 |\n| and it's found in your PATH (Try \"exiftool -ver\" on your commandline).|\n| For more details see |\n| https://exiftool.org/install.html |\n| You need also Ruby 1.9 or higher. |\n| If you need support for Ruby 1.8 or exiftool prior 7.65 install |\n| mini_exiftool version < 2.0.0. |\n+-----------------------------------------------------------------------+\n"
22
- s.rubygems_version = "3.2.15"
22
+ s.rubygems_version = "3.5.0.dev"
23
23
  s.summary = "This library is a wrapper for the ExifTool command-line application (https://exiftool.org)."
24
24
 
25
- if s.respond_to? :specification_version then
26
- s.specification_version = 4
27
- end
25
+ s.specification_version = 4
28
26
 
29
- if s.respond_to? :add_runtime_dependency then
30
- s.add_development_dependency(%q<rake>, [">= 0"])
31
- s.add_development_dependency(%q<rim>, ["~> 2.17"])
32
- s.add_development_dependency(%q<test-unit>, [">= 0"])
33
- s.add_development_dependency(%q<regtest>, ["~> 2"])
34
- else
35
- s.add_dependency(%q<rake>, [">= 0"])
36
- s.add_dependency(%q<rim>, ["~> 2.17"])
37
- s.add_dependency(%q<test-unit>, [">= 0"])
38
- s.add_dependency(%q<regtest>, ["~> 2"])
39
- end
27
+ s.add_development_dependency(%q<rake>, [">= 0"])
28
+ s.add_development_dependency(%q<rim>, ["~> 2.17"])
29
+ s.add_development_dependency(%q<test-unit>, [">= 0"])
30
+ s.add_development_dependency(%q<regtest>, ["~> 2"])
40
31
  end
data/test/test_dumping.rb CHANGED
@@ -48,7 +48,7 @@ class TestDumping < TestCase
48
48
  def test_to_yaml
49
49
  hash = @mini_exiftool.to_hash
50
50
  yaml = @mini_exiftool.to_yaml
51
- assert_equal hash, YAML.load(yaml)
51
+ assert_equal hash, YAML.unsafe_load(yaml)
52
52
  end
53
53
 
54
54
  def test_from_yaml
data/test/test_pstore.rb CHANGED
@@ -31,7 +31,7 @@ class TestPstore < TestCase
31
31
  puts YAML.dump res
32
32
  END
33
33
  cmd = %Q(#{RUBY_ENGINE} -EUTF-8 -I lib -r mini_exiftool -r yaml -e "#{script}")
34
- YAML.load(`#{cmd}`)
34
+ YAML.unsafe_load(`#{cmd}`)
35
35
  end
36
36
 
37
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mini_exiftool
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.10.2
4
+ version: 2.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Friedrich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-29 00:00:00.000000000 Z
11
+ date: 2023-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  requirements: []
154
- rubygems_version: 3.2.15
154
+ rubygems_version: 3.5.0.dev
155
155
  signing_key:
156
156
  specification_version: 4
157
157
  summary: This library is a wrapper for the ExifTool command-line application (https://exiftool.org).