Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.1.0 - Ruby 3 Compatibility - Update aws-sdk from v2 to aws-sdk-kinesis #6

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/run_tests_CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
ruby-version: 3.0.1
bundler-cache: true
- name: Run tests
run: bundle exec rspec
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 1.1.0

* Ruby 3 compatibility
- Update aws-sdk to v3 and only install service specific aws-sdk-kinesis

# 1.0.1

* Made compatible down to Ruby 2.0.0
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:2.7-slim
FROM ruby:3.1-slim

WORKDIR /app

Expand Down
4 changes: 2 additions & 2 deletions lib/zoo_stream/kinesis_publisher.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'aws-sdk'
require 'aws-sdk-kinesis'

module ZooStream
class KinesisPublisher
Expand All @@ -11,7 +11,7 @@ def initialize(stream_name: ENV.fetch("ZOO_STREAM_KINESIS_STREAM_NAME"), client:

def publish(event, shard_by: nil)
raise ArgumentError, "Must specify shard_by" unless shard_by

client.put_record(
stream_name: stream_name,
partition_key: shard_by,
Expand Down
2 changes: 1 addition & 1 deletion lib/zoo_stream/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module ZooStream
VERSION = "1.0.1"
VERSION = "1.1.0"
end
2 changes: 1 addition & 1 deletion zoo_stream.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

spec.add_dependency 'aws-sdk'
spec.add_dependency 'aws-sdk-kinesis', '~> 1'

spec.add_development_dependency 'bundler', '~> 2.2'
spec.add_development_dependency 'rake'
Expand Down