govspeak 0.8.16 → 0.8.17

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -2,6 +2,3 @@ source "http://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in ..gemspec
4
4
  gemspec
5
-
6
- gem 'simplecov'
7
- gem 'simplecov-rcov'
@@ -140,6 +140,7 @@ module Govspeak
140
140
  wrap_with_div('information', '$I', Govspeak::Document)
141
141
  wrap_with_div('additional-information', '$AI')
142
142
  wrap_with_div('example', '$E', Govspeak::Document)
143
+ wrap_with_div('call-to-action', '$CTA', Govspeak::Document)
143
144
 
144
145
  extension('address', surrounded_by("$A")) { |body|
145
146
  %{<div class="address"><div class="adr org fn"><p>\n#{body.sub("\n", "").gsub("\n", "<br />")}\n</p></div></div>\n}
@@ -1,3 +1,3 @@
1
1
  module Govspeak
2
- VERSION = "0.8.16"
2
+ VERSION = "0.8.17"
3
3
  end
@@ -312,6 +312,17 @@ Teston
312
312
  assert_text_output "can you tell me how to get to…"
313
313
  end
314
314
 
315
+ test_given_govspeak "
316
+ $CTA
317
+ Click here to start the tool
318
+ $CTA" do
319
+ assert_html_output %{
320
+ <div class="call-to-action">
321
+ <p>Click here to start the tool</p>
322
+ </div>}
323
+ assert_text_output "Click here to start the tool"
324
+ end
325
+
315
326
  test_given_govspeak "
316
327
  1. rod
317
328
  2. jane
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: govspeak
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.8.16
5
+ version: 0.8.17
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-07-06 00:00:00 Z
14
+ date: 2012-07-30 00:00:00 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: kramdown
@@ -53,10 +53,32 @@ dependencies:
53
53
  requirements:
54
54
  - - ~>
55
55
  - !ruby/object:Gem::Version
56
- version: 1.0.0
56
+ version: 1.1.1
57
57
  type: :development
58
58
  prerelease: false
59
59
  version_requirements: *id004
60
+ - !ruby/object:Gem::Dependency
61
+ name: simplecov
62
+ requirement: &id005 !ruby/object:Gem::Requirement
63
+ none: false
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: "0"
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: *id005
71
+ - !ruby/object:Gem::Dependency
72
+ name: simplecov-rcov
73
+ requirement: &id006 !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: "0"
79
+ type: :development
80
+ prerelease: false
81
+ version_requirements: *id006
60
82
  description: |-
61
83
  A set of extensions to markdown layered on top of the kramdown
62
84
  library for use in the UK Government Single Domain project
@@ -70,16 +92,16 @@ extensions: []
70
92
  extra_rdoc_files: []
71
93
 
72
94
  files:
95
+ - lib/govspeak/version.rb
96
+ - lib/govspeak/header_extractor.rb
73
97
  - lib/govspeak.rb
74
98
  - lib/kramdown/parser/kramdown_with_automatic_external_links.rb
75
- - lib/govspeak/header_extractor.rb
76
- - lib/govspeak/version.rb
77
99
  - README.md
78
100
  - Gemfile
79
101
  - Rakefile
80
- - test/test_helper.rb
81
- - test/govspeak_test.rb
82
102
  - test/govspeak_test_helper.rb
103
+ - test/govspeak_test.rb
104
+ - test/test_helper.rb
83
105
  homepage: http://github.com/alphagov/govspeak
84
106
  licenses: []
85
107
 
@@ -93,7 +115,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
93
115
  requirements:
94
116
  - - ">="
95
117
  - !ruby/object:Gem::Version
96
- hash: -3802672710997913836
118
+ hash: -3838397236025135727
97
119
  segments:
98
120
  - 0
99
121
  version: "0"
@@ -102,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
124
  requirements:
103
125
  - - ">="
104
126
  - !ruby/object:Gem::Version
105
- hash: -3802672710997913836
127
+ hash: -3838397236025135727
106
128
  segments:
107
129
  - 0
108
130
  version: "0"
@@ -114,6 +136,6 @@ signing_key:
114
136
  specification_version: 3
115
137
  summary: Markup language for single domain
116
138
  test_files:
117
- - test/test_helper.rb
118
- - test/govspeak_test.rb
119
139
  - test/govspeak_test_helper.rb
140
+ - test/govspeak_test.rb
141
+ - test/test_helper.rb