yaml-validator 0.1.4 → 0.1.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e18403bff180fb06843d1d71c151fd38b094620
4
- data.tar.gz: be16538882da43a2d6b8e6f82434b32a3ada5961
3
+ metadata.gz: ea374f175907fc179f8047bbde6507baa1582271
4
+ data.tar.gz: 4fc453d1d3e7c59d09f7afeecc4fd5e81643e899
5
5
  SHA512:
6
- metadata.gz: 8c8e85acdc2b4abdd7d521fc8fea2549ad52bc2a5f9c4e5f86ae29216eaa675f03bef16f26671ab5c69f7f26c321c8aa4285f59899d4bc94f8a173715a4e43b5
7
- data.tar.gz: bc931ff8d9fd6267835a904d5baac0c5aa0f17ebd880ec7dae20f519835e0f017dc2e9d4b000f1077f1784c1772e35022756e1af27a111b6ab1bf7b114feee10
6
+ metadata.gz: 7c3a0da0b03ac064bd93d936e863306c97b9d5da378714563c5a23b9440fa11330786910bafcc76a9a164b34a9f4d7638fb4e4705e1b4e4216e4cfbc864f6c70
7
+ data.tar.gz: f78211466246b174bc998ad8c313f6592c53be2fe28b1e2b76e9fb33c44b93aca4cd2007530506483e6d29f55a43e6020f4006411a9771d813331e579a71fe0a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yaml-validator (0.1.4)
4
+ yaml-validator (0.1.5)
5
5
  colorize
6
6
  rake
7
7
  rspec
@@ -12,7 +12,7 @@ GEM
12
12
  specs:
13
13
  colorize (0.5.8)
14
14
  diff-lcs (1.2.4)
15
- mini_portile (0.5.0)
15
+ mini_portile (0.5.1)
16
16
  nokogiri (1.6.0)
17
17
  mini_portile (~> 0.5.0)
18
18
  rake (10.1.0)
@@ -24,6 +24,7 @@ class SanitizedHtmlValidator
24
24
  end
25
25
 
26
26
  def self.valid_html?(html)
27
+ html.gsub!(/(\s)&\s/, '&')
27
28
  sanitized = Sanitize.clean(html, elements: [ 'strong', 'br', 'span', 'b', 'i' ])
28
29
  html == sanitized
29
30
  end
@@ -1,3 +1,3 @@
1
1
  class YamlValidator
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
@@ -1,4 +1,5 @@
1
1
  en:
2
2
  valid: 'this is a <strong>valid</strong><br>value'
3
+ valid2: 'this is a valid & correct value'
3
4
  invalid1: 'this is an <a href="spam.com">invalid</a> value'
4
5
  invalid2: 'this is an <strong onclick="spam.com">invalid</strong> value'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yaml-validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Elentok
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-30 00:00:00.000000000 Z
11
+ date: 2013-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake