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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7f350fa4276eaa4271920061a3fe7d501ccfdb836bf792c2dceb9be98ad7059
4
- data.tar.gz: 8b4b331934c8fc4fccb05e84b543c13cd8c456a31591b6e723e2d0662ce408d0
3
+ metadata.gz: 1cbb48ae8c0483891938eb4929917f5c82ddc42c97007b254860130f41ae1209
4
+ data.tar.gz: f1b0e46f75d1be733ba67677f3f128b3f2a44e4a494f92e4670028dbfad5896d
5
5
  SHA512:
6
- metadata.gz: 02275442dc9e042dc0f02c1d1ddff6247b614ab3212876399d8be444a8464ded94d69c1d6c96661878f114107587f48bd69468a52bb8b8549c6d5e4ca03314b8
7
- data.tar.gz: b5a13adfbc86d2b8d42deccab1967b4ee92ce00a958eb77fc97309d6e7c21b74a92ea99d1f86140dc8a62d7810260202689125e9b1844bed3ef208ba399bc758
6
+ metadata.gz: 231c2fc401d0e31eb1708d4f3e28271e6d78080a09d468b4ba5efe6969e7578cbef89ffbcef9eb9434ae4718305d86cb8599f639f7d42e3fc2faf0aa1487d5e5
7
+ data.tar.gz: 283080b698bd0459b2afc418e7bee799c7b33ea272eb2767b3ec2f431f39b3497a468ae1e1716b95bf6281ddd9c5d3d42cdcba855f9e1cc452616970068d09cb
data/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- ## [Unreleased]
1
+ ## v0.1.2 - 2021-10-05
2
2
 
3
3
  - Standalone version
4
4
  - Rails based version
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- boom_nats (0.1.1)
4
+ boom_nats (0.1.2)
5
5
  activesupport (>= 2.1)
6
6
  concurrent-ruby-edge (~> 0.6, < 1.0)
7
7
  nats (>= 0.11.0, < 1.0)
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
- - [Configurations](#configurations)
9
- - [Rails](#rails)
10
- - [Installing](#rails-installing)
11
- - [Configuration](#rails-configuration)
12
- - [Standalone](#standalone)
13
- - [Installing](#standalone-installing)
14
- - [Configuration](#standalone-configuration)
15
- - [Starting Application](#standalone-starting-application)
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.0'
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
- return if defined?(Rails::Railtie)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BoomNats
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
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.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-05 00:00:00.000000000 Z
11
+ date: 2021-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport