terraspace-bundler 0.4.1 → 0.4.2

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: f59f992f4e07582208760a29beac2bd1a507164e6cfb19fe4fca27ac1f9d04dc
4
- data.tar.gz: df2b9be3142d30891cb959cafcd5376987e92192b24a85e274606fe761bb1742
3
+ metadata.gz: d61db038a37cd472b7be9b5f3d15a2388254a4b2a3c0d3af3dabb2e10e8c4fc1
4
+ data.tar.gz: 83630195dceb5e35dee5be326311806cb8b06a3eedad4ca10f6b98c4962fe0bb
5
5
  SHA512:
6
- metadata.gz: 73a7f1ca1642c6fe6707b30ac429cc8ca958e37fb86393bf54fea2345ccc0d3cfee2a2a9e7b63dbcb936338e774d1feed95a3276bdbd9b906109671313f61de8
7
- data.tar.gz: 02f65ae63819e83d994de88c57c6c32c078d9627a2e6bebea9711c74d47c48f18186d1bd734989618a17f096a0459586649a9a1b8615e30a73f29341200dbc92
6
+ metadata.gz: 7d4cc8ad358e17708a27085a4a523e4fcddfb007c81d507c07a7c736a851c48f5ed93ca4d9f6b5f64561c822a1e813a4850d7076f1c419869e01626f91e12682
7
+ data.tar.gz: 322b70b512a594212f3530d7d0b99d0f55fa15ecfa496c4aee13f0df0bede32f7628c541179697171a1384e81a07a18871378d348dfe90b2bd131c0592e4008a
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.2] - 2021-10-02
7
+ - stack src option: also understand example and name
8
+
6
9
  ## [0.4.1] - 2021-09-30
7
10
  - [#13](https://github.com/boltops-tools/terraspace-bundler/pull/13) fix stacks Array option
8
11
 
@@ -3,6 +3,7 @@ class TerraspaceBundler::Exporter::Stacks
3
3
  attr_reader :mod
4
4
  def initialize(mod, options={})
5
5
  @mod, @options = mod, options
6
+ @src = @options[:src] || @options[:example] || @options[:name]
6
7
  end
7
8
 
8
9
  def export
@@ -25,7 +26,7 @@ class TerraspaceBundler::Exporter::Stacks
25
26
  end
26
27
 
27
28
  def src
28
- src = @options[:src]
29
+ src = @src
29
30
  without_examples = [mod_path, src].compact.join('/')
30
31
  with_examples = [examples_folder, src].compact.join('/')
31
32
  paths = [with_examples, without_examples]
@@ -1,3 +1,3 @@
1
1
  module TerraspaceBundler
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
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.1
4
+ version: 0.4.2
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-09-30 00:00:00.000000000 Z
11
+ date: 2021-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport