phone_number_validator 0.8.6 → 0.8.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 61321d30a25d91c6c01be0ab83130ac5f4a262237e94d657fafede0c52843608
4
- data.tar.gz: f23f39f5657d6eddaba7e1e9dab64dc22e157dcd219d056691e88131edb45605
3
+ metadata.gz: d1c38181ae527e88c1ab8d41a9f955d72589680b898929608f7b4e907b8415fd
4
+ data.tar.gz: dc6d7e5d778983a4eecf1268f7ea0570e76dce2ec71cd8db4a0b9ca51a1e1796
5
5
  SHA512:
6
- metadata.gz: cba6b6000e908839aae28d9d6f96f1c6319b5e993ce37217981ccc3c2645b9aac441bd130c3836c07f210438566003221b623aa457862c8856b7a36c205ae74b
7
- data.tar.gz: 1a706a2490848ec864f6b6c6a0f38bd1efa565408cf340a1f4f41abc56adaf20a9d66dcf6f7d697369df8a20e4e16dcb0ca578a2846295092d02b87c45b50d71
6
+ metadata.gz: decdb89058cbafa24216517a111130cc57c1c8b6702174ec67b3a264b577348a21fcc80902aa0f9444536b9d6007fe815f4d8351e0e8c60d48520f8f089f4842
7
+ data.tar.gz: a2aa2dac3aebcb84287035e9013ce769b06df1f7209a29aabd3fc29a668de1b32954efaf8adbb4c0f7687187864d1466360fe94610039ca2865bbf9c7dcfd17f
data/README.rdoc CHANGED
@@ -38,7 +38,7 @@ This gem uses the following regular expression:
38
38
 
39
39
  === In command line
40
40
 
41
- $ pnv "+1 (949) 355-6244 ext. 198842"
41
+ $ pnv "+1 (987) 654-3210 ext. 198842"
42
42
 
43
43
  ==== Output
44
44
 
@@ -134,7 +134,7 @@ documentation&#39;s home page</p>
134
134
 
135
135
  <div class="method-heading">
136
136
  <span class="method-name">new</span><span
137
- class="method-args">(phone_number = &#39;+1 (949) 355-6244 ext. 198842&#39;)</span>
137
+ class="method-args">(phone_number = &#39;+1 (987) 654-3210 ext. 198842&#39;)</span>
138
138
 
139
139
  <span class="method-click-advice">click to toggle source</span>
140
140
 
@@ -150,7 +150,7 @@ documentation&#39;s home page</p>
150
150
 
151
151
  <div class="method-source-code" id="new-source">
152
152
  <pre><span class="ruby-comment"># File lib/phone_number_validator/validator.rb, line 15</span>
153
- <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">phone_number</span> = <span class="ruby-string">&#39;+1 (949) 355-6244 ext. 198842&#39;</span>)
153
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">phone_number</span> = <span class="ruby-string">&#39;+1 (987) 654-3210 ext. 198842&#39;</span>)
154
154
  <span class="ruby-ivar">@phone_number</span> = <span class="ruby-identifier">phone_number</span>
155
155
  <span class="ruby-keyword">end</span></pre>
156
156
  </div>
@@ -164,7 +164,7 @@
164
164
 
165
165
  <div class="method-description">
166
166
 
167
- <p>This test inputs no phone number and expectst the output to be
167
+ <p>This test inputs no phone number and expects the output to be
168
168
  <strong>nil</strong></p>
169
169
 
170
170
 
@@ -209,7 +209,7 @@
209
209
  <pre><span class="ruby-comment"># File test/test_phone_number_validator.rb, line 13</span>
210
210
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_valid_phone_number</span>
211
211
  <span class="ruby-identifier">assert_equal</span> <span class="ruby-keyword">true</span>,
212
- <span class="ruby-constant">PhoneNumberValidator</span>.<span class="ruby-identifier">validate</span>(<span class="ruby-string">&#39;+1 (949) 355-6244 ext. 198842&#39;</span>)
212
+ <span class="ruby-constant">PhoneNumberValidator</span>.<span class="ruby-identifier">validate</span>(<span class="ruby-string">&#39;+1 (987) 654-3210 ext. 198842&#39;</span>)
213
213
  <span class="ruby-keyword">end</span></pre>
214
214
  </div>
215
215
 
data/doc/README_rdoc.html CHANGED
@@ -131,7 +131,7 @@ number.</p>
131
131
 
132
132
  <h3 id="label-In+command+line">In command line<span><a href="#label-In+command+line">&para;</a> <a href="#top">&uarr;</a></span></h3>
133
133
 
134
- <pre>$ pnv &quot;+1 (949) 355-6244 ext. 198842&quot;</pre>
134
+ <pre>$ pnv &quot;+1 (987) 654-3210 ext. 198842&quot;</pre>
135
135
 
136
136
  <h4 id="label-Output">Output<span><a href="#label-Output">&para;</a> <a href="#top">&uarr;</a></span></h4>
137
137
 
data/doc/created.rid CHANGED
@@ -1,6 +1,6 @@
1
- Thu, 11 Jul 2019 08:42:23 -0700
2
- README.rdoc Tue, 27 Nov 2018 09:42:11 -0800
1
+ Thu, 11 Jul 2019 08:47:01 -0700
2
+ README.rdoc Thu, 11 Jul 2019 08:46:42 -0700
3
3
  lib/phone_number_validator.rb Tue, 27 Nov 2018 09:42:11 -0800
4
- lib/phone_number_validator/validator.rb Sat, 06 Jul 2019 12:04:35 -0700
5
- test/test_phone_number_validator.rb Thu, 11 Jul 2019 08:41:29 -0700
4
+ lib/phone_number_validator/validator.rb Thu, 11 Jul 2019 08:46:02 -0700
5
+ test/test_phone_number_validator.rb Thu, 11 Jul 2019 08:46:25 -0700
6
6
  bin/pnv Tue, 27 Nov 2018 09:42:11 -0800
data/doc/index.html CHANGED
@@ -125,7 +125,7 @@ number.</p>
125
125
 
126
126
  <h3 id="label-In+command+line">In command line<span><a href="#label-In+command+line">&para;</a> <a href="#top">&uarr;</a></span></h3>
127
127
 
128
- <pre>$ pnv &quot;+1 (949) 355-6244 ext. 198842&quot;</pre>
128
+ <pre>$ pnv &quot;+1 (987) 654-3210 ext. 198842&quot;</pre>
129
129
 
130
130
  <h4 id="label-Output">Output<span><a href="#label-Output">&para;</a> <a href="#top">&uarr;</a></span></h4>
131
131
 
Binary file
@@ -1 +1 @@
1
- var search_data = {"index":{"searchIndex":["phonenumbervalidator","validator","phonenumbervalidatortest","new()","test_invalid_phone_number()","test_no_phone_number()","test_valid_phone_number()","validate()","validate()","readme"],"longSearchIndex":["phonenumbervalidator","phonenumbervalidator::validator","phonenumbervalidatortest","phonenumbervalidator::validator::new()","phonenumbervalidatortest#test_invalid_phone_number()","phonenumbervalidatortest#test_no_phone_number()","phonenumbervalidatortest#test_valid_phone_number()","phonenumbervalidator::validate()","phonenumbervalidator::validator#validate()",""],"info":[["PhoneNumberValidator","","PhoneNumberValidator.html","","<p>This class is the master/parent class to all of the validation\nfunctionality\n"],["PhoneNumberValidator::Validator","","PhoneNumberValidator/Validator.html","","<p>This class does all of the matching and checking work for the validation of\nthe phone number.\n"],["PhoneNumberValidatorTest","","PhoneNumberValidatorTest.html","","<p>This class represents the testing-unit for this gem app\n<p><strong>Inherits from:</strong>\n\n<pre class=\"ruby\"><span class=\"ruby-constant\">Test</span><span class=\"ruby-operator\">::</span><span class=\"ruby-constant\">Unit</span><span class=\"ruby-operator\">::</span><span class=\"ruby-constant\">TestCase</span>\n</pre>\n"],["new","PhoneNumberValidator::Validator","PhoneNumberValidator/Validator.html#method-c-new","(phone_number = '+1 (949) 355-6244 ext. 198842')","<p>Initializes the <strong>@phone_number</strong> instance variable\n"],["test_invalid_phone_number","PhoneNumberValidatorTest","PhoneNumberValidatorTest.html#method-i-test_invalid_phone_number","()","<p>This test inputs an invalid phone number and expects the output to be\n<strong>false</strong>\n"],["test_no_phone_number","PhoneNumberValidatorTest","PhoneNumberValidatorTest.html#method-i-test_no_phone_number","()","<p>This test inputs no phone number and expectst the output to be\n<strong>nil</strong>\n"],["test_valid_phone_number","PhoneNumberValidatorTest","PhoneNumberValidatorTest.html#method-i-test_valid_phone_number","()","<p>This test inputs a valid phone number and expects the output to be\n<strong>true</strong>\n"],["validate","PhoneNumberValidator","PhoneNumberValidator.html#method-c-validate","(phone_number)","<p>Validates any United States phone number!\n<p><strong>Arguments:</strong>\n\n<pre>phone_number: (String)</pre>\n"],["validate","PhoneNumberValidator::Validator","PhoneNumberValidator/Validator.html#method-i-validate","()","<p>Checks to see if the phone number the user entered is valid by testing\nregex the pattern with the phone …\n"],["README","","README_rdoc.html","","<p>Phone Number Validator\n<p>About\n<p>This app is a US phone number-validating RubyGem.\n"]]}}
1
+ var search_data = {"index":{"searchIndex":["phonenumbervalidator","validator","phonenumbervalidatortest","new()","test_invalid_phone_number()","test_no_phone_number()","test_valid_phone_number()","validate()","validate()","readme"],"longSearchIndex":["phonenumbervalidator","phonenumbervalidator::validator","phonenumbervalidatortest","phonenumbervalidator::validator::new()","phonenumbervalidatortest#test_invalid_phone_number()","phonenumbervalidatortest#test_no_phone_number()","phonenumbervalidatortest#test_valid_phone_number()","phonenumbervalidator::validate()","phonenumbervalidator::validator#validate()",""],"info":[["PhoneNumberValidator","","PhoneNumberValidator.html","","<p>This class is the master/parent class to all of the validation\nfunctionality\n"],["PhoneNumberValidator::Validator","","PhoneNumberValidator/Validator.html","","<p>This class does all of the matching and checking work for the validation of\nthe phone number.\n"],["PhoneNumberValidatorTest","","PhoneNumberValidatorTest.html","","<p>This class represents the testing-unit for this gem app\n<p><strong>Inherits from:</strong>\n\n<pre class=\"ruby\"><span class=\"ruby-constant\">Test</span><span class=\"ruby-operator\">::</span><span class=\"ruby-constant\">Unit</span><span class=\"ruby-operator\">::</span><span class=\"ruby-constant\">TestCase</span>\n</pre>\n"],["new","PhoneNumberValidator::Validator","PhoneNumberValidator/Validator.html#method-c-new","(phone_number = '+1 (987) 654-3210 ext. 198842')","<p>Initializes the <strong>@phone_number</strong> instance variable\n"],["test_invalid_phone_number","PhoneNumberValidatorTest","PhoneNumberValidatorTest.html#method-i-test_invalid_phone_number","()","<p>This test inputs an invalid phone number and expects the output to be\n<strong>false</strong>\n"],["test_no_phone_number","PhoneNumberValidatorTest","PhoneNumberValidatorTest.html#method-i-test_no_phone_number","()","<p>This test inputs no phone number and expects the output to be\n<strong>nil</strong>\n"],["test_valid_phone_number","PhoneNumberValidatorTest","PhoneNumberValidatorTest.html#method-i-test_valid_phone_number","()","<p>This test inputs a valid phone number and expects the output to be\n<strong>true</strong>\n"],["validate","PhoneNumberValidator","PhoneNumberValidator.html#method-c-validate","(phone_number)","<p>Validates any United States phone number!\n<p><strong>Arguments:</strong>\n\n<pre>phone_number: (String)</pre>\n"],["validate","PhoneNumberValidator::Validator","PhoneNumberValidator/Validator.html#method-i-validate","()","<p>Checks to see if the phone number the user entered is valid by testing\nregex the pattern with the phone …\n"],["README","","README_rdoc.html","","<p>Phone Number Validator\n<p>About\n<p>This app is a US phone number-validating RubyGem.\n"]]}}
Binary file
Binary file
@@ -12,7 +12,7 @@ class PhoneNumberValidator::Validator
12
12
 
13
13
  ##
14
14
  # Initializes the <b>@phone_number</b> instance variable
15
- def initialize(phone_number = '+1 (949) 355-6244 ext. 198842')
15
+ def initialize(phone_number = '+1 (987) 654-3210 ext. 198842')
16
16
  @phone_number = phone_number
17
17
  end
18
18
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'phone_number_validator'
3
- spec.version = '0.8.6'
3
+ spec.version = '0.8.7'
4
4
  spec.date = Time.now.strftime("%Y-%m-%d")
5
5
  spec.summary = 'Validate any US phone number!'
6
6
  spec.description = <<-EOF
@@ -12,7 +12,7 @@ class PhoneNumberValidatorTest < Test::Unit::TestCase
12
12
  # This test inputs a valid phone number and expects the output to be <b>true</b>
13
13
  def test_valid_phone_number
14
14
  assert_equal true,
15
- PhoneNumberValidator.validate('+1 (949) 355-6244 ext. 198842')
15
+ PhoneNumberValidator.validate('+1 (987) 654-3210 ext. 198842')
16
16
  end
17
17
 
18
18
  ##
@@ -23,7 +23,7 @@ class PhoneNumberValidatorTest < Test::Unit::TestCase
23
23
  end
24
24
 
25
25
  ##
26
- # This test inputs no phone number and expectst the output to be <b>nil</b>
26
+ # This test inputs no phone number and expects the output to be <b>nil</b>
27
27
  def test_no_phone_number
28
28
  assert_equal :nil,
29
29
  PhoneNumberValidator.validate('')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phone_number_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.6
4
+ version: 0.8.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - bag33188