kafka_session 0.4.1 → 0.5.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
  SHA1:
3
- metadata.gz: 7ac9dc2e8f70c6e0c7d927e9c5d8eeda09c0bcb5
4
- data.tar.gz: 77b5b3f48b74a15a8e6cf218e3148f9b9f75d114
3
+ metadata.gz: a2ffb7637489dde2187ee7774ad0dd41651de101
4
+ data.tar.gz: 4934da9691ac4a2387df9e3e7a12bc253c17a49c
5
5
  SHA512:
6
- metadata.gz: 2c932ba5192ba52f18479a10b57caecf0e3ed0b9f24baa667c2b9b08915593b5f76066a74306f82b201a846c379126a81f4aeec0fc7c5d5949e4a108665ef877
7
- data.tar.gz: 7961f8b33bb9b525f04c7d3e898abc63b6e6da5114a442f7eb8d5d2124f197e42c0fcb25dfbb06dbfabc605572d84252d5e897f88abcc56db6c5a1c532ea6d9f
6
+ metadata.gz: 5134030bccff1099ade284473c3db0b63d8ffb55baef81b53e6b7ebeaf978b6e3c16dc8d30c7a02c396625294964c9e6ba055aef5000ec3e09b5a6b2e9418cda
7
+ data.tar.gz: 75e143a2f0478d4e1cfb56102e4bdf728b0e074f631f552190b4368534d6ea50416f8efec4afc174308e2bb1c483eb26b3c394dc01006e17b2c7ba7cabfe1a1a
@@ -22,8 +22,6 @@ Gem::Specification.new do |spec|
22
22
  spec.add_development_dependency "bundler", "~> 1.10"
23
23
  spec.add_development_dependency "rake", "~> 10.0"
24
24
  spec.add_development_dependency "rspec", "~> 3.3"
25
- spec.add_development_dependency "appraisal"
26
25
 
27
- spec.add_runtime_dependency "activesupport", "> 3.0"
28
26
  spec.add_runtime_dependency 'ruby-kafka', '~> 0.3.12'
29
27
  end
@@ -6,8 +6,6 @@ require 'kafka_session/delivered_message'
6
6
  require 'kafka_session/message'
7
7
 
8
8
  require 'securerandom'
9
- require 'active_support/time'
10
- require 'active_support/core_ext/hash'
11
9
 
12
10
  class KafkaSession
13
11
  class << self
@@ -15,7 +13,10 @@ class KafkaSession
15
13
  end
16
14
 
17
15
  def self.configure(options = {})
18
- producer_options = options.slice(:name, :brokers)
16
+ producer_options = {
17
+ name: options.fetch(:name),
18
+ brokers: options.fetch(:brokers)
19
+ }
19
20
 
20
21
  @producer = Producer.new(producer_options)
21
22
  end
@@ -33,7 +34,7 @@ class KafkaSession
33
34
  end
34
35
 
35
36
  def self.clock
36
- @clock ||= Time.public_method(:current)
37
+ @clock ||= proc { Time.now.utc }
37
38
  end
38
39
 
39
40
  def self.now
@@ -1,3 +1,3 @@
1
1
  class KafkaSession
2
- VERSION = "0.4.1"
2
+ VERSION = "0.5.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kafka_session
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Hoffman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-30 00:00:00.000000000 Z
11
+ date: 2016-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,34 +52,6 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.3'
55
- - !ruby/object:Gem::Dependency
56
- name: appraisal
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: activesupport
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">"
74
- - !ruby/object:Gem::Version
75
- version: '3.0'
76
- type: :runtime
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">"
81
- - !ruby/object:Gem::Version
82
- version: '3.0'
83
55
  - !ruby/object:Gem::Dependency
84
56
  name: ruby-kafka
85
57
  requirement: !ruby/object:Gem::Requirement
@@ -104,7 +76,6 @@ files:
104
76
  - ".gitignore"
105
77
  - ".rspec"
106
78
  - ".travis.yml"
107
- - Appraisals
108
79
  - CODE_OF_CONDUCT.md
109
80
  - Gemfile
110
81
  - LICENSE.txt
@@ -112,10 +83,6 @@ files:
112
83
  - Rakefile
113
84
  - bin/console
114
85
  - bin/setup
115
- - gemfiles/rails3.gemfile
116
- - gemfiles/rails3.gemfile.lock
117
- - gemfiles/rails4.gemfile
118
- - gemfiles/rails4.gemfile.lock
119
86
  - kafka_session.gemspec
120
87
  - lib/kafka_session.rb
121
88
  - lib/kafka_session/delivered_message.rb
@@ -143,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
110
  version: '0'
144
111
  requirements: []
145
112
  rubyforge_project:
146
- rubygems_version: 2.4.8
113
+ rubygems_version: 2.6.3
147
114
  signing_key:
148
115
  specification_version: 4
149
116
  summary: Produce & consume Kafka messages in traceable sessions.
data/Appraisals DELETED
@@ -1,7 +0,0 @@
1
- appraise 'rails3' do
2
- gem 'activesupport', '~> 3.0'
3
- end
4
-
5
- appraise 'rails4' do
6
- gem 'activesupport', '~> 4.0'
7
- end
@@ -1,11 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activesupport", "~> 3.0"
6
-
7
- group :development, :test do
8
- gem "pry-byebug"
9
- end
10
-
11
- gemspec :path => "../"
@@ -1,62 +0,0 @@
1
- PATH
2
- remote: ../
3
- specs:
4
- kafka_session (0.4.1)
5
- activesupport (> 3.0)
6
- ruby-kafka (~> 0.3.12)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- activesupport (3.2.22)
12
- i18n (~> 0.6, >= 0.6.4)
13
- multi_json (~> 1.0)
14
- appraisal (2.1.0)
15
- bundler
16
- rake
17
- thor (>= 0.14.0)
18
- byebug (8.2.1)
19
- coderay (1.1.0)
20
- diff-lcs (1.2.5)
21
- i18n (0.7.0)
22
- method_source (0.8.2)
23
- multi_json (1.11.2)
24
- pry (0.10.3)
25
- coderay (~> 1.1.0)
26
- method_source (~> 0.8.1)
27
- slop (~> 3.4)
28
- pry-byebug (3.3.0)
29
- byebug (~> 8.0)
30
- pry (~> 0.10)
31
- rake (10.4.2)
32
- rspec (3.4.0)
33
- rspec-core (~> 3.4.0)
34
- rspec-expectations (~> 3.4.0)
35
- rspec-mocks (~> 3.4.0)
36
- rspec-core (3.4.1)
37
- rspec-support (~> 3.4.0)
38
- rspec-expectations (3.4.0)
39
- diff-lcs (>= 1.2.0, < 2.0)
40
- rspec-support (~> 3.4.0)
41
- rspec-mocks (3.4.0)
42
- diff-lcs (>= 1.2.0, < 2.0)
43
- rspec-support (~> 3.4.0)
44
- rspec-support (3.4.1)
45
- ruby-kafka (0.3.14)
46
- slop (3.6.0)
47
- thor (0.19.1)
48
-
49
- PLATFORMS
50
- ruby
51
-
52
- DEPENDENCIES
53
- activesupport (~> 3.0)
54
- appraisal
55
- bundler (~> 1.10)
56
- kafka_session!
57
- pry-byebug
58
- rake (~> 10.0)
59
- rspec (~> 3.3)
60
-
61
- BUNDLED WITH
62
- 1.12.5
@@ -1,11 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activesupport", "~> 4.0"
6
-
7
- group :development, :test do
8
- gem "pry-byebug"
9
- end
10
-
11
- gemspec :path => "../"
@@ -1,69 +0,0 @@
1
- PATH
2
- remote: ../
3
- specs:
4
- kafka_session (0.4.1)
5
- activesupport (> 3.0)
6
- ruby-kafka (~> 0.3.12)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- activesupport (4.2.5)
12
- i18n (~> 0.7)
13
- json (~> 1.7, >= 1.7.7)
14
- minitest (~> 5.1)
15
- thread_safe (~> 0.3, >= 0.3.4)
16
- tzinfo (~> 1.1)
17
- appraisal (2.1.0)
18
- bundler
19
- rake
20
- thor (>= 0.14.0)
21
- byebug (8.2.1)
22
- coderay (1.1.0)
23
- diff-lcs (1.2.5)
24
- i18n (0.7.0)
25
- json (1.8.3)
26
- method_source (0.8.2)
27
- minitest (5.8.3)
28
- pry (0.10.3)
29
- coderay (~> 1.1.0)
30
- method_source (~> 0.8.1)
31
- slop (~> 3.4)
32
- pry-byebug (3.3.0)
33
- byebug (~> 8.0)
34
- pry (~> 0.10)
35
- rake (10.4.2)
36
- rspec (3.4.0)
37
- rspec-core (~> 3.4.0)
38
- rspec-expectations (~> 3.4.0)
39
- rspec-mocks (~> 3.4.0)
40
- rspec-core (3.4.1)
41
- rspec-support (~> 3.4.0)
42
- rspec-expectations (3.4.0)
43
- diff-lcs (>= 1.2.0, < 2.0)
44
- rspec-support (~> 3.4.0)
45
- rspec-mocks (3.4.0)
46
- diff-lcs (>= 1.2.0, < 2.0)
47
- rspec-support (~> 3.4.0)
48
- rspec-support (3.4.1)
49
- ruby-kafka (0.3.14)
50
- slop (3.6.0)
51
- thor (0.19.1)
52
- thread_safe (0.3.5)
53
- tzinfo (1.2.2)
54
- thread_safe (~> 0.1)
55
-
56
- PLATFORMS
57
- ruby
58
-
59
- DEPENDENCIES
60
- activesupport (~> 4.0)
61
- appraisal
62
- bundler (~> 1.10)
63
- kafka_session!
64
- pry-byebug
65
- rake (~> 10.0)
66
- rspec (~> 3.3)
67
-
68
- BUNDLED WITH
69
- 1.12.5