paint 2.0.1 → 2.0.2

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
- SHA1:
3
- metadata.gz: 1d819e1f6c54afdf78b2e6ccba831feec079c970
4
- data.tar.gz: a0eb4fbbba70595736ca220fc0d8be53e0beae66
2
+ SHA256:
3
+ metadata.gz: ec3dd2072102f8ebdfe49f0520b5d6096dc91541301690d04607a0df83586890
4
+ data.tar.gz: 17d070ed26e8c27466117331bb6100df05aa3bb010fa0d89ae6cef98c88a8ac3
5
5
  SHA512:
6
- metadata.gz: 1c74a497afce5d4e821828aa47829e0e9b7673aa3bbe9e87892d5759bcbc5f4603722aa9244597fb7272738c845d5eb0178f0687281c2d4c15addf6a2c9215d7
7
- data.tar.gz: 5a62fa59f2459f8514a447dd1b85bdba7561937363f7004d3d93ca40461cc1e26da60d55e9f30874ca7d8e1c5e9e760d3e3ef94be08150feae3c2f98a5f20c1a
6
+ metadata.gz: 79b1b15e9ce5ff5a59f88c878f20c43630e9eb03832e3fb45f2ac3bde16ee4efc36427d39b043adc65d1d7ad97839ed9e16d12fc8e701deb2e5cb721c2f7b7ea
7
+ data.tar.gz: b1059a3b96fc5248cfdd23b939c062bbea838ec48f09db7d5c2e3af6578be02060629e862572953d6b951b424bb47e6d8c3c553cd427ce1abf7416eb0f3e9ba5
@@ -2,18 +2,20 @@ sudo: false
2
2
  language: ruby
3
3
 
4
4
  rvm:
5
- - 2.4.2
6
- - 2.3.5
5
+ - 2.5.0
6
+ - 2.4.3
7
+ - 2.3.6
7
8
  - 2.2
8
9
  - 2.1
9
10
  - 2.0
10
11
  - 1.9.3
11
12
  - ruby-head
12
13
  - jruby-head
13
- - jruby-9.1.13.0
14
+ - jruby-9.1.15.0
14
15
 
15
16
  matrix:
16
17
  allow_failures:
17
18
  - rvm: jruby-head
19
+ - rvm: 2.1
18
20
  - rvm: 2.0
19
21
  - rvm: 1.9.3
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ### 2.0.2
4
+
5
+ * Remove `gunzip` deprecation warning
6
+
3
7
  ### 2.0.1
4
8
 
5
9
  * Fix nested substitutions, patch by @mildmojo
@@ -26,7 +30,7 @@
26
30
 
27
31
  * Improved performance
28
32
  * Option for :random colors removed (see readme)
29
- * Seperate Paint::SHORTCUTS into extra gem
33
+ * Separate Paint::SHORTCUTS into extra gem
30
34
  * Drop support for Ruby 1 (inoffically still support 1.9.3)
31
35
 
32
36
 
data/README.md CHANGED
@@ -25,11 +25,11 @@ Starting with **Paint 2.0**, *true color* mode is the new default mode, since mo
25
25
 
26
26
  ## Supported Rubies
27
27
 
28
- * **2.4**, **2.3**, **2.2**, **2.1**
28
+ * **2.5**, **2.4**, **2.3**, **2.2**
29
29
 
30
30
  Unsupported, but might still work:
31
31
 
32
- * **2.0**, **1.9**
32
+ * **2.1**, **2.0**, **1.9**
33
33
 
34
34
  ## Setup
35
35
 
@@ -1,11 +1,12 @@
1
+ require "zlib"
2
+
1
3
  module Paint
4
+ RGB_COLORS_INDEX_FILENAME = File.dirname(__FILE__) + "/../../data/rgb_colors.marshal.gz"
2
5
  # A list of color names, based on X11's rgb.txt
3
- RGB_COLORS =
4
- Marshal.load(
5
- Gem.gunzip(
6
- File.binread(
7
- File.dirname(__FILE__) + '/../../data/rgb_colors.marshal.gz'
8
- )
9
- )
10
- )
6
+
7
+ File.open(RGB_COLORS_INDEX_FILENAME, "rb") do |file|
8
+ serialized_data = Zlib::GzipReader.new(file).read
9
+ serialized_data.force_encoding Encoding::BINARY
10
+ RGB_COLORS = Marshal.load(serialized_data)
11
+ end
11
12
  end
@@ -1,3 +1,3 @@
1
1
  module Paint
2
- VERSION = '2.0.1'.freeze
2
+ VERSION = "2.0.2".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paint
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Lelis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-01 00:00:00.000000000 Z
11
+ date: 2018-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  requirements:
168
168
  - 'Windows: ansicon (https://github.com/adoxa/ansicon) or ConEmu (http://code.google.com/p/conemu-maximus5)'
169
169
  rubyforge_project:
170
- rubygems_version: 2.6.13
170
+ rubygems_version: 2.7.7
171
171
  signing_key:
172
172
  specification_version: 4
173
173
  summary: Terminal painter!