govspeak 0.8.10 → 0.8.11

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.
@@ -87,8 +87,8 @@ module Govspeak
87
87
  #{Kramdown::Document.new(body.strip).to_html}</div>\n}
88
88
  }
89
89
 
90
- extension('external', surrounded_by("x")) { |body|
91
- Kramdown::Document.new("#{body.strip}{:rel='external'}").to_html
90
+ extension('external', surrounded_by("x[", "x")) { |body|
91
+ Kramdown::Document.new("[#{body.strip}{:rel='external'}").to_html
92
92
  }
93
93
 
94
94
  extension('informational', surrounded_by("^")) { |body|
@@ -1,3 +1,3 @@
1
1
  module Govspeak
2
- VERSION = "0.8.10"
2
+ VERSION = "0.8.11"
3
3
  end
@@ -183,6 +183,15 @@ Teston
183
183
  assert_text_output "a link"
184
184
  end
185
185
 
186
+ # Regression test - the surrounded_by helper doesn't require the closing x
187
+ # so 'xaa' was getting picked up by the external link helper above
188
+ # TODO: review whether we should require closing symbols for these extensions
189
+ # need to check all existing content.
190
+ test_given_govspeak "xaa" do
191
+ assert_html_output '<p>xaa</p>'
192
+ assert_text_output "xaa"
193
+ end
194
+
186
195
  test_given_govspeak "
187
196
  $!
188
197
  rainbow
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: govspeak
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.8.10
5
+ version: 0.8.11
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ben Griffiths
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2012-02-15 00:00:00 Z
14
+ date: 2012-03-22 00:00:00 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: kramdown
@@ -81,7 +81,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - ">="
83
83
  - !ruby/object:Gem::Version
84
- hash: -3286011011041893996
84
+ hash: 396198938527858646
85
85
  segments:
86
86
  - 0
87
87
  version: "0"
@@ -90,14 +90,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  requirements:
91
91
  - - ">="
92
92
  - !ruby/object:Gem::Version
93
- hash: -3286011011041893996
93
+ hash: 396198938527858646
94
94
  segments:
95
95
  - 0
96
96
  version: "0"
97
97
  requirements: []
98
98
 
99
99
  rubyforge_project:
100
- rubygems_version: 1.8.13
100
+ rubygems_version: 1.8.12
101
101
  signing_key:
102
102
  specification_version: 3
103
103
  summary: Markup language for single domain