nsq-ruby 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nsq/producer.rb +3 -0
  3. data/lib/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d180f4522d2a62a998941655bc29879c6e894654
4
- data.tar.gz: 7022613a3a9eeac5f11252d21b4e8dde1f605fda
3
+ metadata.gz: b35d1cfb3f84900faa925a11816c604c2d36d6cc
4
+ data.tar.gz: 0158497d7aaaa82cd5488589fb97b4361831eccd
5
5
  SHA512:
6
- metadata.gz: b33960a85c7bbe508b661ec87a415a27e3e276ac0a595a8fa2a82e4285fec62048060624991144a45794c2b9b8d09f3f1119740a9cc4b6b9ab75ccdf7b1a6f3e
7
- data.tar.gz: 92c5a53bf14f5ab965b0973f70e2b7cf696e08e87e6b484349608420afb0c9b2abd40f2059168f2c63d8a5b35ee8ec6984663a176e9175012f250ccdd8057e19
6
+ metadata.gz: 7ee7047f73fd426b3825f814cace21c87cc04997975cf20c67a9e7f1b4680dd1d2b41632ca0d40c6d9086e4accb4b4a83acf43d7277166f904118be54e9d2dba
7
+ data.tar.gz: 4067ac682d665fb700b8e6918ce7c4a8656b1376dfd12bb3ecb1f1845f2731f4a0de8776b6421fded2ca65c9f567410074baacbc3670daae74c490d0d6fc2e12
@@ -39,6 +39,9 @@ module Nsq
39
39
 
40
40
 
41
41
  def write_to_topic(topic, *raw_messages)
42
+ # return error if message(s) not provided
43
+ raise ArgumentError, 'message not provided' if raw_messages.empty?
44
+
42
45
  # stringify the messages
43
46
  messages = raw_messages.map(&:to_s)
44
47
 
@@ -1,7 +1,7 @@
1
1
  module Nsq
2
2
  module Version
3
3
  MAJOR = 1
4
- MINOR = 3
4
+ MINOR = 4
5
5
  PATCH = 0
6
6
  BUILD = nil
7
7
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
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: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wistia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-01 00:00:00.000000000 Z
11
+ date: 2015-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler