google-pubsub-enhancer 0.1.5 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0dc8568d671d6eab7c897c473d88ac3b650a144d
4
- data.tar.gz: 37a518956fae4794e141190ecac3d7794916201e
3
+ metadata.gz: a0923435e653db20ce66d17dc020743d5813c995
4
+ data.tar.gz: 2c7ede0c7070454907b5b407a555492f3ca412e9
5
5
  SHA512:
6
- metadata.gz: 149e0d2cc061f5c8ac057701df1ab148f0c443025716811a0605daedcd580d9eb5d9f5de9048335ccf26a3cc19ffb908ad637b15d715135bf5d97eb2a488b5e1
7
- data.tar.gz: f9c3cd8304cafc902d7fde8cfb4c217f25b4804f33d138f692dd0034decaf4256288a528cd9444c7e0b08d3206c77b0cf66bb9513fadf04898af9e163e9b047f
6
+ metadata.gz: ee980462b779d06e4827b8ba825c1d627dc839bfa9f95f98a8a16ff967c55ae9033df476a61b91f311265c97062fe086aa8e41f2a9aaa109c078d3742dacb725
7
+ data.tar.gz: 5b86fde7d77fc6aa36ff1043cc014d4111f1ab3a57ef35f2b40cb7602ab2e69f023377a1cab001708514fe6c098d1cf1323cf5dac0cbdec68d36d51fa2f4ddb6
@@ -16,6 +16,8 @@ class GooglePubsubEnhancer
16
16
  def pubsub_config
17
17
  key = ::Google::Cloud::Pubsub::Credentials::JSON_ENV_VARS.find { |n| !ENV[n].nil? }
18
18
  @pubsub_config ||= JSON.parse(ENV[key])
19
+ rescue => ex
20
+ raise Exception, 'Environment not setted properly'
19
21
  end
20
22
  end
21
23
 
@@ -44,6 +46,8 @@ class GooglePubsubEnhancer
44
46
 
45
47
  def create_subscription(subscription_short_name)
46
48
  Google::Cloud::Pubsub.new.subscription(self.class.name_by('subscriptions', subscription_short_name))
49
+ rescue => ex
50
+ raise Exception, 'Environment not setted properly'
47
51
  end
48
52
 
49
53
  def configurate_options(opts)
@@ -1,3 +1,3 @@
1
1
  class GooglePubsubEnhancer
2
- VERSION = "0.1.5"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-pubsub-enhancer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - bejczib