nats_streaming_listener 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +44 -0
- data/LICENSE.txt +21 -0
- data/README.md +88 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/definitions/nats_listener/nats_message.proto +8 -0
- data/lib/nats_streaming_listener/nats_message.pb.rb +21 -0
- data/lib/nats_streaming_listener/streaming_client.rb +66 -0
- data/lib/nats_streaming_listener/streaming_subscriber.rb +14 -0
- data/lib/nats_streaming_listener/version.rb +3 -0
- data/lib/nats_streaming_listener.rb +8 -0
- data/nats_streaming_listener.gemspec +38 -0
- metadata +132 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2280bc9d4f28523cddab17e15c7493ccc7af43395bc7d27f1dedd05c5d3f3f24
|
4
|
+
data.tar.gz: 8de857acc15151932d822bbb0366dfefafb1e004a0a024f1d79846e518e0aeb3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: fe95fa7eb8ebf7dae4c2d753bbb4251a3b057541256cba42a379c10d3d26c8e8ded4e7988aec03e6abd01ed4d4e405305bdf0c26f72fa9e562f3a3381b8512dd
|
7
|
+
data.tar.gz: d7ec78160017652d30d6a44822992ecd98679bc48fa521da07d60c63224fb26485ce27e1560786d8dd0608f810ec17171d60eb71898398b9a481f492d4eead31
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at gophan1992@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
nats_streaming_listener (0.1.0)
|
5
|
+
google-protobuf (~> 3.6)
|
6
|
+
nats-streaming (~> 0.2)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
diff-lcs (1.3)
|
12
|
+
google-protobuf (3.7.1)
|
13
|
+
nats-pure (0.5.0)
|
14
|
+
nats-streaming (0.2.2)
|
15
|
+
google-protobuf (~> 3)
|
16
|
+
nats-pure (~> 0)
|
17
|
+
nats_listener_core (0.1.1)
|
18
|
+
rake (10.5.0)
|
19
|
+
rspec (3.8.0)
|
20
|
+
rspec-core (~> 3.8.0)
|
21
|
+
rspec-expectations (~> 3.8.0)
|
22
|
+
rspec-mocks (~> 3.8.0)
|
23
|
+
rspec-core (3.8.0)
|
24
|
+
rspec-support (~> 3.8.0)
|
25
|
+
rspec-expectations (3.8.3)
|
26
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
27
|
+
rspec-support (~> 3.8.0)
|
28
|
+
rspec-mocks (3.8.0)
|
29
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
30
|
+
rspec-support (~> 3.8.0)
|
31
|
+
rspec-support (3.8.0)
|
32
|
+
|
33
|
+
PLATFORMS
|
34
|
+
ruby
|
35
|
+
|
36
|
+
DEPENDENCIES
|
37
|
+
bundler (~> 1.16)
|
38
|
+
nats_listener_core
|
39
|
+
nats_streaming_listener!
|
40
|
+
rake (~> 10.0)
|
41
|
+
rspec (~> 3.0)
|
42
|
+
|
43
|
+
BUNDLED WITH
|
44
|
+
1.17.3
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 Igor Pavlov
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
# NatsStreamingListener
|
2
|
+
|
3
|
+
This gem implements functionality of nats-listener with nats streaming.
|
4
|
+
## Installation
|
5
|
+
|
6
|
+
Add this line to your application's Gemfile:
|
7
|
+
|
8
|
+
```ruby
|
9
|
+
gem 'nats_streaming_listener'
|
10
|
+
```
|
11
|
+
|
12
|
+
And then execute:
|
13
|
+
|
14
|
+
$ bundle
|
15
|
+
|
16
|
+
Or install it yourself as:
|
17
|
+
|
18
|
+
$ gem install nats_streaming_listener
|
19
|
+
|
20
|
+
## Usage
|
21
|
+
|
22
|
+
### Creating client
|
23
|
+
```ruby
|
24
|
+
NatsStreamingListener::Client.current = NatsStreamingListener::Client.new(
|
25
|
+
logger: Ougai::Logger.new(STDOUT),
|
26
|
+
skip: false,
|
27
|
+
catch_errors: true,
|
28
|
+
catch_provider: Rollbar
|
29
|
+
)
|
30
|
+
```
|
31
|
+
All arguments are optional.
|
32
|
+
`logger` - logger that you can pass to application. It will be called to debug messages.
|
33
|
+
`skip` - skip calls. Useful for tests
|
34
|
+
`catch_errors` - catch errors, log them and pass to `catch_provider`
|
35
|
+
`catch_provider` - provider that is called when error occurs, e.g. Rollbar.
|
36
|
+
|
37
|
+
### Establishing connection
|
38
|
+
```ruby
|
39
|
+
NatsListener::Client.current.establish_connection(
|
40
|
+
service_name: [YOUR SERVICE NAME],
|
41
|
+
nats: { servers: [NATS_SERVERS_URLS] }, # Options passed to nats connector
|
42
|
+
cluster_name: [YOUR_CLUSTER_NAME], # Cluster of nats-streaming that you're connecting to
|
43
|
+
client_id: [CLIENT_ID] # Id of a client(nats-streaming works with unique client_id)
|
44
|
+
)
|
45
|
+
```
|
46
|
+
### Subscribers
|
47
|
+
|
48
|
+
For using subscribers we offer one quite simple way:
|
49
|
+
1. Create `subscribers` folder.
|
50
|
+
2. Create your own subscriber derived from `NatsStreamingListener::Subscriber`
|
51
|
+
3. Load and subscribe all subscribers, e.g.
|
52
|
+
```ruby
|
53
|
+
path = Rails.root.join('app', 'subscribers', '*.rb')
|
54
|
+
|
55
|
+
Dir.glob(path) do |entry|
|
56
|
+
entry.split('/').last.split('.').first.camelize.constantize.new.subscribe
|
57
|
+
end
|
58
|
+
```
|
59
|
+
|
60
|
+
#### Protobuf strategy
|
61
|
+
By default all nats-streaming messages are processed with protobuf. But if you want - you can use our own small wrapper that handles some info and pass it into nats-streaming.
|
62
|
+
```ruby
|
63
|
+
2.3.3 :006 > require 'nats_streaming_listener'
|
64
|
+
=> true
|
65
|
+
2.3.3 :006 > m = NatsStreaming::NatsMessage.new(sender_service_name: 'ololo', receiver_action_name: 'ololo1', receiver_action_parameters:[1,2,3].map(&:to_s), message_timestamp: Time.now.utc.to_i, transaction_id: 'unique')
|
66
|
+
=> #<NatsListener::NatsMessage sender_service_name="ololo" receiver_action_name="ololo1" receiver_action_parameters=["1", "2", "3"] message_timestamp=1538902717 transaction_id="unique">
|
67
|
+
2.3.3 :007 > m.serialize
|
68
|
+
=> "\n\x05ololo\x12\x06ololo1\x1A\x011\x1A\x012\x1A\x013 \xBD\x95\xE7\xDD\x05*\x06unique"
|
69
|
+
```
|
70
|
+
|
71
|
+
|
72
|
+
## Development
|
73
|
+
|
74
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
75
|
+
|
76
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
77
|
+
|
78
|
+
## Contributing
|
79
|
+
|
80
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/nats_streaming_listener. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
81
|
+
|
82
|
+
## License
|
83
|
+
|
84
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
85
|
+
|
86
|
+
## Code of Conduct
|
87
|
+
|
88
|
+
Everyone interacting in the NatsStreamingListener project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/nats_streaming_listener/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "nats_streaming_listener"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
package NatsStreamingListener;
|
2
|
+
message NatsMessage {
|
3
|
+
optional string sender_service_name = 1;
|
4
|
+
optional string receiver_action_name = 2;
|
5
|
+
repeated string receiver_action_parameters = 3;
|
6
|
+
optional int64 message_timestamp = 4;
|
7
|
+
optional string transaction_id = 5;
|
8
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'google/protobuf'
|
4
|
+
|
5
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
6
|
+
add_message 'NatsStreamingListener.NatsMessage' do
|
7
|
+
optional :sender_service_name, :string, 1
|
8
|
+
optional :receiver_action_name, :string, 2
|
9
|
+
repeated :receiver_action_parameters, :string, 3
|
10
|
+
optional :message_timestamp, :int64, 4
|
11
|
+
optional :transaction_id, :string, 5
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
# Message class offered to be used with protobuf serialization
|
16
|
+
module NatsStreamingListener
|
17
|
+
MESSAGE_CLASS = 'NatsStreamingListener.NatsMessage'
|
18
|
+
NatsMessage = Google::Protobuf::DescriptorPool.generated_pool
|
19
|
+
.lookup(MESSAGE_CLASS)
|
20
|
+
.msgclass
|
21
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'stan/client'
|
4
|
+
require 'nats_listener_core'
|
5
|
+
|
6
|
+
module NatsStreamingListener
|
7
|
+
# Implementation of Nats-streaming client
|
8
|
+
class StreamingClient < NatsListenerCore::AbstractClient
|
9
|
+
# Use this opts:
|
10
|
+
# @!attribute :logger - logger used in this service
|
11
|
+
# @!attribute :skip - flag attribute used to skip connections(useful for testing)
|
12
|
+
# @!attribute :catch_errors - used to catch errors around subscribers/connections(be careful with it!)
|
13
|
+
# @!attribute :catch_provider - this class will be called with catch_provider.error(e)
|
14
|
+
# @!attribute :disable_nats - if something is passed to that attribute - nats won't be initialized
|
15
|
+
|
16
|
+
def initialize(opts = {})
|
17
|
+
@nats = STAN::Client.new unless opts[:disable_nats] # Create nats client
|
18
|
+
@logger = NatsListenerCore::ClientLogger.new(opts)
|
19
|
+
@skip = opts[:skip] || false
|
20
|
+
@client_catcher = NatsListenerCore::ClientCatcher.new(opts)
|
21
|
+
end
|
22
|
+
|
23
|
+
# Use this opts for connection:
|
24
|
+
# @!attribute :cluster_name - name of nats-streaming cluster that we connect to
|
25
|
+
# @!attribute :nats - nats connection info(example: ```{servers: 'nats://127.0.0.1:4223'}```)
|
26
|
+
# @!attribute :service_name - name of current service
|
27
|
+
# @!attribute :client_id - current service client id(optional)
|
28
|
+
|
29
|
+
def establish_connection(config = {})
|
30
|
+
return if skip
|
31
|
+
|
32
|
+
@config = config.to_h
|
33
|
+
begin
|
34
|
+
# Connect nats to provided configuration
|
35
|
+
nats.connect(cluster_name, client_name, config)
|
36
|
+
true
|
37
|
+
rescue StandardError => exception
|
38
|
+
log(action: :connection_failed, message: exception)
|
39
|
+
false
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
def client_name
|
44
|
+
"#{service_name}-#{config.fetch(:client_id) { :client_id }}"
|
45
|
+
end
|
46
|
+
|
47
|
+
def cluster_name
|
48
|
+
config.fetch(:cluster_name) { :cluster_name }
|
49
|
+
end
|
50
|
+
|
51
|
+
def request(subject, message, opts = {})
|
52
|
+
with_connection do
|
53
|
+
log(action: :request, message: message)
|
54
|
+
nats.request(subject, message, opts)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
def disconnected?
|
59
|
+
nats&.nats&.status.to_i.zero?
|
60
|
+
end
|
61
|
+
|
62
|
+
def reestablish_connection
|
63
|
+
establish_connection(config) if disconnected?
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'nats_listener_core'
|
4
|
+
|
5
|
+
module NatsStreamingListener
|
6
|
+
# Base subscriber using nats-streaming
|
7
|
+
class StreamingSubscriber < NatsListenerCore::AbstractSubscriber
|
8
|
+
class << self
|
9
|
+
def client
|
10
|
+
NatsStreamingListener::StreamingClient.current
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
require 'nats_streaming_listener/version'
|
2
|
+
require 'nats_streaming_listener/streaming_client'
|
3
|
+
require 'nats_streaming_listener/streaming_subscriber'
|
4
|
+
require 'nats_streaming_listener/nats_message.pb'
|
5
|
+
|
6
|
+
module NatsStreamingListener
|
7
|
+
# Your code goes here...
|
8
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "nats_streaming_listener/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "nats_streaming_listener"
|
8
|
+
spec.version = NatsStreamingListener::VERSION
|
9
|
+
spec.authors = ["Igor Pavlov"]
|
10
|
+
spec.email = ["gophan1992@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Nats streaming functionality support for nats-listener gem.}
|
13
|
+
spec.description = %q{Nats streaming client and subscriber implementation.}
|
14
|
+
spec.homepage = "https://github.com/beastia/nats_streaming_listener"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
21
|
+
else
|
22
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
23
|
+
"public gem pushes."
|
24
|
+
end
|
25
|
+
|
26
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
27
|
+
f.match(%r{^(test|spec|features)/})
|
28
|
+
end
|
29
|
+
spec.bindir = "exe"
|
30
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
31
|
+
spec.require_paths = ["lib"]
|
32
|
+
|
33
|
+
spec.add_development_dependency "bundler", "~> 1.16"
|
34
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
35
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
36
|
+
spec.add_dependency 'google-protobuf', '~> 3.6'
|
37
|
+
spec.add_dependency 'nats-streaming', '~> 0.2'
|
38
|
+
end
|
metadata
ADDED
@@ -0,0 +1,132 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: nats_streaming_listener
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Igor Pavlov
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-05-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.16'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.16'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: google-protobuf
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.6'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.6'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: nats-streaming
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.2'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.2'
|
83
|
+
description: Nats streaming client and subscriber implementation.
|
84
|
+
email:
|
85
|
+
- gophan1992@gmail.com
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- ".gitignore"
|
91
|
+
- ".rspec"
|
92
|
+
- ".travis.yml"
|
93
|
+
- CODE_OF_CONDUCT.md
|
94
|
+
- Gemfile
|
95
|
+
- Gemfile.lock
|
96
|
+
- LICENSE.txt
|
97
|
+
- README.md
|
98
|
+
- Rakefile
|
99
|
+
- bin/console
|
100
|
+
- bin/setup
|
101
|
+
- definitions/nats_listener/nats_message.proto
|
102
|
+
- lib/nats_streaming_listener.rb
|
103
|
+
- lib/nats_streaming_listener/nats_message.pb.rb
|
104
|
+
- lib/nats_streaming_listener/streaming_client.rb
|
105
|
+
- lib/nats_streaming_listener/streaming_subscriber.rb
|
106
|
+
- lib/nats_streaming_listener/version.rb
|
107
|
+
- nats_streaming_listener.gemspec
|
108
|
+
homepage: https://github.com/beastia/nats_streaming_listener
|
109
|
+
licenses:
|
110
|
+
- MIT
|
111
|
+
metadata:
|
112
|
+
allowed_push_host: https://rubygems.org
|
113
|
+
post_install_message:
|
114
|
+
rdoc_options: []
|
115
|
+
require_paths:
|
116
|
+
- lib
|
117
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
118
|
+
requirements:
|
119
|
+
- - ">="
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: '0'
|
122
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - ">="
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0'
|
127
|
+
requirements: []
|
128
|
+
rubygems_version: 3.0.3
|
129
|
+
signing_key:
|
130
|
+
specification_version: 4
|
131
|
+
summary: Nats streaming functionality support for nats-listener gem.
|
132
|
+
test_files: []
|