howzit 2.1.6 → 2.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/howzit/stringutils.rb +2 -2
- data/lib/howzit/version.rb +1 -1
- data/spec/spec_helper.rb +9 -0
- data/spec/topic_spec.rb +2 -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: 4b0f59c8e5d03f4b8b3fab87cddfe014db34369fc74063e59de098f8abcc38b0
|
4
|
+
data.tar.gz: 0c8806ab4ef01df61c6559ca40d07c810637cdaa9712f0c4c44f11629fb609a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 655eab2823e223e939d43c25191890a1297a63b37f7132dd869ff819e53e763c14915df8bc670af5066dee2ea88cd1da99a6350830a563058092b058777a8285
|
7
|
+
data.tar.gz: 69775ac58ea7d2c387fd3316c0c31b5d368de6a783ccad65d5124eee2c704fd85c4532c7e5a7046c2ce188c4d3df9b59cb7e4aedb27d98f92768a35ecf81e51c
|
data/CHANGELOG.md
CHANGED
data/lib/howzit/stringutils.rb
CHANGED
@@ -224,10 +224,10 @@ module Howzit
|
|
224
224
|
end
|
225
225
|
|
226
226
|
# Replace empty variables with default
|
227
|
-
gsub!(/\[%(
|
227
|
+
gsub!(/\[%([^\]]+?):(.*?)\]/, '\2')
|
228
228
|
|
229
229
|
# Remove remaining empty variables
|
230
|
-
gsub(/\[
|
230
|
+
gsub(/\[%.*?\]/, '')
|
231
231
|
end
|
232
232
|
|
233
233
|
##
|
data/lib/howzit/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -28,6 +28,8 @@ end
|
|
28
28
|
|
29
29
|
def save_buildnote
|
30
30
|
note = <<~EONOTE
|
31
|
+
defined: this is defined
|
32
|
+
|
31
33
|
# Howzit Test
|
32
34
|
|
33
35
|
## Topic Balogna
|
@@ -39,6 +41,11 @@ def save_buildnote
|
|
39
41
|
@run(ls -1 &> /dev/null) Null Output
|
40
42
|
@include(Topic Tropic)
|
41
43
|
|
44
|
+
```run
|
45
|
+
#!/usr/bin/env ruby
|
46
|
+
title = "[%undefined]".empty? ? "[%defined]" : "[%undefined]"
|
47
|
+
```
|
48
|
+
|
42
49
|
@after
|
43
50
|
This should be a postrequisite.
|
44
51
|
@end
|
@@ -49,6 +56,8 @@ def save_buildnote
|
|
49
56
|
|
50
57
|
- It has a list in it
|
51
58
|
- That's pretty fun, right?
|
59
|
+
- Defined: '[%defined]'
|
60
|
+
- Undefined: '[%undefined]'
|
52
61
|
|
53
62
|
## Topic Tropic
|
54
63
|
|
data/spec/topic_spec.rb
CHANGED