ears 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -2
- data/Gemfile.lock +1 -1
- data/lib/ears.rb +9 -0
- data/lib/ears/configuration.rb +11 -0
- data/lib/ears/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 743f599a9aaa80f40f33e883330c2c0c4e6e83f9216f73283a88051128b062ee
|
4
|
+
data.tar.gz: 022ba933c602fd7eb32becc3c51bc167ad7fb06c58e47262a0721c18ec59882f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c56e69f9fba37b8ad45aad230a29552f70aa45e3f664ca84bc7578e839fd894489b4eac7988b0c091605cf293b26ba93cf9c2257fe79239f15f97eea40537131
|
7
|
+
data.tar.gz: 97ab3dafcc607405472e794bd7ca791ede20e3d39ff1ae4f433042eca34a3c77e97ce847f785a961c47792e0c194e66c5d210073d061e2cff527990d4385dbea
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
## 0.2.
|
3
|
+
## 0.2.1 (2021-05-07)
|
4
|
+
|
5
|
+
### Changes
|
6
|
+
|
7
|
+
- you can now call `Ears.configure` to set a custom RabbitMQ URL to connect to
|
8
|
+
|
9
|
+
## 0.2.0 (2021-05-07)
|
4
10
|
|
5
11
|
### Breaking
|
6
12
|
|
@@ -11,6 +17,6 @@
|
|
11
17
|
- middlewares can now accept options
|
12
18
|
- added an Appsignal middleware to monitor consumers
|
13
19
|
|
14
|
-
## 0.1.0
|
20
|
+
## 0.1.0 (2021-04-23)
|
15
21
|
|
16
22
|
Initial release.
|
data/Gemfile.lock
CHANGED
data/lib/ears.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'bunny'
|
2
|
+
require 'ears/configuration'
|
2
3
|
require 'ears/consumer'
|
3
4
|
require 'ears/setup'
|
4
5
|
require 'ears/version'
|
@@ -8,6 +9,14 @@ module Ears
|
|
8
9
|
end
|
9
10
|
|
10
11
|
class << self
|
12
|
+
def configuration
|
13
|
+
@configuration ||= Ears::Configuration.new
|
14
|
+
end
|
15
|
+
|
16
|
+
def configure
|
17
|
+
yield(configuration)
|
18
|
+
end
|
19
|
+
|
11
20
|
def connection
|
12
21
|
@connection ||= Bunny.new.tap { |conn| conn.start }
|
13
22
|
end
|
data/lib/ears/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ears
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mario Mainz
|
@@ -129,6 +129,7 @@ files:
|
|
129
129
|
- Rakefile
|
130
130
|
- ears.gemspec
|
131
131
|
- lib/ears.rb
|
132
|
+
- lib/ears/configuration.rb
|
132
133
|
- lib/ears/consumer.rb
|
133
134
|
- lib/ears/middlewares/appsignal.rb
|
134
135
|
- lib/ears/middlewares/json.rb
|