govspeak 0.8.13 → 0.8.14

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.
data/lib/govspeak.rb CHANGED
@@ -87,8 +87,9 @@ module Govspeak
87
87
  #{Kramdown::Document.new(body.strip).to_html}</div>\n}
88
88
  }
89
89
 
90
- extension('external', surrounded_by("x[", "x")) { |body|
91
- Kramdown::Document.new("[#{body.strip}{:rel='external'}").to_html
90
+ # FIXME: these surrounded_by arguments look dodgy
91
+ extension('external', surrounded_by("x[", ")x")) { |body|
92
+ Kramdown::Document.new("[#{body.strip}){:rel='external'}").to_html
92
93
  }
93
94
 
94
95
  extension('informational', surrounded_by("^")) { |body|
@@ -1,3 +1,3 @@
1
1
  module Govspeak
2
- VERSION = "0.8.13"
2
+ VERSION = "0.8.14"
3
3
  end
@@ -183,6 +183,10 @@ Teston
183
183
  assert_text_output "a link"
184
184
  end
185
185
 
186
+ test_given_govspeak "x[an xx link](http://x.com)x" do
187
+ assert_html_output '<p><a href="http://x.com" rel="external">an xx link</a></p>'
188
+ end
189
+
186
190
  # Regression test - the surrounded_by helper doesn't require the closing x
187
191
  # so 'xaa' was getting picked up by the external link helper above
188
192
  # TODO: review whether we should require closing symbols for these extensions
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: govspeak
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.8.13
5
+ version: 0.8.14
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-05-29 00:00:00 Z
14
+ date: 2012-06-12 00:00:00 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: kramdown
@@ -92,7 +92,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - ">="
94
94
  - !ruby/object:Gem::Version
95
- hash: -2168654671078793304
95
+ hash: 1354510273369797906
96
96
  segments:
97
97
  - 0
98
98
  version: "0"
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - ">="
103
103
  - !ruby/object:Gem::Version
104
- hash: -2168654671078793304
104
+ hash: 1354510273369797906
105
105
  segments:
106
106
  - 0
107
107
  version: "0"