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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c71e688328ef64d8e35060171bb6aebe0ddb23e9
4
- data.tar.gz: aca2eab6dfa838bfb00504e9beeab0ef4ac2f684
3
+ metadata.gz: a9a2048ea8b9ae30627017ac567ba3ed81fe3645
4
+ data.tar.gz: 6c1e7a145b8e762146b7014028c75f9e62e63698
5
5
  SHA512:
6
- metadata.gz: b054fef2239bdba6580aa63afa9994df430fe9c8e02e7bd8337954ca23d801997071585ad12962565ccccd0b2b5bbb81c469686ff6173570b6e2f95d56728c8a
7
- data.tar.gz: edcc9cd17f95fc5898fa91f982ceb7118a65c3490a45319efc319692b4b2582001c61283932fbaeb2b4be3430a5aa938a89aa69bb87fd6b8cd14a1df02eb07b5
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
- ADD https://github.com/s3tools/s3cmd/releases/download/v1.6.1/s3cmd-1.6.1.tar.gz /s3cmd-1.6.1.tar.gz
9
- RUN tar -xzvf /s3cmd-1.6.1.tar.gz && \
10
- cd /s3cmd-1.6.1 && \
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
- rm -rf /s3cmd-1.6.1*
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(unindent(content))}<#{close_tag}>"
72
+ "<#{open_tag}>\n#{recursive_render(content)}<#{close_tag}>"
73
73
  else
74
74
  raw
75
75
  end
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module HashiCorp
3
- VERSION = "0.3.28"
3
+ VERSION = "0.3.29"
4
4
  end
5
5
  end
@@ -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.28
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-06-23 00:00:00.000000000 Z
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.8
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