activejob-google_cloud_tasks-http 0.3.0 → 0.4.0
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/.github/workflows/ci.yml +13 -7
- data/Appraisals +9 -6
- data/CHANGELOG.md +1 -2
- data/README.md +3 -3
- data/activejob-google_cloud_tasks-http.gemspec +2 -0
- data/lib/active_job/google_cloud_tasks/http/adapter.rb +1 -1
- data/lib/active_job/google_cloud_tasks/http/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0bb6cb0ea1af9910818bc288867091092c51cc47a48656b7ef86043ef33e4f6
|
4
|
+
data.tar.gz: d348eae84991f77b4fd1c34be5164dec70d7e6128b304721c0893ec7e9d5cbcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02ae30fd2d6a88bc5d5727f6deb74652f2b1e725d358800bffe10fd1b026444db887a98fc2e09e7823adfd909612646853f0fa65dde576a94cfae18b67fd8e28
|
7
|
+
data.tar.gz: 260e51cef2d639de9a94008c16f5e5927a0a902f966dcf894ce0d4b9ddfb024d00b34fc5627d1e5346b1a995702e0eb8ab960d39c1a7b76a3de38035d16218b2
|
data/.github/workflows/ci.yml
CHANGED
@@ -10,19 +10,25 @@ jobs:
|
|
10
10
|
matrix:
|
11
11
|
ruby_image:
|
12
12
|
- ruby:latest
|
13
|
-
- ruby:3.
|
14
|
-
- ruby:
|
15
|
-
- ruby:2.6
|
13
|
+
- ruby:3.3
|
14
|
+
- ruby:3.4
|
16
15
|
bundle:
|
17
16
|
- latest
|
18
|
-
- activejob-
|
19
|
-
|
20
|
-
-
|
17
|
+
- activejob-7.2
|
18
|
+
include:
|
19
|
+
- ruby_image: ruby:2.6
|
20
|
+
bundle: activejob-5.2
|
21
|
+
- ruby_image: ruby:2.6
|
22
|
+
bundle: activejob-6.1
|
23
|
+
- ruby_image: ruby:3.0
|
24
|
+
bundle: activejob-5.2
|
25
|
+
- ruby_image: ruby:3.0
|
26
|
+
bundle: activejob-6.1
|
21
27
|
container:
|
22
28
|
image: ${{ matrix.ruby_image }}
|
23
29
|
steps:
|
24
30
|
- name: Checkout code
|
25
|
-
uses: actions/checkout@
|
31
|
+
uses: actions/checkout@v4
|
26
32
|
|
27
33
|
- name: Install dependencies and run tests
|
28
34
|
run: |
|
data/Appraisals
CHANGED
@@ -1,15 +1,18 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
|
2
|
+
if RUBY_VERSION >= '3.1'
|
3
|
+
appraise 'latest' do
|
4
|
+
gem 'activejob'
|
5
|
+
end
|
6
|
+
|
7
|
+
appraise 'activejob-7.2' do
|
8
|
+
gem 'activejob', '~> 7.2.2'
|
9
|
+
end
|
3
10
|
end
|
4
11
|
|
5
12
|
appraise 'activejob-6.1' do
|
6
13
|
gem 'activejob', '~> 6.1.4'
|
7
14
|
end
|
8
15
|
|
9
|
-
appraise 'activejob-6.0' do
|
10
|
-
gem 'activejob', '~> 6.0.4'
|
11
|
-
end
|
12
|
-
|
13
16
|
appraise 'activejob-5.2' do
|
14
17
|
gem 'activejob', '~> 5.2.6'
|
15
18
|
end
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
## 0.3.0
|
2
2
|
|
3
|
-
|
4
|
-
- [Update readme example to use new config format](https://github.com/esminc/activejob-google_cloud_tasks-http/pull/14) by @jaredlt
|
3
|
+
Now the default Google::Cloud::Tasks client uses its default API version. Fixed #15.
|
5
4
|
|
6
5
|
## 0.2.0
|
7
6
|
|
data/README.md
CHANGED
@@ -28,8 +28,8 @@ Configure an adapter instance and pass it to Active Job:
|
|
28
28
|
Rails.application.config.active_job.queue_adapter = ActiveJob::GoogleCloudTasks::HTTP::Adapter.new(
|
29
29
|
project: 'a-gcp-project-name',
|
30
30
|
location: 'asia-northeast1',
|
31
|
-
url: 'https://
|
32
|
-
client: Google::Cloud::Tasks.cloud_tasks
|
31
|
+
url: 'https://hibariya.org/',
|
32
|
+
client: Google::Cloud::Tasks.cloud_tasks, # optional
|
33
33
|
task_options: { # optional
|
34
34
|
oidc_token: {
|
35
35
|
service_account_email: 'cloudrun-invoker@a-gcp-project-name.iam.gserviceaccount.com'
|
@@ -75,7 +75,7 @@ unless ARGV.include?("assets:precompile") # prevents running on assets:precompil
|
|
75
75
|
project: 'my-project',
|
76
76
|
location: 'europe-west2',
|
77
77
|
url: 'https://www.example.com/jobs',
|
78
|
-
client: Google::Cloud::Tasks.cloud_tasks
|
78
|
+
client: Google::Cloud::Tasks.cloud_tasks { |config|
|
79
79
|
# this will cause an error if the environment variable does not exist
|
80
80
|
config.credentials = JSON.parse(ENV["GOOGLE_CLOUD_PRODUCTION_KEYFILE"])
|
81
81
|
}
|
@@ -23,6 +23,8 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
24
|
spec.require_paths = ["lib"]
|
25
25
|
|
26
|
+
spec.required_ruby_version = '>= 2.6.0'
|
27
|
+
|
26
28
|
spec.add_runtime_dependency "activejob"
|
27
29
|
spec.add_runtime_dependency "google-cloud-tasks", ">= 2.0.0"
|
28
30
|
spec.add_runtime_dependency "rack"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activejob-google_cloud_tasks-http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hibariya
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activejob
|
@@ -133,7 +133,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
133
133
|
requirements:
|
134
134
|
- - ">="
|
135
135
|
- !ruby/object:Gem::Version
|
136
|
-
version:
|
136
|
+
version: 2.6.0
|
137
137
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
138
|
requirements:
|
139
139
|
- - ">="
|