artirix_data_models 0.6.6 → 0.6.7
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c56b4f635171ba067ea9c4fdd3082c412eaab23a
|
|
4
|
+
data.tar.gz: d25c8af81bf51fa14bd5fff95c3c7a9d6506e97d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 004f2a8fa562df1dddc3a5ef35986257590d298760eff8dbaead938d12a0c9be9e782c156378d53d06a8a5df3191cb9c73de457d4042fbb2e973e5914cf22fe5
|
|
7
|
+
data.tar.gz: 242a1a52ad9feaaa30684bdfdacec0ee42c9af37fefee9cc9936ff761efd3696ab07d17edfcc71a77cf0576b6564aa47fae1492e9f6af9a54367b833b14ce22e
|
data/README.md
CHANGED
|
@@ -250,6 +250,10 @@ end
|
|
|
250
250
|
|
|
251
251
|
## Changes
|
|
252
252
|
|
|
253
|
+
### 0.6.7
|
|
254
|
+
|
|
255
|
+
- aggregations use `key_as_string` as name of the bucket value if it exists, if not then it uses `key` and if that also does not exist then it uses `name`
|
|
256
|
+
|
|
253
257
|
### 0.6.6
|
|
254
258
|
|
|
255
259
|
- `Aggregation::Value.pretty_name` memoized and the code moved to `load_pretty_name`.
|
|
@@ -60,7 +60,7 @@ module ArtirixDataModels
|
|
|
60
60
|
end
|
|
61
61
|
|
|
62
62
|
def basic_bucket(raw_bucket)
|
|
63
|
-
name = raw_bucket[:key] || raw_bucket[:name]
|
|
63
|
+
name = raw_bucket[:key_as_string] || raw_bucket[:key] || raw_bucket[:name]
|
|
64
64
|
count = raw_bucket[:doc_count] || raw_bucket[:count]
|
|
65
65
|
{ name: name, count: count }
|
|
66
66
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: artirix_data_models
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eduardo Turiño
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-11-
|
|
11
|
+
date: 2015-11-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|