nuntium_api 0.5 → 0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/nuntium.rb +2 -2
  2. metadata +3 -3
data/lib/nuntium.rb CHANGED
@@ -21,7 +21,7 @@ class Nuntium
21
21
  # Gets a country given its iso2 or iso3 code, or nil if a country with that iso does not exist.
22
22
  def country(iso)
23
23
  c = self.class.get "#{@url}/api/countries/#{iso}.json"
24
- c.strip.empty? ? nil : c
24
+ c.class <= String ? nil : c
25
25
  end
26
26
 
27
27
  # Gets the list of carriers known to Nuntium that belong to a country, given its
@@ -37,7 +37,7 @@ class Nuntium
37
37
  # Gets a carrier given its guid, or nil if a carrier with that guid does not exist.
38
38
  def carrier(guid)
39
39
  c = self.class.get "#{@url}/api/carriers/#{guid}.json"
40
- c.strip.empty? ? nil : c
40
+ c.class <= String ? nil : c
41
41
  end
42
42
 
43
43
  # Returns the list of channels belonging to the application or that don't
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nuntium_api
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 5
9
- version: "0.5"
8
+ - 6
9
+ version: "0.6"
10
10
  platform: ruby
11
11
  authors:
12
12
  - InsTEDD