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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f5994cad3fd89da3d87adbfa54f6679922703f97
4
- data.tar.gz: f4d1490474f2c4a11c81cd72a54c625862349348
3
+ metadata.gz: 5b1a5a676ccb350678ea927646fdebcf089e851d
4
+ data.tar.gz: cf36f18b367bfd58ce1b7210cdd4f67226509e4f
5
5
  SHA512:
6
- metadata.gz: 504c70f6cab884f7e82ec51fefcfb0c5d95050acb3088453f8480a0fcf123aa690a2d13cf9e0f13ff52933a1e53c15dcdbc4b85828164b778d29dc8fe2dcf6d3
7
- data.tar.gz: 27ff12009d136106032b8858af5da29c7417c3429456885e5ccc3d8450d09d291174e0858958bfd5c82841081c8d94ee7c460002a2eb5c40bc8e5c40e145e43d
6
+ metadata.gz: f20401d384c2b2f3c641c32d51eb437ccee200cd557e2837576ae246b1ebee36ac2b488c47e35e9527953bc9288f6fec7e3b76c3a41af51b6e8832b947b2cc9d
7
+ data.tar.gz: b0ef89444d5b87dcaeb18354009a598a45c60bc3650363d363c507b82f919a9da4a498f4e82c28d5290c7f36b569278f77e79f43db24059f1b7ed8f8c94d8a7a
@@ -6,11 +6,13 @@ rvm:
6
6
  - "2.0"
7
7
  - "2.1"
8
8
  - "2.2"
9
+ - "2.3"
10
+ - "2.4"
11
+ - "2.5"
9
12
  - ruby-head
10
- - rbx-19mode
11
13
  - jruby-19mode
12
14
 
13
15
  matrix:
14
16
  allow_failures:
15
- - rvm: rbx-19mode
16
17
  - rvm: ruby-head
18
+ - rvm: "2.5" # Broken on Travis on 2018-01-23
@@ -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 = 'http://wiki.github.com/wvanbergen/chunky_png'
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.select do |chunk|
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
@@ -1,5 +1,5 @@
1
1
  module ChunkyPNG
2
2
  # The current version of ChunkyPNG.
3
3
  # Set it and commit the change this before running rake release.
4
- VERSION = "1.3.10"
4
+ VERSION = "1.3.11"
5
5
  end
@@ -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.10
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-01-23 00:00:00.000000000 Z
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: http://wiki.github.com/wvanbergen/chunky_png
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.6.14
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