jets 3.0.20 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/ISSUE_TEMPLATE/bug_report.md +2 -2
- data/.github/ISSUE_TEMPLATE/question.md +1 -1
- data/.github/ISSUE_TEMPLATE.md +1 -1
- data/.ruby-version +1 -1
- data/CHANGELOG.md +20 -0
- data/jets.gemspec +1 -1
- data/lib/jets/autoloaders.rb +3 -0
- data/lib/jets/booter.rb +2 -3
- data/lib/jets/builders/ruby_packager.rb +17 -8
- data/lib/jets/commands/clean.rb +1 -1
- data/lib/jets/commands/templates/skeleton/Gemfile.tt +1 -1
- data/lib/jets/controller/redirection.rb +5 -5
- data/lib/jets/job/base.rb +2 -2
- data/lib/jets/stack.rb +0 -9
- data/lib/jets/version.rb +1 -1
- data/lib/jets.rb +4 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2aa7cee0958dbdb8e631abc755587de924e101c25b5f64d2f1c4b31ec1abf3d9
|
4
|
+
data.tar.gz: bd4aaa8264304a61a780140f1f0f33d0e68658d57c6be55487f27faa090fdf57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a0b34e96bb206743a192297848e70f03ef07ed587633e81bd1731881dcca2fb2a9232c374194c795b1e48eb537b690b882650c9f9173e5c77faca4cb1a9a83d
|
7
|
+
data.tar.gz: 2270fd363dc73f508e662ba4a115a71d54db9f298f5db17738328b88ec62284a544a41668a93b18bcbc094009d6bf178cc82c65e37a751f2af3036c8cb00a680
|
@@ -16,7 +16,7 @@ details, you may be blocked from ever submitting issues to Jets again.
|
|
16
16
|
Please use your best judgment. 👍
|
17
17
|
|
18
18
|
If you are unsure this is a bug in Jets, please consider asking your question at:
|
19
|
-
https://community.
|
19
|
+
https://community.boltops.com
|
20
20
|
|
21
21
|
Thanks!
|
22
22
|
-->
|
@@ -28,7 +28,7 @@ Make sure that you've done all of these. To mark a checkbox done, replace [ ] w
|
|
28
28
|
-->
|
29
29
|
|
30
30
|
- [ ] Upgrade Jets: Are you using the latest version of Jets? This allows Jets to fix issues fast. There's a `jets upgrade` command that makes this a simple task. There's also an Upgrading Guide: http://rubyonjets.com/docs/upgrading/
|
31
|
-
- [ ] Reproducibility: Are you reporting a bug others will be able to reproduce and not asking a question. If you're unsure or want to ask a question, do so on https://community.
|
31
|
+
- [ ] Reproducibility: Are you reporting a bug others will be able to reproduce and not asking a question. If you're unsure or want to ask a question, do so on https://community.boltops.com
|
32
32
|
- [ ] Code sample: Have you put together a code sample to reproduce the issue and make it available? Code samples help speed up fixes dramatically. If it's an easily reproducible issue, then code samples are not needed. If you're unsure, please include a code sample.
|
33
33
|
|
34
34
|
## My Environment
|
@@ -7,7 +7,7 @@ assignees: ''
|
|
7
7
|
|
8
8
|
---
|
9
9
|
|
10
|
-
The Jets issue tracker IS NOT for usage questions! Please post your question on our dedicated forum at https://community.
|
10
|
+
The Jets issue tracker IS NOT for usage questions! Please post your question on our dedicated forum at https://community.boltops.com
|
11
11
|
|
12
12
|
To be sensitive to everyone's time, we may close issues asking questions without comment. If you repeatedly post questions in the issues tracker, you may be blocked from ever submitting issues to Jets again. Please use your best judgment. 👍
|
13
13
|
|
data/.github/ISSUE_TEMPLATE.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Please fill out one of the templates on https://github.com/tongueroo/jets/issues/new/choose
|
2
2
|
|
3
|
-
If you want to ask a question please do so on the Jets Community forum: https://community.
|
3
|
+
If you want to ask a question please do so on the Jets Community forum: https://community.boltops.com
|
4
4
|
|
5
5
|
To be sensitive to everyone's time, we may close issues asking questions without comment. Posting your questions in the Jets community forum is the best place. It also benefits others by making the questions easier to find. Here are some additional options also http://rubyonjets.com/docs/support/ 👌
|
6
6
|
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.7.
|
1
|
+
2.7.5
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,26 @@
|
|
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
|
+
## [3.1.0] - 2022-01-08
|
7
|
+
- [#614](https://github.com/boltops-tools/jets/pull/614) support zeitwerk 2.5
|
8
|
+
- clean command alias -y for --yes option
|
9
|
+
|
10
|
+
## [3.1.0] - 2022-01-08
|
11
|
+
- [#614](https://github.com/boltops-tools/jets/pull/614) support zeitwerk 2.5
|
12
|
+
- clean command alias -y for --yes option
|
13
|
+
- support zeitwerk 2.5
|
14
|
+
- update github templates: community.boltops.com
|
15
|
+
|
16
|
+
## [3.0.23] - 2021-12-14
|
17
|
+
- [#610](https://github.com/boltops-tools/jets/pull/610) Rewrite PLATFORMS section to specify Ruby only
|
18
|
+
- [#611](https://github.com/boltops-tools/jets/pull/611) Update ruby_packager.rb
|
19
|
+
|
20
|
+
## [3.0.22] - 2021-10-26
|
21
|
+
- [#607](https://github.com/boltops-tools/jets/pull/607) Job serialize - Revert "Fix job params serialization"
|
22
|
+
|
23
|
+
## [3.0.21] - 2021-10-21
|
24
|
+
- [#605](https://github.com/boltops-tools/jets/pull/605) use safer 302 redirect as default
|
25
|
+
|
6
26
|
## [3.0.20] - 2021-10-20
|
7
27
|
- [#603](https://github.com/boltops-tools/jets/pull/603) redirect_to: smarter handling of request xhr
|
8
28
|
- [#604](https://github.com/boltops-tools/jets/pull/604) fix redirect_to 301 and keep use default
|
data/jets.gemspec
CHANGED
@@ -61,7 +61,7 @@ Gem::Specification.new do |spec|
|
|
61
61
|
spec.add_dependency "shotgun"
|
62
62
|
spec.add_dependency "text-table"
|
63
63
|
spec.add_dependency "thor"
|
64
|
-
spec.add_dependency "zeitwerk", "~> 2.
|
64
|
+
spec.add_dependency "zeitwerk", "~> 2.5.0"
|
65
65
|
|
66
66
|
spec.add_development_dependency "bundler"
|
67
67
|
spec.add_development_dependency "byebug"
|
data/lib/jets/autoloaders.rb
CHANGED
@@ -48,6 +48,9 @@ module Jets
|
|
48
48
|
loader.do_not_eager_load("#{__dir__}/#{path}")
|
49
49
|
end
|
50
50
|
|
51
|
+
internal_turbine_path = "#{__dir__}/internal/turbines"
|
52
|
+
loader.push_dir(internal_turbine_path)
|
53
|
+
|
51
54
|
do_not_eager_load_paths.each do |path|
|
52
55
|
loader.do_not_eager_load("#{__dir__}/#{path}")
|
53
56
|
end
|
data/lib/jets/booter.rb
CHANGED
@@ -43,7 +43,6 @@ class Jets::Booter
|
|
43
43
|
# We eager load the extensions and then use the loaded modules to extend Jets::Stack directly.
|
44
44
|
# Originally used an included hook but thats too early before app/shared/extensions is in the load_path.
|
45
45
|
def load_shared_extensions
|
46
|
-
Jets::Autoloaders.once.preload("#{Jets.root}/app/shared/extensions")
|
47
46
|
base_path = "#{Jets.root}/app/shared/extensions"
|
48
47
|
Dir.glob("#{base_path}/**/*.rb").each do |path|
|
49
48
|
next unless File.file?(path)
|
@@ -103,8 +102,8 @@ class Jets::Booter
|
|
103
102
|
end
|
104
103
|
|
105
104
|
def load_internal_turbines
|
106
|
-
|
107
|
-
Jets::
|
105
|
+
Jets::Autoloaders.once.on_setup do
|
106
|
+
Jets::Mailer # only one right now
|
108
107
|
end
|
109
108
|
end
|
110
109
|
|
@@ -3,7 +3,9 @@ require "bundler" # for clean_old_submodules only
|
|
3
3
|
module Jets::Builders
|
4
4
|
class RubyPackager
|
5
5
|
include Util
|
6
|
-
|
6
|
+
|
7
|
+
GEM_REGEXP = /-(arm|x)\d+.*-(darwin|linux)/
|
8
|
+
|
7
9
|
attr_reader :full_app_root
|
8
10
|
def initialize(relative_app_root)
|
9
11
|
@full_app_root = "#{build_area}/#{relative_app_root}"
|
@@ -169,21 +171,28 @@ module Jets::Builders
|
|
169
171
|
# Replace things like nokogiri (1.11.1-x86_64-darwin) => nokogiri (1.11.1)
|
170
172
|
lines, new_lines = new_lines, []
|
171
173
|
lines.each do |l|
|
172
|
-
|
173
|
-
l = l.sub('-x86_64-darwin','')
|
174
|
-
end
|
174
|
+
l.sub!(GEM_REGEXP, '') if l =~ GEM_REGEXP
|
175
175
|
new_lines << l
|
176
176
|
end
|
177
177
|
|
178
178
|
# Make sure platform is ruby
|
179
|
-
lines, new_lines,
|
179
|
+
lines, new_lines, in_platforms_section, platforms_rewritten = new_lines, [], false, false
|
180
180
|
lines.each do |l|
|
181
|
-
if
|
181
|
+
if in_platforms_section && platforms_rewritten # once PLATFORMS has been found, skip all lines until the next section
|
182
|
+
if l.present?
|
183
|
+
next
|
184
|
+
else
|
185
|
+
in_platforms_section = false
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
189
|
+
if in_platforms_section && !platforms_rewritten # specify ruby as the only platform
|
182
190
|
new_lines << " ruby\n"
|
183
|
-
|
191
|
+
platforms_rewritten = true
|
184
192
|
next
|
185
193
|
end
|
186
|
-
|
194
|
+
|
195
|
+
in_platforms_section = l.include?('PLATFORMS')
|
187
196
|
new_lines << l
|
188
197
|
end
|
189
198
|
|
data/lib/jets/commands/clean.rb
CHANGED
@@ -2,7 +2,7 @@ module Jets::Commands
|
|
2
2
|
class Clean < Jets::Commands::Base
|
3
3
|
class_option :noop, type: :boolean, desc: "noop or dry-run mode"
|
4
4
|
class_option :mute, type: :boolean, desc: "mute output"
|
5
|
-
class_option :yes, type: :boolean, desc: "bypass are you sure prompt"
|
5
|
+
class_option :yes, aliases: "y", type: :boolean, desc: "bypass are you sure prompt"
|
6
6
|
|
7
7
|
desc "log", "Cleans CloudWatch log groups assocated with app"
|
8
8
|
long_desc Help.text('clean:log')
|
@@ -18,7 +18,7 @@ gem "mysql2", "~> 0.5.3"
|
|
18
18
|
<% unless options[:mode] == 'job' -%>
|
19
19
|
gem "dynomite"
|
20
20
|
<% end -%>
|
21
|
-
gem "zeitwerk", "~> 2.
|
21
|
+
gem "zeitwerk", "~> 2.5.0"
|
22
22
|
|
23
23
|
# development and test groups are not bundled as part of the deployment
|
24
24
|
group :development, :test do
|
@@ -15,12 +15,12 @@ class Jets::Controller
|
|
15
15
|
isBase64Encoded: false,
|
16
16
|
}
|
17
17
|
if request.xhr?
|
18
|
-
options[:content_type]
|
19
|
-
options[:status]
|
20
|
-
options[:body]
|
18
|
+
options[:content_type] ||= "application/json"
|
19
|
+
options[:status] ||= 200
|
20
|
+
options[:body] ||= JSON.dump(success: true, location: redirect_url)
|
21
21
|
else
|
22
|
-
options[:status]
|
23
|
-
options[:body]
|
22
|
+
options[:status] ||= 302
|
23
|
+
options[:body] ||= ""
|
24
24
|
end
|
25
25
|
Jets.logger.info("redirect_to options #{options}")
|
26
26
|
options = default.merge(options)
|
data/lib/jets/job/base.rb
CHANGED
@@ -26,13 +26,13 @@ module Jets::Job
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def perform_now(meth, event={}, context={})
|
29
|
-
new(event
|
29
|
+
new(event, context, meth).send(meth)
|
30
30
|
end
|
31
31
|
|
32
32
|
def perform_later(meth, event={}, context={})
|
33
33
|
if on_lambda?
|
34
34
|
function_name = "#{self.to_s.underscore}-#{meth}"
|
35
|
-
call = Jets::Commands::Call.new(function_name, JSON.dump(event
|
35
|
+
call = Jets::Commands::Call.new(function_name, JSON.dump(event), invocation_type: "Event")
|
36
36
|
call.run
|
37
37
|
else
|
38
38
|
puts "INFO: Not on AWS Lambda. In local mode perform_later executes the job with perform_now instead."
|
data/lib/jets/stack.rb
CHANGED
@@ -61,15 +61,6 @@ module Jets
|
|
61
61
|
end
|
62
62
|
memoize :template
|
63
63
|
|
64
|
-
# Eager loading the app/shared resources to ensure shared resources have been registered.
|
65
|
-
# Not being used anymore but keeping around just in case for now.
|
66
|
-
def eager_load_shared_resources!
|
67
|
-
Dir.glob("#{Jets.root}/app/shared/**").each do |path|
|
68
|
-
next if path.include?("app/shared/functions")
|
69
|
-
Jets::Autoloaders.main.preload(path)
|
70
|
-
end
|
71
|
-
end
|
72
|
-
|
73
64
|
def lookup(logical_id)
|
74
65
|
looker.output(logical_id)
|
75
66
|
end
|
data/lib/jets/version.rb
CHANGED
data/lib/jets.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: 3.0
|
4
|
+
version: 3.1.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:
|
11
|
+
date: 2022-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionmailer
|
@@ -492,14 +492,14 @@ dependencies:
|
|
492
492
|
requirements:
|
493
493
|
- - "~>"
|
494
494
|
- !ruby/object:Gem::Version
|
495
|
-
version: 2.
|
495
|
+
version: 2.5.0
|
496
496
|
type: :runtime
|
497
497
|
prerelease: false
|
498
498
|
version_requirements: !ruby/object:Gem::Requirement
|
499
499
|
requirements:
|
500
500
|
- - "~>"
|
501
501
|
- !ruby/object:Gem::Version
|
502
|
-
version: 2.
|
502
|
+
version: 2.5.0
|
503
503
|
- !ruby/object:Gem::Dependency
|
504
504
|
name: bundler
|
505
505
|
requirement: !ruby/object:Gem::Requirement
|