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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0d32457d22cdba4f0e6ea5758ae038cc66bec03c
4
- data.tar.gz: fb8c5369a64d1fb468a058826dfc754a90326ef3
3
+ metadata.gz: 24ff725dc6b799512ea4f3ebaacc6b0859eae5f4
4
+ data.tar.gz: fce35fa7dc56db6ef089898c3bd6fd058650ebb7
5
5
  SHA512:
6
- metadata.gz: c725efcfa81fe6cf6bb8c9b846251c8d05574f286a7d05abe5455eb6ee38eb3d1b9b1be09ebfcba52c0032f53d3b1389bebddb10c49b5c509064016aebc620ca
7
- data.tar.gz: 14e67e96af3df200db392971cd45eaa6174c6f0746396b42cd117d3d2b23f0ad23c0e65be936f59fa059f75f7d21349d372dfec0311847c9888bd5b87666b826
6
+ metadata.gz: a65cf97dcf85a45caa02a5675ad6545a11f03d8663f1937c22515f6a097d3fc06168a488593a58a4f3eba1a92be202e3a222e0ad6e4d864fa04e504b3d46e980
7
+ data.tar.gz: 88ccfbc5e165220fe628dc48456a1063e7295f235a967cf5466f080a9b2062abeb7870fdd20cd15e3792dd6dda4e904eff0d0893206e1d504a213830c122d142
data/doc/text/news.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # News
2
2
 
3
+ ## 1.2.2: 2016-08-05
4
+
5
+ ### Improvements
6
+
7
+ * {Groonga::Command::TableCreate#value_type}: Added.
8
+
3
9
  ## 1.2.1: 2016-08-03
4
10
 
5
11
  ### Improvements
@@ -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
@@ -16,6 +16,6 @@
16
16
 
17
17
  module Groonga
18
18
  module Command
19
- VERSION = "1.2.1"
19
+ VERSION = "1.2.2"
20
20
  end
21
21
  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.1
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-03 00:00:00.000000000 Z
11
+ date: 2016-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json