terraspace 2.1.2 → 2.1.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: '03096c453bba884de848aa0eaa9fe82204f6a5e66efd1fda10a512dfe6509747'
4
- data.tar.gz: c9d9df2c2188457f06247b603ca0e39b7197c8f7286fcf3dfe8ef659e356254b
3
+ metadata.gz: 821596efa82fca834084cd1ff1128f2d19e12fcf6b29143eac95c0b160d0724d
4
+ data.tar.gz: f423fb9b8958619a342783e5bbcd07f61e39301d6faa8b7af7c1c53d59fcccc4
5
5
  SHA512:
6
- metadata.gz: 7cece8de2acae3e9c3d4fcb88e7a89c3bbad55a135f246426c54d5ab5176f467b3c4dcdc1a0b288b03f15266088b7dec27c71373b7ce70e1f9313110ec236ca0
7
- data.tar.gz: bd251ca2dd8baea3739c2cb69cfb2d144916f2a80ccd1eaad22d30401c4bf6de32938263438ebb4d334dfb262ca49801aad46cd0293ea56e102082686f50d1f7
6
+ metadata.gz: dec9d3e94b3b3e2ab3eea0c14392729eef461cc2a2c451365a158aaf2f6fe7e619b961dc9ccee3f6a18ed329a6eba199d33164c1857df8d469b4fe0f7b034193
7
+ data.tar.gz: 3608ca4855cf1a30feb7aa2e2287c97a2f80fbcd5c74e8339076180f34ae54c93eefc13dc57ab6cc74829f9d46b3389ef534659e6804cf98c3d2d21021a61470
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
+ ## [2.1.3] - 2022-07-13
7
+ - [#251](https://github.com/boltops-tools/terraspace/pull/251) deprecation warning for `:CACHE_ROOT` in `config.build.cache_dir`
8
+
6
9
  ## [2.1.2] - 2022-07-13
7
10
  - [#249](https://github.com/boltops-tools/terraspace/pull/249) fix cost.enabled setting when nil
8
11
 
@@ -128,6 +128,27 @@ module Terraspace
128
128
  raise "ERROR: config.build.cache_dir is not a String or responds to the .call method."
129
129
  end
130
130
 
131
+ if pattern.include?(":CACHE_ROOT")
132
+ old_pattern = pattern
133
+ pattern = pattern.sub(':CACHE_ROOT/', '')
134
+ logger.info "WARN: Detected :CACHE_ROOT in config.build.cache_dir".color(:yellow)
135
+ logger.info <<~EOL
136
+ This has been deprecated and :CACHE_ROOT should not be in the config.build.cache_dir setting.
137
+ The :CACHE_ROOT pattern has been removed from config.build.cache_dir automatically.
138
+
139
+ To remove this warning, remove the :CACHE_ROOT. For example:
140
+
141
+ config/app.rb
142
+
143
+ config.build.cache_dir = "#{old_pattern}"
144
+
145
+ Update it to:
146
+
147
+ config.build.cache_dir = "#{pattern}"
148
+
149
+ EOL
150
+ end
151
+
131
152
  path = expansion(pattern)
132
153
  path = "#{Terraspace.cache_root}/#{path}"
133
154
  path.gsub!(%r{/+},'/') # remove double slashes are more. IE: // -> / Useful since region is '' in generic expander
@@ -1,3 +1,3 @@
1
1
  module Terraspace
2
- VERSION = "2.1.2"
2
+ VERSION = "2.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terraspace
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen