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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b9c7e01a4fe4a4ec3340df5f37c5eb41ad0cb02f6f5530fca1b5b4bcdc86fb08
4
- data.tar.gz: 74c94b09507f4b0fe6528ec6278c7720335a3c78d9526d0253d6e0f1696ceaef
3
+ metadata.gz: d747ecd65bb8239ac79bebab231572190de2a39d46d4db692cb449e64abc6f77
4
+ data.tar.gz: 609e5aa49b41c5b981b5e62075d41195683a75976cf3db99df6f3e664d00e3d0
5
5
  SHA512:
6
- metadata.gz: 1cc2bfbe3afe38fb71c01c38d80dda79fccf36c7d2fa8463b452869031c3fcbc66669bd32753ebf895adeb3a8586ca70ea126112b3ac12bab8f67c3d7830e079
7
- data.tar.gz: a3696d7bf282fbacf589308484e5f363d088ed6f3586067f1768b6f00a464f18a1e3e77b26c6f8de433149bffffcdf657abbf9acd96a9a421a1e48d615af3500
6
+ metadata.gz: bb81fa313393a78647e218e5d61d53ea0b36c1c6aee29c39fed24036bdefeba2265f5449ca7d894fae173868437d1c64d24626fbe51282de69208cf57f427ba6
7
+ data.tar.gz: 29bf3543f1b61a416c2bbe148c5c60227a8cf5cea3e15455b30fcdc4fe8c2f18dc4b3b88a9ee9b0b4f929ee6b6e251518319470fa0af57ec92843c73cc6de728
@@ -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
@@ -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
@@ -13,6 +13,7 @@ module Lono
13
13
  long_desc Help.text(:blueprints)
14
14
  def blueprints
15
15
  Finder::Blueprint.list
16
+ Lono::Registration.check
16
17
  end
17
18
 
18
19
  desc "configsets [BLUEPRINT]", "Lists configsets"
@@ -11,5 +11,9 @@ module Lono
11
11
  def temp_check
12
12
  Temp.new.check
13
13
  end
14
+
15
+ def self.check
16
+ Check.new.check
17
+ end
14
18
  end
15
19
  end
@@ -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
- Registration is free. You can register at:
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
- More info: https://lono.cloud/docs/register/
38
+ Registration removes this message. Registered users can also optionally receive
39
+ updates and special offers, including discounts to BoltOps Pro:
40
40
 
41
- Continue without registration? (y/N)
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
- save_temp_key(resp) # save key if user confirms
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
- squeezed[k] = squeeze(v) unless v.nil? # only remove nil values within Hash structures
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
@@ -1,3 +1,3 @@
1
1
  module Lono
2
- VERSION = "7.4.7"
2
+ VERSION = "7.4.8"
3
3
  end
@@ -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.7
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-09 00:00:00.000000000 Z
11
+ date: 2020-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport