htmlbeautifier 1.0.1 → 1.0.2

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: e1f5ee1a14739216070d654cda0baf67f47ca591
4
- data.tar.gz: aec9ef2f98e0665639809f0ae4f9ca640925d947
3
+ metadata.gz: d1c8931fa0f5cefbea1f5dd7537a1ef412b87889
4
+ data.tar.gz: 3018176f5047d9e731e0bdab5f09bf60dab81af6
5
5
  SHA512:
6
- metadata.gz: c65d727deb3738224a9974ffcfe69711f55889c19c9c424e900a68a864ee123708fb75171bc13127e896120ecc284cf8f4023603261291481d53cf585cd7a75f
7
- data.tar.gz: 7acf594cb53911c01e0788993d88ea0e8be6f7be7e54315813dd0f61712a5e5dd2385b6f07abb914ac1c937856c6b82b75d93cbac2f5bba0cc199cf76311ce4d
6
+ metadata.gz: cb02ac85d25eaa333147a02667afc8c761fb44d537a78ca7f9f39de44814efc1552befdeab689d7da3a96ae0bb4e189263ab8b2746513a70ade37b33da63195b
7
+ data.tar.gz: 7aff7cddcfd6e058dbd6f633598e66ec5a786b6e1e5ba5cb8b593048ac958157335fa19ab81abcd07e9486d18df26b9031ffe25c5d8f0391546d3a07c1b2f9f2
@@ -2,7 +2,7 @@ require 'htmlbeautifier/parser'
2
2
 
3
3
  module HtmlBeautifier
4
4
  class HtmlParser < Parser
5
- ELEMENT_CONTENT = %r{ (?:[^<>]|<%.*?%>)* }mx
5
+ ELEMENT_CONTENT = %r{ (?:<%.*?%>|[^>])* }mx
6
6
  HTML_VOID_ELEMENTS = %r{(?:
7
7
  area | base | br | col | command | embed | hr | img | input | keygen |
8
8
  link | meta | param | source | track | wbr
@@ -53,7 +53,7 @@ module HtmlBeautifier
53
53
  return
54
54
  end
55
55
  end
56
- raise "Unmatched sequence #{match.inspect}"
56
+ raise "Unmatched sequence"
57
57
  rescue => ex
58
58
  raise "#{ex.message} on line #{source_line_number}"
59
59
  end
@@ -2,7 +2,7 @@ module HtmlBeautifier #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: htmlbeautifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Battley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-22 00:00:00.000000000 Z
11
+ date: 2015-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake