waterdrop 1.2.0 → 1.2.1

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: bb274a2b06e82d7b5b353f3256458e0759f8fe0f4858653da4b6fbb4a775ab9a
4
- data.tar.gz: 3d467794d7750e014ab3112d76a10b63e6b7f753a6c67ab7103b7dc5667d483f
3
+ metadata.gz: 3ca8a589d1b25ca64ff4fe5e0b9b501a73aa70fe14901b6d9a5da7e6792cad89
4
+ data.tar.gz: bd75fb0f84eab0ebdc69412e72bd7132a327c545585e7ff5c04d0e3771be82dd
5
5
  SHA512:
6
- metadata.gz: 9a5fcf3b66f3c2aad3ad4ca23be899eb9da0a2040be2979bb1e6d94b924318354429f177ffa1f7984e9a52b3b8dd1dfc02bc43af416f24e3e1033c834cdee2db
7
- data.tar.gz: a27fc598e7cfbd25bae7b8f71b9ced29a043669d096751a06da6207d0c3d011836599ab52babe1b6f500f81f52efa1c436ea2a7a98ddf0c6d066977f0047a3f0
6
+ metadata.gz: c0e6501922e0e3fac96db78e8666b800fb1a8244e136c88b21f8af808803b5aaad81fb24726bb3d84eacba19a933dbde31660c94b3b0d992123cac66d032f824
7
+ data.tar.gz: f85d2617e9139e84b70b23221f92efa9f04c188da04b0077c945b0da978733aa9f9dbfc87b089c907faadb30b0931cd93bfd099914f9b258a4ab788f0cafcd8e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # WaterDrop changelog
2
2
 
3
+ ## 1.2.1
4
+ - #54 - compression_codec api sync with king-konf requirements
5
+
3
6
  ## 1.2.0
4
7
  - #45 - Allow specifying a create time for messages
5
8
  - #47 - Support SCRAM once released
data/Gemfile.lock CHANGED
@@ -1,12 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- waterdrop (1.2.0)
4
+ waterdrop (1.2.1)
5
5
  delivery_boy (~> 0.2)
6
6
  dry-configurable (~> 0.7)
7
7
  dry-monitor (~> 0.1)
8
8
  dry-validation (~> 0.11)
9
- null-logger
9
+ null-logger (~> 0.1)
10
10
 
11
11
  GEM
12
12
  remote: https://rubygems.org/
@@ -16,13 +16,13 @@ GEM
16
16
  king_konf (~> 0.1.8)
17
17
  ruby-kafka (~> 0.5.1)
18
18
  diff-lcs (1.3)
19
- docile (1.1.5)
19
+ docile (1.3.0)
20
20
  dry-configurable (0.7.0)
21
21
  concurrent-ruby (~> 1.0)
22
22
  dry-container (0.6.0)
23
23
  concurrent-ruby (~> 1.0)
24
24
  dry-configurable (~> 0.1, >= 0.1.3)
25
- dry-core (0.4.4)
25
+ dry-core (0.4.5)
26
26
  concurrent-ruby (~> 1.0)
27
27
  dry-equalizer (0.2.0)
28
28
  dry-events (0.1.0)
@@ -56,7 +56,7 @@ GEM
56
56
  inflecto (0.0.2)
57
57
  json (2.1.0)
58
58
  king_konf (0.1.10)
59
- null-logger (0.1.4)
59
+ null-logger (0.1.5)
60
60
  rouge (2.2.1)
61
61
  rspec (3.7.0)
62
62
  rspec-core (~> 3.7.0)
@@ -71,9 +71,9 @@ GEM
71
71
  diff-lcs (>= 1.2.0, < 2.0)
72
72
  rspec-support (~> 3.7.0)
73
73
  rspec-support (3.7.1)
74
- ruby-kafka (0.5.3)
75
- simplecov (0.15.1)
76
- docile (~> 1.1.0)
74
+ ruby-kafka (0.5.4)
75
+ simplecov (0.16.1)
76
+ docile (~> 1.1)
77
77
  json (>= 1.8, < 3)
78
78
  simplecov-html (~> 0.10.0)
79
79
  simplecov-html (0.10.2)
data/README.md CHANGED
@@ -100,7 +100,7 @@ Both ```SyncProducer``` and ```AsyncProducer``` accept following options:
100
100
  | Option | Required | Value type | Description |
101
101
  |-------------------- |----------|------------|---------------------------------------------------------------------|
102
102
  | ```topic``` | true | String | The Kafka topic that should be written to |
103
- | ```key``` | false | String | The key that should be set on the Kafka message |
103
+ | ```key``` | false | String | The key that should be set in the Kafka message |
104
104
  | ```partition``` | false | Integer | A specific partition number that should be written to |
105
105
  | ```partition_key``` | false | String | A string that can be used to deterministically select the partition |
106
106
  | ```create_time``` | false | Time | The timestamp that should be set on the message |
@@ -117,7 +117,7 @@ Keep in mind, that message you want to send should be either binary or stringifi
117
117
 
118
118
  First, thank you for considering contributing to WaterDrop! It's people like you that make the open source community such a great community!
119
119
 
120
- Each pull request must pass all the rspec specs and meet our quality requirements.
120
+ Each pull request must pass all the RSpec specs and meet our quality requirements.
121
121
 
122
122
  To check if everything is as it should be, we use [Coditsu](https://coditsu.io) that combines multiple linters and code analyzers for both code and documentation. Once you're done with your changes, submit a pull request.
123
123
 
data/lib/water_drop.rb CHANGED
@@ -53,7 +53,7 @@ module WaterDrop
53
53
 
54
54
  # @return [String] root path of this gem
55
55
  def gem_root
56
- Pathname.new(File.expand_path('../..', __FILE__))
56
+ Pathname.new(File.expand_path('..', __dir__))
57
57
  end
58
58
  end
59
59
  end
@@ -40,7 +40,7 @@ module WaterDrop
40
40
  required(:connect_timeout).filled { (int? | float?) & gt?(0) }
41
41
  required(:socket_timeout).filled { (int? | float?) & gt?(0) }
42
42
  required(:compression_threshold).filled(:int?, gteq?: 1)
43
- optional(:compression_codec).maybe(included_in?: %i[snappy gzip lz4])
43
+ optional(:compression_codec).maybe(included_in?: %w[snappy gzip lz4])
44
44
 
45
45
  required(:max_buffer_bytesize).filled(:int?, gt?: 0)
46
46
  required(:max_buffer_size).filled(:int?, gt?: 0)
@@ -3,5 +3,5 @@
3
3
  # WaterDrop library
4
4
  module WaterDrop
5
5
  # Current WaterDrop version
6
- VERSION = '1.2.0'
6
+ VERSION = '1.2.1'
7
7
  end
data/waterdrop.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- lib = File.expand_path('../lib', __FILE__)
3
+ lib = File.expand_path('lib', __dir__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  require 'water_drop/version'
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.add_dependency 'dry-configurable', '~> 0.7'
21
21
  spec.add_dependency 'dry-monitor', '~> 0.1'
22
22
  spec.add_dependency 'dry-validation', '~> 0.11'
23
- spec.add_dependency 'null-logger'
23
+ spec.add_dependency 'null-logger', '~> 0.1'
24
24
 
25
25
  spec.required_ruby_version = '>= 2.2.0'
26
26
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: waterdrop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Mensfeld
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-02 00:00:00.000000000 Z
11
+ date: 2018-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: delivery_boy
@@ -70,16 +70,16 @@ dependencies:
70
70
  name: null-logger
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: '0.1'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: '0.1'
83
83
  description: Kafka messaging made easy!
84
84
  email:
85
85
  - maciej@mensfeld.pl