pubsub_client 1.3.0 → 1.4.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: a8c6a6eb0e136b4bb41d2a66b41f456ef0a86d7aa8668f22dfb8ea5092d54585
4
- data.tar.gz: f9400d0ff957f6f6e1e54cc76478cf9a1e186d0ea5410fd6e5335d192f163427
3
+ metadata.gz: fcd27cf1ed4e02b4b8bae0e9b2f5227d970f158196b68d903cbfa2b031c2b1eb
4
+ data.tar.gz: 415e17dfb4465a44ad9ffe3aeabe8b116a8f47b79f77e3a408d67da8c44409fa
5
5
  SHA512:
6
- metadata.gz: 161710fca1c0efab48a708e6b61a3b619528b6f024eb4ae1b2fa063e484d0975400acb9b3cc300d032142cf535e5e5648aa3a7d64c8ba6557aabe75912231ed4
7
- data.tar.gz: dbe4e34c082e49c4ac1843e733ff51fb848cc256e1242a074d9ce7367f0279613397c28bcad9fdea46b519d722841484bfd4ea2402c5f447c0eff8a8296125e2
6
+ metadata.gz: bacbf023017f2ba125de0be70c2040e697c5c7927f24569f6e5af043d78eefc0eee813af9bfaeadbd4fde3213554bbe135ef011a3343408552b69ea217aa4bac
7
+ data.tar.gz: 9a84a7a5c32ba17ea5523e3b0831935dc162d89a0cc7dcd89d1a3863951796dee63fa59639d583de72965d75e42047ca0ec275b1dde3541ae4b40d818e1e8359
@@ -1,12 +1,16 @@
1
+ Version 1.4.0 2020-10-26
2
+ ------------------------
3
+ 60b8403 Publish attributes
4
+
1
5
  Version 1.3.0 2020-10-23
2
6
  ------------------------
3
- e9e87f7 This adds the ability to subscribe to a Pub/Sub topic. Of note, we expose two additional configuration params:
4
- - `concurrency`: the number of threads the subscriber will run to process messages (defaults to 8 threads)
5
- - `auto_ack`: flag to auto ack messages (default is `true` and _will_ ack messages)
6
-
7
- These changes come with a handful of useful checks:
8
- - ensures credentials are configured prior to subscribing
9
- - raises an error if the target subscription does not exist
7
+ e9e87f7 This adds the ability to subscribe to a Pub/Sub topic. Of note, we expose two additional configuration params:
8
+ - `concurrency`: the number of threads the subscriber will run to process messages (defaults to 8 threads)
9
+ - `auto_ack`: flag to auto ack messages (default is `true` and _will_ ack messages)
10
+
11
+ These changes come with a handful of useful checks:
12
+ - ensures credentials are configured prior to subscribing
13
+ - raises an error if the target subscription does not exist
10
14
  - raises an error if attempting to subscribe to a topic that has already been subscribed to
11
15
 
12
16
  Version 1.2.0 2020-09-25
data/README.md CHANGED
@@ -81,10 +81,20 @@ end
81
81
 
82
82
  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.
83
83
 
84
- 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).
84
+ To install this gem onto your local machine, run `bundle exec rake install`.
85
85
 
86
86
  ## Contributing
87
87
 
88
+ To contribute, open a pull request against `main`. Note that once your changes have been made, you should _not_ manually modify the `version.rb` or `CHANGELOG` as these will get updated automatically as part of the release process.
89
+
90
+ To release a new version, after you have merged your changes into `main`:
91
+ 1. Run the `gem-release` script. This can be found [here](https://github.com/apartmentlist/scripts/blob/main/bin/gem-release).
92
+ ```
93
+ path/to/gem-release [major/minor/patch] "Short message with changes"
94
+ ```
95
+ Note that the `Short message with changes` is what gets reflected in the releases of the repo.
96
+ 1. 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). This step will update the `version.rb` and `CHANGELOG` files.
97
+
88
98
  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).
89
99
 
90
100
 
@@ -9,8 +9,8 @@ module PubsubClient
9
9
  @topic = topic
10
10
  end
11
11
 
12
- def publish(message, &block)
13
- topic.publish_async(message, &block)
12
+ def publish(message, attributes = {}, &block)
13
+ topic.publish_async(message, attributes, &block)
14
14
  end
15
15
 
16
16
  def flush
@@ -1,3 +1,3 @@
1
1
  module PubsubClient
2
- VERSION = '1.3.0'
2
+ VERSION = '1.4.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pubsub_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Apartment List Platforms
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-23 00:00:00.000000000 Z
11
+ date: 2020-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  - !ruby/object:Gem::Version
119
119
  version: '0'
120
120
  requirements: []
121
- rubygems_version: 3.0.8
121
+ rubygems_version: 3.1.4
122
122
  signing_key:
123
123
  specification_version: 4
124
124
  summary: Google Pub/Sub Wrapper