kubes 0.9.2 → 0.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 895d21705a31fe0ae39b31e41f8896067315d73ddd85f560b6432ff995b8046e
4
- data.tar.gz: f15fa3e3aae9a06b92be81e99ff7c5f3db3b885979df789339ffb0b5b6beb45e
3
+ metadata.gz: edae65d07f29eedd785441b4c1d125d26639fb6f19cf1b70df170bcd76c2cf15
4
+ data.tar.gz: 40ac1292d4b6913b650f418733f84506084ffb183841c69881103a882b7edf8a
5
5
  SHA512:
6
- metadata.gz: be41b9ed48ede64f2574952be9e3b31fa8817a475780c27bda5159ea7e6ff3e01d8705d6bd3cb6cf98fb10d29a50dde470416a9da70bc5583c3f23f1f0614786
7
- data.tar.gz: a5c9c3800ad8860779ed1e6eaefb37ea530e279ba20b0358cb5290c3a8513ecb2753dd4db4b622d832d98a7f7169fc5de49a3d06130d76341094d4c9b959a412
6
+ metadata.gz: d77eefb3b34963ff4b1441b274051f009123aca06295fbe31f42e755d06a601f86ebc335140714fd1b638e37181d3a4397e0164ec4fa8c3f6b8c89664a2d96e4
7
+ data.tar.gz: 674d50dd8e780b9aa751fc1fac16831a1bdb431e80a306ffd61552d075aa6e5bcbe644f868b2f8273f0df5a6a20ef91eb35f002384b0767dbf2b3c1024cc870c
data/CHANGELOG.md CHANGED
@@ -3,6 +3,9 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [0.9.3] - 2022-10-20
7
+ - [#69](https://github.com/boltops-tools/kubes/pull/69) improve config map multiple files support
8
+
6
9
  ## [0.9.2] - 2022-10-10
7
10
  - [#68](https://github.com/boltops-tools/kubes/pull/68) kubes docker name
8
11
  - KUBES_IMAGE_TAG env var override ability
@@ -2,8 +2,13 @@ module Kubes::Compiler::Shared::Helpers
2
2
  module ConfigMapHelper
3
3
  def config_map_files(options={})
4
4
  indent = options[:indent] || 2
5
+ # /path/to/app/.kubes/resources/shared/config_map.yaml:7:in `__tilt_4660'
6
+ line = caller[0]
7
+ path = line.split(':').first
8
+ basename = File.basename(path).sub(/.erb$/,'').sub(/.yaml$/, '').sub(/.rb$/, '')
9
+ filename = options[:name] || basename
5
10
 
6
- shared_config_map = "#{Kubes.root}/.kubes/resources/shared/config_map"
11
+ shared_config_map = "#{Kubes.root}/.kubes/resources/shared/#{filename}"
7
12
  layers = [
8
13
  [shared_config_map, "base.txt"],
9
14
  [shared_config_map, "#{Kubes.env}.txt"],
data/lib/kubes/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Kubes
2
- VERSION = "0.9.2"
2
+ VERSION = "0.9.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kubes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-10 00:00:00.000000000 Z
11
+ date: 2022-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport