html5small 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MGY2YjdiMTIzYjBjY2ExZmIwNzQxYjc5MDFkNTE2ZjU5MmNhOTk0MQ==
5
- data.tar.gz: !binary |-
6
- MTdjN2NmMTY2NWNjNTVjYmRiMTFiMDgyYTI3M2UxZTdhZTg3YTQxZA==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- ODVlYTI4NjhkNDc1OTcyM2UxYzlmN2YwZGY4YzQ1OTRmMjU4NGJhZjlhOWEw
10
- YWM1MzhmMDVkYWM4MWYyMDg3NmVmN2M1YWI1ZmJhMWZmMTFmZTdkZDE2ZDM2
11
- MWM0YmUwOTJjMDExN2Y1MDllOTE0ZTVmYWFlMjUwYWQ4NmEzNTA=
12
- data.tar.gz: !binary |-
13
- MmI5YWMxZWM2NTk0ZTk2ZWY4ODI1Njg2NzQwMTMxZjFjYzkyM2JhYTY5ZDZl
14
- ZGJkM2E3NDhjMmMwN2YzYjE1Y2Y3Y2QyZjZjZGUxZmY1MTAxMjJmMWQ4ZGUy
15
- MjcwNDIzYzc1ZmYzNWYyZGEzNzgzMTQ4MGJlNGRkNjFlM2UzNzA=
2
+ SHA1:
3
+ metadata.gz: fc4d1231535af14501f6a36437fa4f64265eef14
4
+ data.tar.gz: dcfa89ee4997ca22ee4d77c63b448b8b002552e5
5
+ SHA512:
6
+ metadata.gz: 9db524082dda0ac982d4c10585cf09ce729e53bc8f2e09f6f3e68b8a493a519512222d1eb5c90bfb576ea1b09d75e2cd97b0cfe13ce592450a2fb68547194ea6
7
+ data.tar.gz: 9ca25876c0e1af0dd38776218f5396fceeb19b4d2210fe8a5c21627932fbf721dd8eeed94a308ea76e072f6685c567f81550f29ebeb62fb07c8d1c7fc5fa4d1a
data/README.md CHANGED
@@ -18,7 +18,7 @@ require 'html5small'
18
18
 
19
19
  ### As a nanoc filter
20
20
  HTML5small can also be used as a [nanoc](http://nanoc.stoneship.org/) [filter](http://nanoc.stoneship.org/docs/4-basic-concepts/#filters).
21
- This will lead to even faster loading if your compiled sites.
21
+ This will lead to even faster loading of your compiled sites.
22
22
 
23
23
  To use the HTML5small filter, add this line to your `lib/helpers.rb`:
24
24
  ```ruby
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.4.0
@@ -1 +1 @@
1
- <!doctype html><meta charset=utf-8><title>Untitled</title><section><p>A <code>b</code> <i>c</i> d <dfn>e <code> f </code> . </dfn></section>
1
+ <!doctype html><meta charset=utf-8><title>Untitled</title><section><p>A <code>b</code> <i>c</i> d <dfn>e <code> f </code> . </dfn></p></section>
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "html5small"
8
- s.version = "0.3.0"
8
+ s.version = "0.4.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Run Paint Run Run", "Ruben Verborgh"]
12
- s.date = "2013-08-14"
12
+ s.date = "2015-12-24"
13
13
  s.description = "Minifier for HTML5 documents"
14
14
  s.email = "ruben.verborgh@gmail.com"
15
15
  s.executables = ["html5small", "html5small"]
@@ -39,11 +39,10 @@ module HTML5small
39
39
  # A p element's end tag may be omitted if the p element is immediately
40
40
  # followed by an address, article, aside, blockquote, dir, div, dl,
41
41
  # fieldset, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, hr,
42
- # menu, nav, ol, p, pre, section, table, or ul, element, or if there is
43
- # no more content in the parent element and the parent element is not an
44
- # a element.
42
+ # menu, nav, ol, p, pre, section, table, or ul, element,
43
+ # or if the next element is also a p element.
45
44
  %r{</p>\s?(?=(<(address|article|aside|blockquote|dir|div|dl|fieldset|footer|
46
- form|h\d|header|hgroup|hr|menu|nav|ol|p|pre|section|table|ul)|</))}x,
45
+ form|h\d|header|hgroup|hr|menu|nav|ol|p|pre|section|table|ul)|</p)\W)}x,
47
46
  %r{</p>\s?\Z},
48
47
  # An rt element's end tag may be omitted if the rt element is
49
48
  # immediately followed by an rt or rp element, or if there is no more
@@ -8,9 +8,9 @@ end
8
8
  SPECS = {
9
9
  skeleton: "can minify a skeleton HTML document",
10
10
  pre: "doesn't collpase whitespace inside <pre> tags",
11
- whitespace_p: "collpases whitespace inside <p> tags",
12
- whitespace_complex: "collpases complex whitespace inside <p> tags",
13
- lists: "collpases whitespace inside lists",
11
+ whitespace_p: "collapses whitespace inside <p> tags",
12
+ whitespace_complex: "collapses complex whitespace inside <p> tags",
13
+ lists: "collapses whitespace inside lists",
14
14
  ie: "doesn't remove I.E conditional comments",
15
15
  table: "removes optional elements in tables",
16
16
  dl: "removes optional elements in definition lists",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html5small
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Run Paint Run Run
@@ -9,62 +9,62 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-14 00:00:00.000000000 Z
12
+ date: 2015-12-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: htmlentities
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ! '>='
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: 4.1.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ! '>='
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: 4.1.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: nokogiri
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ! '>='
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
34
  version: 1.5.0
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ! '>='
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: 1.5.0
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rspec
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ! '>='
46
+ - - ">="
47
47
  - !ruby/object:Gem::Version
48
48
  version: 2.0.0
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - ! '>='
53
+ - - ">="
54
54
  - !ruby/object:Gem::Version
55
55
  version: 2.0.0
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: yard
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ! '>='
60
+ - - ">="
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ! '>='
67
+ - - ">="
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
70
  description: Minifier for HTML5 documents
@@ -76,7 +76,7 @@ extra_rdoc_files:
76
76
  - LICENSE
77
77
  - README.md
78
78
  files:
79
- - .document
79
+ - ".document"
80
80
  - LICENSE
81
81
  - README.md
82
82
  - Rakefile
@@ -141,18 +141,19 @@ require_paths:
141
141
  - lib
142
142
  required_ruby_version: !ruby/object:Gem::Requirement
143
143
  requirements:
144
- - - ! '>='
144
+ - - ">="
145
145
  - !ruby/object:Gem::Version
146
146
  version: '0'
147
147
  required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  requirements:
149
- - - ! '>='
149
+ - - ">="
150
150
  - !ruby/object:Gem::Version
151
151
  version: '0'
152
152
  requirements: []
153
153
  rubyforge_project:
154
- rubygems_version: 2.0.6
154
+ rubygems_version: 2.4.5.1
155
155
  signing_key:
156
156
  specification_version: 4
157
157
  summary: HTML5small
158
158
  test_files: []
159
+ has_rdoc: