no_phone 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -19,6 +19,11 @@ Lacking complete knowledge of the phone system this is based on common sense and
19
19
 
20
20
 
21
21
  require 'no_phone'
22
- NoPhone.normalize "0047 (123) 45-678"
22
+
23
+ class SomethingSpecial
24
+ extend NoPhone
25
+ end
26
+
27
+ SomethingSpecial.normalize "0047 (123) 45-678"
23
28
  => "12345678"
24
29
 
data/lib/no_phone.rb CHANGED
@@ -24,7 +24,7 @@ module NoPhone
24
24
  normalize("+#{number}") if number
25
25
  end
26
26
 
27
- def valid?(number)
27
+ def number_valid?(number)
28
28
  return false if number.nil?
29
29
  return false if number == ""
30
30
  case number.strip
@@ -1,3 +1,3 @@
1
1
  module NoPhone
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 5
9
- version: 0.0.5
8
+ - 6
9
+ version: 0.0.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Simen Svale Skogsrud, Katrina Owen