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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/terraspace/mod.rb +21 -0
- data/lib/terraspace/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 821596efa82fca834084cd1ff1128f2d19e12fcf6b29143eac95c0b160d0724d
|
|
4
|
+
data.tar.gz: f423fb9b8958619a342783e5bbcd07f61e39301d6faa8b7af7c1c53d59fcccc4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
data/lib/terraspace/mod.rb
CHANGED
|
@@ -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
|
data/lib/terraspace/version.rb
CHANGED