nats-pure 2.1.0 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f0d4251703ba9fd6a91f501686025e2f71e93dc7869f65984da7cd312361266
4
- data.tar.gz: 411fdfd23878cf89b26c76e04b68c760e10aaef14f2a68fae19c69a8d1392990
3
+ metadata.gz: 154ce22f3fa8a4256d0a0bc45fd3356286956c6f774f8332e5892c0be6af45d8
4
+ data.tar.gz: de9022e08deff77f48c3ef8dd4e538d307ddc44eea57ac884b862893df354750
5
5
  SHA512:
6
- metadata.gz: a3b88a713e2c1b6a515ac4f505cb6724c0059e72693d8d5c2ee61f3579d1b4b846408282e131864735dccc8b224e4a22933be91409d404fedadf0ec6c72051cf
7
- data.tar.gz: 9ef88d1a391c2cfec91731aca2742382634c923384b801fce4ee9155418de39bd538f7aaafceb6ba2a1b40b57c6b7db4363ad4cf673d8ff3b5e87b5f74104789
6
+ metadata.gz: 92f10f12b63062c756a5b041e1e2f604d23f7b372d9c3a22425d91e0cb2e6d0ff09f805722cdbe30eb6599566ec3715006127a144c2e9df92724dd307dc2d8b7
7
+ data.tar.gz: 3ec16e14c8ecfc15d9d8f00c2af4413c7ca35f372ac5ca38d7577df9629ca0b22a7885b0abd7c9665e9004b8c1592823ce23bb37285b3609a320c086efc98be9
data/lib/nats/io/js.rb CHANGED
@@ -118,6 +118,7 @@ module NATS
118
118
  manual_ack = params[:manual_ack]
119
119
  idle_heartbeat = params[:idle_heartbeat]
120
120
  flow_control = params[:flow_control]
121
+ config = params[:config]
121
122
 
122
123
  if queue
123
124
  if durable and durable != queue
@@ -1135,12 +1136,24 @@ module NATS
1135
1136
  # @return [Integer]
1136
1137
  # @!attribute max_ack_pending
1137
1138
  # @return [Integer]
1138
- ConsumerConfig = Struct.new(:durable_name, :description, :deliver_subject,
1139
- :deliver_group, :deliver_policy, :opt_start_seq,
1140
- :opt_start_time, :ack_policy, :ack_wait, :max_deliver,
1139
+ ConsumerConfig = Struct.new(:durable_name, :description,
1140
+ :deliver_policy, :opt_start_seq, :opt_start_time,
1141
+ :ack_policy, :ack_wait, :max_deliver, :backoff,
1141
1142
  :filter_subject, :replay_policy, :rate_limit_bps,
1142
1143
  :sample_freq, :max_waiting, :max_ack_pending,
1143
1144
  :flow_control, :idle_heartbeat, :headers_only,
1145
+
1146
+ # Pull based options
1147
+ :max_batch, :max_expires,
1148
+ # Push based consumers
1149
+ :deliver_subject, :deliver_group,
1150
+ # Ephemeral inactivity threshold
1151
+ :inactive_threshold,
1152
+ # Generally inherited by parent stream and other markers,
1153
+ # now can be configured directly.
1154
+ :num_replicas,
1155
+ # Force memory storage
1156
+ :memory_storage,
1144
1157
  keyword_init: true) do
1145
1158
  def initialize(opts={})
1146
1159
  # Filter unrecognized fields just in case.
@@ -1194,10 +1207,11 @@ module NATS
1194
1207
  # @return [Integer]
1195
1208
  # @!attribute duplicate_window
1196
1209
  # @return [Integer]
1197
- StreamConfig = Struct.new(:name, :subjects, :retention, :max_consumers,
1198
- :max_msgs, :max_bytes, :max_age,
1210
+ StreamConfig = Struct.new(:name, :description, :subjects, :retention, :max_consumers,
1211
+ :max_msgs, :max_bytes, :discard, :max_age,
1199
1212
  :max_msgs_per_subject, :max_msg_size,
1200
- :discard, :storage, :num_replicas, :duplicate_window,
1213
+ :storage, :num_replicas, :no_ack, :duplicate_window,
1214
+ :placement, :allow_direct,
1201
1215
  keyword_init: true) do
1202
1216
  def initialize(opts={})
1203
1217
  # Filter unrecognized fields just in case.
@@ -15,7 +15,7 @@
15
15
  module NATS
16
16
  module IO
17
17
  # VERSION is the version of the client announced on CONNECT to the server.
18
- VERSION = "2.1.0".freeze
18
+ VERSION = "2.1.2".freeze
19
19
 
20
20
  # LANG is the lang runtime of the client announced on CONNECT to the server.
21
21
  LANG = "#{RUBY_ENGINE}#{RUBY_VERSION}".freeze
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nats-pure
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Waldemar Quevedo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-09 00:00:00.000000000 Z
11
+ date: 2022-07-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: NATS is an open-source, high-performance, lightweight cloud messaging
14
14
  system.