wicoris-postman 0.12.1 → 0.12.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,9 +3,9 @@ module Wicoris
3
3
  class FaxMachine
4
4
  DIALOUT_PREFIX = '0'
5
5
  VALID_PHONE_NUMBER = %r{
6
- ^0 # starts with a zero
7
- [1-9]{1} # but not with a second zero
8
- \d{7,}$ # followed by at least 8 digits
6
+ ^0 # 1st char has to be a zero
7
+ [1-9]{1} # 2nd char has to be a digit execpt zero
8
+ \d{6,}$ # followed by at least 6 other digits
9
9
  }x
10
10
 
11
11
  attr_reader :logger
@@ -1,5 +1,5 @@
1
1
  module Wicoris
2
2
  module Postman
3
- VERSION = '0.12.1'
3
+ VERSION = '0.12.2'
4
4
  end
5
5
  end
@@ -74,13 +74,13 @@ module Wicoris::Postman
74
74
  expect{ fax.validated_phone }.to raise_error ArgumentError
75
75
  end
76
76
 
77
- it 'raises when shorter then 9 digits' do
78
- job.stub(:phone).and_return('01234567')
77
+ it 'raises when shorter then 8 digits' do
78
+ job.stub(:phone).and_return('0123456')
79
79
  expect{ fax.validated_phone }.to raise_error ArgumentError
80
80
  end
81
81
 
82
- it 'does not raise with 9 digits' do
83
- job.stub(:phone).and_return('012345678')
82
+ it 'does not raise with 8 digits' do
83
+ job.stub(:phone).and_return('01234567')
84
84
  expect{ fax.validated_phone }.to_not raise_error ArgumentError
85
85
  end
86
86
 
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: 45
4
+ hash: 43
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 12
9
- - 1
10
- version: 0.12.1
9
+ - 2
10
+ version: 0.12.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Bjo\xCC\x88rn Albers"
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2014-03-14 00:00:00 +01:00
18
+ date: 2014-03-18 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -238,7 +238,7 @@ rubyforge_project:
238
238
  rubygems_version: 1.6.2
239
239
  signing_key:
240
240
  specification_version: 3
241
- summary: wicoris-postman-0.12.1
241
+ summary: wicoris-postman-0.12.2
242
242
  test_files:
243
243
  - features/copy.feature
244
244
  - features/fax.feature