g5_client_notifications_url 0.0.1 → 0.0.2

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: b5eea24c7ac9af086e70e1631481c06a07533109
4
- data.tar.gz: 9dd2868b7ae94967cb9b48ca12d2dbe5cbfab76f
3
+ metadata.gz: 234a72020f9c9d17adb04ca47f259c1cc9822471
4
+ data.tar.gz: 9a237f3a3c8cbda9714e92d391b92e024447875c
5
5
  SHA512:
6
- metadata.gz: f78f2b5cd98b4ad4b0d51b0b2efcf4c0d487115408bed4ea7510cef27d1407b80947cc0e62926f9ef0165d8346818351fc4d03c4d1bd0f100a3804341c9d381a
7
- data.tar.gz: 8b5d5464888cba18252a496da1dfd9c5a04af1bf7d17cdbebf4fde443b07a7beb58b3c93e81d444512227cbed56f63a2f9f811b37bb782199a039eb74d3d86e3
6
+ metadata.gz: c9adc9b82e87f2a66e3cbd9097e23380d37b579f74f6a9c81c625c7ec3d9d5337ee152f87b74002cf8736b73c76d4d1916ecaee85608104f54f3afefd78f08ce
7
+ data.tar.gz: c54cdb9b309a5af6dd2df750eb63e17709c0a1c137226247b7337187dc16137ee61fe9139ee1962d1b6e208afe9a6382756539984fe0c473836461c3123a322e
@@ -6,7 +6,7 @@ module G5ClientNotificationsUrl
6
6
 
7
7
  class << self
8
8
  def build(uid)
9
- return '' if uid.nil?
9
+ return '' if uid.nil? || uid.empty?
10
10
 
11
11
  "#{dsh_url(uid)}/#{NOTIFICATIONS_ROUTE}"
12
12
  end
@@ -1,3 +1,3 @@
1
1
  module G5ClientNotificationsUrl
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -14,5 +14,11 @@ describe G5ClientNotificationsUrl do
14
14
 
15
15
  specify { expect(build).to eq('') }
16
16
  end
17
+
18
+ context 'a blank client uid' do
19
+ let(:client_uid) { '' }
20
+
21
+ specify { expect(build).to eq('') }
22
+ end
17
23
  end
18
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: g5_client_notifications_url
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - bbauer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-27 00:00:00.000000000 Z
11
+ date: 2015-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: g5_heroku_app_name_formatter