picky 4.26.1 → 4.26.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/picky/backends/memory/basic.rb +10 -1
- data/lib/picky/category_indexing.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3a6133019bb7fb372e2ef9a8261ee69df1e562b
|
4
|
+
data.tar.gz: 8dfb39edf77042b40276bc0e26d34286c3e71b79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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
|
11
|
+
date: 2015-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|