terradoc 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/VERSION.txt +1 -1
- data/lib/terradoc/version.rb +1 -1
- data/lib/terradoc.rb +5 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ae2edc8cf4330163a89342cf1e0465a1ec5be75430225cfa1ecaedb1eae8267
|
4
|
+
data.tar.gz: 720958cb168d3cd026ee9be8c3e06ecf11d3245702ea0d2459bb2d6f608ea4a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78926d31b1c5b1cb53c83835437573340ae0a7be4fc457e00a0f2eaadc1fccaaf57190493ff750e658c78bbcc1c4434cb1b5bba09ea9b6f076149caf88fb2f34
|
7
|
+
data.tar.gz: a527fffd7aeba52586972e1f7f959a66e781b378ab274cb7fad4b3d064240d1fbb0d4757f7b14c4972aec82df5addadcd6529c4e1277b276fce1609abaf998bb
|
data/CHANGELOG.md
CHANGED
@@ -5,11 +5,17 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
|
6
6
|
This changelog was automatically generated using [Caretaker](https://github.com/TerraformToolbox/terradoc) by [Wolf Software](https://github.com/WolfSoftware)
|
7
7
|
|
8
|
+
### [v0.1.3](https://github.com/TerraformToolbox/terradoc/compare/v0.1.2...v0.1.3)
|
9
|
+
|
10
|
+
> Released on March, 18th 2020
|
11
|
+
|
12
|
+
- Fixed a bug which caused an issues if data and resources were in the same file [`[d5ae242]`](https://github.com/TerraformToolbox/terradoc/commit/d5ae24258db1ff47acf7aafab8540e8e54543f79) [`[TGWolf]`](https://github.com/TGWolf)
|
13
|
+
|
8
14
|
### [v0.1.2](https://github.com/TerraformToolbox/terradoc/compare/v0.1.0...v0.1.2)
|
9
15
|
|
10
16
|
> Released on March, 18th 2020
|
11
17
|
|
12
|
-
- Change the default file from CHANGELOG to README (which is what it should have been in first place) [`[
|
18
|
+
- Change the default file from CHANGELOG to README (which is what it should have been in first place) [`[1817ee0]`](https://github.com/TerraformToolbox/terradoc/commit/1817ee06e5dc2c27bf8e096f857d0172ffa93b35) [`[TGWolf]`](https://github.com/TGWolf)
|
13
19
|
|
14
20
|
- Fix an error in the README and a couple of typos [`[0ef365d]`](https://github.com/TerraformToolbox/terradoc/commit/0ef365dd9ed0b3dac8eabbe5e83b16d5eaf04bad) [`[TGWolf]`](https://github.com/TGWolf)
|
15
21
|
|
data/VERSION.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/lib/terradoc/version.rb
CHANGED
data/lib/terradoc.rb
CHANGED
@@ -24,7 +24,7 @@ class Terradoc
|
|
24
24
|
'data-sources' => {
|
25
25
|
'include' => 'data',
|
26
26
|
'match' => /^(?!data).*/,
|
27
|
-
'regex' => /^data\s*"(?<name
|
27
|
+
'regex' => /^data\s*"(?<name>.*?)"\s*".*/,
|
28
28
|
'split' => /(?=data\s*")/,
|
29
29
|
'start' => '<!--Terradoc-data-sources-start-->',
|
30
30
|
'end' => '<!--Terradoc-data-sources-end-->',
|
@@ -58,7 +58,7 @@ class Terradoc
|
|
58
58
|
'resources' => {
|
59
59
|
'include' => 'resource',
|
60
60
|
'match' => /^(?!resource).*/,
|
61
|
-
'regex' => /^resource\s*"(?<name
|
61
|
+
'regex' => /^resource\s*"(?<name>.*?)"\s*".*/,
|
62
62
|
'split' => /(?=resource\s*")/,
|
63
63
|
'start' => '<!--Terradoc-resources-start-->',
|
64
64
|
'end' => '<!--Terradoc-resources-end-->',
|
@@ -231,6 +231,9 @@ class Terradoc
|
|
231
231
|
next if item.match(value['match'])
|
232
232
|
|
233
233
|
matches = item.match(value['regex'])
|
234
|
+
|
235
|
+
puts matches[:name]
|
236
|
+
|
234
237
|
next unless matches.size.positive?
|
235
238
|
next unless matches.names.include?('name')
|
236
239
|
|