color_lib 1.4.6 → 1.4.7

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: 81330d8cca7636edd0106c257baee8dae2ed0017
4
- data.tar.gz: 3a1ad44bace3b07163d8b9954e9430cc625f9628
3
+ metadata.gz: b5ee325c1569ca185591e145d76415f3a830c2e3
4
+ data.tar.gz: aca7305f77ca017ef660b793181c7b336141149a
5
5
  SHA512:
6
- metadata.gz: 222eedfe36749ec8c97c80a86cf1b5eb8eb0bba685be334ab10eeec35dfcd10df71b16d4d2af9ca8b7278bbb8e96825833c57249984437c263e845c4d85fb50b
7
- data.tar.gz: 6625d3f6ce5315658622d55af4834811dcdb8a2e0e838b7ab5681aa3b8937b920c8510b1296c8b247182d4c954c9fde7b90d26b83aee8340f51e0c14f71a6dcb
6
+ metadata.gz: 9a09e43a66a48dff70a4ab2c4f9fc593b4a4e3af258386d4aa00501bd72ae2ee767a5f15ccef5b01f2bec14fbf4076299c176081b6935a79724e707c7df53ab8
7
+ data.tar.gz: 81ebe489971fe9e8ef31a04fb0bdcea1174f5ee4ea2afcdf4c63af8544c835ba8e1fd736b82a19075f6a2ec606db4f2f407a0e52ca62b68ccc1a2d648060ed09
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ColorLib
2
- VERSION = "1.4.6"
2
+ VERSION = "1.4.7"
3
3
  end
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.6
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-16 00:00:00.000000000 Z
11
+ date: 2015-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler