wicoris-postman 0.11.0 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ module Wicoris
5
5
  VALID_PHONE_NUMBER = %r{
6
6
  ^0 # starts with a zero
7
7
  [1-9]{1} # but not with a second zero
8
- \d{8,}$ # followed by at least 8 digits
8
+ \d{7,}$ # followed by at least 8 digits
9
9
  }x
10
10
 
11
11
  def initialize(job, opts = {})
@@ -1,5 +1,5 @@
1
1
  module Wicoris
2
2
  module Postman
3
- VERSION = '0.11.0'
3
+ VERSION = '0.11.1'
4
4
  end
5
5
  end
@@ -69,6 +69,11 @@ module Wicoris::Postman
69
69
  expect{ fax.validated_phone }.to raise_error ArgumentError
70
70
  end
71
71
 
72
+ it 'does not raise with 9 digits' do
73
+ job.stub(:phone).and_return('012345678')
74
+ expect{ fax.validated_phone }.to_not raise_error ArgumentError
75
+ end
76
+
72
77
  it 'raises when number contains invalid chars' do
73
78
  job.stub(:phone).and_return('01234hello')
74
79
  expect{ fax.validated_phone }.to raise_error ArgumentError
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wicoris-postman
3
3
  version: !ruby/object:Gem::Version
4
- hash: 51
4
+ hash: 49
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 11
9
- - 0
10
- version: 0.11.0
9
+ - 1
10
+ version: 0.11.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Bjo\xCC\x88rn Albers"
@@ -223,7 +223,7 @@ rubyforge_project:
223
223
  rubygems_version: 1.6.2
224
224
  signing_key:
225
225
  specification_version: 3
226
- summary: wicoris-postman-0.11.0
226
+ summary: wicoris-postman-0.11.1
227
227
  test_files:
228
228
  - features/copy.feature
229
229
  - features/fax.feature