Skip to content

Commit 5325449

Browse files
committed
Revert to ruby 2.6.6 but add concurrent-ruby
I was getting this error: zendesk/ruby-kafka#840 The heroku-kafka-demo-ruby app. also uses activesupport, which avoids this problem.
1 parent 97b47f9 commit 5325449

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

Gemfile

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# frozen_string_literal: true
22

3-
ruby "2.5.8"
3+
ruby "2.6.6"
44

55
source "https://rubygems.org"
66

77
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
88

9-
gem 'ruby-kafka'
9+
gem "concurrent-ruby"
10+
gem "ruby-kafka"
1011
gem "sinatra"
11-
gem 'puma'
12+
gem "puma"

Gemfile.lock

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4+
concurrent-ruby (1.1.6)
45
digest-crc (0.6.1)
56
rake (~> 13.0)
67
mustermann (1.1.1)
@@ -26,12 +27,13 @@ PLATFORMS
2627
ruby
2728

2829
DEPENDENCIES
30+
concurrent-ruby
2931
puma
3032
ruby-kafka
3133
sinatra
3234

3335
RUBY VERSION
34-
ruby 2.5.8p224
36+
ruby 2.6.6p146
3537

3638
BUNDLED WITH
3739
2.1.4

app.rb

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
require "bundler/setup"
44
require 'kafka'
5+
require "concurrent/map"
56
require "sinatra"
67
require 'tempfile'
78

0 commit comments

Comments
 (0)