terraspace-bundler 0.4.0 → 0.4.1

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: c8245c4a3b7fd5b149298bdf0084bddeee9153ff1cd7016e7e13facb0f3bede2
4
- data.tar.gz: 761d564519e6958842cc5386e7b84f4a2b2cc90e3801fc2c3845f752983241b2
3
+ metadata.gz: f59f992f4e07582208760a29beac2bd1a507164e6cfb19fe4fca27ac1f9d04dc
4
+ data.tar.gz: df2b9be3142d30891cb959cafcd5376987e92192b24a85e274606fe761bb1742
5
5
  SHA512:
6
- metadata.gz: d23b49ddabd983bf1927c62aabc2a9bf4165970a32b7325e41965bc804267297cf269741677582e4c0c4f7603e15dc21fef9d5370200b18adb2f369733b653ae
7
- data.tar.gz: 38bf841d2c9d721b34930786c46567a47e881e3951153272eb7f9dea66e23e974994071e5514a4e92091db0fb19d787ce22893bfb514464ae967fcc04bb34959
6
+ metadata.gz: 73a7f1ca1642c6fe6707b30ac429cc8ca958e37fb86393bf54fea2345ccc0d3cfee2a2a9e7b63dbcb936338e774d1feed95a3276bdbd9b906109671313f61de8
7
+ data.tar.gz: 02f65ae63819e83d994de88c57c6c32c078d9627a2e6bebea9711c74d47c48f18186d1bd734989618a17f096a0459586649a9a1b8615e30a73f29341200dbc92
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
+ ## [0.4.1] - 2021-09-30
7
+ - [#13](https://github.com/boltops-tools/terraspace-bundler/pull/13) fix stacks Array option
8
+
6
9
  ## [0.4.0] - 2021-08-10
7
10
  - [#10](https://github.com/boltops-tools/terraspace-bundler/pull/10) terraspace bundle info: warning when no lockfile
8
11
  - [#12](https://github.com/boltops-tools/terraspace-bundler/pull/12) support for: private registry, s3, gcs, local
@@ -5,6 +5,8 @@ module TerraspaceBundler::Mod::Concerns
5
5
  return unless stacks
6
6
  if all_stacks?(stacks)
7
7
  stacks = all_stacks
8
+ elsif stacks.is_a?(Array)
9
+ stacks = array_stacks(stacks)
8
10
  end
9
11
  normalize_stacks(stacks)
10
12
  end
@@ -28,6 +30,19 @@ module TerraspaceBundler::Mod::Concerns
28
30
  end
29
31
  end
30
32
 
33
+ def array_stacks(stacks)
34
+ stacks.map do |example|
35
+ if example.is_a?(Hash)
36
+ example
37
+ else
38
+ {
39
+ name: example,
40
+ src: example,
41
+ }
42
+ end
43
+ end
44
+ end
45
+
31
46
  # Normalizes stack options to an Array of Hashes or just a single Hash
32
47
  def normalize_stacks(option)
33
48
  defaults = TB.config.stack_options.dup
@@ -1,3 +1,3 @@
1
1
  module TerraspaceBundler
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terraspace-bundler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
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-08-10 00:00:00.000000000 Z
11
+ date: 2021-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -321,7 +321,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
321
321
  - !ruby/object:Gem::Version
322
322
  version: '0'
323
323
  requirements: []
324
- rubygems_version: 3.2.5
324
+ rubygems_version: 3.1.6
325
325
  signing_key:
326
326
  specification_version: 4
327
327
  summary: Bundles terraform modules