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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c7e0c78787b37b8180943e0f4a6c4ea393a00bae
4
- data.tar.gz: 651b28c7e58141252a34b9be2d550dbdd26fc1bc
3
+ metadata.gz: 4cd2666c082bf65b5b43a727217f8eafaf97ad54
4
+ data.tar.gz: 63c2c8bf57004c1316d6b74afe0c067a6a7c7f9e
5
5
  SHA512:
6
- metadata.gz: cf2214ee8c25208dbfb4e2f03dea18550a010571bd321ae14421c4e3f5314dbc9aa5cc6c54fead51ce9febd371234a8e060cea07eb913596edc060f4969c3ff2
7
- data.tar.gz: 7dbd633493e0f635bb29b07da2c8a35f941d80301194cb109e61189dd49ca05b9d68ce51f880497f22b1ae0ed3b709aa45508832691fa9a01a1c7b0a279212ed
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::QueueAdapters::GoogleCloudPubsubAdapter.new(
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/v0.23.2/google/cloud/pubsub?method=new-class) for details.
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 'active_job/google_cloud_pubsub/version'
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,7 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'activejob-google_cloud_pubsub'
4
- require 'google/cloud/pubsub'
5
4
  require 'optparse/kwargs'
6
5
 
7
6
  Version = ActiveJob::GoogleCloudPubsub::VERSION
@@ -1,13 +1,12 @@
1
- require 'active_job'
2
- require 'google/cloud/pubsub'
3
-
4
1
  module ActiveJob
5
2
  module GoogleCloudPubsub
6
- autoload :VERSION, 'active_job/google_cloud_pubsub/version'
7
- autoload :Worker, 'active_job/google_cloud_pubsub/worker'
8
- end
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'
@@ -1,4 +1,4 @@
1
- require 'active_job/google_cloud_pubsub/pubsub_extension'
1
+ require 'activejob-google_cloud_pubsub/pubsub_extension'
2
2
  require 'google/cloud/pubsub'
3
3
  require 'json'
4
4
 
@@ -1,5 +1,5 @@
1
1
  module ActiveJob
2
2
  module GoogleCloudPubsub
3
- VERSION = '0.2.0'
3
+ VERSION = '0.3.0'
4
4
  end
5
5
  end
@@ -1,6 +1,6 @@
1
1
  require 'active_job/base'
2
- require 'active_job/google_cloud_pubsub/pubsub_extension'
3
2
  require 'active_support/core_ext/numeric/time'
3
+ require 'activejob-google_cloud_pubsub/pubsub_extension'
4
4
  require 'concurrent'
5
5
  require 'google/cloud/pubsub'
6
6
  require 'json'
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.2.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