howzit 2.1.5 → 2.1.6

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: 1299678fe342467585d3ced3e03840c89964312c17e865beb77bbeb10fd84d5c
4
- data.tar.gz: 247e0c2819675d4da66c07e7d80af7cfdcb3a1be461a1fea4df901ca0b924bbc
3
+ metadata.gz: e053730ff4a0386a25682221bcf58a36a81e15b220659afb72cb1a5084172664
4
+ data.tar.gz: baea37c956d1c64506499a764a502c879eb5ee70830e2ced4cb04f596b8231a1
5
5
  SHA512:
6
- metadata.gz: 676fc60b51f92daa8fa61c10ca1d3029e1ac310da7c9dfb9563e40cf090572ccb97cef1384fc2fd7a7e6ef93bd113f6a677d4d61f60ddebf706a9983a0cebafc
7
- data.tar.gz: 3c2e3820b771428413019e68510e50eb7ee3423af04c5540974825c0f18a07844af4eb72a1b3a83818195ce0085b5135b6f21cb6b44621da244afb54e2f98843
6
+ metadata.gz: 78e286ded9e392237f321e7c3361945ee2e8f586c091ed9ab78fc68757d49710416dbe76d03edd43b464df857527b7e8412649a85c9543a3b490ff03994a8acd
7
+ data.tar.gz: 5df805459407073f865e5223bef535d1f488f2207f7cdb243cb5357da2a5ee8f19c05f5f4f1dec630b24122ce0892ef0783d46aaa161f9c36f5170823f18316b
@@ -0,0 +1,2 @@
1
+ github: [ttscoff]
2
+ custom: ['https://brettterpstra.com/support/', 'https://brettterpstra.com/donate/']
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ### 2.1.6
2
+
3
+ 2023-05-29 12:42
4
+
5
+ #### FIXED
6
+
7
+ - Remove empty undefined variables with no default
8
+
1
9
  ### 2.1.5
2
10
 
3
11
  2023-04-12 15:13
data/lib/howzit/config.rb CHANGED
@@ -212,7 +212,7 @@ module Howzit
212
212
  end
213
213
 
214
214
  ##
215
- ## Create a new config file (and directory if needed)
215
+ ## Create a new theme file (and directory if needed)
216
216
  ##
217
217
  ## @param default [Hash] default configuration to write
218
218
  ##
@@ -223,7 +223,11 @@ module Howzit
223
223
  gsub!(/\[%#{k}(:.*?)?\]/, v)
224
224
  end
225
225
 
226
- gsub(/\[%(.*?):(.*?)\]/, '\2')
226
+ # Replace empty variables with default
227
+ gsub!(/\[%(.*?):(.*?)\]/, '\2')
228
+
229
+ # Remove remaining empty variables
230
+ gsub(/\[%(.*?)\]/, '')
227
231
  end
228
232
 
229
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.5'
6
+ VERSION = '2.1.6'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: howzit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.5
4
+ version: 2.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-12 00:00:00.000000000 Z
11
+ date: 2023-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -291,6 +291,7 @@ extensions: []
291
291
  extra_rdoc_files: []
292
292
  files:
293
293
  - ".editorconfig"
294
+ - ".github/FUNDING.yml"
294
295
  - ".gitignore"
295
296
  - ".howzit.taskpaper.bak"
296
297
  - ".rspec"