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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55d0cb7be83c251b936d744699b619b7163bb9d4
4
- data.tar.gz: d01a16b4d6015373138c0804202295a99832810b
3
+ metadata.gz: 3d4933c9fba84c52fe553c73596092be7e87ef46
4
+ data.tar.gz: 5ab6d5c052ff5e23fd9c1f2b23d692adbac30348
5
5
  SHA512:
6
- metadata.gz: a87b954ca74930f5a1e048f6c8ba3266a331f393ed0ad1f817e0fac116b16d11847530dcc34119618b7c9df5c2bf743743c9e2ba97e1ead6767753677d283c4a
7
- data.tar.gz: 1586f8defcc1a42bdc4d56a76cc03ed661c4fcf16536b6a1ce9af4e4de19750606be6bdd17c57d115b02efd97117f13bf8d09934c633171e8572ffe1b618074e
6
+ metadata.gz: 7b5d9ba02de4ee21316aa11e559a97590179414a1a462ec061dd84fb470aa15b8950318ea86f6f6439a18f46fd9fef9b1531d9928413d4cf8a2004c5084a25c3
7
+ data.tar.gz: 20fe874aa8158ec3c47032c79693225d657cd09be9f8d52bd6a29b2f97fb20126648ee885249ff7ede65ba83e66f6f33acb88da6a591d31b4927cb4d3679e381
@@ -13,6 +13,9 @@ When a file contains hex codes
13
13
  .container: {
14
14
  color: #000000;
15
15
  }
16
+ .row {
17
+ color: rbg(200, 200, 100);
18
+ }
16
19
  """
17
20
  When I run `color-cop`
18
21
  Then the output should contain "main.scss"
@@ -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}/ || File.read(file_name) =~ rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)
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
@@ -1,5 +1,5 @@
1
1
  module Color
2
2
  module Cop
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: color-cop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Farino