groonga-command 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/text/news.md +6 -0
- data/lib/groonga/command/table-create.rb +9 -0
- data/lib/groonga/command/version.rb +1 -1
- data/test/command/test-table-create.rb +12 -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: 24ff725dc6b799512ea4f3ebaacc6b0859eae5f4
|
4
|
+
data.tar.gz: fce35fa7dc56db6ef089898c3bd6fd058650ebb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a65cf97dcf85a45caa02a5675ad6545a11f03d8663f1937c22515f6a097d3fc06168a488593a58a4f3eba1a92be202e3a222e0ad6e4d864fa04e504b3d46e980
|
7
|
+
data.tar.gz: 88ccfbc5e165220fe628dc48456a1063e7295f235a967cf5466f080a9b2062abeb7870fdd20cd15e3792dd6dda4e904eff0d0893206e1d504a213830c122d142
|
data/doc/text/news.md
CHANGED
@@ -41,6 +41,15 @@ module Groonga
|
|
41
41
|
self[:key_type]
|
42
42
|
end
|
43
43
|
|
44
|
+
# @return [String, nil] Value type name, `nil` for no value
|
45
|
+
# table. Double array trie table always returns `nil` because
|
46
|
+
# double array trie table doesn't support value.
|
47
|
+
#
|
48
|
+
# @since 1.2.2
|
49
|
+
def value_type
|
50
|
+
self[:value_type]
|
51
|
+
end
|
52
|
+
|
44
53
|
def flags
|
45
54
|
@flags ||= (self[:flags] || "").split(/\s*\|\s*/)
|
46
55
|
end
|
@@ -67,6 +67,18 @@ class TableCreateCommandTest < Test::Unit::TestCase
|
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
|
+
class ValueTypeTest < self
|
71
|
+
def test_specified
|
72
|
+
command = table_create_command({"value_type" => "UInt64"})
|
73
|
+
assert_equal("UInt64", command.value_type)
|
74
|
+
end
|
75
|
+
|
76
|
+
def test_omitted
|
77
|
+
command = table_create_command
|
78
|
+
assert_nil(command.value_type)
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
70
82
|
class FlagsTest < self
|
71
83
|
def test_multiple
|
72
84
|
command = table_create_command({"flags" => "TABLE_PAT_KEY|KEY_WITH_SIS"})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: groonga-command
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|