activejob-google_cloud_pubsub 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/activejob-google_cloud_pubsub.gemspec +1 -1
- data/exe/activejob-google_cloud_pubsub-worker +0 -1
- data/lib/activejob-google_cloud_pubsub.rb +8 -9
- data/lib/{active_job/google_cloud_pubsub → activejob-google_cloud_pubsub}/adapter.rb +1 -1
- data/lib/{active_job/google_cloud_pubsub → activejob-google_cloud_pubsub}/pubsub_extension.rb +0 -0
- data/lib/{active_job/google_cloud_pubsub → activejob-google_cloud_pubsub}/version.rb +1 -1
- data/lib/{active_job/google_cloud_pubsub → activejob-google_cloud_pubsub}/worker.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4cd2666c082bf65b5b43a727217f8eafaf97ad54
|
4
|
+
data.tar.gz: 63c2c8bf57004c1316d6b74afe0c067a6a7c7f9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c05fd361f9da5456c4a5dfc0efd75cd40b18d4bd2af9c15980c4d7aaec96dd6cc695680b01b29d350fefaf174d8264226080c3adfe7314ed0c282c4e27b7ccd4
|
7
|
+
data.tar.gz: 04643c9cdbc51a4ea8d371f062d4d5f2d5dc5728f0e238ac650267d2e2411ea73bc030115ca92dc93c1772830ae070eaa5ca774a5f8fde5cc202e964164608da
|
data/README.md
CHANGED
@@ -61,7 +61,7 @@ If you hit the previous action, the job will be executed.
|
|
61
61
|
When passing options to the adapter, you need to create the object instead of a symbol.
|
62
62
|
|
63
63
|
``` ruby
|
64
|
-
Rails.application.config.active_job.queue_adapter = ActiveJob::
|
64
|
+
Rails.application.config.active_job.queue_adapter = ActiveJob::GoogleCloudPubsub::Adapter.new(
|
65
65
|
pubsub: Google::Cloud::Pubsub.new(
|
66
66
|
project: 'MY-PROJECT-ID',
|
67
67
|
keyfile: 'path/to/keyfile.json'
|
@@ -69,7 +69,7 @@ Rails.application.config.active_job.queue_adapter = ActiveJob::QueueAdapters::Go
|
|
69
69
|
)
|
70
70
|
```
|
71
71
|
|
72
|
-
Please see [`Google::Cloud::Pubsub.new`](http://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-pubsub/
|
72
|
+
Please see [`Google::Cloud::Pubsub.new`](http://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-pubsub/latest/google/cloud/pubsub?method=new-class) for details.
|
73
73
|
|
74
74
|
### Worker
|
75
75
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
lib = File.expand_path('../lib', __FILE__)
|
2
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require '
|
3
|
+
require 'activejob-google_cloud_pubsub/version'
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'activejob-google_cloud_pubsub'
|
@@ -1,13 +1,12 @@
|
|
1
|
-
require 'active_job'
|
2
|
-
require 'google/cloud/pubsub'
|
3
|
-
|
4
1
|
module ActiveJob
|
5
2
|
module GoogleCloudPubsub
|
6
|
-
autoload :
|
7
|
-
autoload :
|
8
|
-
|
9
|
-
|
10
|
-
module QueueAdapters
|
11
|
-
autoload :GoogleCloudPubsubAdapter, 'active_job/google_cloud_pubsub/adapter'
|
3
|
+
autoload :Adapter, 'activejob-google_cloud_pubsub/adapter'
|
4
|
+
autoload :VERSION, 'activejob-google_cloud_pubsub/version'
|
5
|
+
autoload :Worker, 'activejob-google_cloud_pubsub/worker'
|
12
6
|
end
|
13
7
|
end
|
8
|
+
|
9
|
+
require 'active_job'
|
10
|
+
require 'google/cloud/pubsub'
|
11
|
+
|
12
|
+
ActiveJob::QueueAdapters.autoload :GoogleCloudPubsubAdapter, 'activejob-google_cloud_pubsub/adapter'
|
data/lib/{active_job/google_cloud_pubsub → activejob-google_cloud_pubsub}/pubsub_extension.rb
RENAMED
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activejob-google_cloud_pubsub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Keita Urashima
|
@@ -127,11 +127,11 @@ files:
|
|
127
127
|
- bin/console
|
128
128
|
- bin/setup
|
129
129
|
- exe/activejob-google_cloud_pubsub-worker
|
130
|
-
- lib/active_job/google_cloud_pubsub/adapter.rb
|
131
|
-
- lib/active_job/google_cloud_pubsub/pubsub_extension.rb
|
132
|
-
- lib/active_job/google_cloud_pubsub/version.rb
|
133
|
-
- lib/active_job/google_cloud_pubsub/worker.rb
|
134
130
|
- lib/activejob-google_cloud_pubsub.rb
|
131
|
+
- lib/activejob-google_cloud_pubsub/adapter.rb
|
132
|
+
- lib/activejob-google_cloud_pubsub/pubsub_extension.rb
|
133
|
+
- lib/activejob-google_cloud_pubsub/version.rb
|
134
|
+
- lib/activejob-google_cloud_pubsub/worker.rb
|
135
135
|
homepage: https://github.com/ursm/activejob-google_cloud_pubsub
|
136
136
|
licenses:
|
137
137
|
- MIT
|