kontena-mortar 0.4.4 → 0.4.5.rc2

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
  SHA256:
3
- metadata.gz: fc4a182fb395dc1307412dbc6028b3eaedec6c716d1afbc849e4eaa27009b26a
4
- data.tar.gz: 38a4c27d36d4c2f6a30e6aa7e90860fbc761f9f3315a0ccce9a8dcf997149452
3
+ metadata.gz: dd32a253ee5d1844f6ec0a671d2acda1c120246f6dbce54a332ce47b46aea2c8
4
+ data.tar.gz: 4c73ae1a53fa1188b07cb9fb7b2cb23b4808459e8252a98c0359a264c8faea1a
5
5
  SHA512:
6
- metadata.gz: b34ef5d76513c9ed57207cb027f01642074522546b0fdefe74d07b32e16d974e4c35b77350d23d155198147fb7664ee7d0e14b94e7e668c08036f4617e606169
7
- data.tar.gz: 5182e36abbf5f2b351d9d3ee97e0e9e2bad14ba085dbfd86cc52559b2e13ffc1e50d235e0b2aeaaf895ef2fe7a291057c14127c599af69635ba48196345ff391
6
+ metadata.gz: 90497230d429d3c6aa387cd5d42b57b85fe068320102ddcb434e024495baae341ddcf44431e4ebed2cdcd4e5198798413dbee77115dc6238c052dda21ba366f6
7
+ data.tar.gz: 3c016c79864d0889c1bb9faccf6bb85219f18eca9fb68a0ddc7c78bf3ffb2db38f7b2c1ecb974558a81c5c026e45d99fdedfd93edbbd9a1e12127eb9c7703f1a
data/.drone.yml CHANGED
@@ -6,10 +6,11 @@ platform:
6
6
  arch: amd64
7
7
  steps:
8
8
  - name: test
9
- image: ruby:2.4
9
+ image: ruby:2.6
10
10
  commands:
11
+ - gem install bundler -v 2.0.2
11
12
  - bundle install --path bundler
12
- - bundle exec rspec spec/ # && bundle exec rubocop --fail-level A -S --format c --parallel
13
+ - bundle exec rspec spec/
13
14
  - bundle exec rubocop lib/
14
15
  - name: docker_latest
15
16
  image: plugins/docker
@@ -2,6 +2,8 @@ language: ruby
2
2
  sudo: required
3
3
  cache: bundler
4
4
  bundler_args: --without development
5
+ before_install:
6
+ - gem install bundler -v 2.0.2
5
7
  env:
6
8
  global:
7
9
  - secure: "ODwK1K2gm4yBWSTgQ9SVyIMTheUnT55JtMKb8i8wQiKC3g74HHmiJGOMSqkCGenwF7Fc8e0BQEGHiyFDcCnuUVhU5oTDgOEEcCHiFAwDCv+tekBqCAjmccqRE5MamSZsN7myGULClaljFDKdRc5b/MN1f26bViYUq3H7m06jnW/JYn+32VenGFq1Py7QyTD1IqG2x6sC4zG7jqiIXqcM24sKO6Q49fb5KneqF+A4C2wHPpjuVmgqRcwrQKcNixPtiXs4Nn5UZEkH3ceAyXjBvElI2Bt6/sJLfB2C2/IdEob+MrKsBfGAcgSXPKGEQvMyzAkcWg7aXa65H09ta/sUe0OdgczAxeFIV26RmsHJN+/vW5b46+cgcIEnyTq0whsrKPiailEWfns7xgfY+Q4MazUJ6mbxhmRixaNSn6y1GIKqSYv5FpU/+KVfu0tdM/joOkHcNxnyIDWAnTegN0sEwMCnHEt9tkdXtMZe83B9BY2cbWM36BdW1zRHeTZj8kfHpifT34cuoiQrg2P19BLpqzIgrCMbznbXNEy/m9TisMplvY6SdpujqYhCdLd4srbzcxq2UDplWsL0QtRy+aiaPKFy24yDnKo45aBjDFI4787lxmlW96KMoXNISK2F050IxDJ5yQ0qeRY1GvTy2GWy/sSRvrr8gb+ZY9+/m2MbLqw="
@@ -12,5 +14,5 @@ jobs:
12
14
  include:
13
15
  - stage: publish binary
14
16
  script: ./build/travis/macos.sh
15
- rvm: 2.4
16
- os: osx
17
+ rvm: 2.6
18
+ os: osx
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kontena-mortar (0.4.4)
4
+ kontena-mortar (0.4.5.rc2)
5
5
  clamp (~> 1.3)
6
6
  deep_merge (~> 1.2)
7
7
  k8s-client (~> 0.10.4)
@@ -47,7 +47,7 @@ GEM
47
47
  excon (0.67.0)
48
48
  hashdiff (1.0.0)
49
49
  ice_nine (0.11.2)
50
- jaro_winkler (1.5.2)
50
+ jaro_winkler (1.5.3)
51
51
  jsonpath (0.9.9)
52
52
  multi_json
53
53
  to_regexp (~> 0.2.1)
@@ -62,13 +62,12 @@ GEM
62
62
  yaml-safe_load_stream (~> 0.1)
63
63
  multi_json (1.13.1)
64
64
  necromancer (0.4.0)
65
- parallel (1.13.0)
66
- parser (2.6.0.0)
65
+ parallel (1.17.0)
66
+ parser (2.6.4.1)
67
67
  ast (~> 2.4.0)
68
68
  pastel (0.7.2)
69
69
  equatable (~> 0.5.0)
70
70
  tty-color (~> 0.4.0)
71
- powerpack (0.1.2)
72
71
  rainbow (3.0.0)
73
72
  rake (10.5.0)
74
73
  recursive-open-struct (1.1.0)
@@ -77,28 +76,27 @@ GEM
77
76
  rspec-core (~> 3.8.0)
78
77
  rspec-expectations (~> 3.8.0)
79
78
  rspec-mocks (~> 3.8.0)
80
- rspec-core (3.8.0)
79
+ rspec-core (3.8.2)
81
80
  rspec-support (~> 3.8.0)
82
- rspec-expectations (3.8.2)
81
+ rspec-expectations (3.8.4)
83
82
  diff-lcs (>= 1.2.0, < 2.0)
84
83
  rspec-support (~> 3.8.0)
85
- rspec-mocks (3.8.0)
84
+ rspec-mocks (3.8.1)
86
85
  diff-lcs (>= 1.2.0, < 2.0)
87
86
  rspec-support (~> 3.8.0)
88
- rspec-support (3.8.0)
89
- rubocop (0.64.0)
87
+ rspec-support (3.8.2)
88
+ rubocop (0.74.0)
90
89
  jaro_winkler (~> 1.5.1)
91
90
  parallel (~> 1.10)
92
- parser (>= 2.5, != 2.5.1.1)
93
- powerpack (~> 0.1)
91
+ parser (>= 2.6)
94
92
  rainbow (>= 2.2.2, < 4.0)
95
93
  ruby-progressbar (~> 1.7)
96
- unicode-display_width (~> 1.4.0)
97
- ruby-progressbar (1.10.0)
98
- strings (0.1.4)
99
- strings-ansi (~> 0.1.0)
100
- unicode-display_width (~> 1.4.0)
101
- unicode_utils (~> 1.4.0)
94
+ unicode-display_width (>= 1.4.0, < 1.7)
95
+ ruby-progressbar (1.10.1)
96
+ strings (0.1.6)
97
+ strings-ansi (~> 0.1)
98
+ unicode-display_width (~> 1.5)
99
+ unicode_utils (~> 1.4)
102
100
  strings-ansi (0.1.0)
103
101
  to_regexp (0.2.1)
104
102
  tty-color (0.4.3)
@@ -109,7 +107,7 @@ GEM
109
107
  pastel (~> 0.7.2)
110
108
  strings (~> 0.1.0)
111
109
  tty-screen (~> 0.6.4)
112
- unicode-display_width (1.4.1)
110
+ unicode-display_width (1.6.0)
113
111
  unicode_utils (1.4.0)
114
112
  yajl-ruby (1.4.1)
115
113
  yaml-safe_load_stream (0.1.1)
@@ -118,11 +116,11 @@ PLATFORMS
118
116
  ruby
119
117
 
120
118
  DEPENDENCIES
121
- bundler (~> 1.16)
119
+ bundler (~> 2.0.0)
122
120
  kontena-mortar!
123
121
  rake (~> 10.0)
124
122
  rspec (~> 3.0)
125
123
  rubocop (~> 0.57)
126
124
 
127
125
  BUNDLED WITH
128
- 1.17.3
126
+ 2.0.2
@@ -5,7 +5,7 @@ set -ue
5
5
  # build binary
6
6
  apt-get update -y
7
7
  apt-get install -y -q squashfs-tools build-essential ruby bison ruby-dev git-core texinfo curl
8
- curl -sL https://dl.bintray.com/kontena/ruby-packer/0.5.0-dev/rubyc-linux-amd64.gz | gunzip > /usr/local/bin/rubyc
8
+ curl -sL https://github.com/kontena/ruby-packer/releases/download/2.6.0-0.6.0/rubyc-2.6.0-0.6.0-linux-amd64.gz | gunzip > /usr/local/bin/rubyc
9
9
  chmod +x /usr/local/bin/rubyc
10
10
  gem install bundler
11
11
  version=${DRONE_TAG#"v"}
@@ -3,7 +3,7 @@
3
3
  set -ue
4
4
 
5
5
  brew install squashfs
6
- curl -sL https://dl.bintray.com/kontena/ruby-packer/0.5.0-dev/rubyc-darwin-amd64.gz | gunzip > /usr/local/bin/rubyc
6
+ curl -sL https://github.com/kontena/ruby-packer/releases/download/2.6.0-0.6.0/rubyc-2.6.0-0.6.0-osx-amd64.gz | gunzip > /usr/local/bin/rubyc
7
7
  chmod +x /usr/local/bin/rubyc
8
8
  version=${TRAVIS_TAG#"v"}
9
9
  package="mortar-darwin-amd64-${version}"
@@ -21,4 +21,4 @@ chmod +x /usr/local/bin/github-release
21
21
  --file ./$package
22
22
 
23
23
  mkdir -p upload
24
- mv $package upload/
24
+ mv $package upload/
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.add_runtime_dependency "deep_merge", "~> 1.2"
32
32
  spec.add_runtime_dependency "pastel", "~> 0.7.2"
33
33
  spec.add_runtime_dependency "tty-table", "~> 0.10.0"
34
- spec.add_development_dependency "bundler", "~> 1.16"
34
+ spec.add_development_dependency "bundler", "~> 2.0.0"
35
35
  spec.add_development_dependency "rake", "~> 10.0"
36
36
  spec.add_development_dependency "rspec", "~> 3.0"
37
37
  spec.add_development_dependency "rubocop", "~> 0.57"
@@ -16,8 +16,8 @@ module Mortar
16
16
  variables = { name: name, var: variables_struct }
17
17
  resources = YamlFile.new(filename).load(variables)
18
18
  resources.map { |r| K8s::Resource.new(r) }
19
- rescue Mortar::YamlFile::ParseError => exc
20
- signal_usage_error exc.message
19
+ rescue Mortar::YamlFile::ParseError => e
20
+ signal_usage_error e.message
21
21
  end
22
22
 
23
23
  def load_resources(src)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mortar
4
- VERSION = "0.4.4"
4
+ VERSION = "0.4.5.rc2"
5
5
  end
@@ -40,8 +40,8 @@ module Mortar
40
40
  end
41
41
 
42
42
  result
43
- rescue Psych::SyntaxError => ex
44
- raise ParseError, ex.message
43
+ rescue Psych::SyntaxError => e
44
+ raise ParseError, e.message
45
45
  end
46
46
 
47
47
  def dirname
@@ -56,8 +56,8 @@ module Mortar
56
56
  Namespace.new(variables).with_binding do |ns_binding|
57
57
  ERB.new(@content, nil, '%<>-').tap { |e| e.location = [@filename, nil] }.result(ns_binding)
58
58
  end
59
- rescue StandardError, ScriptError => ex
60
- raise ParseError, "#{ex.class.name} : #{ex.message} (#{ex.backtrace.first.gsub(/:in `with_binding'/, '')})"
59
+ rescue StandardError, ScriptError => e
60
+ raise ParseError, "#{e.class.name} : #{e.message} (#{e.backtrace.first.gsub(/:in `with_binding'/, '')})"
61
61
  end
62
62
  end
63
63
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kontena-mortar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kontena, Inc
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '1.16'
103
+ version: 2.0.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '1.16'
110
+ version: 2.0.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rake
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -223,9 +223,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
223
223
  version: '0'
224
224
  required_rubygems_version: !ruby/object:Gem::Requirement
225
225
  requirements:
226
- - - ">="
226
+ - - ">"
227
227
  - !ruby/object:Gem::Version
228
- version: '0'
228
+ version: 1.3.1
229
229
  requirements: []
230
230
  rubygems_version: 3.0.3
231
231
  signing_key: