chunky_png 1.3.10 → 1.3.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -2
- data/chunky_png.gemspec +5 -1
- data/lib/chunky_png/datastream.rb +1 -1
- data/lib/chunky_png/version.rb +1 -1
- data/spec/chunky_png/datastream_spec.rb +8 -2
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b1a5a676ccb350678ea927646fdebcf089e851d
|
4
|
+
data.tar.gz: cf36f18b367bfd58ce1b7210cdd4f67226509e4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f20401d384c2b2f3c641c32d51eb437ccee200cd557e2837576ae246b1ebee36ac2b488c47e35e9527953bc9288f6fec7e3b76c3a41af51b6e8832b947b2cc9d
|
7
|
+
data.tar.gz: b0ef89444d5b87dcaeb18354009a598a45c60bc3650363d363c507b82f919a9da4a498f4e82c28d5290c7f36b569278f77e79f43db24059f1b7ed8f8c94d8a7a
|
data/.travis.yml
CHANGED
data/chunky_png.gemspec
CHANGED
@@ -33,8 +33,12 @@ Gem::Specification.new do |s|
|
|
33
33
|
|
34
34
|
s.authors = ['Willem van Bergen']
|
35
35
|
s.email = ['willem@railsdoctors.com']
|
36
|
-
s.homepage = '
|
36
|
+
s.homepage = 'https://github.com/wvanbergen/chunky_png/wiki'
|
37
37
|
s.license = 'MIT'
|
38
|
+
s.metadata = {
|
39
|
+
"source_code_uri" => "https://github.com/wvanbergen/chunky_png",
|
40
|
+
"wiki_uri" => "https://github.com/wvanbergen/chunky_png/wiki"
|
41
|
+
}
|
38
42
|
|
39
43
|
s.add_development_dependency('rake')
|
40
44
|
s.add_development_dependency('rspec', '~> 3')
|
@@ -142,7 +142,7 @@ module ChunkyPNG
|
|
142
142
|
# @return [Hash] A hash containing metadata fields and their values.
|
143
143
|
def metadata
|
144
144
|
metadata = {}
|
145
|
-
other_chunks.
|
145
|
+
other_chunks.each do |chunk|
|
146
146
|
metadata[chunk.keyword] = chunk.value if chunk.respond_to?(:keyword) && chunk.respond_to?(:value)
|
147
147
|
end
|
148
148
|
metadata
|
data/lib/chunky_png/version.rb
CHANGED
@@ -40,6 +40,12 @@ describe ChunkyPNG::Datastream do
|
|
40
40
|
expect(ds.metadata['Title']).to eql 'PngSuite'
|
41
41
|
expect(ds.metadata['Copyright']).to eql "Copyright Willem van Schaik, Singapore 1995-96"
|
42
42
|
end
|
43
|
+
|
44
|
+
it "ignores iTXt chunks" do
|
45
|
+
filename = resource_file('itxt_chunk.png')
|
46
|
+
ds = ChunkyPNG::Datastream.from_file(filename)
|
47
|
+
expect(ds.metadata).to be_empty
|
48
|
+
end
|
43
49
|
end
|
44
50
|
|
45
51
|
describe '#physical_chunk' do
|
@@ -118,8 +124,8 @@ describe ChunkyPNG::Datastream do
|
|
118
124
|
|
119
125
|
expect(parsed.text).to eq('✨')
|
120
126
|
expect(parsed.text.encoding).to eq(Encoding::UTF_8)
|
121
|
-
|
122
|
-
expect(parsed.translated_keyword).to eq('💩')
|
127
|
+
|
128
|
+
expect(parsed.translated_keyword).to eq('💩')
|
123
129
|
expect(parsed.translated_keyword.encoding).to eq(Encoding::UTF_8)
|
124
130
|
end
|
125
131
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chunky_png
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Willem van Bergen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -389,10 +389,12 @@ files:
|
|
389
389
|
- spec/resources/ztxt_chunk.png
|
390
390
|
- spec/spec_helper.rb
|
391
391
|
- tasks/benchmarks.rake
|
392
|
-
homepage:
|
392
|
+
homepage: https://github.com/wvanbergen/chunky_png/wiki
|
393
393
|
licenses:
|
394
394
|
- MIT
|
395
|
-
metadata:
|
395
|
+
metadata:
|
396
|
+
source_code_uri: https://github.com/wvanbergen/chunky_png
|
397
|
+
wiki_uri: https://github.com/wvanbergen/chunky_png/wiki
|
396
398
|
post_install_message:
|
397
399
|
rdoc_options:
|
398
400
|
- "--title"
|
@@ -415,7 +417,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
415
417
|
version: '0'
|
416
418
|
requirements: []
|
417
419
|
rubyforge_project:
|
418
|
-
rubygems_version: 2.
|
420
|
+
rubygems_version: 2.5.2.3
|
419
421
|
signing_key:
|
420
422
|
specification_version: 4
|
421
423
|
summary: Pure ruby library for read/write, chunk-level access to PNG files
|