jets 3.1.1 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/jets/application/defaults.rb +1 -0
- data/lib/jets/cli.rb +2 -1
- data/lib/jets/commands/console.rb +7 -1
- data/lib/jets/commands/main.rb +6 -3
- data/lib/jets/commands/templates/skeleton/config/application.rb.tt +1 -0
- data/lib/jets/job/base.rb +2 -0
- data/lib/jets/job/helpers/sns_event_helper.rb +8 -0
- data/lib/jets/job/helpers/sqs_event_helper.rb +8 -0
- data/lib/jets/lambda/dsl.rb +1 -0
- data/lib/jets/stack/main/dsl/lambda.rb +1 -0
- data/lib/jets/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9bb051dfd639163f3f633fbf6573d327ee67e802647d506da22c85733244a563
|
4
|
+
data.tar.gz: 4100d9d52b33f989af9fc8098a97e8214976525cda351b03e388e7111b4dd764
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e249bf85b0fea5d5378e74938a9cf711beb25d24878427de1d18f72f807a56636ffc1db1acbc3e134099c4c4ffec743b8f7d3176a3a63be12f386580bc5828b
|
7
|
+
data.tar.gz: 0572c04c62eb4fe6a152787b3e9055df137c29f8ddc792584d7c85b9389565056f0c2d1fa78501a8fe9b38557af429da74961b41ec24284396033c31698ca2fc
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,11 @@
|
|
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.2] - 2022-04-24
|
7
|
+
- [#618](https://github.com/boltops-tools/jets/pull/618) Jets Console accepts environment cli argument
|
8
|
+
- [#621](https://github.com/boltops-tools/jets/pull/621) Add SQS and SNS event helpers for jobs
|
9
|
+
- [#624](https://github.com/boltops-tools/jets/pull/624) Add lambda.function.ephemeral_storage function property support
|
10
|
+
|
6
11
|
## [3.1.1] - 2022-01-18
|
7
12
|
- [#615](https://github.com/boltops-tools/jets/pull/615) adjust required_ruby_version
|
8
13
|
|
@@ -59,6 +59,7 @@ class Jets::Application
|
|
59
59
|
# default memory setting based on:
|
60
60
|
# https://medium.com/epsagon/how-to-make-lambda-faster-memory-performance-benchmark-be6ebc41f0fc
|
61
61
|
config.function.memory_size = 1536
|
62
|
+
config.function.ephemeral_storage = { size: 512 } # megabytes
|
62
63
|
|
63
64
|
config.prewarm = ActiveSupport::OrderedOptions.new
|
64
65
|
config.prewarm.enable = true
|
data/lib/jets/cli.rb
CHANGED
@@ -63,7 +63,8 @@ class Jets::CLI
|
|
63
63
|
# Pretty tricky, we need to use the raw @given_args as thor_args eventually calls Commands::Base#eager_load!
|
64
64
|
# which uses Jets.env before we get a chance to override ENV['JETS_ENV']
|
65
65
|
command, env = @given_args[0..1]
|
66
|
-
|
66
|
+
|
67
|
+
return unless %w[deploy delete console c].include?(command)
|
67
68
|
env = nil if env&.starts_with?('-')
|
68
69
|
return unless env
|
69
70
|
ENV['JETS_ENV'] = env ? env : 'development'
|
data/lib/jets/commands/main.rb
CHANGED
@@ -61,10 +61,13 @@ module Jets::Commands
|
|
61
61
|
Jets::Router.validate_routes!
|
62
62
|
end
|
63
63
|
|
64
|
-
desc "console", "REPL console with Jets environment loaded"
|
64
|
+
desc "console [environment]", "REPL console with Jets environment loaded"
|
65
65
|
long_desc Help.text(:console)
|
66
|
-
|
67
|
-
|
66
|
+
# Note the environment is here to trick the Thor parser to allowing an
|
67
|
+
# environment parameter. It is not actually set here. It is set earlier
|
68
|
+
# in cli.rb: set_jets_env_from_cli_arg!
|
69
|
+
def console(environment=nil)
|
70
|
+
Console.new(options).run
|
68
71
|
end
|
69
72
|
|
70
73
|
desc "runner", "Run Ruby code in the context of Jets app non-interactively"
|
@@ -35,6 +35,7 @@ Jets.application.configure do
|
|
35
35
|
# security_group_ids: %w[sg-1 sg-2],
|
36
36
|
# subnet_ids: %w[subnet-1 subnet-2],
|
37
37
|
# }
|
38
|
+
# config.function.ephemeral_storage = { size: 1536 }
|
38
39
|
# The config.function settings to the CloudFormation Lambda Function properties.
|
39
40
|
# http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html
|
40
41
|
# Underscored format can be used for keys to make it look more ruby-ish.
|
data/lib/jets/job/base.rb
CHANGED
@@ -13,6 +13,8 @@ module Jets::Job
|
|
13
13
|
include Helpers::KinesisEventHelper
|
14
14
|
include Helpers::LogEventHelper
|
15
15
|
include Helpers::S3EventHelper
|
16
|
+
include Helpers::SnsEventHelper
|
17
|
+
include Helpers::SqsEventHelper
|
16
18
|
|
17
19
|
# Tracks bucket each time an s3_event is declared
|
18
20
|
# Map of bucket_name => stack_name (nested part)
|
data/lib/jets/lambda/dsl.rb
CHANGED
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: 3.1.
|
4
|
+
version: 3.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionmailer
|
@@ -863,6 +863,8 @@ files:
|
|
863
863
|
- lib/jets/job/helpers/kinesis_event_helper.rb
|
864
864
|
- lib/jets/job/helpers/log_event_helper.rb
|
865
865
|
- lib/jets/job/helpers/s3_event_helper.rb
|
866
|
+
- lib/jets/job/helpers/sns_event_helper.rb
|
867
|
+
- lib/jets/job/helpers/sqs_event_helper.rb
|
866
868
|
- lib/jets/klass.rb
|
867
869
|
- lib/jets/lambda/dsl.rb
|
868
870
|
- lib/jets/lambda/function.rb
|
@@ -1098,7 +1100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1098
1100
|
- !ruby/object:Gem::Version
|
1099
1101
|
version: '0'
|
1100
1102
|
requirements: []
|
1101
|
-
rubygems_version: 3.
|
1103
|
+
rubygems_version: 3.3.10
|
1102
1104
|
signing_key:
|
1103
1105
|
specification_version: 4
|
1104
1106
|
summary: Ruby Serverless Framework
|