mumuki-html-runner 1.6 → 1.6.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/test_hook.rb +1 -1
  3. data/lib/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a786ca7a22c998ce1083b151b4af6c787ceea379c758875edfa872ac7286b3f
4
- data.tar.gz: 84de80a76d68c83766d8b754fa8d952261c505ee976ca96082de9b3a2d1234ec
3
+ metadata.gz: 08c96b4d60cea964b43ffb8bde5cc0fdfdfac145e96e9c6efe9ce8561be306ec
4
+ data.tar.gz: 8bc74778d1079957c5f1988f2fee4e77966817422c3bf3006246a5fcbb57028d
5
5
  SHA512:
6
- metadata.gz: 6a1cd7d09736898c8c2af016895e476eb007e4ce5fc068d1fd7babe64a6b396a47c834491cfab38640cef5b5d5d342cadfea18a992ceb5fc65276dba762af431
7
- data.tar.gz: 74530150dd912358a3159ba12c0538b8565bce9986f7bd64b4cf706e9db70513b83087a1fb3b898a2a82245affedd87fecd5b625b1f4d4d93fb9ebd945fbb21d
6
+ metadata.gz: 4568cfca7e92895d4d41dbed6fa9f989248463181acc2bd8425662b868dadca0105f3f6b96b6a630bfdd105b097ed9d1c363fed470b3195f7e6b0c9e73f772b9
7
+ data.tar.gz: e0ff4ddae4c7f62bfc639b4538a02736a9115633da409feebb86bfae0490820e1da9d4a5752d97bde21e63340fb61c5b3678d2b2244641de013762b1d64ac01d
data/lib/test_hook.rb CHANGED
@@ -13,7 +13,7 @@ class HtmlTestHook < Mumukit::Hook
13
13
 
14
14
  def run!(request)
15
15
  expected = request[:test]
16
- actual = request[:extra] || request[:content]
16
+ actual = request[:extra].presence || request[:content]
17
17
  if expected.blank? || contents_match?(expected, actual)
18
18
  [render_html(actual), :passed]
19
19
  else
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module HtmlVersionHook
2
- VERSION = '1.6'
2
+ VERSION = '1.6.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.6'
4
+ version: 1.6.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: 2018-04-17 00:00:00.000000000 Z
11
+ date: 2018-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mumukit