nsq-ruby 2.3.0 → 2.3.1

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
- SHA256:
3
- metadata.gz: 6c931ee31ebc9745dba9e2084740d6022f97b0ef280d1661cc1391910481eee9
4
- data.tar.gz: '0965ea14b66ebfa6d1ca429af3cab05f970418f5cd41241362619b1e19444a08'
2
+ SHA1:
3
+ metadata.gz: af8d77120d7905bfe73739801e6c7237984dfb9c
4
+ data.tar.gz: b9f1bdbb317de45b6e47d1923e86e1d9295a7bc1
5
5
  SHA512:
6
- metadata.gz: 67e99a8a1b6051325fd04e56bda7910eb41f46a39bf9baf9969bbfa8b04af5b9a6fc2297f707eb1ffdbb4a257a138112532639662a4e484ec47608ba93bdbcb9
7
- data.tar.gz: bec66cc5f0990f97d55551b0b786ad0043c70d0dbe14e6b728726bbbdbd551caaac012adc5bf3d699113c3f11e9e9885ca579be41c9d7bcc205d7326f90d68ec
6
+ metadata.gz: 515ad2a7d29426b69e0cd4c6c0388140c0d5a75d4ea9bbb7879d34185cd8fbd0356bec49e2b6e63f6c785aae302ecc5623ca8d4b50b39704394dcaff62cdae80
7
+ data.tar.gz: 3ede61bb31257542fb6ed7ce16dab944d94ebfe45b1b16d5e3cc6e09ceb01984181fef53ffacdf9052263ee5e1790cb61ca92ef0026fb710bae27837c78fdb62
data/README.md CHANGED
@@ -177,6 +177,14 @@ reconnect.
177
177
  This is automatically called `at_exit`, but it's good practice to close your
178
178
  producers when you're done with them.
179
179
 
180
+ **Note:** This terminates the connection to NSQ immediately. If you're writing
181
+ messages faster than they can be sent to NSQ, you may have messages in the
182
+ producer's internal queue. Calling `#terminate` before they're sent will cause
183
+ these messages to be lost. After you write your last message, consider sleeping
184
+ for a second before you call `#terminate`.
185
+
186
+
187
+
180
188
 
181
189
  ## Consumer
182
190
 
@@ -391,7 +399,7 @@ millions of messages a day.
391
399
 
392
400
  ## MIT License
393
401
 
394
- Copyright (C) 2016 Wistia, Inc.
402
+ Copyright (C) 2018 Wistia, Inc.
395
403
 
396
404
  Permission is hereby granted, free of charge, to any person obtaining a copy of
397
405
  this software and associated documentation files (the "Software"), to deal in
@@ -9,7 +9,7 @@ module Nsq
9
9
 
10
10
  def initialize(data, connection)
11
11
  super
12
- @timestamp_in_nanoseconds, @attempts, @id, @body = @data.unpack('Q>s>a16a*')
12
+ @timestamp_in_nanoseconds, @attempts, @id, @body = @data.unpack('Q>S>a16a*')
13
13
  @body.force_encoding('UTF-8')
14
14
  end
15
15
 
@@ -2,7 +2,7 @@ module Nsq
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 3
5
- PATCH = 0
5
+ PATCH = 1
6
6
  BUILD = nil
7
7
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nsq-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wistia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-01 00:00:00.000000000 Z
11
+ date: 2018-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  version: '0'
110
110
  requirements: []
111
111
  rubyforge_project:
112
- rubygems_version: 2.7.6
112
+ rubygems_version: 2.6.8
113
113
  signing_key:
114
114
  specification_version: 4
115
115
  summary: Ruby client library for NSQ