Skip to content

Releases: nats-io/nats-pure.rb

Release v0.6.2

23 Jul 00:08
8cb619e
Compare
Choose a tag to compare

Bugfix release to handle an issue parsing INFO lines (thanks @videlov for the report)
#39

Release v0.6.0

19 Jun 23:36
Compare
Choose a tag to compare

Release with support for NATS v2 auth features

Added

  • Support for user credentials that contain a JWT/NKEY to auth against NATS v2 servers
      nats.connect(servers: ['tls://connect.ngs.global:4222'],
                   user_credentials: "path/to/user.creds")
  • Support to authenticate against NATS v2 servers that use NKEYS
      nats.connect(servers: ['tls://connect.ngs.global:4222'],
                   nkeys_seed: "path/to/user.nk")
  • Adds simpler connect API that takes a single URL
    # Only specifying endpoint uses NATS default scheme and port.
    nats.connect("demo.nats.io")

    # Setting custom server URI to connect.
    nats.connect("nats://localhost:4222")

    # Setting username and password to authenticate.
    nats.connect("nats://user:password@localhost:4222")

    # Using comma separated array to define list of servers.
    nats.connect("nats://localhost:4223,nats://localhost:4224")

    # Setting reconnect to false (options as the second argument)
    nats.connect("demo.nats.io:4222", reconnect: false)

    # Setting 'tls' as the scheme to use secure connection with defaults
    nats.connect("tls://demo.nats.io:4443")

Release v0.5.0

04 Apr 23:25
Compare
Choose a tag to compare

Added

  • New style request/response implementation which requires less traffic over the network (#30)

  • New options for connect to use classic request/response style using auto unsubscribe

    nc.connect(servers: ["nats://demo.nats.io:4222"], old_style_request: true)

Improved

  • Nothing

Fixed

  • Nothing

Changed

  • Inbox generation now done via NUID approach (#31)

Deprecated

  • Nothing

Release v0.4.0

15 Mar 18:48
Compare
Choose a tag to compare

Added

  • Subscriptions now raise slow consumer exceptions when hitting limits that can be customized via :pending_msgs_limit and :pending_bytes_limit options that can be passed on subscribe.
    nats.subscribe("hi", pending_msgs_limit: 100, pending_bytes_limit: 1024) do |payload|
    # ...
    end

Fixed

  • Multiple async subscribers head of line blocking issue fixed (#27)

Changed

  • Subscribers with callbacks now each have their own thread for dispatching messages following similar behavior as with the Go client (#27)

Removed

None

Deprecated

None

Release v0.3.0

24 Feb 11:24
5440c4b
Compare
Choose a tag to compare

Fixed

  • Support for TLS hostname verification! (#25)
gem install nats-pure

v0.2.4

30 Mar 20:17
Compare
Choose a tag to compare

Bugfix release

  • Fixes thread safety issue reported at #19

https://rubygems.org/gems/nats-pure/versions/0.2.4

v0.2.2

14 Mar 15:15
Compare
Choose a tag to compare
  • Adds auth token support (#11)
  • Fixes to handling of stale connections (#15)
  • Reconnection logic fixes on unknown protocol errors (#16)
  • Fixes to usage of IO::WaitReadable and IO::WaitWritable exceptions(#17)

v0.2.0

30 Dec 19:00
Compare
Choose a tag to compare
  • Fix last error shadowing on connection failures (originally reported at wallyqs/pure-ruby-nats#5 )
  • Fixes to follow more closely behavior from the Go client on connect failures
  • Add customizable :connect_timeout
  • Add read timeouts for read line during CONNECTING and RECONNECTING stages
  • Add SocketTimeoutError to represent i/o timeout errors with socket

v0.1.2

13 Dec 06:03
Compare
Choose a tag to compare
  • Fixed not stopping continue to connect even though connection already established (#3)
  • Added calling error handler on connection and reconnection failures
  • Added sleeping after connection failure during connecting stage

First release

13 Dec 06:00
Compare
Choose a tag to compare

A thread safe Ruby client for the NATS Messaging System.