phony 2.2.3 → 2.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/phony/trunk_code.rb +1 -1
- data/spec/lib/phony_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NTY1NmNhOWEwODE4N2MyYzZmODZkMjY5ZGExYzVhMTQ3ZjJkMTU3Zg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTE2YTEyMDNlYTc2YTBkZTI4NGIxM2E4MzMzODhlNjA4NWI5MjQzYg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTEzYzk4YWZjZDZjZGJhMDMxNDJlNzAzMGY3YmEwN2Y0NDQyOWI4MGM0MjMx
|
10
|
+
ZGU1ZDgyZDQ3MzdjN2VlMTdjODE0YzBjMDQzZTYzMjcwODEyZWViZjM5ZmNl
|
11
|
+
ZTAxMzhmZDNjYWZkZmZhZWNmYzI1OTljZjVhZjg0NjliZjQwOTQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Mzk4ZWNjNTQzZWNmZGJkMTJjYTExZGM1NzI4MGY2ZDA3ZmMxNDkyNjU2MWY0
|
14
|
+
MTYwZThjNDAyZTVmNzQ3OTk4ZTY2NDkwZDg4YjJhZjEyNTE4MWYzNzI4MmQy
|
15
|
+
Y2EwNzk3NmVhMTg1Y2NmMDAxYjlhOWQ3MjhiOTYyZjQyMDIwOTM=
|
data/lib/phony/trunk_code.rb
CHANGED
data/spec/lib/phony_spec.rb
CHANGED
@@ -4,6 +4,12 @@ require 'spec_helper'
|
|
4
4
|
|
5
5
|
describe Phony do
|
6
6
|
|
7
|
+
describe 'regression' do
|
8
|
+
it '#151' do
|
9
|
+
Phony.normalize('1-111-111-1111').should == '1111111111' # One 1 is removed because 1 is the trunk code.
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
7
13
|
describe 'OO interface' do
|
8
14
|
describe '[]' do
|
9
15
|
it '' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phony
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Hanke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: ! 'Fast international phone number (E164 standard) normalizing, splitting
|
14
14
|
and formatting. Lots of formatting options: International (+.., 00..), national
|