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: f4bf9ebb501a619000c0545c1fc011f6fb702c865a7dc09d0a250ced9d67a82d
4
- data.tar.gz: 3b4e07339243b57298034b50aba6bd159d8f7c3474f64e2dd8b4290219555b6f
3
+ metadata.gz: '09b112a39f231b3edf3c370d6a399047fd6115525aef20674eb3e6a6d60e96bd'
4
+ data.tar.gz: b5b85ceb58fedeb508fbabaa7157fc4612fdb159e4b4d4ee3bcecea29cc4a199
5
5
  SHA512:
6
- metadata.gz: c2c806b99f4da91127f932706404801bcfd1d83dac1a47a24cdf2be5a62b02fb3269e559bdd1962b67967939170115ffb2f13699f93b0968e773df473867d026
7
- data.tar.gz: 6fb43618b025e1d58ddfbdd29947e3a13ae57dadc67c0ca06a122b36d1106540692c5c71a187154c25bba9930cac097ed2c7db27720f43e57f7d49a215deda88
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)
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.281.0)
14
- aws-sdk-core (3.91.0)
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.23.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
@@ -164,7 +164,7 @@ Following resources are created:
164
164
 
165
165
  Just enable it via environment variable...
166
166
  ```
167
- EVENTBUS_DEVELOPMENT_MODE=true
167
+ EVENTBOSS_DEVELOPMENT_MODE=true
168
168
  ```
169
169
  use fixed account ID for localstack setup...
170
170
  ```
@@ -1,3 +1,3 @@
1
1
  module Eventboss
2
- VERSION = "1.3.4"
2
+ VERSION = "1.3.5"
3
3
  end
@@ -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
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-03-11 00:00:00.000000000 Z
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: