terraspace 0.6.19 → 0.6.20

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: 2fc510d1165404c449bcc9e3fe0af371d979aa5babc28e8531097f3ccd50c6eb
4
- data.tar.gz: 95a69d72a293c58ff9435a162dbb20383dc8ee6dea8e681a5b8ab672cf90bbd2
3
+ metadata.gz: 4f7c8d0d2152329290209a2cf2d1745499939ed4b5adc56a053a779281a382bf
4
+ data.tar.gz: eb5d9eb7eb83059cc80751bb16a7a3b8c75f44ea44f5857f433b41c6a48d5283
5
5
  SHA512:
6
- metadata.gz: c143d467df63cffe80862bec7ed0d06bc6edec50485b8a885d04a19f9f8d5a7a699dd494ff4daf074e303b50a1fc0f788340e6cd00bb42c875c834a05262b864
7
- data.tar.gz: 90e43491736d1f3e43081d51bd9b0100a1641a3aaed71bac5eff71492a19298d0e56da762f79c07ff679e420509ce37e638974a643cc0633cde581c860e051fb
6
+ metadata.gz: 4884550da0751047f57c4b96df4c7a0689a1beef6ab38fc3d83e9795c1a95186cdaa260de5698ceaf84b11b01509b54893a31f99c22d0e4ab752f7b78160bee9
7
+ data.tar.gz: b99ca01f18ff9583ef362410c82ae59947a646186a06f07f6b55acfd2d6a3e24a9c010ee9e72907e65e02914c339ebaf920038d2cd68ad204facbde40b8763fd
data/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
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.6.20] - 2021-12-14
7
+ - [#162](https://github.com/boltops-tools/terraspace/pull/162) expand_string? interface method so plugins can decide whether or not to expand the string
8
+ - improve seed generator column spacing
9
+
6
10
  ## [0.6.19] - 2021-11-24
7
11
  - [#149](https://github.com/boltops-tools/terraspace/pull/149) change default fallback mod strategy to Mod::Tf instead of Mod::Pass for ERB support
8
12
  - [#152](https://github.com/boltops-tools/terraspace/pull/152) fix naming typo in cli help
@@ -34,6 +34,7 @@ module Terraspace::Plugin::Expander
34
34
  #
35
35
  def expansion(string)
36
36
  return string unless string.is_a?(String) # in case of nil
37
+ return string unless expand_string?(string)
37
38
 
38
39
  string = string.dup
39
40
  vars = string.scan(/:\w+/) # => [":ENV", ":BUILD_DIR"]
@@ -43,6 +44,11 @@ module Terraspace::Plugin::Expander
43
44
  strip(string)
44
45
  end
45
46
 
47
+ # interface method
48
+ def expand_string?(string)
49
+ true
50
+ end
51
+
46
52
  # remove leading and trailing common separators.
47
53
  #
48
54
  # This is useful for when INSTANCE is not set.
@@ -49,7 +49,7 @@ class Terraspace::Seeder
49
49
  end
50
50
 
51
51
  def rpad
52
- all_vars.keys.map(&:size).max
52
+ all_vars.keys.map(&:size).max + 2
53
53
  end
54
54
  memoize :rpad
55
55
 
@@ -1,3 +1,3 @@
1
1
  module Terraspace
2
- VERSION = "0.6.19"
2
+ VERSION = "0.6.20"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terraspace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.19
4
+ version: 0.6.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-24 00:00:00.000000000 Z
11
+ date: 2021-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -852,7 +852,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
852
852
  - !ruby/object:Gem::Version
853
853
  version: '0'
854
854
  requirements: []
855
- rubygems_version: 3.1.6
855
+ rubygems_version: 3.2.32
856
856
  signing_key:
857
857
  specification_version: 4
858
858
  summary: 'Terraspace: The Terraspace Framework'