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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTY4ODE5YzgzM2YwMWUzMjJiMTg4YWY4YjZkOTEwNGFlZGJiMjkzNw==
4
+ NTY1NmNhOWEwODE4N2MyYzZmODZkMjY5ZGExYzVhMTQ3ZjJkMTU3Zg==
5
5
  data.tar.gz: !binary |-
6
- N2UxNDExZWFhOWM3MjBmMDVhM2QzY2ExYmVjYTJjYzk1MzQ2MDgxZA==
6
+ MTE2YTEyMDNlYTc2YTBkZTI4NGIxM2E4MzMzODhlNjA4NWI5MjQzYg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MzhmN2YzZmM2YzYxYTE2YzdiMGYzOTE0NTBkZWQ4NTI1MzU4ZWM2ZDhiOWVk
10
- YTE3MTJhYWJjMDk4NWFkMmY1ZGI0MjJkNzcwODVjZGQ4OTdhZDY0YzIyOTcy
11
- OWNjMzhlN2M0MmU4ZDE2ZDU1MTdkNDAyODVhNWM3NmM4Yjc0ZTA=
9
+ YTEzYzk4YWZjZDZjZGJhMDMxNDJlNzAzMGY3YmEwN2Y0NDQyOWI4MGM0MjMx
10
+ ZGU1ZDgyZDQ3MzdjN2VlMTdjODE0YzBjMDQzZTYzMjcwODEyZWViZjM5ZmNl
11
+ ZTAxMzhmZDNjYWZkZmZhZWNmYzI1OTljZjVhZjg0NjliZjQwOTQ=
12
12
  data.tar.gz: !binary |-
13
- ZTQyNjgxZDk5YzljYmNlZTljY2EwMGY5NzUzZDQ3MmFjYjcyMDYyZWNhMTBm
14
- ODY3MmVmN2RjN2M1YWUzMzExYzM4ZmY2Y2JjMWQ1OTFlOWUxMmEyN2E3MGYx
15
- MmU5OThhYmIwZGQ0N2Y0MDE1ZmQ0YjkyNzFlZjc3ZDNjMGQ3Y2Y=
13
+ Mzk4ZWNjNTQzZWNmZGJkMTJjYTExZGM1NzI4MGY2ZDA3ZmMxNDkyNjU2MWY0
14
+ MTYwZThjNDAyZTVmNzQ3OTk4ZTY2NDkwZDg4YjJhZjEyNTE4MWYzNzI4MmQy
15
+ Y2EwNzk3NmVhMTg1Y2NmMDAxYjlhOWQ3MjhiOTYyZjQyMDIwOTM=
@@ -3,7 +3,7 @@ module Phony
3
3
  class TrunkCode
4
4
 
5
5
  def initialize code, options = {}
6
- @trunk_code_replacement = /\A#{code}+/
6
+ @trunk_code_replacement = /\A#{code}/
7
7
  @normalize = options[:normalize] != false
8
8
  @split = options[:split]
9
9
  end
@@ -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.3
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-03-02 00:00:00.000000000 Z
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