middleman-hashicorp 0.3.0 → 0.3.1

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: 8b4ca6fb4a8a6349d8ca952f071eaf4f3ddec9fe
4
- data.tar.gz: eea8e3638e7ed20057812f63a78c51814e0b2a2e
3
+ metadata.gz: 1c359c01d2d1627f1f574090f58112bbc3108ef3
4
+ data.tar.gz: 10929ce28a6d3f649f93be98546fd6e2edaae71c
5
5
  SHA512:
6
- metadata.gz: 3b7d445920e0ae1b3ce27f67dbcf81b497d6613795f2c721adcd497b9542778f42ee0ed7f5f9664383a883b7ffedff21b498d6e0472940fa8cf9824ccea6ca6b
7
- data.tar.gz: c14475bd0425c2bab61b6c06ee76beee959f39b07163f525c88f5e5c00d05414c2f3d834e69869c3e0ee437f47817994fb54769faaabaf27856ab31374de94f8
6
+ metadata.gz: 440b68944e78da9548cdbb049735e889962846ff74dcc73cc4755312c3ffcb81119baf728d3205d981c8e6b502fa8c6a329088aec4888a8e5bafaaf0a6864bb8
7
+ data.tar.gz: a5bc45777e184efd9fa1115a43cff02d47858e444b57a99c0c5b3373ae62f8eecc41e12ff89a0742e3f7f51b8061915de2c7bb5f66b092d67f1f19c95fff1cfb
@@ -3,10 +3,13 @@ cache: bundler
3
3
  sudo: false
4
4
 
5
5
  rvm:
6
- - 2.0.0
6
+ - 2.3.1
7
7
 
8
8
  branches:
9
9
  only:
10
10
  - master
11
11
 
12
+ before_install:
13
+ - gem update bundler
14
+
12
15
  bundler_args: --jobs 7
data/Makefile CHANGED
@@ -1,6 +1,6 @@
1
1
  VERSION?=$(shell awk -F\" '/VERSION/ { print $$2; exit }' lib/middleman-hashicorp/version.rb)
2
2
 
3
- docker: build
3
+ docker:
4
4
  @echo "==> Building container v${VERSION}..."
5
5
  @docker build \
6
6
  --file "docker/Dockerfile" \
@@ -10,16 +10,16 @@ docker: build
10
10
  --rm \
11
11
  .
12
12
 
13
- build:
14
- @echo "==> Building gem v${VERSION}..."
15
- @rm -rf pkg/
16
- @bundle exec rake build
13
+ docker-push:
14
+ @echo "==> Pushing to Docker registry..."
15
+ @docker push "hashicorp/middleman-hashicorp:latest"
16
+ @docker push "hashicorp/middleman-hashicorp:${VERSION}"
17
17
 
18
18
  gem:
19
19
  @echo "==> Building and releasing gem v${VERSION}..."
20
20
  @rm -rf pkg/
21
21
  @bundle exec rake release
22
22
 
23
- release: gem docker
23
+ release: gem docker docker-push
24
24
 
25
- .PHONY: docker gem release
25
+ .PHONY: docker docker-push gem release
@@ -14,15 +14,27 @@ RUN tar -xzvf /s3cmd-1.6.1.tar.gz && \
14
14
  # Add the context
15
15
  ADD pkg/ /pkg
16
16
 
17
+ # Upgrade bundler
18
+ RUN gem update --no-document
19
+
17
20
  # Install the bundle
18
- RUN gem install /pkg/middleman-hashicorp-*.gem \
21
+ RUN gem install /pkg/middleman-hashicorp-*.gem --no-document \
19
22
  && rm -rf /pkg
20
23
 
24
+ RUN gem list | grep mini
25
+
26
+ # For some reason, this isn't installed by default
27
+ # RUN gem install minitest --version "~> 5.9"
28
+
21
29
  # Mounts
22
30
  WORKDIR /website
23
31
 
24
- ENTRYPOINT ["bundle", "exec", "middleman"]
32
+ # Expose ports
33
+ EXPOSE 4567
34
+ EXPOSE 35729
25
35
 
26
- CMD ["server"]
36
+ ADD docker/entrypoint.sh /entrypoint.sh
37
+
38
+ ENTRYPOINT ["/entrypoint.sh"]
27
39
 
28
- # docker run -v="$(pwd):/website" -p=4567:4567 hashicorp/middleman-hashicorp
40
+ CMD ["server"]
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ set -e
3
+
4
+ # Install any additional dependencies our bundle needs. Most of the core
5
+ # dependencies are already included in the container, so this just any
6
+ # additional things that were not originally present in the build.
7
+ if ! bundle check &>/dev/null; then
8
+ echo "==> Warning! You have missing dependencies. This is probably okay but"
9
+ echo " it means your build is going to take a bit longer each time. You"
10
+ echo " may want to consider adding your requirements to the container for"
11
+ echo " a faster build."
12
+ echo ""
13
+ echo "==> Installing missing dependencies. This may take some time..."
14
+ bundle install
15
+ fi
16
+
17
+ exec "$@"
@@ -81,16 +81,6 @@ class Middleman::HashiCorpExtension < ::Middleman::Extension
81
81
  activate :minify_javascript
82
82
  end
83
83
 
84
- # Minify HTML
85
- require "middleman-minify-html"
86
- activate :minify_html do |html|
87
- html.remove_quotes = false
88
- html.remove_script_attributes = false
89
- html.remove_multi_spaces = false
90
- html.remove_http_protocol = false
91
- html.remove_https_protocol = false
92
- end
93
-
94
84
  # Enable cache buster
95
85
  activate :asset_hash
96
86
  end
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module HashiCorp
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
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.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Vargo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-08 00:00:00.000000000 Z
11
+ date: 2016-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman
@@ -175,6 +175,7 @@ files:
175
175
  - assets/javascripts/ie-compat/respond.js
176
176
  - assets/javascripts/jquery.js
177
177
  - docker/Dockerfile
178
+ - docker/entrypoint.sh
178
179
  - lib/middleman-hashicorp.rb
179
180
  - lib/middleman-hashicorp/bintray.rb
180
181
  - lib/middleman-hashicorp/extension.rb