xmp 1.0.0 → 1.0.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: 4275b1e67258b6a6b63a3b6c1a61bdaf9b5caf5fa6a6669008ecd6c43d58dd00
4
- data.tar.gz: 7bff3b97c76db9f79ed337c84f18177680de92bb48edcd4400f25d8888bf5779
3
+ metadata.gz: c71a383ba25e007195a1624a2d88311911d86323d6cb43d7107651904f91ec6f
4
+ data.tar.gz: f5d04040dd4905d29c7105d6aa20c3bf72b1feb8fad9ef93a719eacaece2f55b
5
5
  SHA512:
6
- metadata.gz: 1056ea809c5e851a3c9b01778a4c6929d73a1f93df0ed592e75d0aca6bb98841156159b744aba7279b6ce4302d6af8d3486ddfae041558f29f4f2b27a3a85f41
7
- data.tar.gz: e41d39d8e28bcd2a610257207d24be0c2fd58072e013c9b6c7a1ee4b0fd4fa8a0a29f3ce9bfb0ea4878e97c924716c4c20614545ed2b8f4822e965203c12e1f4
6
+ metadata.gz: 1a4e7a6ff1563cf64298439ce866a8bf56fa4991d234f1e9b0c13859d87121d3eaf57d4bdf444ab4cd93e9a5d3be5ed935a5cde5381b43f1375f12abf42b74f4
7
+ data.tar.gz: 89d8d8e67dff63d882af773ce3053012deb25e4d92eb1a8645c1a2ba312a60a75b719499adfdb3667c0d258f6418ce067e7cef37ffba719dea07bf16e2b9d247
data/.gitignore CHANGED
@@ -4,4 +4,5 @@
4
4
  Gemfile.lock
5
5
  pkg/*
6
6
  /xmp.xml
7
- .DS_Store
7
+ .DS_Store
8
+ doc
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 3.3.5
data/.travis.yml CHANGED
@@ -1,4 +1,5 @@
1
1
  rvm:
2
+ - 2.6.10
2
3
  - 2.7.8
3
4
  - 3.1.6
4
5
  - 3.2.5
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # xmp - Extensible Metadata Platform (XMP) parser
2
2
 
3
- MP provides object oriented interface to [XMP data](http://en.wikipedia.org/wiki/Extensible_Metadata_Platform). XMP data can be found in PDF, JPEG, GIF, PNG, and many other formats.
3
+ XMP provides an object oriented interface to [XMP data](http://en.wikipedia.org/wiki/Extensible_Metadata_Platform). XMP data can be found in PDF, JPEG, GIF, PNG, and many other formats.
4
4
 
5
5
  ## Supported Formats
6
6
 
@@ -59,9 +59,12 @@ gem 'exifr', '~> 1.3'
59
59
  ```
60
60
 
61
61
  ## Requirements
62
- * Ruby 2 or Ruby 3
63
- * Nokogiri (1.10 or newer, gem dependency - will be installed automatically)
64
- * EXIFR (1.3 or newer) - optional
62
+ * Ruby 2 (supported on >= 2.6, though xmp may work on earlier versions) or Ruby 3
63
+ * nokogiri (>= 1.10). The xmp gem depends on this gem. It will be installed automatically.
64
+ * On Ruby 2.6, nokogiri 1.13.10 will be installed; nokogiri >= 1.14 require Ruby 2.7.
65
+ * On Ruby 2.7, nokogiri 1.15.5 will be installed; nokogiri >= 1.16 require Ruby 3.
66
+ * See https://nokogiri.org/CHANGELOG.html for nokogiri support for older or newer Ruby versions.
67
+ * exifr (>= 1.3). This gem is optional. If you need it, add it to your Gemfile.
65
68
 
66
69
  ## Development
67
70
 
@@ -10,7 +10,7 @@ module XMP::Convenience
10
10
  end
11
11
 
12
12
  def respond_to_missing?(method_name, include_private = false)
13
- include?(key) or super
13
+ include?(method_name) or super
14
14
  end
15
15
 
16
16
  def to_h
data/lib/xmp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module XMP
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
data/spec/xmp_spec.rb CHANGED
@@ -26,6 +26,14 @@ describe XMP do
26
26
  @xmp['photoshop']['SupplementalCategories'].should eq(['Nazwa imprezy'])
27
27
  end
28
28
 
29
+ it "should respond to standalone attributes" do
30
+ @xmp.should respond_to(:dc)
31
+ @xmp.dc.should respond_to(:title)
32
+ @xmp.should respond_to(:photoshop)
33
+ @xmp.photoshop.should respond_to(:SupplementalCategories)
34
+ @xmp.photoshop.should respond_to(:supplemental_categories)
35
+ end
36
+
29
37
  it "should return standalone attribute hash" do
30
38
  @xmp.Iptc4xmpCore.CreatorContactInfo.should eq({'CiAdrCtry' => 'Germany', 'CiAdrCity' => 'Berlin'})
31
39
  end
data/xmp.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
 
21
21
  s.extra_rdoc_files = %w(README.md)
22
22
 
23
- s.required_ruby_version = '>= 2.7.0'
23
+ s.required_ruby_version = '>= 2.6.0'
24
24
 
25
25
  s.add_dependency 'nokogiri', '~> 1.0'
26
26
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xmp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wojciech Piekutowski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-09 00:00:00.000000000 Z
11
+ date: 2024-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -97,6 +97,7 @@ extra_rdoc_files:
97
97
  files:
98
98
  - ".gitignore"
99
99
  - ".rspec"
100
+ - ".tool-versions"
100
101
  - ".travis.yml"
101
102
  - Gemfile
102
103
  - README.md
@@ -136,7 +137,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
136
137
  requirements:
137
138
  - - ">="
138
139
  - !ruby/object:Gem::Version
139
- version: 2.7.0
140
+ version: 2.6.0
140
141
  required_rubygems_version: !ruby/object:Gem::Requirement
141
142
  requirements:
142
143
  - - ">="