minke 1.13.1 → 1.13.2

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: 1269e53e6dd27dd353fea28c6685abfdc5c587ef
4
- data.tar.gz: 4712f2d2267f4304948ae9c9df9c414a27cc41df
3
+ metadata.gz: 3c0c0c9395b0fcb8cfe60184a42428302fd900aa
4
+ data.tar.gz: b820e7b8141110c619f4658f0e1e50c926c23472
5
5
  SHA512:
6
- metadata.gz: 947f7c63f787d7ecf89ae5fbb3d7f8caee3c0a50879dee58654257824d2ce14e70bca21b5c209f79e67ac248b2cfe50bd8f898c04aae1b6c046ba27d10c938e9
7
- data.tar.gz: a0747a16ad9a200a9ec9888371cc5ed684199b7fa715a0a2430dd7997f51b72523ef76d26f49c06f200cabdaa99665d2ea38260a719e8e1a2d48176ae4a52049
6
+ metadata.gz: 57b4a2bbc57132aa7cd8714f9a8711713986984f99fb0d0e41a5aa16a57509d3775e529100fab843dec94742e1d981334e9ba5147c3ed9970f98378fbb078d92
7
+ data.tar.gz: dd21696ed28db73d5f6eb4187532b59c25d70f39636b7d0224de615074016774b331adc60225fc022b2c4a48cd5840d2bc050239a3795b053f9f9070b57a7486
data/.travis.yml CHANGED
@@ -30,7 +30,7 @@ after_deploy:
30
30
  docker build -t nicholasjackson/minke --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` --build-arg VCS_REF=`git rev-parse --short HEAD` .;
31
31
  docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
32
32
  docker push nicholasjackson/minke:latest;
33
- docker tag nicholasjackson/minke nicholasjackson/minke:1.13.1;
34
- docker push nicholasjackson/minke:1.13.1;
33
+ docker tag nicholasjackson/minke nicholasjackson/minke:1.13.2;
34
+ docker push nicholasjackson/minke:1.13.2;
35
35
  curl https://hooks.microbadger.com/images/nicholasjackson/minke/tkpohfdrYPE0B0TL5NzLcOap4k0=;
36
36
  fi
data/docker/Gemfile CHANGED
@@ -11,5 +11,5 @@ gem 'cucumber-api', '~> 0.3'
11
11
  gem 'minke', "= 1.13.1"
12
12
  gem 'minke-generator-swift', "= 0.2.2"
13
13
  gem 'minke-generator-netmvc'
14
- gem 'minke-generator-go', "= 0.8.2"
14
+ gem 'minke-generator-go', "= 0.8.3"
15
15
  gem 'minke-generator-spring'
@@ -1,19 +1,15 @@
1
1
  #!/bin/bash
2
- MINKE_VERSION="1.13.1"
3
- ERROR="Please specify a command e.g. ./minke test"
2
+ MINKE_VERSION="1.13.2"
3
+ ERROR="Please specify a command e.g. ./minke --help"
4
4
 
5
5
  DOCKER_SOCK="/var/run/docker.sock:/var/run/docker.sock"
6
6
  NEW_UUID=$(base64 /dev/urandom | tr -d '/+' | head -c 32 | tr '[:upper:]' '[:lower:]')
7
7
 
8
- GEMSET='minkegems'
8
+ GEMSET=$(<.ruby-gemset)
9
+ LEN=$(echo ${#GEMSET})
9
10
 
10
- if [ -f ".ruby-gemset" ]; then
11
- GEMSET=$(<.ruby-gemset)
12
- LEN=$(echo ${#GEMSET})
13
-
14
- if [ $LEN -lt 1 ]; then
15
- GEMSET='minkegems'
16
- fi
11
+ if [ $LEN -lt 1 ]; then
12
+ GEMSET='minkegems'
17
13
  fi
18
14
 
19
15
  GEMSETFOLDER="/usr/local/rvm/gems/ruby-2.3.1@${GEMSET}"
@@ -32,20 +28,20 @@ COMMAND=$*
32
28
  # Test if interactive terminal and set the flag
33
29
  [[ -t 1 ]] && IT="-it" || IT=""
34
30
 
35
- if [[ $1 == \ -g* ]]; then
31
+ if [[ $1 == "generate" ]] || [[ $2 == "generate" ]]; then
36
32
  echo "Generating new template"
37
33
  DIR=${PWD}
38
34
  DOCKER_RUN="docker run --rm -v ${DOCKER_SOCK} -v ${DIR}:${DIR} -v ${DIR}/_build/vendor/gems:${GEMSETFOLDER} -e DOCKER_NETWORK=minke_${NEW_UUID} -w ${DIR} ${DOCKER_IMAGE} /bin/bash -c '${RVM_COMMAND} && bundle install && minke ${COMMAND}'"
39
35
  eval "${DOCKER_RUN}"
40
36
  fi
41
37
 
42
- if [[ $1 != \ -g* ]]; then
38
+ if [[ $1 != "generate" ]] || [[ $2 != "generate" ]]; then
43
39
  DIR=$(dirname `pwd`)
44
- DOCKER_RUN="docker run --rm ${IT} --net=minke_${NEW_UUID} -v ${DOCKER_SOCK} -v ${DIR}:${DIR} -v ${DIR}/_build/vendor/gems:${GEMSETFOLDER} -e DOCKER_NETWORK=minke_${NEW_UUID} -w ${DIR}/_build ${DOCKER_IMAGE} /bin/bash -c '${RVM_COMMAND} && ${COMMAND}'"
40
+ DOCKER_RUN="docker run --rm ${IT} --net=minke_${NEW_UUID} -v ${DOCKER_SOCK} -v ${DIR}:${DIR} -v ${DIR}/_build/vendor/gems:${GEMSETFOLDER} -e DOCKER_NETWORK=minke_${NEW_UUID} -w ${DIR}/_build ${DOCKER_IMAGE} /bin/bash -c '${RVM_COMMAND} && minke ${COMMAND}'"
45
41
 
46
- echo "Running command: ${COMMAND}"
42
+ echo "Running command: minke ${COMMAND}"
47
43
 
48
44
  eval "docker network create minke_${NEW_UUID}"
49
- eval "${DOCKER_RUN}"
45
+ echo "${DOCKER_RUN}"
50
46
  eval "docker network rm minke_${NEW_UUID}"
51
47
  fi
data/lib/minke/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Minke
2
- VERSION = "1.13.1"
2
+ VERSION = "1.13.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minke
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.13.1
4
+ version: 1.13.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nic Jackson