lono 5.2.5 → 5.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 798d555eb31a539699308dd7ef59af75a3fd2cd99e6d4ce101476e0fe2711a9b
4
- data.tar.gz: 6c66d0ee14ce53ee16f2c39ade5fb0dfe0c5b0bc0ae59f6d65b92c0d5662732f
3
+ metadata.gz: 791cd9f3677fc15e2d85616025cdb4b066dd11975223eeefc1b1b83fdd84effa
4
+ data.tar.gz: cfe3a51372ca8d439e2d2ac2f0784c661a769cb31f48fb532013199b360233c0
5
5
  SHA512:
6
- metadata.gz: 48b6f6152e99479a2460abb1edf02b44e639fa3dc7dce5a8458d4dbcfb75cdd8bc9a032946bc1df15cbbb4034985e92d515ddcfeb62b3a233fb3d1901ed4b36c
7
- data.tar.gz: de0ee3979c84a09d89b494cfd0e358b8a24e2275adfd3b1271ef9513c55a9fc213d621d1057b5777ad6e1cc56542d85c9d2e04f05be63cd34772f03b9ac0a8fa
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
- * #6 updates
8
- * changes so `lono code import` can create full blueprint structure
9
- * improve `lono seed` to prompt before overwriting
10
- * improve starter configs params
11
- * improve started Gemfile
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
 
@@ -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's the structure of your blueprint:
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
@@ -1,3 +1,3 @@
1
1
  module Lono
2
- VERSION = "5.2.5"
2
+ VERSION = "5.2.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lono
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.5
4
+ version: 5.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen