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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 85ccd616399d9f335e5aadff26a38a4f1e5584a6f7ceefb433e4772ea2d4e0e9
4
- data.tar.gz: 01c5f24ee034758ef85b109a584c63c738dd765a1eada4be8498986bc8be7a7d
3
+ metadata.gz: eeff425996a2704acdc46eae6992d6c862089961ae6cd210c7cea61de9684855
4
+ data.tar.gz: 8d1888c4a187e3c63b5262f458a06daf8782c0db3dfeb682fc63ae45df6c12fb
5
5
  SHA512:
6
- metadata.gz: 0cd02b6cecda18ab6bc4650470269247618a849aa7159348d759294bf64b4756f2095142e051f7713faca586185f4d4dccb3da5e20750c5273f127b366ca1ed0
7
- data.tar.gz: 204e73b60d8fadcf7c12ba441ca858d981ee75d5a084c64b4d54469bef701c79acc24b6d2d9dd7fdf8b88791e7a97d7f119c9243e2b0a274f4bb751b59ef8dd1
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
@@ -1,22 +1,25 @@
1
1
  require "zeitwerk"
2
2
 
3
- module Jets::Gems
4
- class Autoloader
5
- class Inflector < Zeitwerk::Inflector
6
- def camelize(basename, _abspath)
7
- map = { cli: "CLI", version: "VERSION" }
8
- map[basename.to_sym] || super
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
- class << self
13
- def setup
14
- loader = Zeitwerk::Loader.new
15
- loader.inflector = Inflector.new
16
- lib = File.expand_path('../..', __dir__)
17
- loader.push_dir(lib) # lib
18
- loader.ignore("#{lib}/serverlessgems.rb")
19
- loader.setup
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
@@ -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, nil, '-') # trim mode https://stackoverflow.com/questions/4632879/erb-template-removing-the-trailing-line
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
 
@@ -1,5 +1,5 @@
1
1
  module Jets
2
2
  module Gems
3
- VERSION = "0.3.0"
3
+ VERSION = "0.4.0"
4
4
  end
5
5
  end
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.3.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-06-04 00:00:00.000000000 Z
11
+ date: 2023-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gems