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: 4a650d05617980af6af0e11548cf0938e8ed631a
4
- data.tar.gz: 7aceca455972e4734e8029e966d501a8ba3e14db
3
+ metadata.gz: 120a2236a7a51662785f0404d70b08fe874923d5
4
+ data.tar.gz: fbdbb7419f7230094d44f38ad70099c59984c659
5
5
  SHA512:
6
- metadata.gz: a78f94997caa0239aca88c73b71fb22b9da213c40a48f60d8500e136299cf7e667af0b124d1ab5ea74a9f7ca2767a783ccb58152c6024836e4aa6b478ba7235b
7
- data.tar.gz: e9a0427a34376d5e91f7f33a4aa0945457c5ac74bb1a4cc94e8abc5475a10e9ac940c3ab548e0bd9411c559411a22034479c54557bcdd76560b07b0d637fb43b
6
+ metadata.gz: 977c56c318fd2119bd8918c863093f5f32f942e2758a31b5af3932200616907e6b6f817766a0b46631d6da45f940c109bae881f633029bf5555ebb8219337428
7
+ data.tar.gz: 27539fb4ba726d9873e667a684bff58b87051a649c70b8f5c64e80745b19f717c09ce0fbd56866b37a084aabc222658f08f6ee5f588826c1786efacee78cb1e6
@@ -1,5 +1,11 @@
1
1
  # News
2
2
 
3
+ ## 1.0.8: 2017-01-18
4
+
5
+ ### Improvements
6
+
7
+ * `groonga-command-convert-format`: Added `--pretty-print` option.
8
+
3
9
  ## 1.0.7: 2016-12-20
4
10
 
5
11
  ### Improvements
@@ -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
@@ -17,7 +17,7 @@
17
17
  module Groonga
18
18
  module Command
19
19
  class Parser
20
- VERSION = "1.0.7"
20
+ VERSION = "1.0.8"
21
21
  end
22
22
  end
23
23
  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.7
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: 2016-12-20 00:00:00.000000000 Z
11
+ date: 2017-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: groonga-command