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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b889576ea3dc578b3913a95876719f69247e8ce
4
- data.tar.gz: 6253003f2badfdb5cc150388b824e2e8b3e83ad9
3
+ metadata.gz: d83a53e40fdcc8a66b1ea4140b45be141fabd7e6
4
+ data.tar.gz: 0cfb1abe02848401ffab3c5896b0690ff5970292
5
5
  SHA512:
6
- metadata.gz: 87438e1ec150c37010fa42b674ce3b44ed4f27422c8797753d89fdbe36eeafba2e0d7fdf8cca976e513faf9c53947bbc55ebb2ec43824c419d87b84ab017b86a
7
- data.tar.gz: 63e9537e6646eaac2dc4e87b459e8af7ee65b42b5e2e964345d7723d1f0a40afe122cb8a5d8d55c7032414534b53be97e29cd65e7edf21287d3e37cdb42d06ee
6
+ metadata.gz: b1b1f84a8dfb495a46645da6dfe6be3a9c314d4d9ad162ce8ed03406c805962dd0fc1fb4debc99681cc4c1bd503778483a44604a5edd4f669a919a8a39a4aaed
7
+ data.tar.gz: 36c7b34702aa18988eca47611d73ed199a3f86eed2a606664db9e79bf93535f49ed1599583f4be716045c4f150674fb1086e6189bfe81f9154a1fb4ab5ce2773
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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=
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dialable (1.0.0)
4
+ dialable (1.0.2)
5
5
  tzinfo (~> 1.0)
6
6
 
7
7
  GEM
@@ -89,4 +89,4 @@ DEPENDENCIES
89
89
  rspec (~> 3.3)
90
90
 
91
91
  BUNDLED WITH
92
- 1.10.6
92
+ 1.11.2
data/LICENSE CHANGED
@@ -1,4 +1,6 @@
1
- Copyright (c) 2008 Chris Horn http://chorn.com/
1
+ Copyright (c) 2015 Chris Horn (chorn@chorn.com)
2
+
3
+ MIT License
2
4
 
3
5
  Permission is hereby granted, free of charge, to any person obtaining
4
6
  a copy of this software and associated documentation files (the
@@ -0,0 +1 @@
1
+ 6bc76109a5633816d752003657119981e4d6f2763886f24184925533c81a78775dc4d1123004451443c82ee320fb43df04e3c9387c7667fe28e816f8e9c74504
@@ -0,0 +1 @@
1
+ acabea059ef58a82ab79c3bdeb31f1aad1c5fb39ec6a756ab0b9c8d192229516218fae252063554ff550b13a85daeebddd0c4828d50d48883a01642a6409e762
@@ -0,0 +1 @@
1
+ eb705f3affa18165d26e76e363a1404b56cf75496388600a9fe8f22561abbee93bd113af148f2bae133d6ae006edeb3c06854e755d647d97431a01166ab7165c
@@ -0,0 +1 @@
1
+ 01b2cdc91b6929fc2b3efc0c14b04948b04c89c2ec00268a64d8280d313644dd9cf052b45fc1520127cc4f30ac6d68a67048a606029a2ff8ab952a8c3e945a40
@@ -3,11 +3,23 @@ require 'yaml'
3
3
  module Dialable
4
4
  module AreaCodes
5
5
 
6
- # Valid area codes per nanpa.com
7
- data_path = Gem.datadir('dialable')
8
- data_path ||= File.join(File.dirname(__FILE__), '..', 'data', 'dialable')
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
- NANP = YAML.load_file(File.join(data_path, 'nanpa.yaml'))
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
@@ -1,3 +1,3 @@
1
1
  module Dialable
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.2"
3
3
  end
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.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-08 00:00:00.000000000 Z
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.4.5.1
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