jets 5.0.9 → 5.0.10

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: '094fcef1e3f074fb9e70284e71928a9573ace2c2698dfa1d7771929c14143cc1'
4
- data.tar.gz: 99bf0fe5ff1d74b1f77f55249022fa857f61daf0e54d93d9f18cfa3fde8d3113
3
+ metadata.gz: f5651514504b0be4ea5ca9eb26c21aba7fc5d0c9a820f1243c089baeb37ad0da
4
+ data.tar.gz: 9b33a24aead4fa2eae801b0cb60dc4fe300410ecd968ac8f714b6ea71e131244
5
5
  SHA512:
6
- metadata.gz: 91eb6f101f26f4e48c5f201240ae658d92cb92518e6a8f1a84b76a9681e0302401f0251bffe9755b6326b85ea1eab70878ac573ca381bb789e9abeea8c4207bf
7
- data.tar.gz: 62dad308974fdecb2dcad03c937f0fc30588090f15d8ed18db6170feebb88630f880ae8ea79f8ce5307211f0ec2e1daecda13e65881c3f7b80d67a73e3f835a6
6
+ metadata.gz: dddc6401aeedf0a081c1607bebb8115d7e710ca3c0ddd9da02ecb0010430bc8ae10f7cb8abb402b5817c309df3dc2d2aff24e2d57fd5d632b2957679c2e2a8d1
7
+ data.tar.gz: a56b380644caccf47e8e962929f39b495b083bdacb66e91d97e0f1536415370172bbf41dd0b1589251e810e6e31655cedab50512dca88fa6843f1f8683759ff4
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
+ ## [5.0.10] - 2024-02-08
7
+ - [#706](https://github.com/rubyonjets/jets/pull/706) permit YAML load of Date class
8
+ - [#708](https://github.com/rubyonjets/jets/pull/708) Fix Prewarming
9
+ - [#709](https://github.com/rubyonjets/jets/pull/709) Remove iam_class_policy warning from Jobs
10
+
6
11
  ## [5.0.9] - 2024-01-08
7
12
  - [#704](https://github.com/rubyonjets/jets/pull/704) fix jets --version outside of jets project
8
13
  - update jets generate job scheduled template JSON.dump
@@ -22,6 +22,7 @@ class Jets::PreheatJob < Jets::Job::Base
22
22
  }
23
23
  ])
24
24
 
25
+ rate(Jets.config.prewarm.rate) if Jets.config.prewarm.enable
25
26
  def warm
26
27
  options = call_options(event[:quiet])
27
28
  Jets::Preheat.warm_all(options)
@@ -31,7 +32,7 @@ class Jets::PreheatJob < Jets::Job::Base
31
32
  class << self
32
33
  # Can use this to prewarm post deploy
33
34
  def prewarm!
34
- perform_now(:warn, quiet: true)
35
+ perform_now(:warm, quiet: true)
35
36
  end
36
37
  end
37
38
 
@@ -136,6 +136,12 @@ module Jets::Cfn
136
136
  relative_path = path.sub("#{Jets.root}/", '') # rid of the Jets.root at beginning
137
137
  paths << relative_path
138
138
  end
139
+
140
+ if Jets.config.prewarm.enable
141
+ internal = File.expand_path("../internal", __dir__)
142
+ paths << "#{internal}/app/jobs/jets/preheat_job.rb"
143
+ end
144
+
139
145
  paths
140
146
  end
141
147
 
@@ -23,7 +23,7 @@ module Jets::Lambda::Dsl
23
23
  def class_iam_policy_unused_warning(managed=false)
24
24
  return unless Jets.config.cfn.build.controllers == "one_lambda_for_all_controllers"
25
25
  return if self.to_s == "ApplicationController" # ApplicationController not defined in job mode
26
- return if self == Jets::PreheatJob
26
+ return if self.ancestors.include?(Jets::Job::Base)
27
27
 
28
28
  managed_prefix = managed ? "managed_" : ""
29
29
  puts <<~EOL.color(:yellow)
@@ -3,12 +3,14 @@ class Jets::Util
3
3
  class Yamler
4
4
  class << self
5
5
  def load(text)
6
- options = RUBY_VERSION =~ /^3/ ? {aliases: true} : {} # Ruby 3.0.0 deprecates aliases: true
6
+ options = { permitted_classes: [Date] }
7
+ options[:aliases] = true if RUBY_VERSION =~ /^3/ # Ruby 3.0.0 deprecates aliases: true
7
8
  YAML.load(text, **options)
8
9
  end
9
10
 
10
11
  def load_file(path)
11
- options = RUBY_VERSION =~ /^3/ ? {aliases: true} : {} # Ruby 3.0.0 deprecates aliases: true
12
+ options = { permitted_classes: [Date] }
13
+ options[:aliases] = true if RUBY_VERSION =~ /^3/ # Ruby 3.0.0 deprecates aliases: true
12
14
  YAML.load_file(path, **options)
13
15
  end
14
16
  end
data/lib/jets/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Jets
2
- VERSION = "5.0.9"
2
+ VERSION = "5.0.10"
3
3
  end
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: 5.0.9
4
+ version: 5.0.10
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-01-08 00:00:00.000000000 Z
11
+ date: 2024-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer
@@ -1208,7 +1208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1208
1208
  - !ruby/object:Gem::Version
1209
1209
  version: '0'
1210
1210
  requirements: []
1211
- rubygems_version: 3.4.20
1211
+ rubygems_version: 3.4.19
1212
1212
  signing_key:
1213
1213
  specification_version: 4
1214
1214
  summary: Ruby Serverless Framework