rising_dragon 0.3.1 → 0.3.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
  SHA1:
3
- metadata.gz: 29142cffa2333863f5da6099bd0c946fdc867cfe
4
- data.tar.gz: 85496d2d16f6a7c01b8942cb8b881364e4ed2939
3
+ metadata.gz: 9959aab6bcf40022aefc0b4539e10af3c49677c3
4
+ data.tar.gz: d1d4dc677754ad37e2659c481e6edc49810d0196
5
5
  SHA512:
6
- metadata.gz: 0f1a102e2a820ff494bb67f3aca541e2497a4d1352c8cc36f42edd2bb3ead72fcaef3178712bc9255679ad5a9dbc3f5bd946c02867a0c29cc3a51ba3f15a5fee
7
- data.tar.gz: 9a7a2f1899396bde0a1d9eaf7731290eee6a5d2d3c14bded98feec2f3cfacb70f25b07376ba10acb005a3f2a2098528b9474720beca2ace6c7054fb864d0bda9
6
+ metadata.gz: a694d7561e02396065fd70f1c9a369c4428a56bb69466e2dea3ff40ce271de6a71d27da1ed12dc644631410b1e1329a731573eabfac9d964cf90cea3d7b3c411
7
+ data.tar.gz: ee1dd036a745350c3f7158ef249d58f080f63af52276167093964b490c03fb357c3daec5c2b9e0591ac9de3b0806942de512d56584d00628619777c6fbd6895d
data/README.md CHANGED
@@ -13,7 +13,7 @@ Use AWS SQS/SNS as event worker for Microservices.
13
13
  Add this line to your application's Gemfile:
14
14
 
15
15
  ```ruby
16
- gem 'rising_dragon', '>= 0.3.1'
16
+ gem 'rising_dragon', '>= 0.3.2'
17
17
  ```
18
18
 
19
19
  And then execute:
@@ -38,7 +38,7 @@ sns_client = Aws::SNS::Client.new(
38
38
  publisher = ::RisingDragon::SNS::Publisher.new(sns_client)
39
39
 
40
40
  data = { id: 1, name: "first last" }
41
- publisher.send_event!("SNSTopicName", "EventType", data)
41
+ publisher.publish("SNSTopicName", "EventType", data)
42
42
  ```
43
43
 
44
44
  ## Worker Usage
@@ -8,7 +8,7 @@ module RisingDragon
8
8
  @use_cache = true # default true :)
9
9
  end
10
10
 
11
- def send_event!(topic_name, event_type, data)
11
+ def publish(topic_name, event_type, data)
12
12
  event = create_event(event_type, data)
13
13
 
14
14
  topic = get_topic(topic_name)
@@ -1,3 +1,3 @@
1
1
  module RisingDragon
2
- VERSION = "0.3.1".freeze
2
+ VERSION = "0.3.2".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rising_dragon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ota42y