jets 6.0.3 → 6.0.5
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/api/config.rb +11 -1
- data/lib/jets/code/stager.rb +5 -1
- data/lib/jets/git/git_cli.rb +6 -1
- data/lib/jets/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb11705dd76229a0cf5e7504b49d1f6a95cfda3dce9e19ff2759167fb2786f80
|
4
|
+
data.tar.gz: ed1737956ecaec3920c45138537e46322015a999787d4c2120fcbb93cc4822b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2c25b3732fb74b68b42d3dc12612e3068631effc94662ee2d552461e1693d14a1756b9aaf026ec79bf34c4ecb6889baa879c3e6e219afd780497cf41dee969d
|
7
|
+
data.tar.gz: e618428ad3a8ef5c1978a08da364627849e4f8d106373f68479ba250d959d46c18ab82899b112577ea3a747f68dd9a01c0f08f6421121fce59f46f8bdfc08b8b
|
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
|
+
## [6.0.5] - 2024-12-04
|
7
|
+
- [#737](https://github.com/rubyonjets/jets/pull/737) jets login prompt message when likely ci env
|
8
|
+
|
9
|
+
## [6.0.4] - 2024-11-13
|
10
|
+
- [#735](https://github.com/rubyonjets/jets/pull/735) fix du check for macosx
|
11
|
+
- [#736](https://github.com/rubyonjets/jets/pull/736) git commit check
|
12
|
+
|
6
13
|
## [6.0.3] - 2024-05-30
|
7
14
|
- [#730](https://github.com/rubyonjets/jets/pull/730) scheduler translate scheduler.schedule key
|
8
15
|
|
data/lib/jets/api/config.rb
CHANGED
@@ -46,7 +46,17 @@ module Jets::Api
|
|
46
46
|
You can get an api key from www.rubyonjets.com
|
47
47
|
EOL
|
48
48
|
print "Please provide your api key: "
|
49
|
-
$stdin.gets
|
49
|
+
input = $stdin.gets
|
50
|
+
if input.nil?
|
51
|
+
# puts "No input provided. Exiting. Are you running this in a non-TTY environment?"
|
52
|
+
puts <<~EOL
|
53
|
+
Error: No input provided. Exiting.
|
54
|
+
This might be running inside a non-TTY environment like a script or a CI/CD pipeline.
|
55
|
+
Are you sure the API key was set?
|
56
|
+
EOL
|
57
|
+
exit 1
|
58
|
+
end
|
59
|
+
input.strip
|
50
60
|
end
|
51
61
|
|
52
62
|
# interface method: do not remove
|
data/lib/jets/code/stager.rb
CHANGED
@@ -104,7 +104,11 @@ class Jets::Code
|
|
104
104
|
def warn_large_codebase
|
105
105
|
return unless Jets.bootstrap.code.copy.warn_large
|
106
106
|
return unless system("type du > /dev/null 2>&1")
|
107
|
-
|
107
|
+
|
108
|
+
# Use -k for cross-platform compatibility, multiply by 1024 to get bytes
|
109
|
+
# Works for both macOS and Linux
|
110
|
+
bytes = `du -ks #{Jets.root}`.split("\t").first.to_i * 1024
|
111
|
+
|
108
112
|
if bytes > 1024 * 1024 * 1024 # 1GB
|
109
113
|
size = ActiveSupport::NumberHelper.number_to_human_size(bytes)
|
110
114
|
log.info <<~EOL
|
data/lib/jets/git/git_cli.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Jets::Git
|
2
2
|
module GitCli
|
3
3
|
def git?
|
4
|
-
git_folder? && git_installed?
|
4
|
+
git_folder? && git_installed? && git_commits?
|
5
5
|
end
|
6
6
|
|
7
7
|
def git_folder?
|
@@ -12,6 +12,11 @@ module Jets::Git
|
|
12
12
|
system "type git > /dev/null 2>&1"
|
13
13
|
end
|
14
14
|
|
15
|
+
# Edge case: git init but no commits yet
|
16
|
+
def git_commits?
|
17
|
+
system "git rev-parse HEAD >/dev/null 2>&1"
|
18
|
+
end
|
19
|
+
|
15
20
|
def git(args, on_error: :nil)
|
16
21
|
out = `git #{args}`.strip
|
17
22
|
unless $?.success?
|
data/lib/jets/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.
|
4
|
+
version: 6.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-logs
|
@@ -990,7 +990,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
990
990
|
- !ruby/object:Gem::Version
|
991
991
|
version: '0'
|
992
992
|
requirements: []
|
993
|
-
rubygems_version: 3.5.
|
993
|
+
rubygems_version: 3.5.23
|
994
994
|
signing_key:
|
995
995
|
specification_version: 4
|
996
996
|
summary: Serverless Deployment Service
|