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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0d88e968da03e187d230fad5e1785995ffa95415146a9a2b7cfe500c0e54473a
4
- data.tar.gz: 49535538ad977e0d7b36620037a70478e6bfdf9c9bc607feff4576724fc351fd
3
+ metadata.gz: 8105526fb9629b60b79887ca3208449e24179640bbc03eae6bc11885dc6392cb
4
+ data.tar.gz: b387682cd6e5c4111c7a21bbb540793a966476a61e04c719fab3cca71de4a909
5
5
  SHA512:
6
- metadata.gz: 3d0a9476e10f46a504c555212aa538968045d27845eabcec4c43306a008422dce9b19c28b4d0ce16defce89bc78674c01098c08291af6e321f85f2385e6390f0
7
- data.tar.gz: 27563820dafa65f85df07ce9e28430a75b7ffb6330b2440444b6a88803efa3f851d9524ae5c0417039a3d698a62896b2071fb84b8de30e93a42c03ad64941dbd
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
 
@@ -30,7 +30,7 @@ class Terraspace::CLI
30
30
 
31
31
  def type_dirs
32
32
  type = @options[:type]
33
- if type
33
+ if type && type != "all"
34
34
  app_source_dirs.select { |p| p.include?("/#{type.pluralize}/") }
35
35
  else
36
36
  app_source_dirs
@@ -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 stacke
22
+ $ terraspace fmt demo -t stack
23
+
24
+ Format all, so both modules and stacks:
25
+
26
+ $ terraspace fmt -t all
@@ -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, nil, nil, 0.1)
46
+ ready = IO.select(files)
47
47
  next unless ready
48
48
 
49
49
  readable = ready[0]
@@ -1,3 +1,3 @@
1
1
  module Terraspace
2
- VERSION = "0.6.9"
2
+ VERSION = "0.6.10"
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.9
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-05-07 00:00:00.000000000 Z
11
+ date: 2021-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport