aws-broker 0.0.10 → 0.0.11

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
- SHA1:
3
- metadata.gz: 19cdefb5feb597317a3522f00f6e7b7455b2d869
4
- data.tar.gz: 422c3f690d2cd8a905cb38447fa032e15228825e
2
+ SHA256:
3
+ metadata.gz: a88b2c21b2a20a23d03a1badc49a10db16b588d40e1c14dfc28b46a3b4e5efa1
4
+ data.tar.gz: e1ec7ecdf127d7e4c6517905c74197707ee973704497a1d2105494ac59bcd737
5
5
  SHA512:
6
- metadata.gz: da16a81357f08fe560b1b05eb0e04d438cdaa17e1b86653c78fb8d4cd46d7665916206300355e6401040ac36106a2b84063bbc606a66f0014e143e081c6063b0
7
- data.tar.gz: 93de674cd455119869fe4eb118069ddfd628a93761d65f0ef64913bd47d357a79b21b859a3c7ad7ffb25c13b87a6f009a8bd74c953abb33b49bd9ab60fd8121e
6
+ metadata.gz: 68528a6ca4ed9d966a539ebded2b49627353d590282f4bb493593497054a217c6f37b1a4d9f8c52e1822016a1e121d75de752ac6d356fbe24db29bebd4343be9
7
+ data.tar.gz: 695e1931bd3f5457a6b4fc4ffe9d13d9b7d8ab0ad87a56bdbc84cbe56af847c5488954fbc4d3400a08e9294652fcadc2dea5a5fe860684ee223c551908870873
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  * * *
6
6
 
7
- [![CircleCI](https://circleci.com/gh/Thanx/aws-broker.svg?style=svg)](https://circleci.com/gh/Thanx/aws-broker)
7
+ [![CircleCI](https://circleci.com/gh/thanx/aws-broker.svg?style=svg)](https://circleci.com/gh/thanx/aws-broker)
8
8
 
9
9
  ### Background
10
10
 
@@ -74,7 +74,7 @@ The above is essentially shorthand for
74
74
 
75
75
  ### Usage Details
76
76
 
77
- See the [wiki](https://github.com/Thanx/aws-broker/wiki) for an in-depth
77
+ See the [wiki](https://github.com/thanx/aws-broker/wiki) for an in-depth
78
78
  overview of usage and configuration options.
79
79
 
80
80
  ### Inspiration
@@ -22,7 +22,7 @@ module Aws
22
22
  end
23
23
 
24
24
  def sns
25
- @sns ||= Aws::SNS::Client.new
25
+ config.sns
26
26
  end
27
27
 
28
28
  def config
@@ -2,7 +2,7 @@ module Aws
2
2
  class Broker
3
3
  class Config
4
4
 
5
- attr_accessor :enabled, :queue_prefix, :topic_prefix
5
+ attr_accessor :enabled, :queue_prefix, :topic_prefix, :sqs, :sns
6
6
  alias_method :enabled?, :enabled
7
7
 
8
8
  def initialize
@@ -11,6 +11,13 @@ module Aws
11
11
  self.topic_prefix = nil
12
12
  end
13
13
 
14
+ def sqs
15
+ @sqs ||= Aws::SQS::Client.new
16
+ end
17
+
18
+ def sns
19
+ @sns ||= Aws::SNS::Client.new
20
+ end
14
21
  end
15
22
  end
16
23
  end
@@ -74,9 +74,12 @@ module Aws
74
74
  end
75
75
 
76
76
  def sqs
77
- @sqs ||= Aws::SQS::Client.new
77
+ config.sqs
78
78
  end
79
79
 
80
+ def config
81
+ Broker.config
82
+ end
80
83
  end
81
84
  end
82
85
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-broker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eng @ Thanx
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-12 00:00:00.000000000 Z
11
+ date: 2018-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-sns
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  requirements: []
77
77
  rubyforge_project:
78
- rubygems_version: 2.6.11
78
+ rubygems_version: 2.7.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: AWS Broker