phonelib 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: 85cd4f24c68ac6068113a435814644b935665fbb93e7272ac7ca8ea76ae15a71
4
- data.tar.gz: 68985385d3e308bb5d1506b6ef4facd97792e9fea2018dd74802d5f2e2f9b15c
3
+ metadata.gz: ead15db333d3f8490017aef9004751e4944ba84689238cb2c2579cde56c3b751
4
+ data.tar.gz: ac6ff256e13409683825f984fb400e1eb85d6dfbfaec90dc10f163414d69eb8a
5
5
  SHA512:
6
- metadata.gz: a54324348a4569f95986931c73eca14c528cd36a1842f35871658caddf9ef233144be3a8eceab34f554cf43de78d729b0dcd222c675bb64dfda0913cf84b2881
7
- data.tar.gz: d10d62611b2876cd3e409c6d03474904359b7facf30e016e425fd5b116bb6c8cf4af619e47260c74aa612078a704cf93c18cc18ed0f8c54f296e4b6d0e7bb187
6
+ metadata.gz: 3e49e7edbe4835d24c76f393aa2a21f9bfd0cf2876536f4106e39def0bd3806b2099fc45a9a2fa8b71a8ecf6a47404c2938a26881fcd153548be396bac9977c5
7
+ data.tar.gz: 237714d47010cbb5258944d0cdadfb55f7df6d8facbf6fe0c13651b0f759ea8fd6cb3737d9e52a5c1244b0270616150214e580675148a73fa7c44494c42c1eed
Binary file
data/data/phone_data.dat CHANGED
Binary file
data/lib/phonelib/core.rb CHANGED
@@ -7,10 +7,16 @@ module Phonelib
7
7
  # eagerly initialize the gem, loads data into memory. not required, initialization is done lazily otherwise, but
8
8
  # may be desirable in production enviroments to avoid initialization time on first use.
9
9
  def eager_load!
10
+ return if @@skip_eager_loading
10
11
  phone_data
11
12
  phone_ext_data
12
13
  end
13
14
 
15
+ @@skip_eager_loading = false
16
+ def skip_eager_loading!
17
+ @@skip_eager_loading = true
18
+ end
19
+
14
20
  # getter for phone data for other modules of gem, can be used outside
15
21
  # @return [Hash] all data for phone parsing
16
22
  def phone_data
@@ -1,4 +1,4 @@
1
1
  module Phonelib
2
2
  # @private
3
- VERSION = '0.8.6'
3
+ VERSION = '0.8.7'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phonelib
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
  - Vadim Senderovich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-17 00:00:00.000000000 Z
11
+ date: 2024-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake