phones 0.0.3 → 0.0.4

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.
data/lib/phones/parser.rb CHANGED
@@ -44,6 +44,7 @@ module Phones
44
44
  private
45
45
 
46
46
  def self.try_without_delimiters!
47
+ raise ArgumentError, "Valid phone numbers are between 5 and 16" if self.number.length > 5 && self.number.length < 16
47
48
  parts = []
48
49
  # Let's find out if there is a country code
49
50
  country_code = "+1"
@@ -1,3 +1,3 @@
1
1
  module Phones
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phones
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: