pubsub_client 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 2508e7f65206f72e0092d048d71416a77bf1391fcda8a13e43fbd50c2a4ae561
4
+ data.tar.gz: 7d1f9e9b1e0f9e6af43d732da015a08cb04cc7983237fd6ed4e5a24cd94f58c9
5
+ SHA512:
6
+ metadata.gz: 016b31843467a3de64bf9331650ce2ca371fd11c3ebe19e6c2b99e905407ad745e793c56ec08831e20e173f45e4cc13f89eb36a07f5eae33669fc4488c2acbc0
7
+ data.tar.gz: d07b99e406fe71164285e94624b53c0355ad8c9ac9c2fd2cbc2738f38fd19a3b1baef6845053000bf20cd21aa4ca4cc723c1d1e006da4b2a9c15859aad9145bb
data/.ci ADDED
@@ -0,0 +1,133 @@
1
+ properties([
2
+ buildDiscarder(
3
+ logRotator(
4
+ artifactDaysToKeepStr: '',
5
+ artifactNumToKeepStr: '',
6
+ daysToKeepStr: '30',
7
+ numToKeepStr: '100'
8
+ )
9
+ )
10
+ ])
11
+
12
+ def k8s_label = "${UUID.randomUUID().toString()}"
13
+
14
+ pipeline {
15
+
16
+ environment {
17
+ APP_NAME = 'pubsub_client'
18
+ CLOUDSDK_CORE_DISABLE_PROMPTS = '1'
19
+ GIT_COMMIT_SHORT = sh(script: "printf \$(git rev-parse --short ${GIT_COMMIT})", returnStdout: true)
20
+ APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE = "true"
21
+ LANG = "en_US.UTF-8"
22
+ LANGUAGE = "en_US:en"
23
+ LC_ALL = "en_US.UTF-8"
24
+ }
25
+
26
+ agent {
27
+ kubernetes {
28
+ label k8s_label
29
+ defaultContainer 'jnlp'
30
+ yaml """
31
+ apiVersion: v1
32
+ kind: Pod
33
+ spec:
34
+ containers:
35
+ - name: gcc
36
+ image: gcc:9.3
37
+ command:
38
+ - "tail"
39
+ - "-f"
40
+ - "/dev/null"
41
+ imagePullPolicy: Always
42
+ resources:
43
+ requests:
44
+ memory: "512Mi"
45
+ cpu: "500m"
46
+ limits:
47
+ requests:
48
+ memory: "512Mi"
49
+ cpu: "500m"
50
+ - name: ruby25
51
+ image: gcr.io/al-development/ruby:2.5.8
52
+ imagePullPolicy: Always
53
+ resources:
54
+ requests:
55
+ memory: "2048Mi"
56
+ cpu: "2"
57
+ requests:
58
+ memory: "2048Mi"
59
+ cpu: "2"
60
+ command:
61
+ - "tail"
62
+ - "-f"
63
+ - "/dev/null"
64
+ - name: ruby26
65
+ image: gcr.io/al-development/ruby:2.6.6
66
+ imagePullPolicy: Always
67
+ resources:
68
+ requests:
69
+ memory: "2048Mi"
70
+ cpu: "2"
71
+ requests:
72
+ memory: "2048Mi"
73
+ cpu: "2"
74
+ command:
75
+ - "tail"
76
+ - "-f"
77
+ - "/dev/null"
78
+ - name: ruby27
79
+ image: gcr.io/al-development/ruby:2.7.1
80
+ imagePullPolicy: Always
81
+ resources:
82
+ requests:
83
+ memory: "2048Mi"
84
+ cpu: "2"
85
+ requests:
86
+ memory: "2048Mi"
87
+ cpu: "2"
88
+ command:
89
+ - "tail"
90
+ - "-f"
91
+ - "/dev/null"
92
+ """
93
+ }
94
+ }
95
+
96
+ options {
97
+ timestamps()
98
+ timeout(time: 15, unit: 'MINUTES')
99
+ }
100
+
101
+ stages {
102
+ stage('Unit Tests') {
103
+ parallel {
104
+ stage('PubsubClient gem ruby 2.5') {
105
+ steps {
106
+ container('ruby25') {
107
+ sh script: 'gem install bundler:2.1.4 && bundle install', label: 'install'
108
+ sh script: 'bundle exec rake', label: 'test'
109
+ } //container
110
+ } //steps
111
+ }//stage
112
+
113
+ stage('PubsubClient gem ruby 2.6') {
114
+ steps {
115
+ container('ruby26') {
116
+ sh script: 'gem install bundler:2.1.4 && bundle install', label: 'install'
117
+ sh script: 'bundle exec rake', label: 'test'
118
+ } //container
119
+ } //steps
120
+ }//stage
121
+
122
+ stage('PubsubClient gem ruby 2.7') {
123
+ steps {
124
+ container('ruby27') {
125
+ sh script: 'gem install bundler:2.1.4 && bundle install', label: 'install'
126
+ sh script: 'bundle exec rake', label: 'test'
127
+ } //container
128
+ } //steps
129
+ }//stage
130
+ } //parallel
131
+ } //stage
132
+ }
133
+ }
@@ -0,0 +1,13 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+
13
+ Gemfile.lock
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1 @@
1
+ * @apartmentlist/platforms
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at ssanchez@apartmentlist.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [https://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: https://contributor-covenant.org
74
+ [version]: https://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in pubsub_client.gemspec
4
+ gemspec
5
+
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Simon Sanchez
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,72 @@
1
+ # PubsubClient
2
+
3
+ This is a wrapper around the `google-cloud-pubsub` gem. There are times when it is useful to stub out these resources while in development or test environment. This will allow clients to do just that. Additionally, this gem also handles proper memoization of these resources even in forked and/or multi-threaded environments.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'pubsub_client'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle install
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install pubsub_client
20
+
21
+ ## Configuration
22
+
23
+ In order to use this gem, the environment variable `GOOGLE_APPLICATION_CREDENTIALS` must be set and point to the credentials JSON file. Additionally, here are configuration settings that may need to be set:
24
+ - `topic_name` (required unless stubbed) - name of the Google Cloud Pub/Sub topic to publish messages to.
25
+
26
+ If there are environments where setting up credentials is too burdensome and/or publishing messages is not desired, `PubsubClient` can be stubbed out with `PubsubClient.stub!`
27
+
28
+ E.g.
29
+
30
+ ```ruby
31
+ if test_env?
32
+ PubsubClient.stub!
33
+ else
34
+ PubsubClient.configure do |config|
35
+ config.topic_name = 'some-topic'
36
+ end
37
+ end
38
+ ```
39
+
40
+ ## Usage
41
+
42
+ To publish a message to Pub/Sub, call `PubsubClient.publish(message)`. This method takes any serializable object as an argument and yields a result object to a block. The `result` object has a method `#succeeded?` that returns `true` if the message was successfully published, otherwise `false`. In the latter case, there is a method `#error` that returns the error.
43
+
44
+ ### Example
45
+ ```ruby
46
+ PubsubClient.publish(message) do |result|
47
+ if result.succeeded?
48
+ puts 'yay!'
49
+ else
50
+ puts result.error
51
+ end
52
+ end
53
+ ```
54
+
55
+ ## Development
56
+
57
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
58
+
59
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
60
+
61
+ ## Contributing
62
+
63
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/pubsub_client. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/pubsub_client/blob/master/CODE_OF_CONDUCT.md).
64
+
65
+
66
+ ## License
67
+
68
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
69
+
70
+ ## Code of Conduct
71
+
72
+ Everyone interacting in the PubsubClient project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/pubsub_client/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,6 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'pubsub_client'
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ require 'pry'
10
+ Pry.start
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,43 @@
1
+ require 'pubsub_client/version'
2
+ require 'pubsub_client/null_publisher_factory'
3
+ require 'pubsub_client/publisher_factory'
4
+
5
+ module PubsubClient
6
+ Error = Class.new(StandardError)
7
+ CredentialsError = Class.new(Error)
8
+ ConfigurationError = Class.new(Error)
9
+
10
+ Config = Struct.new(:topic_name)
11
+
12
+ class << self
13
+ def configure(&block)
14
+ raise ConfigurationError, 'PubsubClient is already configured' if @publisher_factory
15
+
16
+ unless ENV['GOOGLE_APPLICATION_CREDENTIALS']
17
+ raise CredentialsError, 'GOOGLE_APPLICATION_CREDENTIALS must be set.'
18
+ end
19
+
20
+ config = Config.new
21
+ yield config
22
+
23
+ unless config.topic_name
24
+ raise ConfigurationError, 'The topic_name must be configured.'
25
+ end
26
+
27
+ @publisher_factory = PublisherFactory.new(config.topic_name)
28
+ end
29
+
30
+ def stub!
31
+ raise ConfigurationError, 'PubsubClient is already configured' if @publisher_factory
32
+ @publisher_factory = NullPublisherFactory.new
33
+ end
34
+
35
+ def publish(message, &block)
36
+ unless @publisher_factory
37
+ raise ConfigurationError, 'PubsubClient must be configured or stubbed'
38
+ end
39
+
40
+ @publisher_factory.build.publish(message, &block)
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module PubsubClient
4
+ # A null object to act as a publisher when clients are in dev or test
5
+ class NullPublisher
6
+ # This is required so that this publisher maintains the same contract
7
+ # as a real publisher.
8
+ NullResult = Struct.new(:error) do
9
+ def succeeded?
10
+ true
11
+ end
12
+ end
13
+
14
+ def publish(*, &block)
15
+ yield NullResult.new
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'null_publisher'
4
+
5
+ module PubsubClient
6
+ # A null object to act as a publisher factory when clients are in dev or test
7
+ class NullPublisherFactory
8
+ def build
9
+ NullPublisher.new
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'google/cloud/pubsub'
4
+
5
+ module PubsubClient
6
+ class Publisher
7
+ def initialize(topic)
8
+ @topic = topic
9
+ end
10
+
11
+ def publish(message, &block)
12
+ topic.publish_async(message, &block)
13
+ end
14
+
15
+ def flush
16
+ return unless topic.async_publisher
17
+ topic.async_publisher.stop.wait!
18
+ end
19
+
20
+ private
21
+
22
+ attr_reader :topic
23
+ end
24
+ end
@@ -0,0 +1,61 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'publisher'
4
+
5
+ module PubsubClient
6
+ # Build and memoize the Publisher, accounting for GRPC's requirements around forking.
7
+ class PublisherFactory
8
+ def initialize(topic_name)
9
+ @topic_name = topic_name
10
+ @mutex = Mutex.new
11
+ end
12
+
13
+ def build
14
+ # GRPC fails when attempting to use a connection created in a process that gets
15
+ # forked with the message
16
+ #
17
+ # "grpc cannot be used before and after forking"
18
+ #
19
+ # Also creating a new publsher incurs significant overhead as it connects to
20
+ # PubSub.
21
+ #
22
+ # To prevent incurring overhead, memoize the publisher per process.
23
+ return @publisher if @publisher_pid == current_pid
24
+
25
+ # We are in a multi-threaded world and need to be careful not to build the publisher
26
+ # in multiple threads. Lock the mutex so that only one thread can enter this block
27
+ # at a time.
28
+ mutex.synchronize do
29
+ # It's possible two threads made it to this point, but since we have a lock we
30
+ # know that one will have built the publisher before the second is able to enter.
31
+ # If we detect that case, then bail out so as to not rebuild the publisher.
32
+ unless @publisher_pid == current_pid
33
+ @publisher = build_publisher
34
+ @publisher_pid = Process.pid
35
+ end
36
+ end
37
+
38
+ @publisher
39
+ end
40
+
41
+ private
42
+
43
+ attr_reader :mutex, :topic_name
44
+
45
+ # Used for testing to simulate when a process is forked. In those cases,
46
+ # this helps us test that the `.build` method creates different publishers.
47
+ def current_pid
48
+ Process.pid
49
+ end
50
+
51
+ def build_publisher
52
+ pubsub = Google::Cloud::PubSub.new
53
+ topic = pubsub.topic(topic_name)
54
+ publisher = Publisher.new(topic)
55
+
56
+ at_exit { publisher.flush }
57
+
58
+ publisher
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,3 @@
1
+ module PubsubClient
2
+ VERSION = '0.1.0'
3
+ end
@@ -0,0 +1,30 @@
1
+ require_relative 'lib/pubsub_client/version'
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = 'pubsub_client'
5
+ spec.version = PubsubClient::VERSION
6
+ spec.authors = ['Apartment List Platforms']
7
+ spec.email = ['platforms@apartmentlist.com']
8
+
9
+ spec.summary = %q{Google Pub/Sub Wrapper}
10
+ spec.homepage = 'https://github.com/apartmentlist/pubsub_client'
11
+ spec.license = 'MIT'
12
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.5.0')
13
+
14
+ spec.metadata['homepage_uri'] = spec.homepage
15
+ spec.metadata['source_code_uri'] = spec.homepage
16
+ spec.metadata['changelog_uri'] = 'https://github.com/apartmentlist/pubsub_client/blob/main/CHANGELOG.txt'
17
+
18
+ # Specify which files should be added to the gem when it is released.
19
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
20
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
21
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
22
+ end
23
+ spec.require_paths = ['lib']
24
+
25
+ spec.add_development_dependency 'rake', '~> 13.0'
26
+ spec.add_development_dependency 'rspec', '~> 3.0'
27
+ spec.add_development_dependency 'pry', '~> 0.13.1'
28
+
29
+ spec.add_runtime_dependency 'google-cloud-pubsub', '~> 2.0'
30
+ end
metadata ADDED
@@ -0,0 +1,120 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pubsub_client
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Apartment List Platforms
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-08-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '13.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '13.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: pry
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.13.1
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.13.1
55
+ - !ruby/object:Gem::Dependency
56
+ name: google-cloud-pubsub
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2.0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2.0'
69
+ description:
70
+ email:
71
+ - platforms@apartmentlist.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".ci"
77
+ - ".gitignore"
78
+ - ".rspec"
79
+ - CODEOWNERS
80
+ - CODE_OF_CONDUCT.md
81
+ - Gemfile
82
+ - LICENSE.txt
83
+ - README.md
84
+ - Rakefile
85
+ - bin/console
86
+ - bin/setup
87
+ - lib/pubsub_client.rb
88
+ - lib/pubsub_client/null_publisher.rb
89
+ - lib/pubsub_client/null_publisher_factory.rb
90
+ - lib/pubsub_client/publisher.rb
91
+ - lib/pubsub_client/publisher_factory.rb
92
+ - lib/pubsub_client/version.rb
93
+ - pubsub_client.gemspec
94
+ homepage: https://github.com/apartmentlist/pubsub_client
95
+ licenses:
96
+ - MIT
97
+ metadata:
98
+ homepage_uri: https://github.com/apartmentlist/pubsub_client
99
+ source_code_uri: https://github.com/apartmentlist/pubsub_client
100
+ changelog_uri: https://github.com/apartmentlist/pubsub_client/blob/main/CHANGELOG.txt
101
+ post_install_message:
102
+ rdoc_options: []
103
+ require_paths:
104
+ - lib
105
+ required_ruby_version: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: 2.5.0
110
+ required_rubygems_version: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ version: '0'
115
+ requirements: []
116
+ rubygems_version: 3.0.6
117
+ signing_key:
118
+ specification_version: 4
119
+ summary: Google Pub/Sub Wrapper
120
+ test_files: []