terraspace 0.6.9 → 0.6.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/terraspace/cli/fmt.rb +1 -1
- data/lib/terraspace/cli/help/fmt.md +6 -2
- data/lib/terraspace/shell.rb +2 -2
- 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: 8105526fb9629b60b79887ca3208449e24179640bbc03eae6bc11885dc6392cb
|
4
|
+
data.tar.gz: b387682cd6e5c4111c7a21bbb540793a966476a61e04c719fab3cca71de4a909
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b0cc4aa0d60d7c6cad2785dea6c0300ef9186c6235b67500e3a9eb86cdd419112a0004b4859bb6ba7b398ef9912f1c6e3eb5d21e8cebf00615f45e6f1ac2623
|
7
|
+
data.tar.gz: a4e99cb75568dcacff91ff641118431f8792fdbd977eb758fc77a5ff751f4d1a274ec5a9586a1c34ac50eb692aa98c155475b1cf539f3ee85697be7a82cd9447
|
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.10] - 2021-06-01
|
7
|
+
- [#117](https://github.com/boltops-tools/terraspace/pull/117) fix terraspace fmt -t all
|
8
|
+
- clean up IO select call
|
9
|
+
|
6
10
|
## [0.6.9] - 2021-05-07
|
7
11
|
- [#112](https://github.com/boltops-tools/terraspace/pull/112) fix smart auto retry
|
8
12
|
|
data/lib/terraspace/cli/fmt.rb
CHANGED
@@ -14,9 +14,13 @@ Format all source files.
|
|
14
14
|
Format specific module or stack.
|
15
15
|
|
16
16
|
$ terraspace fmt stack1
|
17
|
-
$ terraspace fmt module1
|
17
|
+
$ terraspace fmt module1 -t module
|
18
18
|
|
19
19
|
Format scoping to module or stack types. In case there's a module and stack with the same name.
|
20
20
|
|
21
21
|
$ terraspace fmt example -t module
|
22
|
-
$ terraspace fmt demo -t
|
22
|
+
$ terraspace fmt demo -t stack
|
23
|
+
|
24
|
+
Format all, so both modules and stacks:
|
25
|
+
|
26
|
+
$ terraspace fmt -t all
|
data/lib/terraspace/shell.rb
CHANGED
@@ -38,12 +38,12 @@ module Terraspace
|
|
38
38
|
BLOCK_SIZE = Integer(ENV['TS_BUFFER_BLOCK_SIZE'] || 102400)
|
39
39
|
BUFFER_TIMEOUT = Integer(ENV['TS_BUFFER_TIMEOUT'] || 3600) # 3600s = 1h
|
40
40
|
def handle_streams(stdin, stdout, stderr)
|
41
|
-
files = [stdout, stderr]
|
42
41
|
# note: t=0 and t=nil means no timeout. See: https://bit.ly/2PURlCX
|
43
42
|
t = BUFFER_TIMEOUT.to_i unless BUFFER_TIMEOUT.nil?
|
44
43
|
Timeout::timeout(t) do
|
44
|
+
files = [stdout, stderr]
|
45
45
|
until all_eof?(files) do
|
46
|
-
ready = IO.select(files
|
46
|
+
ready = IO.select(files)
|
47
47
|
next unless ready
|
48
48
|
|
49
49
|
readable = ready[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: 0.6.
|
4
|
+
version: 0.6.10
|
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
|
+
date: 2021-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|