iev 0.3.8 → 0.3.9
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.
- checksums.yaml +4 -4
- data/lib/iev/db_cache.rb +6 -1
- data/lib/iev/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8ad06b28a53df39790f6b46c5e1ca4cec92e294d3331b772e1977be2759ad53f
|
|
4
|
+
data.tar.gz: 688d3afc08ea75f5a49f24c3b13264414871015c5e795a0e14b8a75b280d35f2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 19cb09cf27f99308cd6c67778c7668896656f153b7ae89b114fed7219786d9bd56dcd3444c669dec1961aa66c0be84601012b45829f5fef21da9c819b1f838b1
|
|
7
|
+
data.tar.gz: 4e6c952bfebc8a4da93f1573634520f7ec6f868641a71980fe9ba2c5e2abe784fddea50fc330c74ed44636938ce881bb8726aba2d011db59a4720d8c56762508
|
data/lib/iev/db_cache.rb
CHANGED
|
@@ -70,8 +70,13 @@ module Iev
|
|
|
70
70
|
# Check if version of the DB match to the gem version.
|
|
71
71
|
# @return [TrueClass, FalseClass]
|
|
72
72
|
def check_version?
|
|
73
|
-
|
|
73
|
+
version_file = "#{@dir}/version"
|
|
74
|
+
return false unless File.exist?(version_file)
|
|
75
|
+
|
|
76
|
+
v = File.read version_file, encoding: "utf-8"
|
|
74
77
|
v == VERSION
|
|
78
|
+
rescue StandardError
|
|
79
|
+
false
|
|
75
80
|
end
|
|
76
81
|
|
|
77
82
|
# Set version of the DB to the gem version.
|
data/lib/iev/version.rb
CHANGED