lono 7.4.7 → 7.4.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/lono/cfn/base.rb +1 -5
- data/lib/lono/cli.rb +1 -0
- data/lib/lono/registration.rb +4 -0
- data/lib/lono/registration/temp.rb +6 -13
- data/lib/lono/template/strategy/dsl/builder/squeezer.rb +2 -1
- data/lib/lono/version.rb +1 -1
- data/lib/templates/extension/%extension_name%.gemspec.tt +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d747ecd65bb8239ac79bebab231572190de2a39d46d4db692cb449e64abc6f77
|
4
|
+
data.tar.gz: 609e5aa49b41c5b981b5e62075d41195683a75976cf3db99df6f3e664d00e3d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb81fa313393a78647e218e5d61d53ea0b36c1c6aee29c39fed24036bdefeba2265f5449ca7d894fae173868437d1c64d24626fbe51282de69208cf57f427ba6
|
7
|
+
data.tar.gz: 29bf3543f1b61a416c2bbe148c5c60227a8cf5cea3e15455b30fcdc4fe8c2f18dc4b3b88a9ee9b0b4f929ee6b6e251518319470fa0af57ec92843c73cc6de728
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,10 @@
|
|
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
|
+
## [7.4.8]
|
7
|
+
- #68 squeezer: auto clean empty array values
|
8
|
+
- add version numbers to extension gemspec template to remove deprecations
|
9
|
+
|
6
10
|
## [7.4.7]
|
7
11
|
- #65 soft lono deprecations: `lono_type` must be set in gemspec
|
8
12
|
- #66 fix configset s3_key, s3 endpoint is specially treated for us-east-1
|
data/lib/lono/cfn/base.rb
CHANGED
@@ -15,7 +15,6 @@ class Lono::Cfn
|
|
15
15
|
starting_message
|
16
16
|
parameters = generate_all
|
17
17
|
begin
|
18
|
-
check_registration
|
19
18
|
save(parameters) # defined in the sub class
|
20
19
|
rescue Aws::CloudFormation::Errors::InsufficientCapabilitiesException => e
|
21
20
|
yes = rerun_with_iam?(e)
|
@@ -40,13 +39,10 @@ class Lono::Cfn
|
|
40
39
|
|
41
40
|
# exit code for cfn.rb cli, so there's less duplication
|
42
41
|
exit 1 unless success
|
42
|
+
Lono::Registration.check
|
43
43
|
success
|
44
44
|
end
|
45
45
|
|
46
|
-
def check_registration
|
47
|
-
Lono::Registration::Check.new.check
|
48
|
-
end
|
49
|
-
|
50
46
|
def continue_update_rollback_sure?
|
51
47
|
puts <<~EOL
|
52
48
|
The stack is in the UPDATE_ROLLBACK_FAILED state. More info here: https://amzn.to/2IiEjc5
|
data/lib/lono/cli.rb
CHANGED
data/lib/lono/registration.rb
CHANGED
@@ -29,25 +29,18 @@ class Lono::Registration
|
|
29
29
|
end
|
30
30
|
|
31
31
|
puts <<~EOL
|
32
|
-
Lono is not registered. This prompt appears every 24 hours when lono is not registered.
|
33
|
-
To remove this prompt, please set up your registration info in .lono/registration.yml.
|
34
32
|
|
35
|
-
|
33
|
+
Looks like lono is not registered. Lono registration is optional and free.
|
34
|
+
If you like lono though, please register to help support it. You can register at:
|
36
35
|
|
37
36
|
https://register.lono.cloud
|
38
37
|
|
39
|
-
|
38
|
+
Registration removes this message. Registered users can also optionally receive
|
39
|
+
updates and special offers, including discounts to BoltOps Pro:
|
40
40
|
|
41
|
-
|
42
|
-
EOL
|
43
|
-
|
44
|
-
answer = $stdin.gets.to_s.strip # nil on CI
|
45
|
-
if answer !~ /^y/i
|
46
|
-
puts "Exiting."
|
47
|
-
exit 1
|
48
|
-
end
|
41
|
+
https://lono.cloud/docs/boltops-pro/
|
49
42
|
|
50
|
-
|
43
|
+
EOL
|
51
44
|
end
|
52
45
|
|
53
46
|
def save_temp_key(info)
|
@@ -12,7 +12,8 @@ class Lono::Template::Strategy::Dsl::Builder
|
|
12
12
|
data.map! { |v| squeeze(v) }
|
13
13
|
when Hash
|
14
14
|
data.each_with_object({}) do |(k,v), squeezed|
|
15
|
-
|
15
|
+
# only remove nil and empty Array values within Hash structures
|
16
|
+
squeezed[k] = squeeze(v) unless v.nil? || v.is_a?(Array) && v.empty?
|
16
17
|
squeezed
|
17
18
|
end
|
18
19
|
else
|
data/lib/lono/version.rb
CHANGED
@@ -39,8 +39,8 @@ Gem::Specification.new do |spec|
|
|
39
39
|
spec.add_dependency "activesupport", "~> 6"
|
40
40
|
spec.add_dependency "zeitwerk", "~> 2"
|
41
41
|
|
42
|
-
spec.add_development_dependency "bundler"
|
43
|
-
spec.add_development_dependency "byebug"
|
44
|
-
spec.add_development_dependency "rake"
|
45
|
-
spec.add_development_dependency "rspec"
|
42
|
+
spec.add_development_dependency "bundler", "~> 2"
|
43
|
+
spec.add_development_dependency "byebug", "~> 11"
|
44
|
+
spec.add_development_dependency "rake", "~> 13"
|
45
|
+
spec.add_development_dependency "rspec", "~> 3"
|
46
46
|
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: 7.4.
|
4
|
+
version: 7.4.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|