osbourne 1.0.0 → 1.1.0

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: 30bc10e5c04691de985ff77f554ac23596052bbdd70de1d642f875378065f7e8
4
- data.tar.gz: aebe87fe5fff351c0ab9f9add37508b81f1f1e5147b06e8c41cfd555db216c23
3
+ metadata.gz: 4429d66869ecd9cbceac02b613ed4b7e7f1de032a3cc5d2f027934371b4ebce1
4
+ data.tar.gz: 9ebdca21583fadc61f7101f4a87c3768ea7e390c3fe9719d3bde502fd31d9497
5
5
  SHA512:
6
- metadata.gz: 93a0d8128556f2a77abe7c82a31fdd73d41c2647c6021a76d1aa8a6bfdceb86c32d7a361d0a14d01597b75fd84644090038bedc7f98e0dbad28fcedadd54948e
7
- data.tar.gz: 4fe3bea017685121b90e49289aee1998a25b606ec1ab0b01a7519cecffd8193e922cfe99bcb47dd402f1661defe1e073d89317def80a334a177da28df509961f
6
+ metadata.gz: d05cc25e32195caf916507568a95bb354124695174cf056a955a8007d111852f92f66ba9f61310f8ae1ba0772b249098f18f37d81f8d85ca2cc23a86b602cb8e
7
+ data.tar.gz: 2a6e4a78aabbd05e7650041b2c184085f55a5addcb73df0c528c0ae2a31d2cea33a77007813291d75b29c7ad2cb0afd7faf4d0fa411416bdb0c829595d00f5ed
@@ -2,11 +2,11 @@
2
2
 
3
3
  module Osbourne
4
4
  module Test
5
- class Message
6
- attr_reader :topic, :parsed_body
5
+ class Message < Osbourne::Message
6
+ attr_reader :topic, :raw_body
7
7
  def initialize(topic:, body:)
8
8
  @topic = topic
9
- @parsed_body = body
9
+ @raw_body = body
10
10
  end
11
11
 
12
12
  def id
@@ -16,6 +16,18 @@ module Osbourne
16
16
  def valid?
17
17
  true
18
18
  end
19
+
20
+ def delete; end
21
+
22
+ def sns?
23
+ true
24
+ end
25
+
26
+ private
27
+
28
+ def sns_body
29
+ @sns_body ||= safe_json(raw_body) || raw_body
30
+ end
19
31
  end
20
32
  end
21
33
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Osbourne
4
- VERSION = "1.0.0"
4
+ VERSION = "1.1.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: osbourne
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Allen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-14 00:00:00.000000000 Z
11
+ date: 2018-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core