russian_phone 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -44,6 +44,14 @@ module RussianPhone
44
44
  @valid ||= !(country.nil? || city.nil? || subscriber.nil? || country == '' || city == '' || subscriber == '')
45
45
  end
46
46
 
47
+ def blank?
48
+ @phone.strip == ''
49
+ end
50
+
51
+ def empty?
52
+ @phone.strip == ''
53
+ end
54
+
47
55
  def subscriber
48
56
  @subscriber ||= parse(:subscriber)
49
57
  end
@@ -1,3 +1,3 @@
1
1
  module RussianPhone
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: russian_phone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: