redis-stream-wrapper 0.1.0 → 0.1.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
2
  SHA256:
3
- metadata.gz: 76f7a53b66edd7d923694e3942294ee7e1785bf9a9ccac6da8076375b814a6e1
4
- data.tar.gz: ad3e4e42a2a030074903f652cacdd68fd4b5517e4cf9199dd78b76521e1f9b3d
3
+ metadata.gz: 856ee141c6da05fb051ba1b24ab5865254b3e92408c91aa200d9a53207fb39c4
4
+ data.tar.gz: 97e7394a96d1105f252bcfbddd9368c4e720725239f3e78ee2e8545b3fc8d732
5
5
  SHA512:
6
- metadata.gz: 24b771cb1dfe8a846bca05b0a7d0b6f8bafd3609ccb4431f99a027dc48d106cf8948ae62493dfd15a84c754a1a430ed7b34a745f60c79532fae5e592d2384258
7
- data.tar.gz: 18a172bb70d8fda71ee6a9b971295472f176ada5be2040e7f3b8141fad0ae21d46ecc24db8e1f306caf85c0f8bd8e6751bada91659624cb0559fc7fe27602760
6
+ metadata.gz: cffcbce3991d63e1569444fc5cc6cd6937f96a6ea26329f6090c245e25a827bb1864bfa70c3849a61da350d7119297f1734ec744feb6003e07d4879cbc578465
7
+ data.tar.gz: dc6779472068739485e28bb312cc71ca0361cad4dbcf5eae693e8a3f395d1787ffce56b6ab5bfdc7c28198e75de19b27f0769574bb50b9abd0780f9dbe99aca2
@@ -1,5 +1,4 @@
1
1
  require 'dry-struct'
2
- require 'byebug'
3
2
  class Redis
4
3
  module Stream
5
4
  class Wrapper
@@ -99,6 +98,16 @@ class Redis
99
98
  @redis.xgroup(:create, stream, name, start, mkstream: create_default_stream)
100
99
  end
101
100
 
101
+ # Get info about streams / groups and consumers.
102
+ #
103
+ # @param type - The type
104
+ # @param key - The concerned stream / group name
105
+ # @param group - The group name for consumer type
106
+ #
107
+ def info(type, key, group = nil)
108
+ @redis.xinfo(type, key, group)
109
+ end
110
+
102
111
  # Delete group stream message.
103
112
  #
104
113
  # @param name - The group name
@@ -1,7 +1,7 @@
1
1
  class Redis
2
2
  module Stream
3
3
  class Wrapper
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
6
6
  end
7
7
  end
@@ -382,5 +382,6 @@
382
382
  </library>
383
383
  </orderEntry>
384
384
  <orderEntry type="library" scope="PROVIDED" name="bundler (v2.0.2, rbenv: 2.6.3) [gem]" level="application" />
385
+ <orderEntry type="library" scope="PROVIDED" name="dry-struct (v0.6.0, rbenv: 2.6.3) [gem]" level="application" />
385
386
  </component>
386
387
  </module>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-stream-wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandre Del Vecchio
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-07-23 00:00:00.000000000 Z
11
+ date: 2019-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler