delivery_boy 1.2.0 → 1.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 68b4c9faf508180a345d2b9009b4ba48ba7892e71cb7c652931111a7fb35733d
4
- data.tar.gz: 598ce8b8497f179daf5608fb16ae7f33c2c7fbd9bbe704f251f425c4f919d970
3
+ metadata.gz: e863dcfb898dcf7fe8dd0c612a62ebf2500973f3bb27a44995b97da2c654a22f
4
+ data.tar.gz: 4066557f80b51864858c92379d7db945734f32b001a0ba8dc153b8f5a637b54a
5
5
  SHA512:
6
- metadata.gz: d0502bffd4dd32445d92fc6f3899e6d1c1bd450ee93402202d0a0cb069be3f824c6dfb650c4d649fbc7ba79b616898e3ea4a9fe945df89fd495450d5b507b77b
7
- data.tar.gz: 2156cc7f694f9b8e20683699bf12357504774e8e74b66dfe140ba8b692d322de55ab7bbdffa437705dff0e2a49fd6dcff7b2c3d44d2d2935ee2bc72696f85754
6
+ metadata.gz: 600f533b94ff8268e5d5dea5a02b63e3642646837b3d0ec97a1b77ae28c9e9ec7dd1e7b6bb71410762f47c1da567e1a2004c0bc1b1af2a4ca0d67db847843213
7
+ data.tar.gz: 48838d583b5b6e0636b1d92262a22279627ba60a027c86615ec4dfae5d9df15f8de92243c026beaefb2506b6ab4cc49623b3eb5363cac186bf5788c308d32192
@@ -22,7 +22,7 @@ jobs:
22
22
  runs-on: ubuntu-latest
23
23
  strategy:
24
24
  matrix:
25
- ruby-version: ['2.6', '2.7', '3.0', '3.1', '3.2']
25
+ ruby-version: ['2.6', '2.7', '3.0', '3.1', '3.2', '3.3', '3.4']
26
26
 
27
27
  steps:
28
28
  - name: Run Confluent Platform (Confluent Server)
@@ -30,10 +30,10 @@ jobs:
30
30
  with:
31
31
  service: broker
32
32
 
33
- - uses: zendesk/checkout@v3
33
+ - uses: actions/checkout@v4
34
34
 
35
35
  - name: Set up Ruby
36
- uses: zendesk/setup-ruby@v1
36
+ uses: ruby/setup-ruby@v1
37
37
  with:
38
38
  ruby-version: ${{ matrix.ruby-version }}
39
39
  bundler-cache: true # runs 'bundle install' and caches installed gems automatically
@@ -1,12 +1,26 @@
1
- name: Publish Gem
1
+ name: Publish to RubyGems.org
2
2
 
3
3
  on:
4
4
  push:
5
- tags: v*
5
+ branches: main
6
+ paths: lib/delivery_boy/version.rb
7
+ workflow_dispatch:
6
8
 
7
9
  jobs:
8
- call-workflow:
9
- uses: zendesk/gw/.github/workflows/ruby-gem-publication.yml@main
10
- secrets:
11
- RUBY_GEMS_API_KEY: ${{ secrets.RUBY_GEMS_API_KEY }}
12
- RUBY_GEMS_TOTP_DEVICE: ${{ secrets.RUBY_GEMS_TOTP_DEVICE }}
10
+ publish:
11
+ runs-on: ubuntu-latest
12
+ environment: rubygems-publish
13
+ if: github.repository_owner == 'zendesk'
14
+ permissions:
15
+ id-token: write
16
+ contents: write
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ - name: Set up Ruby
20
+ uses: ruby/setup-ruby@v1
21
+ with:
22
+ bundler-cache: false
23
+ ruby-version: "3.4"
24
+ - name: Install dependencies
25
+ run: bundle install
26
+ - uses: rubygems/release-gem@v1
data/CHANGELOG CHANGED
@@ -2,9 +2,15 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## v1.3.0
6
+
7
+ * Remove the `DeliveryBoy::Instance` instance when calling
8
+ `DeliveryBoy.shutdown`. (#82)
9
+ * Test with Ruby 3.3 & 3.4.
10
+
5
11
  ## v1.2.0
6
12
 
7
- * Test with Ruby 3.1 & 3.2
13
+ * Test with Ruby 3.1 & 3.2.
8
14
  * Add config support for AWS MSK IAM auth (#66)
9
15
 
10
16
  ## v1.1.0
data/Gemfile CHANGED
@@ -1,6 +1,8 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
-
5
- # Specify your gem's dependencies in delivery_boy.gemspec
6
3
  gemspec
4
+
5
+ gem "base64"
6
+ gem "bigdecimal"
7
+ gem "rake", "~> 13.0"
8
+ gem "rspec", "~> 3.0"
data/README.md CHANGED
@@ -70,7 +70,7 @@ A third method is to produce messages first (without delivering the messages to
70
70
  event = {
71
71
  name: "comment_created",
72
72
  data: {
73
- comment_id: @comment.id
73
+ comment_id: @comment.id,
74
74
  user_id: current_user.id
75
75
  }
76
76
  }
@@ -267,6 +267,7 @@ DeliveryBoy.configure do |config|
267
267
  config.ssl_ca_certs_from_system = true
268
268
  end
269
269
  ```
270
+
270
271
  #### AWS MSK IAM Authentication and Authorization
271
272
 
272
273
  ##### sasl_aws_msk_iam_access_key_id
@@ -352,6 +353,20 @@ Since DeliveryBoy is just an opinionated API on top of ruby-kafka, you can use a
352
353
 
353
354
  Bug reports and pull requests are welcome on [GitHub](https://github.com/zendesk/delivery_boy). Feel free to [join our Slack team](https://ruby-kafka-slack.herokuapp.com/) and ask how best to contribute!
354
355
 
356
+ ### Releasing a new version
357
+ A new version is published to RubyGems.org every time a change to `version.rb` is pushed to the `main` branch.
358
+ In short, follow these steps:
359
+ 1. Update `version.rb`,
360
+ 2. merge this change into `main`, and
361
+ 3. look at [the action](https://github.com/zendesk/delivery_boy/actions/workflows/publish.yml) for output.
362
+
363
+ To create a pre-release from a non-main branch:
364
+ 1. change the version in `version.rb` to something like `1.2.0.pre.1` or `2.0.0.beta.2`,
365
+ 2. push this change to your branch,
366
+ 3. go to [Actions → “Publish to RubyGems.org” on GitHub](https://github.com/zendesk/delivery_boy/actions/workflows/publish.yml),
367
+ 4. click the “Run workflow” button,
368
+ 5. pick your branch from a dropdown.
369
+
355
370
  ## Support and Discussion
356
371
 
357
372
  If you've discovered a bug, please file a [Github issue](https://github.com/zendesk/delivery_boy/issues/new), and make sure to include all the relevant information, including the version of DeliveryBoy, ruby-kafka, and Kafka that you're using.
data/Rakefile CHANGED
@@ -1,3 +1,4 @@
1
+ require "bundler/setup"
1
2
  require "bundler/gem_tasks"
2
3
  require "rspec/core/rake_task"
3
4
 
data/delivery_boy.gemspec CHANGED
@@ -20,9 +20,6 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.require_paths = ["lib"]
22
22
 
23
- spec.add_runtime_dependency "ruby-kafka", "~> 1.5"
24
- spec.add_runtime_dependency "king_konf", "~> 1.0"
25
-
26
- spec.add_development_dependency "rake", "~> 13.0"
27
- spec.add_development_dependency "rspec", "~> 3.0"
23
+ spec.add_dependency "ruby-kafka", "~> 1.5"
24
+ spec.add_dependency "king_konf", "~> 1.0"
28
25
  end
@@ -1,3 +1,3 @@
1
1
  module DeliveryBoy
2
- VERSION = "1.2.0"
2
+ VERSION = "1.3.0"
3
3
  end
data/lib/delivery_boy.rb CHANGED
@@ -98,6 +98,7 @@ module DeliveryBoy
98
98
  # @return [nil]
99
99
  def shutdown
100
100
  instance.shutdown
101
+ @instance = nil
101
102
  end
102
103
 
103
104
  # The logger used by DeliveryBoy.
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delivery_boy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Schierbeck
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-01-19 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: ruby-kafka
@@ -38,34 +37,6 @@ dependencies:
38
37
  - - "~>"
39
38
  - !ruby/object:Gem::Version
40
39
  version: '1.0'
41
- - !ruby/object:Gem::Dependency
42
- name: rake
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '13.0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '13.0'
55
- - !ruby/object:Gem::Dependency
56
- name: rspec
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '3.0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '3.0'
69
40
  description: A simple way to produce messages to Kafka from Ruby applications
70
41
  email:
71
42
  - daniel.schierbeck@gmail.com
@@ -102,7 +73,6 @@ homepage: https://github.com/zendesk/delivery_boy
102
73
  licenses:
103
74
  - Apache License Version 2.0
104
75
  metadata: {}
105
- post_install_message:
106
76
  rdoc_options: []
107
77
  require_paths:
108
78
  - lib
@@ -117,8 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
87
  - !ruby/object:Gem::Version
118
88
  version: '0'
119
89
  requirements: []
120
- rubygems_version: 3.5.3
121
- signing_key:
90
+ rubygems_version: 3.6.7
122
91
  specification_version: 4
123
92
  summary: A simple way to produce messages to Kafka from Ruby applications
124
93
  test_files: []