color_lib 1.4.6 → 1.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/color_lib/pantone.rb +6 -0
- data/lib/color_lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5ee325c1569ca185591e145d76415f3a830c2e3
|
4
|
+
data.tar.gz: aca7305f77ca017ef660b793181c7b336141149a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a09e43a66a48dff70a4ab2c4f9fc593b4a4e3af258386d4aa00501bd72ae2ee767a5f15ccef5b01f2bec14fbf4076299c176081b6935a79724e707c7df53ab8
|
7
|
+
data.tar.gz: 81ebe489971fe9e8ef31a04fb0bdcea1174f5ee4ea2afcdf4c63af8544c835ba8e1fd736b82a19075f6a2ec606db4f2f407a0e52ca62b68ccc1a2d648060ed09
|
data/lib/color_lib/pantone.rb
CHANGED
@@ -12,6 +12,12 @@ class ColorLib::Pantone
|
|
12
12
|
elsif value.strip[-2..-1] =~ /\dc/i
|
13
13
|
# remove coated version ("C") from end of numerical pantones ("101C")
|
14
14
|
value = value.strip.downcase.chomp("c")
|
15
|
+
elsif value.strip[-2..-1] =~ /\ u/i
|
16
|
+
# remove coated version (" U") from end of string
|
17
|
+
value = value.strip.downcase.chomp(" u")
|
18
|
+
elsif value.strip[-2..-1] =~ /\du/i
|
19
|
+
# remove uncoated version ("U") from end of numerical pantones ("101C")
|
20
|
+
value = value.strip.downcase.chomp("u")
|
15
21
|
end
|
16
22
|
# remove spaces & downcase for clean match
|
17
23
|
value = value.to_s.gsub(/[\ \-]/i, '').downcase
|
data/lib/color_lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: color_lib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandfolder, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|