eventboss 1.3.4 → 1.3.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09b112a39f231b3edf3c370d6a399047fd6115525aef20674eb3e6a6d60e96bd'
|
4
|
+
data.tar.gz: b5b85ceb58fedeb508fbabaa7157fc4612fdb159e4b4d4ee3bcecea29cc4a199
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b920d2a374c542da947e205a71942eef2132731a2cea465c190d1fb8bc6870e451e48b7e3b59debd4b2b426efdc39ef17f59fb43b178fa0eabee8447caaf0c79
|
7
|
+
data.tar.gz: 342ceecb45f9bd108b0e9bb0bfd237b95e70ecf0c9f00e4fb0190a70c391040f26aa24d34e2140c05073fb50c29437ab93f715b3675f04c4c5611fec36c05f8b
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
eventboss (1.3.
|
4
|
+
eventboss (1.3.5)
|
5
5
|
aws-sdk-sns (>= 1.1.0)
|
6
6
|
aws-sdk-sqs (>= 1.3.0)
|
7
7
|
dotenv (~> 2.1, >= 2.1.1)
|
@@ -10,8 +10,8 @@ GEM
|
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
12
|
aws-eventstream (1.0.3)
|
13
|
-
aws-partitions (1.
|
14
|
-
aws-sdk-core (3.
|
13
|
+
aws-partitions (1.295.0)
|
14
|
+
aws-sdk-core (3.93.0)
|
15
15
|
aws-eventstream (~> 1.0, >= 1.0.2)
|
16
16
|
aws-partitions (~> 1, >= 1.239.0)
|
17
17
|
aws-sigv4 (~> 1.1)
|
@@ -19,7 +19,7 @@ GEM
|
|
19
19
|
aws-sdk-sns (1.22.0)
|
20
20
|
aws-sdk-core (~> 3, >= 3.71.0)
|
21
21
|
aws-sigv4 (~> 1.1)
|
22
|
-
aws-sdk-sqs (1.
|
22
|
+
aws-sdk-sqs (1.24.0)
|
23
23
|
aws-sdk-core (~> 3, >= 3.71.0)
|
24
24
|
aws-sigv4 (~> 1.1)
|
25
25
|
aws-sigv4 (1.1.1)
|
data/README.md
CHANGED
data/lib/eventboss/version.rb
CHANGED
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class <%= event_name.camelize %>Listener
|
4
|
+
include Eventboss::Listener
|
5
|
+
|
6
|
+
eventboss_options event_name: '<%= event_name %>'<%= source_app ? ", source_app: '#{ source_app }'" : "" %>
|
7
|
+
|
8
|
+
def receive(payload)
|
9
|
+
Rails.logger.tagged(jid) { Rails.logger.info("payload: #{ payload }") }
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Creates the Eventboss listener scaffold
|
4
|
+
#
|
5
|
+
# @example Invocation from terminal
|
6
|
+
# rails generate eventboss:listener get_well air-helper
|
7
|
+
#
|
8
|
+
module Eventboss
|
9
|
+
class ListenerGenerator < Rails::Generators::Base
|
10
|
+
source_root File.expand_path(__dir__)
|
11
|
+
|
12
|
+
argument :event_name, required: true
|
13
|
+
argument :source_app, required: false
|
14
|
+
|
15
|
+
desc 'Creates the Eventboss listener scaffold'
|
16
|
+
def create_listener_scaffold
|
17
|
+
template 'eventboss_listener.rb.erb', "app/listeners/#{ event_name }_listener.rb"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eventboss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AirHelp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-sqs
|
@@ -147,6 +147,8 @@ files:
|
|
147
147
|
- lib/eventboss/unit_of_work.rb
|
148
148
|
- lib/eventboss/version.rb
|
149
149
|
- lib/eventboss/worker.rb
|
150
|
+
- lib/generators/eventboss/listener/eventboss_listener.rb.erb
|
151
|
+
- lib/generators/eventboss/listener/listener_generator.rb
|
150
152
|
- lib/tasks/eventboss.rake
|
151
153
|
homepage: https://github.com/AirHelp/eventboss
|
152
154
|
licenses:
|