geturl 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/geturl/geturl-file-manager.rb +2 -1
- data/lib/geturl/geturl-sources.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: a275a154fd86d5f7952ffacc831fc766e6a39bf94c8365122c541a75ff3e22ec
|
4
|
+
data.tar.gz: e590599e8cde60e3a014248a1a0d4807f72670d04afa0c46ccc35141aae9ad28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c7b21208317533078698f3e992d757823b0bfe198ce16e6712acc41c7c1a1feafb7df5cc3e2653f9c59a67b40842e212ad7cfc5fc68ac4e593498dfd4d0284b
|
7
|
+
data.tar.gz: de66fa18062213acabd6b31acae292b90e81a7f01bde97a1fb12348f5aeb94e7f3d385534d53f1d2b7b66b69736c36af8b56b054264eea2b9c83af259d1e71ad
|
@@ -55,6 +55,7 @@ module GetUrl
|
|
55
55
|
# @param [Object] file The path of the file
|
56
56
|
# @return [Integer]
|
57
57
|
def clean_and_save_items_to_yaml_file(str, file)
|
58
|
+
clear_all_items_cache
|
58
59
|
cleaned_items = load_items_from_yaml_string(str)
|
59
60
|
save_items_to_yaml_file(cleaned_items, file)
|
60
61
|
end
|
@@ -99,7 +100,7 @@ module GetUrl
|
|
99
100
|
#
|
100
101
|
# @return [Object]
|
101
102
|
def clear_all_items_cache
|
102
|
-
unlink(get_all_items_cache_file) if all_items_cache_exist?
|
103
|
+
File::unlink(get_all_items_cache_file) if all_items_cache_exist?
|
103
104
|
end
|
104
105
|
|
105
106
|
end
|
@@ -77,7 +77,7 @@ module GetUrl
|
|
77
77
|
FileManager.clean_and_save_items_to_yaml_file(data, file)
|
78
78
|
puts "Loaded #{id}" + "".ljust(5) if (options[:verbose])
|
79
79
|
rescue Exception => e
|
80
|
-
|
80
|
+
puts "Failed to load #{id}: #{e.message}" if (options[:verbose])
|
81
81
|
end
|
82
82
|
end
|
83
83
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geturl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taco Jan Osinga
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|