jets 5.0.8 → 5.0.9

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: 3c9deeac005b373929e04e747ce2465b82eccc49a99a39830025228e1da199e7
4
- data.tar.gz: e1e5849237312cfe6725a1d4bd163b8b17f4ef904a000b5c5323de05a7afbaf4
3
+ metadata.gz: '094fcef1e3f074fb9e70284e71928a9573ace2c2698dfa1d7771929c14143cc1'
4
+ data.tar.gz: 99bf0fe5ff1d74b1f77f55249022fa857f61daf0e54d93d9f18cfa3fde8d3113
5
5
  SHA512:
6
- metadata.gz: c351ace071bea12bca7785140d1a3cd0abcc8750a1e06d99cbe5691af1a26a573f8ff915a1d4569dd97c736df852d83d8944161c2387c42791588f568d13e17f
7
- data.tar.gz: 1bef67bd4957279b84d2315597568a78c4fe17806d659116dd59f55018e242b432fbc23d186ca4e171f97db001ac22c5f86158049b817713b2ead712158eb419
6
+ metadata.gz: 91eb6f101f26f4e48c5f201240ae658d92cb92518e6a8f1a84b76a9681e0302401f0251bffe9755b6326b85ea1eab70878ac573ca381bb789e9abeea8c4207bf
7
+ data.tar.gz: 62dad308974fdecb2dcad03c937f0fc30588090f15d8ed18db6170feebb88630f880ae8ea79f8ce5307211f0ec2e1daecda13e65881c3f7b80d67a73e3f835a6
data/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
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.9] - 2024-01-08
7
+ - [#704](https://github.com/rubyonjets/jets/pull/704) fix jets --version outside of jets project
8
+ - update jets generate job scheduled template JSON.dump
9
+
6
10
  ## [5.0.8] - 2023-12-24
7
11
  - [#702](https://github.com/rubyonjets/jets/pull/702) prettier event helpers IE: s3_events vs s3_event_payloads
8
12
 
@@ -17,6 +17,12 @@ module Jets
17
17
  # bundle exec jets application => jets new --help
18
18
  #
19
19
  def perform(*args)
20
+ version_flags = %w[-v --version] & args
21
+ unless version_flags.empty?
22
+ puts "Jets #{Jets::VERSION}"
23
+ return
24
+ end
25
+
20
26
  # require lazily so that Rails constant is only defined within generators
21
27
  require "jets/generators/overrides/app/app_generator"
22
28
  override_exit_on_failure?
@@ -2,7 +2,7 @@
2
2
  class <%= class_name %>Job < ApplicationJob
3
3
  rate "10 hours"
4
4
  def <%= options[:name] %>
5
- puts "Do something with event #{event}"
5
+ puts "Do something with event #{JSON.dump(event)}"
6
6
  end
7
7
  end
8
8
  <% end -%>
data/lib/jets/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Jets
2
- VERSION = "5.0.8"
2
+ VERSION = "5.0.9"
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.8
4
+ version: 5.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-24 00:00:00.000000000 Z
11
+ date: 2024-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer