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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1bc39f373e2ec3dd463cdb015b038d91e21fef1bb903e3e5145786dde7062117
4
- data.tar.gz: 6cdfc0f15004cd366fa7ceb7236a3bfdfcee966afdabf4bcf129da06023669b6
3
+ metadata.gz: eeff425996a2704acdc46eae6992d6c862089961ae6cd210c7cea61de9684855
4
+ data.tar.gz: 8d1888c4a187e3c63b5262f458a06daf8782c0db3dfeb682fc63ae45df6c12fb
5
5
  SHA512:
6
- metadata.gz: 96e938a4f91820f34553746cdbd468cc3f5d6fe962f949b180fa9e3a3b905dd50fa29e0d412e6e55f203d287ba6c9eeaaddc6ff899fb86e7bd76d540c21dc08c
7
- data.tar.gz: be87aee1edd695c7fb005bf204a7bc57a640dd198e6047d14f1c03fb46e262a61d2007ce3b1cec1dcfd607ed25e5562bfec6da7e3491d83e867c9f29c9d78b7f
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
 
@@ -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
@@ -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, 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
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)
@@ -1,5 +1,5 @@
1
1
  module Jets
2
2
  module Gems
3
- VERSION = "0.2.1"
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.2.1
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-02-07 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
@@ -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.3.26
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: []