minke 1.14.2 → 1.14.3

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: 3796c60b0992fa90f5b2408e24de7b731ea396cc
4
- data.tar.gz: 395db562982e41ca0351c498458808248c91b149
3
+ metadata.gz: 727acfd36bb5af0a3d866b8431ceb5e74155c50b
4
+ data.tar.gz: a9da9753778473b969fdd0cdb65f68ca83b5629c
5
5
  SHA512:
6
- metadata.gz: ef53172cc692ab629f97a81fd97115fca54ba817ccdee931e970945c64bd708024d953f2ade1ed2e589ae6b3f886dcd330eb9505c019753f6f3ace0d7d261526
7
- data.tar.gz: 5a68dee19e8eea1bec8881722f1e832e19a492e355f2e4613bea0405ad81e25f41f40fffe4ae650e8e4945c70373e826ebae3fde3fb5935a76217ad10b9bdf1c
6
+ metadata.gz: 89a178d0601ccf30db033bf3c17858fd9da2a9c410f3bd09a662b1e1dfcb62c7b447b86b9f3c861da347cc8718a2d4770d03375e62d43911bef173594deabc97
7
+ data.tar.gz: 2b9ba32d3fa6c9ebc32fa24add80e99941014915b52750041bb645468badca226e8018af1a4356e2acdfd0fea85db3722ac8f96cd3e21d938a596f4c8c369eca
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.14.2;
34
- docker push nicholasjackson/minke:1.14.2;
33
+ docker tag nicholasjackson/minke nicholasjackson/minke:1.14.3;
34
+ docker push nicholasjackson/minke:1.14.3;
35
35
  curl https://hooks.microbadger.com/images/nicholasjackson/minke/tkpohfdrYPE0B0TL5NzLcOap4k0=;
36
36
  fi
data/docker/Gemfile CHANGED
@@ -3,8 +3,8 @@ source 'https://rubygems.org'
3
3
  gem "rake"
4
4
  gem "cucumber"
5
5
 
6
- gem 'minke', "= 1.14.2"
6
+ gem 'minke', "= 1.14.3"
7
7
  gem 'minke-generator-swift', "= 0.4"
8
8
  gem 'minke-generator-netmvc'
9
- gem 'minke-generator-go', "= 0.9.0"
9
+ gem 'minke-generator-go', "= 0.9.2"
10
10
  gem 'minke-generator-spring'
data/lib/minke/command.rb CHANGED
@@ -15,7 +15,7 @@ module Minke
15
15
  ENV['DOCKER_PROJECT'] = project_name
16
16
  ENV['DOCKER_NETWORK'] = network_name
17
17
 
18
- logger = Minke::Logging.create_logger(self.verbose)
18
+ logger = Minke::Logging.create_logger(STDOUT, self.verbose)
19
19
  shell = Minke::Helpers::Shell.new(logger)
20
20
 
21
21
  task_runner = Minke::Tasks::TaskRunner.new ({
data/lib/minke/logger.rb CHANGED
@@ -3,26 +3,28 @@ module Minke
3
3
  @@debug = false
4
4
  @@ret = "\n"
5
5
 
6
- def self.create_logger verbose = false
7
- Logger.new(STDOUT).tap do |l|
6
+ def self.create_logger(output, verbose = false)
7
+ Logger.new(output).tap do |l|
8
8
  l.datetime_format = ''
9
9
  l.formatter = proc do |severity, datetime, progname, msg|
10
- case severity
11
- when 'ERROR'
12
- s = "#{@@ret if @@debug}#{'ERROR'.colorize(:red)}: #{msg.chomp('')}\n"
13
- @@debug = false
14
- s
15
- when 'INFO'
16
- s = "#{@@ret if @@debug}#{'INFO'.colorize(:green)}: #{msg.chomp('')}\n"
17
- @@debug = false
18
- s
19
- when 'DEBUG'
20
- if verbose == true
21
- "#{'DEBUG'.colorize(:yellow)}: #{msg.chomp('')}\n"
22
- else
23
- @@debug = true
24
- "#{'.'.colorize(:yellow)}"
25
- end
10
+ if msg != nil
11
+ case severity
12
+ when 'ERROR'
13
+ s = "#{@@ret if @@debug}#{'ERROR'.colorize(:red)}: #{msg.chomp('')}\n"
14
+ @@debug = false
15
+ s
16
+ when 'INFO'
17
+ s = "#{@@ret if @@debug}#{'INFO'.colorize(:green)}: #{msg.chomp('')}\n"
18
+ @@debug = false
19
+ s
20
+ when 'DEBUG'
21
+ if verbose == true
22
+ "#{'DEBUG'.colorize(:yellow)}: #{msg.chomp('')}\n"
23
+ else
24
+ @@debug = true
25
+ "#{'.'.colorize(:yellow)}"
26
+ end
27
+ end
26
28
  end
27
29
  end
28
30
  end
data/lib/minke/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Minke
2
- VERSION = "1.14.2"
2
+ VERSION = "1.14.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minke
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.2
4
+ version: 1.14.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nic Jackson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-05 00:00:00.000000000 Z
11
+ date: 2017-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler