boom_nats 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/Gemfile.lock +1 -1
- data/README.md +14 -11
- data/lib/boom_nats/application.rb +2 -4
- data/lib/boom_nats/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cbb48ae8c0483891938eb4929917f5c82ddc42c97007b254860130f41ae1209
|
4
|
+
data.tar.gz: f1b0e46f75d1be733ba67677f3f128b3f2a44e4a494f92e4670028dbfad5896d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 231c2fc401d0e31eb1708d4f3e28271e6d78080a09d468b4ba5efe6969e7578cbef89ffbcef9eb9434ae4718305d86cb8599f639f7d42e3fc2faf0aa1487d5e5
|
7
|
+
data.tar.gz: 283080b698bd0459b2afc418e7bee799c7b33ea272eb2767b3ec2f431f39b3497a468ae1e1716b95bf6281ddd9c5d3d42cdcba855f9e1cc452616970068d09cb
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -5,14 +5,18 @@ NATS is a simple, secure and performant communications system for digital system
|
|
5
5
|
This implementation works in both modes: Standalone and Rails based applications.
|
6
6
|
|
7
7
|
## Documentation
|
8
|
-
|
9
|
-
- [
|
10
|
-
- [
|
11
|
-
- [
|
12
|
-
- [
|
13
|
-
|
14
|
-
|
15
|
-
- [
|
8
|
+
|
9
|
+
- [BoomNats](#boomnats)
|
10
|
+
- [Documentation](#documentation)
|
11
|
+
- [configurations](#configurations)
|
12
|
+
- [Rails](#rails)
|
13
|
+
- [Rails Installing](#rails-installing)
|
14
|
+
- [Rails Configuration](#rails-configuration)
|
15
|
+
- [Standalone](#standalone)
|
16
|
+
- [Standalone Installing](#standalone-installing)
|
17
|
+
- [Standalone Configuration](#standalone-configuration)
|
18
|
+
- [Standalone Starting Application](#standalone-starting-application)
|
19
|
+
|
16
20
|
## configurations
|
17
21
|
|
18
22
|
```ruby
|
@@ -28,7 +32,7 @@ BoomNats.setup do
|
|
28
32
|
|
29
33
|
# with authentication
|
30
34
|
servers "nats://user:pass@localhost:4222"
|
31
|
-
|
35
|
+
|
32
36
|
|
33
37
|
# map NATS topics to Topic classes
|
34
38
|
draw_routes do
|
@@ -86,7 +90,6 @@ rails g boom_nats:consumer PaymentGetter
|
|
86
90
|
# creates file: app/consumers/payment_getter_consumer.rb
|
87
91
|
```
|
88
92
|
|
89
|
-
|
90
93
|
## Standalone
|
91
94
|
|
92
95
|
To facilitate learning, you can download the default repository containing a boilerplate project with (Ruby, Nats and ActiveRecord)
|
@@ -108,7 +111,7 @@ gem install boom_nats
|
|
108
111
|
With bundle, add gem to Gemfile
|
109
112
|
|
110
113
|
```ruby
|
111
|
-
gem 'boom_nats', '~> 0.1.
|
114
|
+
gem 'boom_nats', '~> 0.1.2'
|
112
115
|
```
|
113
116
|
|
114
117
|
### Standalone Configuration
|
@@ -43,13 +43,11 @@ module BoomNats
|
|
43
43
|
|
44
44
|
BoomNats.logger.debug "BoomNats::started"
|
45
45
|
|
46
|
-
|
47
|
-
|
48
|
-
prepare_trap
|
46
|
+
prepare_trap unless defined?(Rails::Railtie)
|
49
47
|
end
|
50
48
|
end
|
51
49
|
|
52
|
-
wait
|
50
|
+
wait unless defined?(Rails::Railtie)
|
53
51
|
end
|
54
52
|
|
55
53
|
def stop
|
data/lib/boom_nats/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: boom_nats
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Welington Sampaio
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10-
|
11
|
+
date: 2021-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|