phone_number_validator 0.3.4 → 0.3.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d69cf82bf5b055dcaf4acd5b39eb37f565649ffe705074ed25c6a95afb05ade3
4
- data.tar.gz: 653b9fe60664d5f8ddaa903778127933a744719642ad519c7105f8e72df09c5b
3
+ metadata.gz: 954e7088395e9ff8ecf87ffa82635ad896e93bfede5b7354286e1e2b81cc244c
4
+ data.tar.gz: 030f5817e6c14270dc580c5aab0dee15f88676cc37ca0b0f9915429cc300067f
5
5
  SHA512:
6
- metadata.gz: f3e511b05bf39a7dd498cb1829cd1b1c8290b62d8d3005f96832d25cbb84174114582d8c9c3f079bded046fbf1cced489a75f20f355c67d96af89177fc2589bf
7
- data.tar.gz: 436c6bfcdcc7fb1bf71e39e69dbf6836faeda08ea790104a606ab4941cdb9255aaf84b8cf8e2d3f6a4eb323b982808aa9f6aa7fc1fda32f835bb77a42b5cd3a9
6
+ metadata.gz: 881f2e15a76210dbc69c48021c09068c937ba6e7238ec26aba0dbcdf2ce264a940f6e6a5c251252214bac4aaf1899bc283fc36b8f100128482057bfe6db9160a
7
+ data.tar.gz: 4feadb6fd66b96df783fbf8cbdd7f83a4b7960c06beaa49368404b4b9aa37a99cab0c21ff31e86eb9ebd4a9cc571763959a7b16e4aab4105191a89887df6224e
@@ -122,7 +122,9 @@ functionality</p>
122
122
 
123
123
  <div class="method-description">
124
124
 
125
- <p>Validates any United States phone number! <strong>Example:</strong></p>
125
+ <p>Validates any United States phone number!</p>
126
+
127
+ <p><strong>Example:</strong></p>
126
128
 
127
129
  <pre class="ruby"><span class="ruby-constant">PhoneNumberValidator</span>.<span class="ruby-identifier">validate_phone_number</span>(<span class="ruby-string">&#39;+1 (949) 355-6244 ext. 198842&#39;</span>)
128
130
  </pre>
@@ -140,7 +142,7 @@ functionality</p>
140
142
 
141
143
 
142
144
  <div class="method-source-code" id="validate_phone_number-source">
143
- <pre><span class="ruby-comment"># File lib/phone_number_validator.rb, line 17</span>
145
+ <pre><span class="ruby-comment"># File lib/phone_number_validator.rb, line 18</span>
144
146
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">validate_phone_number</span>(<span class="ruby-identifier">phone_number</span>)
145
147
  <span class="ruby-identifier">validator</span> = <span class="ruby-constant">Validator</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">phone_number</span>)
146
148
  <span class="ruby-identifier">validator</span>.<span class="ruby-identifier">validate_phone_number</span>
data/doc/created.rid CHANGED
@@ -1,6 +1,6 @@
1
- Sat, 10 Nov 2018 14:04:17 -0800
1
+ Sun, 11 Nov 2018 18:52:25 -0800
2
2
  README.rdoc Sun, 04 Nov 2018 18:31:11 -0800
3
- lib/phone_number_validator.rb Sun, 04 Nov 2018 18:28:49 -0800
3
+ lib/phone_number_validator.rb Sun, 11 Nov 2018 18:51:34 -0800
4
4
  lib/phone_number_validator/validator.rb Sun, 04 Nov 2018 18:30:16 -0800
5
5
  test/test_phone_number_validator.rb Sun, 04 Nov 2018 18:25:44 -0800
6
6
  bin/phone_number_validator Sun, 04 Nov 2018 18:16:53 -0800
Binary file
@@ -1 +1 @@
1
- var search_data = {"index":{"searchIndex":["phonenumbervalidator","validator","phonenumbervalidatortest","new()","test_invalid_phone_number()","test_valid_phone_number()","validate_phone_number()","validate_phone_number()","readme"],"longSearchIndex":["phonenumbervalidator","phonenumbervalidator::validator","phonenumbervalidatortest","phonenumbervalidator::validator::new()","phonenumbervalidatortest#test_invalid_phone_number()","phonenumbervalidatortest#test_valid_phone_number()","phonenumbervalidator::validate_phone_number()","phonenumbervalidator::validator#validate_phone_number()",""],"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 respresents 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_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_phone_number","PhoneNumberValidator","PhoneNumberValidator.html#method-c-validate_phone_number","(phone_number)","<p>Validates any United States phone number! <strong>Example:</strong>\n\n<pre>PhoneNumberValidator.validate_phone_number(&#39;+1 (949) ...</pre>\n"],["validate_phone_number","PhoneNumberValidator::Validator","PhoneNumberValidator/Validator.html#method-i-validate_phone_number","()","<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_valid_phone_number()","validate_phone_number()","validate_phone_number()","readme"],"longSearchIndex":["phonenumbervalidator","phonenumbervalidator::validator","phonenumbervalidatortest","phonenumbervalidator::validator::new()","phonenumbervalidatortest#test_invalid_phone_number()","phonenumbervalidatortest#test_valid_phone_number()","phonenumbervalidator::validate_phone_number()","phonenumbervalidator::validator#validate_phone_number()",""],"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 respresents 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_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_phone_number","PhoneNumberValidator","PhoneNumberValidator.html#method-c-validate_phone_number","(phone_number)","<p>Validates any United States phone number!\n<p><strong>Example:</strong>\n\n<pre>PhoneNumberValidator.validate_phone_number(&#39;+1 (949) ...</pre>\n"],["validate_phone_number","PhoneNumberValidator::Validator","PhoneNumberValidator/Validator.html#method-i-validate_phone_number","()","<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
@@ -5,6 +5,7 @@ class PhoneNumberValidator
5
5
 
6
6
  ##
7
7
  # Validates any United States phone number!
8
+ #
8
9
  # <b>Example:</b>
9
10
  # PhoneNumberValidator.validate_phone_number('+1 (949) 355-6244 ext. 198842')
10
11
  #
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'phone_number_validator'
3
- spec.version = '0.3.4'
3
+ spec.version = '0.3.5'
4
4
  spec.date = Time.now.strftime("%Y-%m-%d")
5
5
  spec.summary = 'Validate any US phone number!'
6
6
  spec.description = <<-EOF
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phone_number_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - bag33188
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-10 00:00:00.000000000 Z
11
+ date: 2018-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler