lono 7.4.6 → 7.4.7
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/lono/configset/s3_file/item.rb +11 -3
- data/lib/lono/extensions/preparer.rb +9 -5
- data/lib/lono/jadespec.rb +14 -0
- data/lib/lono/version.rb +1 -1
- data/lib/templates/blueprint/%blueprint_name%.gemspec.tt +1 -3
- 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: b9c7e01a4fe4a4ec3340df5f37c5eb41ad0cb02f6f5530fca1b5b4bcdc86fb08
|
4
|
+
data.tar.gz: 74c94b09507f4b0fe6528ec6278c7720335a3c78d9526d0253d6e0f1696ceaef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cc2bfbe3afe38fb71c01c38d80dda79fccf36c7d2fa8463b452869031c3fcbc66669bd32753ebf895adeb3a8586ca70ea126112b3ac12bab8f67c3d7830e079
|
7
|
+
data.tar.gz: a3696d7bf282fbacf589308484e5f363d088ed6f3586067f1768b6f00a464f18a1e3e77b26c6f8de433149bffffcdf657abbf9acd96a9a421a1e48d615af3500
|
data/CHANGELOG.md
CHANGED
@@ -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
|
-
#
|
26
|
-
#
|
27
|
-
"https
|
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
|
-
|
11
|
-
|
12
|
-
# so it has the proper self.class include scope
|
10
|
+
download
|
11
|
+
final_materialize
|
13
12
|
end
|
14
13
|
|
15
|
-
def
|
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
|
data/lib/lono/jadespec.rb
CHANGED
@@ -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
|
data/lib/lono/version.rb
CHANGED
@@ -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
|
-
|
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.
|
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-
|
11
|
+
date: 2020-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|