fastly_nsq 1.9.2 → 1.9.3

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
  SHA256:
3
- metadata.gz: ca060587087e695989444352447b2505623dad9d722487334c3019fc03107a7d
4
- data.tar.gz: 8f87c405ec287f13939aac6360db66e78ba53bd9d493497c809b2e541246343b
3
+ metadata.gz: 60a5dae5d0ca5d80aae1aff914ea705b6d3303c957ea4380de1d2038d82f9283
4
+ data.tar.gz: ce70c136e7a4d192a077b5b8daf9a62bcb95ee8640e057dd796034b5386b774a
5
5
  SHA512:
6
- metadata.gz: 30cd72127ecbf38f388d65a981c3806e109d86b59feb9767aad665447d665ea6120ef7d70580b0d6b8d2c4a9e15bf33d8536e0419cdab69d1f164ccd01349c27
7
- data.tar.gz: 00bb4653e5b051a9c53f44100567e54bbce360aedb9eab9596ef8ec7e34ac80e0f25f2cbc78b9cfaa3cee39bf82a5a2876e87a011287d62be37908677fbd69b9
6
+ metadata.gz: d7db6c545ae860e6faf892a6b8f172d02fae61b0c1257a61270bfe3acbb2e3d4c6c19f994b1fdf61db5ade5e38f90d9112afb381302b36b948ff693aa3a8ae0a
7
+ data.tar.gz: a3046c80c90a7f989b3f34e403c383938de9f1c019bfde537354a5d47b8017604008e42311740d0a94bd841df01d6af4ecc184c09d6a0094af29142a9a5cfa7b
data/ChangeLog.md CHANGED
@@ -1,12 +1,25 @@
1
1
  # Change Log
2
- The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) as of [Version 1.9.1](#v1.9.1)
3
- and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
4
2
 
5
- ## [Unreleased]
3
+ ## [v1.9.3](https://github.com/fastly/fastly_nsq/tree/v1.9.3) (2018-07-13)
4
+ [Full Changelog](https://github.com/fastly/fastly_nsq/compare/v1.9.2...v1.9.3)
6
5
 
7
- ## [v1.9.1](https://rubygems.org/gems/fastly_nsq/versions/1.9.1) (2018-06-06)
8
- ### Removed
9
- - Removed `pry` as an undocumented requirement for `bin/fastly_nsq`
6
+ **Merged pull requests:**
7
+
8
+ - add connected? to consumer testing [\#84](https://github.com/fastly/fastly_nsq/pull/84) ([leklund](https://github.com/leklund))
9
+
10
+ ## [v1.9.2](https://github.com/fastly/fastly_nsq/tree/v1.9.2) (2018-07-09)
11
+ [Full Changelog](https://github.com/fastly/fastly_nsq/compare/v1.9.1...v1.9.2)
12
+
13
+ **Merged pull requests:**
14
+
15
+ - implement pop and pop\_without\_blocking for test mode [\#83](https://github.com/fastly/fastly_nsq/pull/83) ([leklund](https://github.com/leklund))
16
+
17
+ ## [v1.9.1](https://github.com/fastly/fastly_nsq/tree/v1.9.1) (2018-06-06)
18
+ [Full Changelog](https://github.com/fastly/fastly_nsq/compare/v1.9.0...v1.9.1)
19
+
20
+ **Merged pull requests:**
21
+
22
+ - require pry only if pry is available already [\#82](https://github.com/fastly/fastly_nsq/pull/82) ([alieander](https://github.com/alieander))
10
23
 
11
24
  ## [v1.9.0](https://github.com/fastly/fastly_nsq/tree/v1.9.0) (2018-06-04)
12
25
  [Full Changelog](https://github.com/fastly/fastly_nsq/compare/v1.8.0...v1.9.0)
@@ -360,4 +373,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
360
373
  ## [v0.0.1](https://github.com/fastly/fastly_nsq/tree/v0.0.1) (2016-01-30)
361
374
 
362
375
 
363
- \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
376
+ \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
@@ -271,6 +271,13 @@ module FastlyNsq
271
271
  FastlyNsq::Testing.enabled? || super
272
272
  end
273
273
 
274
+ def connected?
275
+ return super unless FastlyNsq::Testing.enabled?
276
+ @connected = true if @connected.nil?
277
+
278
+ @connected
279
+ end
280
+
274
281
  def empty?
275
282
  FastlyNsq::Testing.enabled? ? messages.empty? : super
276
283
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FastlyNsq
4
- VERSION = '1.9.2'
4
+ VERSION = '1.9.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastly_nsq
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.2
4
+ version: 1.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tommy O'Neil
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2018-07-09 00:00:00.000000000 Z
16
+ date: 2018-07-13 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: awesome_print