phonelib 0.8.6 → 0.8.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/data/extended_data.dat +0 -0
- data/data/phone_data.dat +0 -0
- data/lib/phonelib/core.rb +6 -0
- data/lib/phonelib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e41d410f5bb57cfd89b05cc5a13022de6a370ab82d43effd6f0f3147f07d3e9
|
4
|
+
data.tar.gz: '06885db5a6b08483c3de1165e2e25284ebb98b7920a9f6b74794255410f179aa'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d9b39f64830551dac9dee66544b44fc2ffd07e6649033291d1f4adfee755366c68b0e7d54ad7c307716c7d0fb594997747b1b5a09df9b0dab44fa7f41b698f0
|
7
|
+
data.tar.gz: bc8830dafb972e5b31ad0defbbc0db7a92400bb954d7ea7b311818e467c96a92117c0b59655b475e4dd7f9c82f481dbd659a081c617d79b00b611cf030d95445
|
data/data/extended_data.dat
CHANGED
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
|
data/lib/phonelib/version.rb
CHANGED
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.
|
4
|
+
version: 0.8.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vadim Senderovich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|