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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0225dfb974d2359199c76c94460e587943f1b8cf4313c9ef13bcc41e70ea9103
4
- data.tar.gz: af50fa9455394d2c4b4d54751eba728c2f523f3f585e00133257615cdc430c87
3
+ metadata.gz: a275a154fd86d5f7952ffacc831fc766e6a39bf94c8365122c541a75ff3e22ec
4
+ data.tar.gz: e590599e8cde60e3a014248a1a0d4807f72670d04afa0c46ccc35141aae9ad28
5
5
  SHA512:
6
- metadata.gz: 45ec1a5193dff2631e2a02416d0702ebd083e5a540203d6712b0630f87b6ef375776e4270bceccd13baf3e60273ea88b81b9d59b0f22989e17530f9d99f6a99a
7
- data.tar.gz: 14ecae14c7e882f37bbe6d85a7880e3e6d5c18a969eeb5d6c6ed2098139cb1a5ccb661981a7802376cf6a6e890acd2fa0fc6da8e856009bc0313235a06a96748
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
- puts "Failed to load #{id}: #{e.full_message}" if (options[:verbose])
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.0
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: 2018-11-28 00:00:00.000000000 Z
11
+ date: 2019-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize