simnos 0.1.0.beta2 → 0.1.0.beta3

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: 986bd0f7efbfb4dc0715210db758c6b4bdf2fe92
4
- data.tar.gz: 5057aeb529648974b0117e1991ef5df5f67add66
3
+ metadata.gz: 2dcea340c324817d32c60f71d02321d614e8420e
4
+ data.tar.gz: dde014013415169d6944bb17783ec56807d14876
5
5
  SHA512:
6
- metadata.gz: 6ce5fcea79fadc949daec896b80a79b746341bcbb1c68951ab0aa4189eb258a6e5338c348051654156b0a3ebcfcb2004c2c76b2444cd6747a65d55982344241e
7
- data.tar.gz: f8d8a5a25ad03e9c972c634152a10ff49959790233278ce0bf29b6181f243d49ef642da09c4100f48b02915340725addc0dea54f48f8ae6aba33b1235fa61aef
6
+ metadata.gz: '08420d0f439fa25d925aff904c49f4f4c2d26805892492bdabc92fbb6a4c286105fb97273e8ea47c93983ce60eb8bbfa68489b8c3710df8d9f8c1ed13b873f0d'
7
+ data.tar.gz: e4e02de224e3601f6299c16015e8cc0e9f643c7ee1d10f60e788499a3a65b95f861e94b7c06966a7ae9df2efdb20f3de6dee9fef02803b403ade976bceaa834f
@@ -47,7 +47,8 @@ module Simnos
47
47
 
48
48
  def sns(region = nil, &block)
49
49
  current_region = @context[:region] = region || ENV['AWS_DEFAULT_REGION'] || ENV.fetch('AWS_REGION')
50
- topics = @result.snss[current_region] || []
50
+ current_region_sns = @result.snss[current_region]
51
+ topics = current_region_sns ? current_region_sns.topics : []
51
52
  @result.snss[current_region] = SNS.new(@context, topics, &block).result
52
53
  end
53
54
  end
@@ -1,3 +1,3 @@
1
1
  module Simnos
2
- VERSION = "0.1.0.beta2"
2
+ VERSION = "0.1.0.beta3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simnos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.beta2
4
+ version: 0.1.0.beta3
5
5
  platform: ruby
6
6
  authors:
7
7
  - wata