norikra-client-jruby 0.1.5-java → 1.0.0-java

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: 54c8ac9f3560f9a9a2424e94a6f9c95315c21e64
4
- data.tar.gz: 0b0ef3d3c3aeb68b9afb2fe6dec82e9492ad404e
3
+ metadata.gz: f7f5fc42dc6af72689a0d9492372219a5639fef3
4
+ data.tar.gz: 20d40414ccf4b3d9807d9771781d8b4da602825e
5
5
  SHA512:
6
- metadata.gz: a2490fc54acab73c0035ffeeb78753027a73d80f780dc40ff647a1a8c2502d2508ef49f2da628224ac6f33bdecf7a11d0b8276c28e6222a3d6b7ef2df7b0af24
7
- data.tar.gz: 8be153f739468c12e9cc41a09574cb1bf4aa24f2f3096ba2cba2385a43ac57866a27293a07cbd3e7086d21c1ec861dc1fd7cfdeec382107507c0e163b14b26cb
6
+ metadata.gz: 4c05e4ef796d37e667fe9afb18289d9cfaf03dda27d8ecfe1eaa1d13618c3bb80439de6cfaf9c41b88901dfd559c78b10356ec2b937fd8f47495cb2e87fff2e2
7
+ data.tar.gz: 93cf863ccc2c9729c69398eb68a61f6312e01ab7b416bfe1fe48e6fa77df8f961e596c4130552e0a511b39516ad24e788d018a9616fc0a3e20cae27614ff980d
@@ -13,7 +13,7 @@ module Norikra
13
13
  TIMEOUT_OPTIONS = [:connect_timeout, :send_timeout, :receive_timeout]
14
14
 
15
15
  def initialize(host='localhost', port=RPC_DEFAULT_PORT, opts={})
16
- @client = MessagePack::RPCOverHTTP::Client.new("http://#{host}:#{port}/")
16
+ @client = MessagePack::RPCOverHTTP::Client.new("http://#{host}:#{port}/", encoding: Encoding::UTF_8)
17
17
 
18
18
  @client.connect_timeout = opts[:connect_timeout] if opts.has_key?(:connect_timeout) && @client.respond_to?('connect_timeout='.to_sym)
19
19
  @client.send_timeout = opts[:send_timeout] if opts.has_key?(:send_timeout) && @client.respond_to?('send_timeout='.to_sym)
@@ -74,5 +74,9 @@ module Norikra
74
74
  def sweep(query_group=nil)
75
75
  @client.call(:sweep, query_group)
76
76
  end
77
+
78
+ def logs
79
+ @client.call(:logs)
80
+ end
77
81
  end
78
82
  end
@@ -218,6 +218,7 @@ class Norikra::Client
218
218
 
219
219
  desc "stats", "dump stats json: same with norikra server's --stats option"
220
220
  def stats
221
+ opt = parent_options
221
222
  client = client(parent_options)
222
223
 
223
224
  targets = []
@@ -249,6 +250,17 @@ class Norikra::Client
249
250
  "queries" => queries,
250
251
  })
251
252
  end
253
+
254
+ desc "logs", "get and print Norikra server logs"
255
+ def logs
256
+ opt = parent_options
257
+ client = client(parent_options)
258
+ wrap do
259
+ client.logs().each do |time, level, line|
260
+ puts "#{time} [#{level}] #{line}"
261
+ end
262
+ end
263
+ end
252
264
  end
253
265
 
254
266
  class CLI < Thor
@@ -1,5 +1,5 @@
1
1
  module Norikra
2
2
  class Client
3
- VERSION = "0.1.5"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_runtime_dependency "msgpack-rpc-over-http-jruby", ">= 0.0.6"
22
+ spec.add_runtime_dependency "msgpack-rpc-over-http-jruby", ">= 0.0.7"
23
23
  spec.add_runtime_dependency "thor"
24
24
  spec.add_runtime_dependency "ltsv"
25
25
 
metadata CHANGED
@@ -1,85 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: norikra-client-jruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 1.0.0
5
5
  platform: java
6
6
  authors:
7
7
  - TAGOMORI Satoshi
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-20 00:00:00.000000000 Z
11
+ date: 2014-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack-rpc-over-http-jruby
15
+ version_requirements: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: 0.0.7
15
20
  requirement: !ruby/object:Gem::Requirement
16
21
  requirements:
17
- - - ">="
22
+ - - '>='
18
23
  - !ruby/object:Gem::Version
19
- version: 0.0.6
20
- type: :runtime
24
+ version: 0.0.7
21
25
  prerelease: false
26
+ type: :runtime
27
+ - !ruby/object:Gem::Dependency
28
+ name: thor
22
29
  version_requirements: !ruby/object:Gem::Requirement
23
30
  requirements:
24
- - - ">="
31
+ - - '>='
25
32
  - !ruby/object:Gem::Version
26
- version: 0.0.6
27
- - !ruby/object:Gem::Dependency
28
- name: thor
33
+ version: '0'
29
34
  requirement: !ruby/object:Gem::Requirement
30
35
  requirements:
31
- - - ">="
36
+ - - '>='
32
37
  - !ruby/object:Gem::Version
33
38
  version: '0'
34
- type: :runtime
35
39
  prerelease: false
40
+ type: :runtime
41
+ - !ruby/object:Gem::Dependency
42
+ name: ltsv
36
43
  version_requirements: !ruby/object:Gem::Requirement
37
44
  requirements:
38
- - - ">="
45
+ - - '>='
39
46
  - !ruby/object:Gem::Version
40
47
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: ltsv
43
48
  requirement: !ruby/object:Gem::Requirement
44
49
  requirements:
45
- - - ">="
50
+ - - '>='
46
51
  - !ruby/object:Gem::Version
47
52
  version: '0'
48
- type: :runtime
49
53
  prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
54
+ type: :runtime
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
- requirement: !ruby/object:Gem::Requirement
57
+ version_requirements: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: '1.3'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
62
+ requirement: !ruby/object:Gem::Requirement
65
63
  requirements:
66
- - - "~>"
64
+ - - ~>
67
65
  - !ruby/object:Gem::Version
68
66
  version: '1.3'
67
+ prerelease: false
68
+ type: :development
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
- requirement: !ruby/object:Gem::Requirement
71
+ version_requirements: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
76
+ requirement: !ruby/object:Gem::Requirement
79
77
  requirements:
80
- - - ">="
78
+ - - '>='
81
79
  - !ruby/object:Gem::Version
82
80
  version: '0'
81
+ prerelease: false
82
+ type: :development
83
83
  description: Client commands and libraries for Norikra
84
84
  email:
85
85
  - tagomoris@gmail.com
@@ -88,7 +88,7 @@ executables:
88
88
  extensions: []
89
89
  extra_rdoc_files: []
90
90
  files:
91
- - ".gitignore"
91
+ - .gitignore
92
92
  - Gemfile
93
93
  - LICENSE.txt
94
94
  - README.md
@@ -105,24 +105,24 @@ homepage: https://github.com/norikra/norikra-client-ruby
105
105
  licenses:
106
106
  - APLv2
107
107
  metadata: {}
108
- post_install_message:
108
+ post_install_message:
109
109
  rdoc_options: []
110
110
  require_paths:
111
111
  - lib
112
112
  required_ruby_version: !ruby/object:Gem::Requirement
113
113
  requirements:
114
- - - ">="
114
+ - - '>='
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
117
  required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  requirements:
119
- - - ">="
119
+ - - '>='
120
120
  - !ruby/object:Gem::Version
121
121
  version: '0'
122
122
  requirements: []
123
- rubyforge_project:
124
- rubygems_version: 2.2.2
125
- signing_key:
123
+ rubyforge_project:
124
+ rubygems_version: 2.1.9
125
+ signing_key:
126
126
  specification_version: 4
127
127
  summary: Client commands and libraries for Norikra
128
128
  test_files: []