serverlessgems 0.2.0 → 0.2.1
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/extract/base.rb +1 -1
- data/lib/jets/gems/extract/gem.rb +18 -3
- 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: 1bc39f373e2ec3dd463cdb015b038d91e21fef1bb903e3e5145786dde7062117
|
4
|
+
data.tar.gz: 6cdfc0f15004cd366fa7ceb7236a3bfdfcee966afdabf4bcf129da06023669b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96e938a4f91820f34553746cdbd468cc3f5d6fe962f949b180fa9e3a3b905dd50fa29e0d412e6e55f203d287ba6c9eeaaddc6ff899fb86e7bd76d540c21dc08c
|
7
|
+
data.tar.gz: be87aee1edd695c7fb005bf204a7bc57a640dd198e6047d14f1c03fb46e262a61d2007ce3b1cec1dcfd607ed25e5562bfec6da7e3491d83e867c9f29c9d78b7f
|
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.2.1] - 2023-02-07
|
7
|
+
- [#7](https://github.com/boltops-tools/serverlessgems/pull/7) download retry for 403 forbidden
|
8
|
+
|
6
9
|
## [0.2.0] - 2022-07-02
|
7
10
|
- provide gems available info
|
8
11
|
|
@@ -50,9 +50,24 @@ module Jets::Gems::Extract
|
|
50
50
|
#
|
51
51
|
def download_gem
|
52
52
|
# download - also move to /tmp/jets/demo/compiled_gems folder
|
53
|
-
|
54
|
-
|
55
|
-
|
53
|
+
begin
|
54
|
+
@retries ||= 0
|
55
|
+
url = gem_url
|
56
|
+
basename = File.basename(url).gsub(/\?.*/,'') # remove query string info
|
57
|
+
tarball_dest = download_file(url, download_path(basename))
|
58
|
+
rescue OpenURI::HTTPError => e
|
59
|
+
url_without_query = url.gsub(/\?.*/,'')
|
60
|
+
puts "Error downloading #{url_without_query}"
|
61
|
+
@retries += 1
|
62
|
+
if @retries < 3
|
63
|
+
sleep 1
|
64
|
+
puts "Retrying download. Retry attempt: #{@retries}"
|
65
|
+
retry
|
66
|
+
else
|
67
|
+
raise e
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
56
71
|
unless tarball_dest
|
57
72
|
message = "Url: #{url} not found"
|
58
73
|
if @options[:exit_on_error]
|
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.2.
|
4
|
+
version: 0.2.1
|
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:
|
11
|
+
date: 2023-02-07 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.
|
150
|
-
signing_key:
|
149
|
+
rubygems_version: 3.3.26
|
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: []
|