geturl 0.7.0 → 0.7.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: 8e0f18d4b3348468cfd0ae0dfe0c62a1e2f0933ddfe6e01aa4ff6f6e06a4d020
4
- data.tar.gz: eba938568e8e945a24f8792637d6b7028ada88531c6143037b9f0c0d621086b6
3
+ metadata.gz: 9ce2496639e7c4beb10be48c7044fa865864ff25f111e8748a2b72de2dec4a40
4
+ data.tar.gz: b9618d78e251b878178c5e1e1ccb5fc644ea856de945d9ab2e6f458dc5715664
5
5
  SHA512:
6
- metadata.gz: af35429dae7b92cc07933b2c1e2b5e3899e64c7edd216c7edebe95aa9acc6929c6eb4e3effbec5309118d055602b9d291ab0a3edcb1df6b69fd90f3c8c4fc4e2
7
- data.tar.gz: 36105018d4ba595063c1313de1838aeea938d6d15ce149cd61e5fe71fb0067f62c57567090aac1823f645d9d5be2897e9460ec1ba21e64f46a0075775400beb0
6
+ metadata.gz: 6b2b6b4900921cdb6e91baec7ca86a15836ac8099da65cf0eb6215328e20262df8d28b4ec92782d5aa4a9da07927e0ddf69e85be7907139650824d6bcfdaebaa
7
+ data.tar.gz: 2bf5584d24527aa167b1b8bf85877373e8d3d603744a2b61cfb603da7a15dd7197f3b373f30a11fec8b9db4273e312d82086f58b244221eb74141770aa5653c1
@@ -18,6 +18,7 @@ module GetUrl
18
18
  # Stores all urls ites to the local storage.
19
19
  def save_urls
20
20
  FileManager.save_items_to_yaml_file(@items, @local_urls_file)
21
+ FileManager.clear_all_items_cache
21
22
  return @items.size
22
23
  end
23
24
 
@@ -36,6 +36,7 @@ module GetUrl
36
36
  'key' => options['key'],
37
37
  }
38
38
  File.write(@source_file, sources.to_yaml)
39
+ FileManager.clear_all_items_cache
39
40
  return sources.size
40
41
  end
41
42
 
@@ -48,6 +49,7 @@ module GetUrl
48
49
  sources.delete(id)
49
50
  File.write(@source_file, sources.to_yaml)
50
51
  File.unlink(FileManager.get_local_source_file(id)) rescue nil
52
+ FileManager.clear_all_items_cache
51
53
  return sources.size
52
54
  end
53
55
 
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.7.0
4
+ version: 0.7.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: 2019-03-21 00:00:00.000000000 Z
11
+ date: 2019-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize