middleman-hashicorp 0.3.28 → 0.3.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docker/Dockerfile +6 -4
- data/lib/middleman-hashicorp/redcarpet.rb +1 -1
- data/lib/middleman-hashicorp/version.rb +1 -1
- data/spec/unit/markdown_spec.rb +25 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9a2048ea8b9ae30627017ac567ba3ed81fe3645
|
4
|
+
data.tar.gz: 6c1e7a145b8e762146b7014028c75f9e62e63698
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a564231cc0159e6f85747a38e25182aa8bac1ecfe0789aefb876c9f6878307fc46161fb19883b62a2305d5716f90a3a5f6e53424848c02010dc306e2649fdad5
|
7
|
+
data.tar.gz: 218d42ab79ba77fdc1d157b0f324d562845b723b3611ed802e4cec9edd7e481dee58bd1db9467d4c51639594222b864b12add238297a984870b76fb3899c49ba
|
data/docker/Dockerfile
CHANGED
@@ -5,11 +5,13 @@ MAINTAINER Seth Vargo <seth@hashicorp.com>
|
|
5
5
|
RUN apk add --no-cache bash build-base curl jq nodejs python py-setuptools wget git
|
6
6
|
|
7
7
|
# Install s3cmd
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
RUN cd /tmp && \
|
9
|
+
wget https://github.com/s3tools/s3cmd/releases/download/v1.6.1/s3cmd-1.6.1.tar.gz && \
|
10
|
+
tar -xzvf s3cmd-1.6.1.tar.gz && \
|
11
|
+
cd s3cmd-1.6.1 && \
|
11
12
|
python setup.py install && \
|
12
|
-
|
13
|
+
cd .. && \
|
14
|
+
rm -rf s3cmd-1.6.1*
|
13
15
|
|
14
16
|
# Add the context
|
15
17
|
ADD pkg/ /pkg
|
@@ -69,7 +69,7 @@ class Middleman::HashiCorp::RedcarpetHTML < ::Middleman::Renderers::MiddlemanRed
|
|
69
69
|
|
70
70
|
if md = raw.match(/\<(.+?)\>(.*)\<(\/.+?)\>/m)
|
71
71
|
open_tag, content, close_tag = md.captures
|
72
|
-
"<#{open_tag}>\n#{recursive_render(
|
72
|
+
"<#{open_tag}>\n#{recursive_render(content)}<#{close_tag}>"
|
73
73
|
else
|
74
74
|
raw
|
75
75
|
end
|
data/spec/unit/markdown_spec.rb
CHANGED
@@ -167,6 +167,31 @@ module Middleman::HashiCorp
|
|
167
167
|
expect(markdown).to render_html(output)
|
168
168
|
end
|
169
169
|
|
170
|
+
it "does not unindent recursive markdown code blocks" do
|
171
|
+
markdown = <<-EOH.gsub(/^ {8}/, "")
|
172
|
+
<div class="examples">
|
173
|
+
<div class="examples-body">
|
174
|
+
```python
|
175
|
+
a
|
176
|
+
b
|
177
|
+
c
|
178
|
+
```
|
179
|
+
</div>
|
180
|
+
</div>
|
181
|
+
EOH
|
182
|
+
output = <<-EOH.gsub(/^ {8}/, "")
|
183
|
+
<div class="examples">
|
184
|
+
<div class="examples-body">
|
185
|
+
<pre><code class="python">a
|
186
|
+
b
|
187
|
+
c
|
188
|
+
</code></pre>
|
189
|
+
</div></div>
|
190
|
+
EOH
|
191
|
+
|
192
|
+
expect(markdown).to render_html(output)
|
193
|
+
end
|
194
|
+
|
170
195
|
it "supports alert boxes" do
|
171
196
|
markdown = <<-EOH.gsub(/^ {8}/, "")
|
172
197
|
=> This is a success note
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-hashicorp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seth Vargo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: middleman
|
@@ -238,7 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
238
238
|
version: '0'
|
239
239
|
requirements: []
|
240
240
|
rubyforge_project:
|
241
|
-
rubygems_version: 2.6.
|
241
|
+
rubygems_version: 2.6.14
|
242
242
|
signing_key:
|
243
243
|
specification_version: 4
|
244
244
|
summary: A series of helpers for consistency among HashiCorp's middleman sites
|