png 1.3.0 → 1.3.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: ed4cb5ea785c269b2b1528b2630d99b24a3bc99a06c4a50961dc3c681959a169
4
- data.tar.gz: f0a06a6423b7159878cbf5ed844e3600e32fec055e9fa46ace12e7d2329a474d
3
+ metadata.gz: 58bead40e74c716f4e360f969c764dc05abb8f40e27b0058e01ae211afa22e0c
4
+ data.tar.gz: 89ad83414c0bf016d9859999a5cbcf88b7a0737a003c757b1631cf8e6a5a9ccb
5
5
  SHA512:
6
- metadata.gz: f281dfb508c5c4ccc5bd82b69e69266b8931e198fa0a8deef3b47d3d13e22ca75b66b9df0d4d37ab44b9581fe3db8b9ef74a00f75a274afa6c1da9a0e8e49f0e
7
- data.tar.gz: 6b9c5ad8ba80a4c8ed527b56c271de1529b541c9b0f4dac533dc1568a2cf9263f3800ff51336de65e6d3aa94f2c7f7747dacbfd852108495716e69858efa95e9
6
+ metadata.gz: 05e76106807b58bf351e2a49c07bb7b6b6377aed0edcd36414415f2a508b378589effa1f506d2ec84df5a2835bd1cdb836d13c7148deebea0abdce6756c39023
7
+ data.tar.gz: 48faf1062180d40f52e4a4174001fd5822ae536a84397a42b69b51ef43db0c3a41340165239b82f4bf06de14aae120aac5b00b12be0cb315a649ddffd3ae779d
checksums.yaml.gz.sig CHANGED
Binary file
data/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ === 1.3.1 / 2024-12-16
2
+
3
+ * 1 bug fix:
4
+
5
+ * Fixed PNG::Color encoding errors on older ruby versions.
6
+
1
7
  === 1.3.0 / 2024-08-27
2
8
 
3
9
  Daaaamn... another 9 years! Means it is really stable, right?
data/lib/png.rb CHANGED
@@ -89,7 +89,7 @@ end
89
89
  # bottom left.
90
90
 
91
91
  class PNG
92
- VERSION = "1.3.0"
92
+ VERSION = "1.3.1"
93
93
  SIGNATURE = [137, 80, 78, 71, 13, 10, 26, 10].pack("C*")
94
94
 
95
95
  # Color Types:
@@ -207,7 +207,7 @@ class PNG
207
207
  # Creates a new color with values +red+, +green+, +blue+, and +alpha+.
208
208
 
209
209
  def initialize red, green, blue, alpha = MAX, name = nil
210
- @values = "%c%c%c%c" % [red, green, blue, alpha].map(&:chr)
210
+ @values = "%c%c%c%c".b % [red, green, blue, alpha].map(&:chr)
211
211
  @name = name
212
212
  end
213
213
 
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: png
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -29,7 +29,7 @@ cert_chain:
29
29
  S7043fq9EbQdBr2AXdj92+CDwuTfHI6/Hj5FVBDULufrJaan4xUgL70Hvc6pTTeW
30
30
  deKfBjgVAq7EYHu1AczzlUly
31
31
  -----END CERTIFICATE-----
32
- date: 2024-08-27 00:00:00.000000000 Z
32
+ date: 2024-12-16 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: RubyInline
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  requirements: []
133
- rubygems_version: 3.5.15
133
+ rubygems_version: 3.5.23
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: PNG is an almost-pure-ruby PNG library
metadata.gz.sig CHANGED
Binary file