lono 7.4.6 → 7.4.7

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: 4c9574cc77561d997c5dc3f8aadeeaab7a708deaed94ab5a95578322e3020d12
4
- data.tar.gz: b20a99267ec55c53aea744d6c5f42b2383e2c445b130c8df3cbaf97f56965639
3
+ metadata.gz: b9c7e01a4fe4a4ec3340df5f37c5eb41ad0cb02f6f5530fca1b5b4bcdc86fb08
4
+ data.tar.gz: 74c94b09507f4b0fe6528ec6278c7720335a3c78d9526d0253d6e0f1696ceaef
5
5
  SHA512:
6
- metadata.gz: 8687587c45fc8d9efdf911fed49114f28b0ad8afddf81ddcbcb571578ba54ba1bbf9617fe3492bc1abbbf3487d040cf9891e9c1d0f867fdeec776ddd85f6e274
7
- data.tar.gz: 7e0642fc5f26cfb4781e8bc9b9c64b52563ede7e4c8adfda386957d85e3ee0a0951b635afc53991ef085e1748bf106e6f30e22e94f53c26053bb206761209155
6
+ metadata.gz: 1cc2bfbe3afe38fb71c01c38d80dda79fccf36c7d2fa8463b452869031c3fcbc66669bd32753ebf895adeb3a8586ca70ea126112b3ac12bab8f67c3d7830e079
7
+ data.tar.gz: a3696d7bf282fbacf589308484e5f363d088ed6f3586067f1768b6f00a464f18a1e3e77b26c6f8de433149bffffcdf657abbf9acd96a9a421a1e48d615af3500
@@ -3,6 +3,11 @@
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.7]
7
+ - #65 soft lono deprecations: `lono_type` must be set in gemspec
8
+ - #66 fix configset s3_key, s3 endpoint is specially treated for us-east-1
9
+ - #67 fix materializer for multiple extensions
10
+
6
11
  ## [7.4.6]
7
12
  - #64 lono new updates: no starter seed files, allow custom readme
8
13
  - silence type check
@@ -22,9 +22,17 @@ module Lono::Configset::S3File
22
22
 
23
23
  def replacement_value
24
24
  aws_data = AwsData.new
25
- # "https://s3.amazonaws.com/#{Lono::S3::Bucket.name}/#{s3_path}"
26
- # "https://lono-bucket-12di8xz5sy72z.s3-us-west-2.amazonaws.com/stuff/s3-antivirus.tgz"
27
- "https://#{Lono::S3::Bucket.name}.s3-#{aws_data.region}.amazonaws.com/#{s3_path}"
25
+ #
26
+ # "https://s3.amazonaws.com/#{Lono::S3::Bucket.name}/#{s3_path}"
27
+ # "https://lono-bucket-12di8xz5sy72z.s3-us-west-2.amazonaws.com/stuff/s3-antivirus.tgz"
28
+ #
29
+ # us-east-1 is special case:
30
+ #
31
+ # "https://lono-bucket-12di8xz5sy72z.s3.amazonaws.com/stuff/s3-antivirus.tgz"
32
+ #
33
+ region = ""
34
+ region = "-#{aws_data.region}" unless aws_data.region == "us-east-1"
35
+ "https://#{Lono::S3::Bucket.name}.s3#{region}.amazonaws.com/#{s3_path}"
28
36
  end
29
37
  end
30
38
  end
@@ -7,16 +7,20 @@ class Lono::Extensions
7
7
 
8
8
  def run
9
9
  @register.run
10
- materialize
11
- # loading happens in Lono::Extensions::Loader load_all_extension_helpers module
12
- # so it has the proper self.class include scope
10
+ download
11
+ final_materialize
13
12
  end
14
13
 
15
- def materialize
14
+ def download
16
15
  Lono::Jade::Registry.tracked_extensions.each do |registry|
17
16
  jade = Lono::Jade.new(registry.name, "extension", registry)
18
- jade.materialize
17
+ jade.materialize # adds to Lono::Jade::Registry.downloaded_extensions
19
18
  end
20
19
  end
20
+
21
+ def final_materialize
22
+ jades = Lono::Jade::Registry.downloaded_extensions
23
+ Lono::Jade::Materializer::Final.new.build(jades)
24
+ end
21
25
  end
22
26
  end
@@ -28,6 +28,7 @@ module Lono
28
28
  end
29
29
 
30
30
  def lono_type
31
+ deprecation_check(metadata)
31
32
  metadata["lono_type"] || detect_type
32
33
  end
33
34
 
@@ -37,6 +38,7 @@ module Lono
37
38
  end
38
39
 
39
40
  def lono_strategy
41
+ deprecation_check(metadata)
40
42
  return metadata["lono_strategy"] if metadata["lono_strategy"]
41
43
  lono_type == "blueprint" ? "dsl" : "erb" # TODO: default to dsl for configset also in next major release
42
44
  end
@@ -50,5 +52,17 @@ module Lono
50
52
  gemspec.metadata || {}
51
53
  end
52
54
  memoize :metadata
55
+
56
+ private
57
+ @@deprecation_check_shown = {}
58
+ def deprecation_check(metadata)
59
+ return unless ENV['LONO_DEPRECATION_SOFT']
60
+ return if @@deprecation_check_shown[name]
61
+
62
+ unless metadata["lono_type"]
63
+ puts "DEPRECATION WARNING: lono_type is not set for #{name}".color(:yellow)
64
+ end
65
+ @@deprecation_check_shown[name] = true
66
+ end
53
67
  end
54
68
  end
@@ -1,3 +1,3 @@
1
1
  module Lono
2
- VERSION = "7.4.6"
2
+ VERSION = "7.4.7"
3
3
  end
@@ -15,9 +15,7 @@ Gem::Specification.new do |spec|
15
15
  # to allow pushing to a single host or delete this section to allow pushing to any host.
16
16
  if spec.respond_to?(:metadata)
17
17
  spec.metadata["lono_type"] = "blueprint"
18
- <% if @options[:type] != "dsl" -%>
19
- spec.metadata["lono_strategy"] = "erb"
20
- <% end -%>
18
+ spec.metadata["lono_strategy"] = "<%= @options[:type] %>"
21
19
 
22
20
  spec.metadata["allowed_push_host"] = "<%= ENV['LONO_ALLOWED_PUSH_HOST'] || "TODO: Set to 'http://mygemserver.com'"%>"
23
21
  spec.metadata["homepage_uri"] = spec.homepage
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.6
4
+ version: 7.4.7
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-03-31 00:00:00.000000000 Z
11
+ date: 2020-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport