color-cop 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/detect_stray_hex_codes.feature +3 -0
- data/lib/color/cop.rb +1 -1
- data/lib/color/cop/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d4933c9fba84c52fe553c73596092be7e87ef46
|
4
|
+
data.tar.gz: 5ab6d5c052ff5e23fd9c1f2b23d692adbac30348
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b5d9ba02de4ee21316aa11e559a97590179414a1a462ec061dd84fb470aa15b8950318ea86f6f6439a18f46fd9fef9b1531d9928413d4cf8a2004c5084a25c3
|
7
|
+
data.tar.gz: 20fe874aa8158ec3c47032c79693225d657cd09be9f8d52bd6a29b2f97fb20126648ee885249ff7ede65ba83e66f6f33acb88da6a591d31b4927cb4d3679e381
|
data/lib/color/cop.rb
CHANGED
@@ -10,7 +10,7 @@ module Color
|
|
10
10
|
|
11
11
|
files_names.select do |file_name|
|
12
12
|
if file_name =~ /^.*\.scss$/
|
13
|
-
File.read(file_name) =~ /#\w{3,6}/
|
13
|
+
File.read(file_name) =~ /#\w{3,6}/ || File.read(file_name) =~ /rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)/
|
14
14
|
else
|
15
15
|
false
|
16
16
|
end
|
data/lib/color/cop/version.rb
CHANGED