serverlessgems 0.3.0 → 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 +3 -0
- data/lib/jets/gems/autoloader.rb +18 -15
- data/lib/jets/gems/check.rb +1 -1
- data/lib/jets/gems/version.rb +1 -1
- 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: 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,9 @@
|
|
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
|
+
|
6
9
|
## [0.3.0] - 2023-06-04
|
7
10
|
- download gems to different ruby folder: avoid conflicts when switching ruby version
|
8
11
|
- update missing gems messaging
|
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
@@ -77,7 +77,7 @@ Compiled gems usually take some time to figure out how to build as they each dep
|
|
77
77
|
More info: http://rubyonjets.com/docs/serverlessgems/
|
78
78
|
|
79
79
|
EOL
|
80
|
-
erb = ERB.new(template,
|
80
|
+
erb = ERB.new(template, trim_mode: '-') # trim mode https://stackoverflow.com/questions/4632879/erb-template-removing-the-trailing-line
|
81
81
|
erb.result(binding)
|
82
82
|
end
|
83
83
|
|
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
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
|