lono 6.1.3 → 6.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/lono/template/dsl/builder/helpers/core_helper.rb +1 -1
- data/lib/lono/version.rb +1 -1
- 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: a5e716a5067fea74e53aa4431a798004481ac433a50622c8d057f8e61cca3056
|
4
|
+
data.tar.gz: a40280ee2f07061ff6b491003cc56b43f0c7d409a7baafffdd242055d0abe2eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0294336987fb917fa74c100db0ae88a8822b9f2e487130f1e7a6e16953b5c0b1e0d373a708ec4f25ed7174c6a0435792a960d945bc41dfa59c2bfc4077286616'
|
7
|
+
data.tar.gz: 769b99a41dffa596d00f29510e6412b4f1741f8068549179f2fba48e1de5782090e48cb0def97597f8c048b4c66517743079a8b152438c6355cfb14655a4d1a6
|
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 *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
5
5
|
|
6
|
+
## [6.1.4]
|
7
|
+
- #22 tags helper: return nil if @tags not set and using variable mode
|
8
|
+
|
6
9
|
## [6.1.3]
|
7
10
|
- #21 smarter tags helper. use @tags variable if tags called without arguments
|
8
11
|
|
@@ -5,7 +5,7 @@ module Lono::Template::Dsl::Builder::Helpers
|
|
5
5
|
def tags(list={})
|
6
6
|
casing = list.delete(:casing) || :camelize
|
7
7
|
if list.empty?
|
8
|
-
tag_list(@tags) # when list is empty,
|
8
|
+
tag_list(@tags) if @tags # when list is empty, use @tags variable. If not set then return nil
|
9
9
|
else
|
10
10
|
tag_list(list, casing: casing)
|
11
11
|
end
|
data/lib/lono/version.rb
CHANGED