groonga-command 1.4.4 → 1.4.5
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e8e7e4033e77829c575d2ef6832f8ad5c8d8883c0279d5fa56b8f368f66d671
|
4
|
+
data.tar.gz: ba868ba8b7f5a04b17ace4c18fe438cd7ecd2e3581d072f8cda4431d09f2ca84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcde76968b9b36f013419f3a38ece4caf3e81550b272a3bcf906b4c9e011be6a4d008a91ef79f7578ac0fd9365233994c1cbbf08c0ac0c25c9babfab75887193
|
7
|
+
data.tar.gz: 6afc4ddf0367b6de2e38de283176f92f82bd95c03d18ed25113983f16b368b207b1728db10d7fb98699766ba1d63c4f8022eb2bbd86f1c95dfa309701cda6f40
|
data/doc/text/news.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# News
|
2
2
|
|
3
|
+
## 1.4.5: 2019-09-02
|
4
|
+
|
5
|
+
### Improvements
|
6
|
+
|
7
|
+
* {Groonga::Command::Select}: Added support for labeled drilldowns in slice.
|
8
|
+
|
9
|
+
* {Groonga::Command::LogicalSelect}: Added support for labeled
|
10
|
+
drilldowns in slice.
|
11
|
+
|
3
12
|
## 1.4.4: 2019-09-02
|
4
13
|
|
5
14
|
### Improvements
|
@@ -91,15 +91,15 @@ module Groonga
|
|
91
91
|
#
|
92
92
|
# @since 1.2.8
|
93
93
|
def labeled_drilldowns
|
94
|
-
@labeled_drilldowns ||= parse_labeled_drilldowns
|
94
|
+
@labeled_drilldowns ||= parse_labeled_drilldowns("")
|
95
95
|
end
|
96
96
|
|
97
97
|
private
|
98
|
-
def parse_labeled_drilldowns
|
98
|
+
def parse_labeled_drilldowns(prefix)
|
99
99
|
raw_labeled_drilldowns = {}
|
100
100
|
@arguments.each do |name, value|
|
101
101
|
case name.to_s
|
102
|
-
when /\
|
102
|
+
when /\A#{Regexp.escape(prefix)}drilldowns?\[(.+?)\]\.(.+?)\z/
|
103
103
|
label = $1
|
104
104
|
parameter_name = $2
|
105
105
|
raw_labeled_drilldowns[label] ||= {}
|
@@ -51,6 +51,7 @@ module Groonga
|
|
51
51
|
output_columns = parse_array_value(raw_slice["output_columns"])
|
52
52
|
offset = parse_integer_value(raw_slice["offset"])
|
53
53
|
limit = parse_integer_value(raw_slice["limit"])
|
54
|
+
labeled_drilldowns = parse_labeled_drilldowns("slices[#{label}].")
|
54
55
|
slices[label] = Slice.new(label,
|
55
56
|
match_columns,
|
56
57
|
query,
|
@@ -60,7 +61,8 @@ module Groonga
|
|
60
61
|
sort_keys,
|
61
62
|
output_columns,
|
62
63
|
offset,
|
63
|
-
limit
|
64
|
+
limit,
|
65
|
+
labeled_drilldowns)
|
64
66
|
end
|
65
67
|
slices
|
66
68
|
end
|
@@ -75,7 +77,8 @@ module Groonga
|
|
75
77
|
:sort_keys,
|
76
78
|
:output_columns,
|
77
79
|
:offset,
|
78
|
-
:limit
|
80
|
+
:limit,
|
81
|
+
:labeled_drilldowns)
|
79
82
|
end
|
80
83
|
end
|
81
84
|
end
|
data/test/command/test-select.rb
CHANGED