terraspace 1.1.3 → 1.1.4
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 +5 -0
- data/lib/terraspace/compiler/writer.rb +1 -1
- data/lib/terraspace/core.rb +3 -21
- data/lib/terraspace/ext/core/module.rb +1 -1
- data/lib/terraspace/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 50baca1ee67aedb6160857e20b413db3e31923ee2f6bd8347723e2445d9b59ef
|
|
4
|
+
data.tar.gz: 0ac181788709d0700c0cfcd8085c375b453e84aef6333b9c93b446ff1bb30938
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ce1c04ca24e818cef35397bf9fb7cadb9e9b28838a0e15c3ec18e0e4d0b49d3bdfba4bb01e6d3e9788e5410e99c44dc827ec79a0432ae94d90fd4413c2c446ad
|
|
7
|
+
data.tar.gz: 95d7c2cea1917b0e3c919a43afadf24b2970dbd87c2d46d5b5846d62c6e9cc115751a7ab63defb74ad1c79917984262a7d9987eee1134e87d2778c9edcc3a175
|
data/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
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
|
+
## [1.1.4] - 2022-02-21
|
|
7
|
+
- [#210](https://github.com/boltops-tools/terraspace/pull/210) write files without magic conversion, fixes #209
|
|
8
|
+
- cleanup argv and root
|
|
9
|
+
- write files without magic conversion, fixes #209
|
|
10
|
+
|
|
6
11
|
## [1.1.3] - 2022-02-17
|
|
7
12
|
- [#207](https://github.com/boltops-tools/terraspace/pull/207) dont fork when all.concurrency = 1
|
|
8
13
|
|
|
@@ -34,7 +34,7 @@ module Terraspace::Compiler
|
|
|
34
34
|
if content.respond_to?(:path) # IO filehandle
|
|
35
35
|
FileUtils.cp(content.path, dest_path) # preserves permission
|
|
36
36
|
else # just content
|
|
37
|
-
IO.write(dest_path, content)
|
|
37
|
+
IO.write(dest_path, content, mode: "wb")
|
|
38
38
|
end
|
|
39
39
|
logger.debug "Created #{Terraspace::Util.pretty_path(dest_path)}"
|
|
40
40
|
end
|
data/lib/terraspace/core.rb
CHANGED
|
@@ -11,11 +11,8 @@ module Terraspace
|
|
|
11
11
|
def root
|
|
12
12
|
@@root ||= ENV['TS_ROOT'] || Dir.pwd
|
|
13
13
|
end
|
|
14
|
-
|
|
15
14
|
# allow testing frameworks to switch roots
|
|
16
|
-
|
|
17
|
-
@@root = v
|
|
18
|
-
end
|
|
15
|
+
cattr_writer :root
|
|
19
16
|
|
|
20
17
|
def cache_root
|
|
21
18
|
ENV['TS_CACHE_ROOT'] || config.build.cache_root || "#{root}/.terraspace-cache"
|
|
@@ -61,22 +58,7 @@ module Terraspace
|
|
|
61
58
|
|
|
62
59
|
# Terraspace.argv provides consistency when terraspace is being called by rspec-terraspace test harness
|
|
63
60
|
# So use Terraspace.argv instead of ARGV constant
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
def argv
|
|
69
|
-
@@argv
|
|
70
|
-
end
|
|
71
|
-
|
|
72
|
-
@@check_project = true
|
|
73
|
-
def check_project
|
|
74
|
-
@@check_project
|
|
75
|
-
end
|
|
76
|
-
|
|
77
|
-
# allow testing frameworks to disable
|
|
78
|
-
def check_project=(v)
|
|
79
|
-
@@check_project = v
|
|
80
|
-
end
|
|
61
|
+
cattr_accessor :argv
|
|
62
|
+
cattr_accessor :check_project, default: true
|
|
81
63
|
end
|
|
82
64
|
end
|
|
@@ -8,7 +8,7 @@ class Module
|
|
|
8
8
|
# Caller lines are different for OSes:
|
|
9
9
|
#
|
|
10
10
|
# windows: "C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/terraspace-1.1.1/lib/terraspace/builder.rb:34:in `build'"
|
|
11
|
-
# linux: "/home/ec2-user/.rvm/gems/ruby-3.0.3/gems/terraspace-1.1.1
|
|
11
|
+
# linux: "/home/ec2-user/.rvm/gems/ruby-3.0.3/gems/terraspace-1.1.1/lib/terraspace/compiler/dsl/syntax/mod.rb:4:in `<module:Mod>'"
|
|
12
12
|
#
|
|
13
13
|
def include_dir(dir)
|
|
14
14
|
caller_line = caller[0]
|
data/lib/terraspace/version.rb
CHANGED
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: 1.1.
|
|
4
|
+
version: 1.1.4
|
|
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-02-
|
|
11
|
+
date: 2022-02-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|