dialable 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.travis.yml +12 -0
- data/Gemfile.lock +2 -2
- data/LICENSE +3 -1
- data/checksums/dialable-0.6.3.gem.sha512 +1 -0
- data/checksums/dialable-0.7.0.gem.sha512 +1 -0
- data/checksums/dialable-1.0.0.gem.sha512 +1 -0
- data/checksums/dialable-1.0.1.gem.sha512 +1 -0
- data/lib/dialable/area_codes.rb +16 -4
- data/lib/dialable/version.rb +1 -1
- metadata +7 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d83a53e40fdcc8a66b1ea4140b45be141fabd7e6
|
4
|
+
data.tar.gz: 0cfb1abe02848401ffab3c5896b0690ff5970292
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1b1f84a8dfb495a46645da6dfe6be3a9c314d4d9ad162ce8ed03406c805962dd0fc1fb4debc99681cc4c1bd503778483a44604a5edd4f669a919a8a39a4aaed
|
7
|
+
data.tar.gz: 36c7b34702aa18988eca47611d73ed199a3f86eed2a606664db9e79bf93535f49ed1599583f4be716045c4f150674fb1086e6189bfe81f9154a1fb4ab5ce2773
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/.travis.yml
CHANGED
@@ -1,10 +1,22 @@
|
|
1
1
|
language: ruby
|
2
2
|
cache: bundler
|
3
3
|
script: bundle exec rspec
|
4
|
+
before_install:
|
5
|
+
- gem update bundler
|
4
6
|
rvm:
|
7
|
+
- 2.3.0
|
5
8
|
- 2.2.3
|
9
|
+
- 2.2.0
|
6
10
|
- 2.1.7
|
7
11
|
- 2.0.0
|
8
12
|
- 1.9.3
|
13
|
+
env:
|
14
|
+
- ISOLATED=true
|
15
|
+
- ISOLATED=false
|
16
|
+
git:
|
17
|
+
depth: 3
|
18
|
+
submodules: false
|
19
|
+
deploy:
|
20
|
+
skip_cleanup: true
|
9
21
|
dd:
|
10
22
|
secure: fzItORKaVrevTjQQu85FYgqgSVkRGG8PtOfNTCYY0meyP1+hF/lH6i5ZAb35VAuwi9InqaYnPx09dREBlfEqkzY/Ypxglq+EosAfqOgiKFu44JlM4vhxSdwn2mywCJpYZ0IbH5OnkF6rUULL/AoRQPlIV77eRqhB9LGfLNlYMfU=
|
data/Gemfile.lock
CHANGED
data/LICENSE
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
6bc76109a5633816d752003657119981e4d6f2763886f24184925533c81a78775dc4d1123004451443c82ee320fb43df04e3c9387c7667fe28e816f8e9c74504
|
@@ -0,0 +1 @@
|
|
1
|
+
acabea059ef58a82ab79c3bdeb31f1aad1c5fb39ec6a756ab0b9c8d192229516218fae252063554ff550b13a85daeebddd0c4828d50d48883a01642a6409e762
|
@@ -0,0 +1 @@
|
|
1
|
+
eb705f3affa18165d26e76e363a1404b56cf75496388600a9fe8f22561abbee93bd113af148f2bae133d6ae006edeb3c06854e755d647d97431a01166ab7165c
|
@@ -0,0 +1 @@
|
|
1
|
+
01b2cdc91b6929fc2b3efc0c14b04948b04c89c2ec00268a64d8280d313644dd9cf052b45fc1520127cc4f30ac6d68a67048a606029a2ff8ab952a8c3e945a40
|
data/lib/dialable/area_codes.rb
CHANGED
@@ -3,11 +3,23 @@ require 'yaml'
|
|
3
3
|
module Dialable
|
4
4
|
module AreaCodes
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
def self.datadir
|
7
|
+
# If we are in the source directory, don't use the datadir from the gem.
|
8
|
+
datadir = if File.identical?(ENV['PWD'], File.join(File.dirname(__FILE__), '..', '..'))
|
9
|
+
File.join(File.dirname(__FILE__), '..', '..', 'data', 'dialable')
|
10
|
+
else
|
11
|
+
Gem.datadir('dialable')
|
12
|
+
end
|
13
|
+
|
14
|
+
if ! File.directory?(datadir)
|
15
|
+
fail "Can't find the datadir provided by the gem: #{Gem.datadir('dialable')} or by the source: #{File.join(File.dirname(__FILE__), '..', 'data', 'dialable')}."
|
16
|
+
end
|
9
17
|
|
10
|
-
|
18
|
+
datadir
|
19
|
+
end
|
20
|
+
|
21
|
+
# Valid area codes per nanpa.com
|
22
|
+
NANP = YAML.load_file(File.join(datadir, 'nanpa.yaml'))
|
11
23
|
|
12
24
|
end
|
13
25
|
end
|
data/lib/dialable/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dialable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Horn
|
@@ -64,7 +64,7 @@ cert_chain:
|
|
64
64
|
plBjPb1jywhCxKfdcYv+f4er+X1AnUyoYNi7EiifiNys7nmVG4+aFEZyUULPrB2g
|
65
65
|
bHE=
|
66
66
|
-----END CERTIFICATE-----
|
67
|
-
date: 2015-12-
|
67
|
+
date: 2015-12-27 00:00:00.000000000 Z
|
68
68
|
dependencies:
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: tzinfo
|
@@ -196,6 +196,10 @@ files:
|
|
196
196
|
- README.md
|
197
197
|
- Rakefile
|
198
198
|
- certs/chorn.pem
|
199
|
+
- checksums/dialable-0.6.3.gem.sha512
|
200
|
+
- checksums/dialable-0.7.0.gem.sha512
|
201
|
+
- checksums/dialable-1.0.0.gem.sha512
|
202
|
+
- checksums/dialable-1.0.1.gem.sha512
|
199
203
|
- data/dialable/nanpa.yaml
|
200
204
|
- dialable.gemspec
|
201
205
|
- lib/dialable.rb
|
@@ -229,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
229
233
|
version: '0'
|
230
234
|
requirements: []
|
231
235
|
rubyforge_project:
|
232
|
-
rubygems_version: 2.
|
236
|
+
rubygems_version: 2.5.1
|
233
237
|
signing_key:
|
234
238
|
specification_version: 4
|
235
239
|
summary: Provides parsing and output of phone numbers according to NANPA standards.
|
metadata.gz.sig
CHANGED
Binary file
|