disk_store 0.2.0 → 0.2.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
  SHA1:
3
- metadata.gz: 7de985eb8736731f07a776e31aba1a3847cf34d6
4
- data.tar.gz: 121f7f38bbd85a30a3250fd99edd7e1c122a9a56
3
+ metadata.gz: 98a111dc2aa5475b5bb793ca372d18227448eb45
4
+ data.tar.gz: 72639d803f117138f4202f728b3c7c07775850ac
5
5
  SHA512:
6
- metadata.gz: 44ec9112fdb3bcc1edf9c13fde166237acfa32c73d1e5c9d220e3b108ebdee6cf147d063e0abb59c59c3cb80021d08d4b396932f47be7110499d915bc7a34999
7
- data.tar.gz: 81b754f6d6fe78c746c7c655c65623376153f799b7aa9452e38b10a21eb6df98f454bac02f6d8a0af5bf2b364283973d1b930a1fc673b13705aff6fe0b25c3f0
6
+ metadata.gz: 6fe3eb0016349c8a660af8a5be345d6c7d4875c21f558c0b18d2464fbc727e27844d3682f56828c2c6363340087b7d84a104202b26cefcc915e5e1b9aa0d757a
7
+ data.tar.gz: e55d319d351764d3bb01ae3f27f934b8ed5e49104efae5796c12639f2239d40e78c623e3e1ce7d9dbe99b8b1b3c7f2f4b9b70cc8029e3946cbefea1aacb6d3f1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- disk_store (0.2.0)
4
+ disk_store (0.2.1)
5
5
  rake
6
6
 
7
7
  GEM
@@ -96,7 +96,7 @@ class DiskStore
96
96
  end
97
97
 
98
98
  def current_cache_size
99
- files.map { |file| File.new(file).size }.inject { |sum, size| sum + size } || 0
99
+ files.map { |file| File.size(file) }.inject { |sum, size| sum + size } || 0
100
100
  end
101
101
 
102
102
  def maximum_cache_size
@@ -1,3 +1,3 @@
1
1
  class DiskStore
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: disk_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelly Sutton