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 +4 -4
- data/.gitignore +2 -1
- data/.tool-versions +1 -0
- data/.travis.yml +1 -0
- data/README.md +7 -4
- data/lib/xmp/convenience.rb +1 -1
- data/lib/xmp/version.rb +1 -1
- data/spec/xmp_spec.rb +8 -0
- data/xmp.gemspec +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c71a383ba25e007195a1624a2d88311911d86323d6cb43d7107651904f91ec6f
|
4
|
+
data.tar.gz: f5d04040dd4905d29c7105d6aa20c3bf72b1feb8fad9ef93a719eacaece2f55b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a4e7a6ff1563cf64298439ce866a8bf56fa4991d234f1e9b0c13859d87121d3eaf57d4bdf444ab4cd93e9a5d3be5ed935a5cde5381b43f1375f12abf42b74f4
|
7
|
+
data.tar.gz: 89d8d8e67dff63d882af773ce3053012deb25e4d92eb1a8645c1a2ba312a60a75b719499adfdb3667c0d258f6418ce067e7cef37ffba719dea07bf16e2b9d247
|
data/.gitignore
CHANGED
data/.tool-versions
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby 3.3.5
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# xmp - Extensible Metadata Platform (XMP) parser
|
2
2
|
|
3
|
-
|
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
|
-
*
|
64
|
-
*
|
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
|
|
data/lib/xmp/convenience.rb
CHANGED
data/lib/xmp/version.rb
CHANGED
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
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.
|
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-
|
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.
|
140
|
+
version: 2.6.0
|
140
141
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
142
|
requirements:
|
142
143
|
- - ">="
|