lambdakiq 2.2.0 → 2.3.0

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: 84d147fdbb851da5e7e6ebace4cd2eb5a00ae53d3bd0d36981d9cb90c93bac5b
4
- data.tar.gz: 534d3f92cde56e7462202ebfd0b828039974d37792ee19d4c30b64ea0e901d61
3
+ metadata.gz: 1c10e382880b58dac88a01eee68f22cce23d8d7d6ff713ec525013178e3e8006
4
+ data.tar.gz: ab6471d97e828138612e5f346b7f8ab4f025acc891ebbedfc85919107bf6c2f8
5
5
  SHA512:
6
- metadata.gz: 6cff69c86fae5f46a63cfbd7ee6290fb8aa472a6dc1377424df1cf8daf17ca96c373a87577c4f50ebaf081d8c9b13421e032f8b71b314cbd4135ec2ca7ca7dfe
7
- data.tar.gz: bed7c2407983c15b2ed48ba63362afe7b7a305c7415ec0deb533e25928ea805b8b5c8ad91bbeee4b51a7d3b69008e4854910b9093f392f454fdb78c8e8550db6
6
+ metadata.gz: 03bea250fda7adbbaefc8fd2de9c8bdbac8a804ba31fbffdb220267cf454e15544194e4ab8d833f5b565d6c8191fc176a37da562f1bb732ba5b2bf43d01a6990
7
+ data.tar.gz: a1aadd19c099de54bb375c6e65613e7051558ff669da35fbbe83323b5747eed2c5437d33a1b85a98cf49a2d5f68d3dd0ac50a66ffacf238bd7d03b892d0a0745
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  See this http://keepachangelog.com link for information on how we want this documented formatted.
4
4
 
5
+ ## v2.3.0
6
+
7
+ ### Added
8
+
9
+ Support `enqueue_after_transaction_commit?` for rails 7.2.
10
+
5
11
  ## v2.2.0
6
12
 
7
13
  ### Added
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lambdakiq (2.2.0)
4
+ lambdakiq (2.3.0)
5
5
  activejob
6
6
  aws-sdk-sqs
7
7
  concurrent-ruby
data/README.md CHANGED
@@ -1,10 +1,11 @@
1
1
  ![Lambdakiq: ActiveJob on SQS & Lambda](images/Lambdakiq.png)
2
2
 
3
- ![Test](https://github.com/customink/lambdakiq/workflows/Test/badge.svg)
3
+ ![Test](https://github.com/rails-lambda/lambdakiq/workflows/Test/badge.svg)
4
4
 
5
5
  # Lambdakiq
6
6
 
7
- <a href="https://lamby.custominktech.com"><img src="https://user-images.githubusercontent.com/2381/59363668-89edeb80-8d03-11e9-9985-2ce14361b7e3.png" alt="Lamby: Simple Rails & AWS Lambda Integration using Rack." align="right" width="300" /></a>A drop-in replacement for [Sidekiq](https://github.com/mperham/sidekiq) when running Rails in AWS Lambda using the [Lamby](https://lamby.custominktech.com) gem.
7
+ <a href="https://lamby.cloud"><img src="https://raw.githubusercontent.com/rails-lambda/lamby/master/images/social2.png" alt="Lamby: Simple Rails & AWS Lambda Integration using Rack." align="right" width="450" style="margin-left:1rem;margin-bottom:1rem;" /></a>
8
+ A drop-in replacement for [Sidekiq](https://github.com/mperham/sidekiq) when running Rails in AWS Lambda using the [Lamby](https://lamby.cloud) gem.
8
9
 
9
10
  Lambdakiq allows you to leverage AWS' managed infrastructure to the fullest extent. Gone are the days of managing pods and long polling processes. Instead AWS delivers messages directly to your Rails' job functions and scales it up and down as needed. Observability is built in using AWS CloudWatch Metrics, Dashboards, and Alarms. Learn more about [Using AWS Lambda with Amazon SQS](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html) or get started now.
10
11
 
@@ -20,7 +21,7 @@ Lambdakiq allows you to leverage AWS' managed infrastructure to the fullest exte
20
21
 
21
22
  ## Project Setup
22
23
 
23
- This gem assumes your Rails application is on AWS Lambda, ideally with our [Lamby](https://lamby.custominktech.com) gem. It could be using Lambda's traditional zip package type or the newer [container](https://dev.to/aws-heroes/lambda-containers-with-rails-a-perfect-match-4lgb) format. If Rails on Lambda is new to you, consider following our [quick start](https://lamby.custominktech.com/docs/quick_start) guide to get your first application up and running. From there, to use Lambdakiq, here are steps to setup your project
24
+ This gem assumes your Rails application is on AWS Lambda, ideally with our [Lamby](https://lamby.cloud) gem. It could be using Lambda's traditional zip package type or the newer [container](https://dev.to/aws-heroes/lambda-containers-with-rails-a-perfect-match-4lgb) format. If Rails on Lambda is new to you, consider following our [quick start](https://lamby.cloud/docs/quick_start) guide to get your first application up and running. From there, to use Lambdakiq, here are steps to setup your project
24
25
 
25
26
  ### Bundle & Config
26
27
 
@@ -56,11 +57,11 @@ ActionMailer::MailDeliveryJob.include Lambdakiq::Worker
56
57
  ActionMailer::MailDeliveryJob.queue_as ENV['JOBS_QUEUE_NAME']
57
58
  ```
58
59
 
59
- The same Docker image will be used for both your `web` and `jobs` functions (example setup in following sections). The [Lamby](https://lamby.custominktech.com) gem can automatically can detect if Lambdakiq is present when using the newer `Lamby.cmd` or older lower `Lamby.handler` method. That said, please take a look at the `JobsLambda` in the following section and how `ImageConfig` is used as the golden path for sharing containers.
60
+ The same Docker image will be used for both your `web` and `jobs` functions (example setup in following sections). The [Lamby](https://lamby.cloud) gem can automatically can detect if Lambdakiq is present when using the newer `Lamby.cmd` or older lower `Lamby.handler` method. That said, please take a look at the `JobsLambda` in the following section and how `ImageConfig` is used as the golden path for sharing containers.
60
61
 
61
62
  ### SQS Resources
62
63
 
63
- Open up your project's SAM [`template.yaml`](https://lamby.custominktech.com/docs/anatomy#file-template-yaml) file and make the following additions and changes. First, we need to create your [SQS queues](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html) under the `Resources` section.
64
+ Open up your project's SAM [`template.yaml`](https://lamby.cloud/docs/anatomy#file-template-yaml) file and make the following additions and changes. First, we need to create your [SQS queues](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html) under the `Resources` section.
64
65
 
65
66
  ```yaml
66
67
  JobsQueue:
@@ -235,7 +236,7 @@ And finally, here are the metrics which each dimension can chart using [CloudWat
235
236
 
236
237
  Please share how you are using CloudWatch to monitor and/or alert on your ActiveJobs with Lambdakiq!
237
238
 
238
- 💬 https://github.com/customink/lambdakiq/discussions/3
239
+ 💬 https://github.com/rails-lambda/lambdakiq/discussions/3
239
240
 
240
241
  ## Common Questions
241
242
 
@@ -266,8 +267,8 @@ $ ./bin/setup
266
267
  $ ./bin/test
267
268
  ```
268
269
 
269
- Bug reports and pull requests are welcome on GitHub at https://github.com/customink/lambdakiq. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
270
+ Bug reports and pull requests are welcome on GitHub at https://github.com/rails-lambda/lambdakiq. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
270
271
 
271
272
  ## Code of Conduct
272
273
 
273
- Everyone interacting in the Lambdakiq project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/customink/lambdakiq/blob/master/CODE_OF_CONDUCT.md).
274
+ Everyone interacting in the Lambdakiq project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/rails-lambda/lambdakiq/blob/master/CODE_OF_CONDUCT.md).
data/bin/bootstrap CHANGED
@@ -3,4 +3,4 @@ set -e
3
3
 
4
4
  echo '== Building containers =='
5
5
  docker pull lambci/lambda:build-ruby2.7
6
- docker-compose build
6
+ docker compose build
data/bin/console CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/bin/bash
2
2
  set -e
3
3
 
4
- docker-compose run \
4
+ docker compose run \
5
5
  lambdakiqgem \
6
6
  ./bin/_console
data/bin/setup CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/bin/bash
2
2
  set -e
3
3
 
4
- docker-compose run \
4
+ docker compose run \
5
5
  lambdakiqgem \
6
6
  ./bin/_setup
data/bin/test CHANGED
@@ -3,6 +3,6 @@ set -e
3
3
 
4
4
  export RAILS_ENV="test"
5
5
 
6
- docker-compose run \
6
+ docker compose run \
7
7
  lambdakiqgem \
8
8
  ./bin/_test
data/lambdakiq.gemspec CHANGED
@@ -6,10 +6,10 @@ Gem::Specification.new do |spec|
6
6
  spec.name = "lambdakiq"
7
7
  spec.version = Lambdakiq::VERSION
8
8
  spec.authors = ["Ken Collins"]
9
- spec.email = ["kcollins@customink.com"]
9
+ spec.email = ["ken@metaskills.net"]
10
10
  spec.summary = %q{Scalable Rails Background Processing with AWS Lambda & SQS.}
11
11
  spec.description = %q{Scalable Rails Background Processing with AWS Lambda & SQS.}
12
- spec.homepage = "https://github.com/customink/lambdakiq"
12
+ spec.homepage = "https://github.com/rails-lambda/lambdakiq"
13
13
  spec.license = "MIT"
14
14
  spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
15
15
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|images)/}) }
@@ -10,6 +10,10 @@ module ActiveJob
10
10
  enqueue job, delay_seconds: delay_seconds(timestamp)
11
11
  end
12
12
 
13
+ def enqueue_after_transaction_commit?
14
+ true
15
+ end
16
+
13
17
  private
14
18
 
15
19
  def delay_seconds(timestamp)
@@ -1,3 +1,3 @@
1
1
  module Lambdakiq
2
- VERSION = '2.2.0'
2
+ VERSION = '2.3.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lambdakiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Collins
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-19 00:00:00.000000000 Z
11
+ date: 2024-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activejob
@@ -166,7 +166,7 @@ dependencies:
166
166
  version: '0'
167
167
  description: Scalable Rails Background Processing with AWS Lambda & SQS.
168
168
  email:
169
- - kcollins@customink.com
169
+ - ken@metaskills.net
170
170
  executables: []
171
171
  extensions: []
172
172
  extra_rdoc_files: []
@@ -206,7 +206,7 @@ files:
206
206
  - lib/lambdakiq/version.rb
207
207
  - lib/lambdakiq/worker.rb
208
208
  - vendor/.keep
209
- homepage: https://github.com/customink/lambdakiq
209
+ homepage: https://github.com/rails-lambda/lambdakiq
210
210
  licenses:
211
211
  - MIT
212
212
  metadata: {}
@@ -225,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
225
225
  - !ruby/object:Gem::Version
226
226
  version: '0'
227
227
  requirements: []
228
- rubygems_version: 3.1.2
228
+ rubygems_version: 3.2.7
229
229
  signing_key:
230
230
  specification_version: 4
231
231
  summary: Scalable Rails Background Processing with AWS Lambda & SQS.