serverlessgems 0.2.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/jets/gems/autoloader.rb +18 -15
- data/lib/jets/gems/check.rb +3 -1
- data/lib/jets/gems/extract/base.rb +2 -2
- data/lib/jets/gems/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eeff425996a2704acdc46eae6992d6c862089961ae6cd210c7cea61de9684855
|
4
|
+
data.tar.gz: 8d1888c4a187e3c63b5262f458a06daf8782c0db3dfeb682fc63ae45df6c12fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47675c0ac980e0089541784aea12b04b5b2d2d6c1a077a65524de091c8eada0afbdd2c3541f68670b7554ae67d3ae5f224ee156573ef77391404479e18535405
|
7
|
+
data.tar.gz: c853581680f9bf7c26fef89eaf96c59b5791b178a5850e28c83acd51391beb1f783f80d20ac50c0dfa3fbf84dc0e7993a7a65d0ee825bc7a55e004a489ec0473
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,13 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/).
|
5
5
|
|
6
|
+
## [0.4.0] - 2023-07-24
|
7
|
+
- [#8](https://github.com/boltops-tools/serverlessgems/pull/8) erb ruby 3 and autoloader improvements
|
8
|
+
|
9
|
+
## [0.3.0] - 2023-06-04
|
10
|
+
- download gems to different ruby folder: avoid conflicts when switching ruby version
|
11
|
+
- update missing gems messaging
|
12
|
+
|
6
13
|
## [0.2.1] - 2023-02-07
|
7
14
|
- [#7](https://github.com/boltops-tools/serverlessgems/pull/7) download retry for 403 forbidden
|
8
15
|
|
data/lib/jets/gems/autoloader.rb
CHANGED
@@ -1,22 +1,25 @@
|
|
1
1
|
require "zeitwerk"
|
2
2
|
|
3
|
-
module Jets
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
3
|
+
# Make sure to define module Jets in case serverlessgems is loaded before jets
|
4
|
+
module Jets
|
5
|
+
module Gems
|
6
|
+
class Autoloader
|
7
|
+
class Inflector < Zeitwerk::Inflector
|
8
|
+
def camelize(basename, _abspath)
|
9
|
+
map = { cli: "CLI", version: "VERSION" }
|
10
|
+
map[basename.to_sym] || super
|
11
|
+
end
|
9
12
|
end
|
10
|
-
end
|
11
13
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
14
|
+
class << self
|
15
|
+
def setup
|
16
|
+
loader = Zeitwerk::Loader.new
|
17
|
+
loader.inflector = Inflector.new
|
18
|
+
lib = File.expand_path('../..', __dir__)
|
19
|
+
loader.push_dir(lib) # lib
|
20
|
+
loader.ignore("#{lib}/serverlessgems.rb")
|
21
|
+
loader.setup
|
22
|
+
end
|
20
23
|
end
|
21
24
|
end
|
22
25
|
end
|
data/lib/jets/gems/check.rb
CHANGED
@@ -63,6 +63,8 @@ Jets is unable to build a deployment package that will work on AWS Lambda withou
|
|
63
63
|
* Create your own custom layer with the gem: http://rubyonjets.com/docs/extras/custom-lambda-layers/
|
64
64
|
<% if agree.yes? -%>
|
65
65
|
* No need to report this to us, as we've already been notified.
|
66
|
+
* Usually, missing gems can be built within a few minutes.
|
67
|
+
* Some gems may take days or even longer.
|
66
68
|
<% elsif agree.no? -%>
|
67
69
|
* You have choosen not to report data to serverlessgems so we will not be notified about these missing gems.
|
68
70
|
* You can edit ~/.jets/agree to change this.
|
@@ -75,7 +77,7 @@ Compiled gems usually take some time to figure out how to build as they each dep
|
|
75
77
|
More info: http://rubyonjets.com/docs/serverlessgems/
|
76
78
|
|
77
79
|
EOL
|
78
|
-
erb = ERB.new(template,
|
80
|
+
erb = ERB.new(template, trim_mode: '-') # trim mode https://stackoverflow.com/questions/4632879/erb-template-removing-the-trailing-line
|
79
81
|
erb.result(binding)
|
80
82
|
end
|
81
83
|
|
@@ -8,8 +8,8 @@ module Jets::Gems::Extract
|
|
8
8
|
def initialize(name, options={})
|
9
9
|
@name = name
|
10
10
|
@options = options
|
11
|
-
|
12
|
-
@downloads_root = options[:downloads_root] || "/tmp/jets/#{Jets.config.project_name}/serverlessgems"
|
11
|
+
ruby_folder = Jets::Gems.ruby_folder
|
12
|
+
@downloads_root = options[:downloads_root] || "/tmp/jets/#{Jets.config.project_name}/serverlessgems/#{ruby_folder}"
|
13
13
|
end
|
14
14
|
|
15
15
|
def clean_downloads(folder)
|
data/lib/jets/gems/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serverlessgems
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gems
|
@@ -94,7 +94,7 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
-
description:
|
97
|
+
description:
|
98
98
|
email:
|
99
99
|
- tongueroo@gmail.com
|
100
100
|
executables: []
|
@@ -131,7 +131,7 @@ homepage: https://github.com/boltops-tools/serverlessgems
|
|
131
131
|
licenses:
|
132
132
|
- MIT
|
133
133
|
metadata: {}
|
134
|
-
post_install_message:
|
134
|
+
post_install_message:
|
135
135
|
rdoc_options: []
|
136
136
|
require_paths:
|
137
137
|
- lib
|
@@ -146,8 +146,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
146
|
- !ruby/object:Gem::Version
|
147
147
|
version: '0'
|
148
148
|
requirements: []
|
149
|
-
rubygems_version: 3.
|
150
|
-
signing_key:
|
149
|
+
rubygems_version: 3.4.10
|
150
|
+
signing_key:
|
151
151
|
specification_version: 4
|
152
152
|
summary: Client Library works with Serverless Gems API for Jets Ruby Serverless Framework
|
153
153
|
test_files: []
|