gergich 1.0.0 → 1.1.0

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
  SHA256:
3
- metadata.gz: c35e56070c32b0ee9d3ae02336e3d27eb4831b5f4f04dc6b73e75d9e87f02908
4
- data.tar.gz: 45ee0f9e2b95996903267e298c2347c5f6d234e86516af7677dafa999910c895
3
+ metadata.gz: ffdbc2a21d3ed536da68e308de2725ce8d2a8d1984125fe222fffd2534a2a5ee
4
+ data.tar.gz: b404be4990fad059d5ef41885587a477a67af54b08ec0cc79f105bb8da460383
5
5
  SHA512:
6
- metadata.gz: 93c5d49b94710befacbaa40b05af12a530b1dd6dbcda69349e45731ce2d8d628109390d34432b3a12f5132eec5b3b368c316c88d5b075ea81fd226d46294d507
7
- data.tar.gz: 442c992f4077b79da2666d350d0f803ef55a40e401c0e6b79cabaff4ca5cd807380ea1cb3b99c37bc5aa7b2305323508e9017faa0d0ef0473c4cd9ef66c94b17
6
+ metadata.gz: e35654c3f320bd82918e7a8338cfa5a0a81f050e978cfe662f91b9f9c634e4e9017bec7779918b022e578f07bf4372ef1c227e7e40d6abaa395ca5abcff7bcb5
7
+ data.tar.gz: f04f09c89a36d7ebcde2e5d2b4e4e56414281b1013fa671a91a27b793d3855e54e97268445c3f0eadcd5916ec622506ef196b90e5d58b7132845fce7f7336595
@@ -20,7 +20,8 @@ module Gergich
20
20
 
21
21
  SEVERITY_MAP = {
22
22
  "✖" => "error",
23
- "⚠" => "warn"
23
+ "⚠" => "warn",
24
+ "ℹ" => "info"
24
25
  }.freeze
25
26
 
26
27
  # example file line:
@@ -29,7 +30,7 @@ module Gergich
29
30
 
30
31
  # example error line:
31
32
  # 1:15 ✖ Unexpected invalid hex color "#2D3B4" color-no-invalid-hex
32
- ERROR_PATTERN = /^\s+(\d+):\d+\s+(✖|⚠)\s+(.*?)\s\s+[^\n]+\n/.freeze
33
+ ERROR_PATTERN = /^\s+(\d+):\d+\s+(✖|⚠|ℹ)\s+(.*?)\s\s+[^\n]+\n/.freeze
33
34
  # rubocop:enable Style/AsciiComments
34
35
 
35
36
  PATTERN = /#{FILE_PATH_PATTERN}((#{ERROR_PATTERN})+)/.freeze
@@ -12,6 +12,7 @@ RSpec.describe Gergich::Capture::StylelintCapture do
12
12
  app/stylesheets/base/_variables.scss
13
13
  2:15 ✖ Unexpected invalid hex color "#2D3B4" color-no-invalid-hex
14
14
  30:15 ⚠ Expected "#2d3b4a" to be "#2D3B4A" color-hex-case
15
+ 45:12 ℹ Expected "#2d3b4a" to be "#2D3B4A" color-hex-case
15
16
  OUTPUT
16
17
  end
17
18
  let(:comments) do
@@ -39,6 +40,12 @@ RSpec.describe Gergich::Capture::StylelintCapture do
39
40
  position: 30,
40
41
  message: "[stylelint] Expected \"#2d3b4a\" to be \"#2D3B4A\"",
41
42
  severity: "warn"
43
+ },
44
+ {
45
+ path: "app/stylesheets/base/_variables.scss",
46
+ position: 45,
47
+ message: "[stylelint] Expected \"#2d3b4a\" to be \"#2D3B4A\"",
48
+ severity: "info"
42
49
  }
43
50
  ]
44
51
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gergich
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Jensen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-22 00:00:00.000000000 Z
11
+ date: 2019-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty