lono 1.1.0 → 1.1.1
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/dsl.rb +7 -2
- data/lib/lono/new.rb +1 -1
- data/lib/lono/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93f42bdfdda6f50dcb2c988dea006f0453d72220
|
4
|
+
data.tar.gz: b7ea4850d01affb8ef2597e8d99ead521518e5d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: daddfbe65f2e9dc7c71aa43639164666066f4e16b19c1e49f6a04cb593ac10f6a7342991246e3519f428c5dda9d3a9623d4e3a6ebb65814c94238032068120df
|
7
|
+
data.tar.gz: 395e762273592b2652417d4efb01e981be1c4cafc3e194e8737ad716f3ffecc062c64dda3516cf60a6011a061594f189865223b37e1ea214b0ee906fc7a4bafe
|
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
|
+
## [1.1.1]
|
7
|
+
- default detected format to yaml if no templates defined yet
|
8
|
+
|
6
9
|
## [1.1.0]
|
7
10
|
- useful ERB render error messages
|
8
11
|
|
data/lib/lono/dsl.rb
CHANGED
@@ -34,8 +34,13 @@ module Lono
|
|
34
34
|
puts "All the source values in the template blocks in the config folder must have the same format extension."
|
35
35
|
exit 1
|
36
36
|
else
|
37
|
-
|
38
|
-
|
37
|
+
found_format = formats.first
|
38
|
+
if found_format
|
39
|
+
detected_format = found_format.sub(/^\./,'')
|
40
|
+
detected_format = "yaml" if detected_format == "yml"
|
41
|
+
else # empty templates, no templates defined yet
|
42
|
+
detected_format = "yaml" # defaults to yaml
|
43
|
+
end
|
39
44
|
end
|
40
45
|
detected_format
|
41
46
|
end
|
data/lib/lono/new.rb
CHANGED
data/lib/lono/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lono
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|