lono 5.2.5 → 5.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -5
- data/lib/lono/blueprint/new.rb +9 -2
- 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: 791cd9f3677fc15e2d85616025cdb4b066dd11975223eeefc1b1b83fdd84effa
|
4
|
+
data.tar.gz: cfe3a51372ca8d439e2d2ac2f0784c661a769cb31f48fb532013199b360233c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f56825b676ac458975848e82282c8d33023a9e1819386203794c0b76e79b00d2b47e78844f4d528321fbca3296204a2cd208646e2a7647035235041aa415d9ef
|
7
|
+
data.tar.gz: 401c33544d4b16abd72c091113d460494a07ea6cc515b4ac060bfee42246412dab23d560229fb759a3148f830336895e31d002cea092ebf4bcc7528abfa420db
|
data/CHANGELOG.md
CHANGED
@@ -3,12 +3,15 @@
|
|
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
|
+
## [5.2.6]
|
7
|
+
- reset current dir after lono blueprint new for lono code import command
|
8
|
+
|
6
9
|
## [5.2.5]
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
10
|
+
- #6 updates
|
11
|
+
- changes so `lono code import` can create full blueprint structure
|
12
|
+
- improve `lono seed` to prompt before overwriting
|
13
|
+
- improve starter configs params
|
14
|
+
- improve started Gemfile
|
12
15
|
- lono new --demo option to include starter demo blueprint
|
13
16
|
- lono seed: use Thor::Actions to prompt before overwriting
|
14
17
|
|
data/lib/lono/blueprint/new.rb
CHANGED
@@ -73,6 +73,7 @@ class Lono::Blueprint
|
|
73
73
|
def set_destination_root
|
74
74
|
destination_root = "#{@cwd}/#{blueprint_name}"
|
75
75
|
self.destination_root = destination_root
|
76
|
+
@old_dir = Dir.pwd # for reset_current_dir
|
76
77
|
FileUtils.cd(self.destination_root)
|
77
78
|
end
|
78
79
|
|
@@ -88,7 +89,7 @@ class Lono::Blueprint
|
|
88
89
|
end
|
89
90
|
|
90
91
|
def welcome_message
|
91
|
-
return if options[:from_new]
|
92
|
+
return if options[:from_new] || options[:import]
|
92
93
|
puts <<~EOL
|
93
94
|
#{"="*64}
|
94
95
|
Congrats 🎉 You have successfully created a lono blueprint.
|
@@ -110,10 +111,16 @@ class Lono::Blueprint
|
|
110
111
|
|
111
112
|
structure = `tree .`
|
112
113
|
puts <<~EOL
|
113
|
-
Here
|
114
|
+
Here is the structure of your blueprint:
|
114
115
|
|
115
116
|
#{structure}
|
116
117
|
EOL
|
117
118
|
end
|
119
|
+
|
120
|
+
# Reason: So `lono code import` prints out the params values with relative paths
|
121
|
+
# when the config files are generated.
|
122
|
+
def reset_current_dir
|
123
|
+
FileUtils.cd(@old_dir)
|
124
|
+
end
|
118
125
|
end
|
119
126
|
end
|
data/lib/lono/version.rb
CHANGED