picky 4.26.1 → 4.26.2

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: 8867cbb7ea1e37c65690e1ad226ba1ba834aa0ee
4
- data.tar.gz: 06118ee0130e7916835b259d3ba59962c49f5764
3
+ metadata.gz: c3a6133019bb7fb372e2ef9a8261ee69df1e562b
4
+ data.tar.gz: 8dfb39edf77042b40276bc0e26d34286c3e71b79
5
5
  SHA512:
6
- metadata.gz: 6ea2f05d4048abfea0b0f8dd33288fbf123ce825544a25050147cec3f22964448faef37fc9818b3a87990d402fb2866eda119cf9072a6f5801bacc3f977e0c2a
7
- data.tar.gz: ecc9354148631faeb9c970a4199cee50d83e2a6d44507c78d915cc8bda14da86dc4bed57f080fd8ccba5afb103d972da2fb4bbf3f8f0b58b25d2f97985bcb081
6
+ metadata.gz: d21d378abbbd2ea37ca0eb6ce1e948c5904db3daa6f6df41797a6acaff996e12fcf43cf5c5cc536694d0883c5918ca6a1049fe22eed369ba563f495688999cef
7
+ data.tar.gz: 50ca4ff1812761a21af2c5aaa781f75bddfd4fbe20a8de72334f660a826eba3c551933c56924e2415af7eebd240ce33aea588207700cc38c1a2ea27db04e5573
@@ -38,7 +38,16 @@ module Picky
38
38
  # together before it is dumped into the files.
39
39
  #
40
40
  def empty
41
- @empty && @empty.clone || {}
41
+ @empty && @empty.clone || empty_hash
42
+ end
43
+
44
+ def empty_hash
45
+ # TODO Make this an explicit option.
46
+ if defined? GoogleHashSparseRubyToRuby
47
+ GoogleHashSparseRubyToRuby.new # TODO Use GoogleHashDenseIntToRuby where possible.
48
+ else
49
+ {}
50
+ end
42
51
  end
43
52
 
44
53
  # The initial content before loading from file.
@@ -35,6 +35,8 @@ module Picky
35
35
 
36
36
  # Empty all the indexes.
37
37
  #
38
+ # TODO Call clear.
39
+ #
38
40
  def empty
39
41
  exact.empty
40
42
  partial.empty
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: picky
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.26.1
4
+ version: 4.26.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Hanke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-22 00:00:00.000000000 Z
11
+ date: 2015-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport