gemini_cache 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gemini_cache.rb +8 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16f6934eba6497750a226af8f1ec7e769ccb40da707fb066d459472461c4f8d3
4
- data.tar.gz: 13e80103252e7f59af3c313af528a2f4d300172d09e93d856beaa4b755069495
3
+ metadata.gz: '04685d49a72d97ba748888a2c1a90ffae49dd52d5bdea582e5cc93c5278ee05d'
4
+ data.tar.gz: 1fbf73ef5d37c9eeffee36e2667faf3846a326a217c4ae3dcc9bd6f781bec0ed
5
5
  SHA512:
6
- metadata.gz: f5719b1e1bd3ffa26d09bfd013a2bd1d1a1b80481c20aef57c93329e949c0ed113389c2fd926f344f62bc71a59bcf155742ddc7e2f0358c543c216fdc7117d95
7
- data.tar.gz: 6aaad0d3a575fb0219ab3568c8e346a0d345eab9ab8a83a1685b93548274db1c502ccb176200c860169a8aa8439955748e46679483eb934407117dde74cefa5a
6
+ metadata.gz: 9397ae965759c13a8b4f23cd26e17fbd66807cf6ef09ec299b5ff6695fdbc32f74c9858574f727da489d7039d761be2d900220c39d8d3d9a6cfb22360eb6bcdb
7
+ data.tar.gz: efa123d59d17f71e2193b82de461b0648d5a887377175331993b9bc48ef17872b0987f9a9622311c40062a6639f3c72e792d69b5a2345568f4985601eb0de624
data/lib/gemini_cache.rb CHANGED
@@ -122,4 +122,12 @@ module GeminiCache
122
122
  rescue Faraday::Error => e
123
123
  raise "Erro na requisição: #{e.message}"
124
124
  end
125
+
126
+ def self.delete_all
127
+ GeminiCache.list.each { |item| item.delete }
128
+ end
129
+
130
+ class << self
131
+ alias clear delete_all
132
+ end
125
133
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemini_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gedean Dias