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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e053730ff4a0386a25682221bcf58a36a81e15b220659afb72cb1a5084172664
4
- data.tar.gz: baea37c956d1c64506499a764a502c879eb5ee70830e2ced4cb04f596b8231a1
3
+ metadata.gz: 4b0f59c8e5d03f4b8b3fab87cddfe014db34369fc74063e59de098f8abcc38b0
4
+ data.tar.gz: 0c8806ab4ef01df61c6559ca40d07c810637cdaa9712f0c4c44f11629fb609a9
5
5
  SHA512:
6
- metadata.gz: 78e286ded9e392237f321e7c3361945ee2e8f586c091ed9ab78fc68757d49710416dbe76d03edd43b464df857527b7e8412649a85c9543a3b490ff03994a8acd
7
- data.tar.gz: 5df805459407073f865e5223bef535d1f488f2207f7cdb243cb5357da2a5ee8f19c05f5f4f1dec630b24122ce0892ef0783d46aaa161f9c36f5170823f18316b
6
+ metadata.gz: 655eab2823e223e939d43c25191890a1297a63b37f7132dd869ff819e53e763c14915df8bc670af5066dee2ea88cd1da99a6350830a563058092b058777a8285
7
+ data.tar.gz: 69775ac58ea7d2c387fd3316c0c31b5d368de6a783ccad65d5124eee2c704fd85c4532c7e5a7046c2ce188c4d3df9b59cb7e4aedb27d98f92768a35ecf81e51c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ### 2.1.7
2
+
3
+ 2023-05-29 12:59
4
+
5
+ #### FIXED
6
+
7
+ - Handle variable replacements on lines containing colons outside of variable
8
+
1
9
  ### 2.1.6
2
10
 
3
11
  2023-05-29 12:42
@@ -224,10 +224,10 @@ module Howzit
224
224
  end
225
225
 
226
226
  # Replace empty variables with default
227
- gsub!(/\[%(.*?):(.*?)\]/, '\2')
227
+ gsub!(/\[%([^\]]+?):(.*?)\]/, '\2')
228
228
 
229
229
  # Remove remaining empty variables
230
- gsub(/\[%(.*?)\]/, '')
230
+ gsub(/\[%.*?\]/, '')
231
231
  end
232
232
 
233
233
  ##
@@ -3,5 +3,5 @@
3
3
  # Primary module for this gem.
4
4
  module Howzit
5
5
  # Current Howzit version.
6
- VERSION = '2.1.6'
6
+ VERSION = '2.1.7'
7
7
  end
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
@@ -30,8 +30,8 @@ describe Howzit::Topic do
30
30
  end
31
31
 
32
32
  describe '.tasks' do
33
- it 'has 2 tasks' do
34
- expect(topic.tasks.count).to eq 2
33
+ it 'has 3 tasks' do
34
+ expect(topic.tasks.count).to eq 3
35
35
  end
36
36
  end
37
37
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: howzit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.6
4
+ version: 2.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra