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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4bf114ffb03f191da26a05fc80c4709f2eca37e0
4
- data.tar.gz: 942454c20cf254b21236a8508aa71ccecd371da4
3
+ metadata.gz: 93f42bdfdda6f50dcb2c988dea006f0453d72220
4
+ data.tar.gz: b7ea4850d01affb8ef2597e8d99ead521518e5d8
5
5
  SHA512:
6
- metadata.gz: 4506033e8b011e45aac50e3f1d65ed28990e531d2ff2a39ee036a8587e67f29fe0c69d9128bc79e0d0bd32e733c01a4a95435dd72da7978349fec80cff1d60b0
7
- data.tar.gz: 56d90a0893be4bf743154aca21647ada77b9dfef3668a457e33a7b9a6ecc369e13d4a57ac625bf4193d80d4bc06d26cac77ec1f59890f62c8a17d490d02462a2
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
- detected_format = formats.first.sub(/^\./,'')
38
- detected_format = "yaml" if detected_format == "yml"
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
@@ -26,7 +26,7 @@ module Lono
26
26
  FileUtils.cp(src, dest)
27
27
  end
28
28
  end
29
- puts "Starter lono project created"
29
+ puts "Starter lono project created" unless options[:quiet]
30
30
  end
31
31
  end
32
32
  end
data/lib/lono/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lono
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
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.0
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 00:00:00.000000000 Z
11
+ date: 2017-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake