govspeak 3.3.0 → 3.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 3.4.0
2
+
3
+ * Increase the version of Kramdown to `1.5.0`. This allows compatibility with Jekyll
4
+ and the GitHub pages gem.
5
+
1
6
  ## 3.3.0
2
7
 
3
8
  * Relax Nokogiri dependency to `1.5.x` rather than `1.5.10`. This allows
data/README.md CHANGED
@@ -8,7 +8,7 @@ Install the gem
8
8
 
9
9
  or add it to your Gemfile
10
10
 
11
- gem "govspeak", "~> 0.8.9"
11
+ gem "govspeak", "~> 3.4.0"
12
12
 
13
13
  then create a new document
14
14
 
@@ -77,7 +77,7 @@ highlights the enclosed text in yellow
77
77
  creates a large pink highlight box with optional preamble text and giant text denoted with `**`
78
78
 
79
79
  <div class="highlight-answer">
80
- <p>The standard VAT rate is <em>20%</em></p>
80
+ <p>The VAT rate is <em>20%</em></p>
81
81
  </div>
82
82
 
83
83
  ## Points of Contact
data/lib/govspeak.rb CHANGED
@@ -36,6 +36,10 @@ module Govspeak
36
36
  def to_html
37
37
  kramdown_doc.to_html
38
38
  end
39
+
40
+ def to_liquid
41
+ to_html
42
+ end
39
43
 
40
44
  def to_sanitized_html
41
45
  HtmlSanitizer.new(to_html).sanitize
@@ -1,3 +1,3 @@
1
1
  module Govspeak
2
- VERSION = "3.3.0"
2
+ VERSION = "3.4.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govspeak
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-01-06 00:00:00.000000000 Z
13
+ date: 2015-07-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: kramdown
@@ -19,7 +19,7 @@ dependencies:
19
19
  requirements:
20
20
  - - ~>
21
21
  - !ruby/object:Gem::Version
22
- version: 1.4.1
22
+ version: 1.5.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,7 +27,7 @@ dependencies:
27
27
  requirements:
28
28
  - - ~>
29
29
  - !ruby/object:Gem::Version
30
- version: 1.4.1
30
+ version: 1.5.0
31
31
  - !ruby/object:Gem::Dependency
32
32
  name: htmlentities
33
33
  requirement: !ruby/object:Gem::Requirement
@@ -153,23 +153,23 @@ files:
153
153
  - lib/kramdown/parser/kramdown_with_automatic_external_links.rb
154
154
  - lib/with_deep_merge.rb
155
155
  - lib/govspeak.rb
156
+ - lib/govspeak/html_sanitizer.rb
157
+ - lib/govspeak/structured_header_extractor.rb
158
+ - lib/govspeak/header_extractor.rb
156
159
  - lib/govspeak/html_validator.rb
157
160
  - lib/govspeak/kramdown_overrides.rb
158
161
  - lib/govspeak/version.rb
159
- - lib/govspeak/html_sanitizer.rb
160
- - lib/govspeak/header_extractor.rb
161
- - lib/govspeak/structured_header_extractor.rb
162
162
  - README.md
163
163
  - CHANGELOG.md
164
164
  - Gemfile
165
165
  - Rakefile
166
166
  - test/govspeak_test_helper.rb
167
- - test/with_deep_merge_test.rb
168
- - test/html_validator_test.rb
169
167
  - test/govspeak_test.rb
168
+ - test/test_helper.rb
169
+ - test/with_deep_merge_test.rb
170
170
  - test/html_sanitizer_test.rb
171
+ - test/html_validator_test.rb
171
172
  - test/govspeak_structured_headers_test.rb
172
- - test/test_helper.rb
173
173
  homepage: http://github.com/alphagov/govspeak
174
174
  licenses: []
175
175
  post_install_message:
@@ -184,7 +184,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
184
184
  version: '0'
185
185
  segments:
186
186
  - 0
187
- hash: 4296798786801736357
187
+ hash: -842764078508591390
188
188
  required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  none: false
190
190
  requirements:
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  version: '0'
194
194
  segments:
195
195
  - 0
196
- hash: 4296798786801736357
196
+ hash: -842764078508591390
197
197
  requirements: []
198
198
  rubyforge_project:
199
199
  rubygems_version: 1.8.23.2
@@ -202,9 +202,9 @@ specification_version: 3
202
202
  summary: Markup language for single domain
203
203
  test_files:
204
204
  - test/govspeak_test_helper.rb
205
- - test/with_deep_merge_test.rb
206
- - test/html_validator_test.rb
207
205
  - test/govspeak_test.rb
206
+ - test/test_helper.rb
207
+ - test/with_deep_merge_test.rb
208
208
  - test/html_sanitizer_test.rb
209
+ - test/html_validator_test.rb
209
210
  - test/govspeak_structured_headers_test.rb
210
- - test/test_helper.rb