mumuki-html-runner 1.10.0 → 1.10.1

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/checker/css.rb +3 -1
  3. data/lib/version.rb +1 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc4d521c3b59b3734674537152aad651a304e141df8c37ee0e303794844b4fa5
4
- data.tar.gz: 26b548f1f24bcafe4c1c818f00699710eaa0fa9e09ce9d7f005de209d9edb963
3
+ metadata.gz: 4351ceee56706a632f58010e3252fd7e4f501a65e21ec75b69132eef9cea2af9
4
+ data.tar.gz: 5ab4d6066f82463c3362985d70284da4e69db1283d58c04bf25f8a2d088619f3
5
5
  SHA512:
6
- metadata.gz: a082ff63b9569cc2095e72161240d09814151ac8240a3becec7283a3a3de44d96700279f2415a0e4bc09c579aa82e559336e3b4bcc7a80b97cc5a00f937f378b
7
- data.tar.gz: 82dbad8a04581a5ec4459bcba1e71e9048c5818a44ae4cad8f34a87aa65277df6d861bbff9384165da2083c7127269649abdb059e27ae8ed3f62a3f1cc476cb0
6
+ metadata.gz: fcebc9e3818389879b9fd14ff08b0b8cda7be51b59e15911b0ce40b9d508a476b419727ed97abca4facfa172d0896619e507b66a073b0a1b6a11fe1e1722a985
7
+ data.tar.gz: a733cbffe2b49cb2145fd89d7b5d22c00f4ef4f25581ff6fb275356e0b91bb088e95c1f50e1ae77bc82800767033bae64aa2b737cd1cacb207d3f7193607ef9d
data/lib/checker/css.rb CHANGED
@@ -16,6 +16,8 @@ end
16
16
 
17
17
  module Checker
18
18
  class CSS
19
+ COMMA_SEPARATED_INSPECTION_REGEX = /^([\w-]+\s*)(,\s*[\w-]+\s*)+$/
20
+
19
21
  def self.run(document, expectation, binding)
20
22
  content = document.xpath('//style').text.presence || document.text
21
23
  inspection = expectation.inspection
@@ -50,7 +52,7 @@ module Checker
50
52
  end
51
53
 
52
54
  def self.values_match?(inspection_value, actual_value)
53
- if inspection_value.include? ','
55
+ if inspection_value =~ COMMA_SEPARATED_INSPECTION_REGEX
54
56
  comma_separated_values_match? inspection_value, actual_value
55
57
  else
56
58
  actual_value.words.include? inspection_value
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module HtmlVersionHook
2
- VERSION = '1.10.0'
2
+ VERSION = '1.10.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumuki-html-runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 1.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Leonardo Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-07 00:00:00.000000000 Z
11
+ date: 2019-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mumukit
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
178
  - !ruby/object:Gem::Version
179
179
  version: '0'
180
180
  requirements: []
181
- rubygems_version: 3.0.4
181
+ rubygems_version: 3.0.6
182
182
  signing_key:
183
183
  specification_version: 4
184
184
  summary: HTML Runner for Mumuki