groonga-command-parser 1.0.7 → 1.0.8
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: 120a2236a7a51662785f0404d70b08fe874923d5
|
|
4
|
+
data.tar.gz: fbdbb7419f7230094d44f38ad70099c59984c659
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 977c56c318fd2119bd8918c863093f5f32f942e2758a31b5af3932200616907e6b6f817766a0b46631d6da45f940c109bae881f633029bf5555ebb8219337428
|
|
7
|
+
data.tar.gz: 27539fb4ba726d9873e667a684bff58b87051a649c70b8f5c64e80745b19f717c09ce0fbd56866b37a084aabc222658f08f6ee5f588826c1786efacee78cb1e6
|
data/doc/text/news.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (C) 2014 Kouhei Sutou <kou@clear-code.com>
|
|
1
|
+
# Copyright (C) 2014-2017 Kouhei Sutou <kou@clear-code.com>
|
|
2
2
|
#
|
|
3
3
|
# This library is free software; you can redistribute it and/or
|
|
4
4
|
# modify it under the terms of the GNU Lesser General Public
|
|
@@ -26,6 +26,7 @@ module Groonga
|
|
|
26
26
|
def initialize
|
|
27
27
|
@format = :command
|
|
28
28
|
@uri_prefix = "http://localhost:10041"
|
|
29
|
+
@pretty_print = true
|
|
29
30
|
end
|
|
30
31
|
|
|
31
32
|
def run(argv=ARGV)
|
|
@@ -70,6 +71,13 @@ module Groonga
|
|
|
70
71
|
@uri_prefix = prefix
|
|
71
72
|
end
|
|
72
73
|
|
|
74
|
+
option_parser.on("--[no-]pretty-print",
|
|
75
|
+
"Pretty print",
|
|
76
|
+
"Available only in command format",
|
|
77
|
+
"[#{@pretty_print}]") do |boolean|
|
|
78
|
+
@pretty_print = boolean
|
|
79
|
+
end
|
|
80
|
+
|
|
73
81
|
option_parser.parse!(argv)
|
|
74
82
|
end
|
|
75
83
|
|
|
@@ -88,7 +96,7 @@ module Groonga
|
|
|
88
96
|
when :uri
|
|
89
97
|
"#{@uri_prefix}#{command.to_uri_format}"
|
|
90
98
|
else
|
|
91
|
-
command.to_command_format
|
|
99
|
+
command.to_command_format(:pretty_print => @pretty_print)
|
|
92
100
|
end
|
|
93
101
|
end
|
|
94
102
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: groonga-command-parser
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kouhei Sutou
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-01-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: groonga-command
|