yohoushi-client 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/.rspec +2 -0
- data/.travis.yml +6 -0
- data/CHANGELOG.md +3 -0
- data/Gemfile +5 -0
- data/LICENSE +21 -0
- data/README.md +29 -0
- data/Rakefile +15 -0
- data/VERSION +1 -0
- data/bin/yohoushi-client +5 -0
- data/examples/create_graph.rb +20 -0
- data/lib/yohoushi/cli.rb +37 -0
- data/lib/yohoushi/client.rb +147 -0
- data/lib/yohoushi-client.rb +1 -0
- data/spec/spec_helper.rb +18 -0
- data/spec/support/helper.rb +42 -0
- data/spec/support/mock.rb +17 -0
- data/spec/yohoushi/cli_spec.rb +17 -0
- data/spec/yohoushi/client_spec.rb +29 -0
- data/yohoushi-client.gemspec +29 -0
- metadata +168 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 54873f9cbb996e8f68580ca1cd876a325397b466
|
4
|
+
data.tar.gz: 1e19703153e7b8f2b79f96b9b2c9bae76a48f187
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 3b45495fabcb9db59a96580614f0eb84093459f8b1392c850799863b8c1cc6ea7445ab94ef056f39577d5e39f309d6fcd5674e9586be7fb255157cd99709175c
|
7
|
+
data.tar.gz: 6b72cfd2cc77fa1574ae452eca3cc39b6f01345405c45338c4e359bd3f5bab6d369a00ca7222a3a6c5374c8825179cf937bfa229f10fb89c047ee4daefa2b7a6
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CHANGELOG.md
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2013 DeNA Co., Ltd.
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# Yohoushi Client [![Build Status](https://secure.travis-ci.org/yohoushi/yohoushi-client.png?branch=master)](http://travis-ci.org/yohoushi/yohoushi-client) [![Dependency Status](https://gemnasium.com/yohoushi/yohoushi-client.png)](https://gemnasium.com/yohoushi/yohoushi-client)
|
2
|
+
|
3
|
+
testing ruby: 1.9.3, 2.0.0; Yohoushi: >= 0.62.3
|
4
|
+
|
5
|
+
## About Yohoushi Client
|
6
|
+
|
7
|
+
yohoushi-client is a ruby client library for Yohoushi API where [yohoushi](http://yohoushi.github.io/yohoushi/) is a visualization graph tool.
|
8
|
+
|
9
|
+
## USAGE
|
10
|
+
|
11
|
+
gem install yohoushi-client
|
12
|
+
|
13
|
+
See [examples](examples) directory.
|
14
|
+
|
15
|
+
## ChangeLog
|
16
|
+
|
17
|
+
See [CHANGELOG.md](CHANGELOG.md) for details.
|
18
|
+
|
19
|
+
## Contributing
|
20
|
+
|
21
|
+
1. Fork it
|
22
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
23
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
24
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
25
|
+
5. Create new [Pull Request](../../pull/new/master)
|
26
|
+
|
27
|
+
## Copyright
|
28
|
+
|
29
|
+
Copyright (c) 2013 DeNA Co., Ltd. See [LICENSE](LICENSE) for details.
|
data/Rakefile
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require "bundler/gem_tasks"
|
3
|
+
|
4
|
+
require 'rspec/core'
|
5
|
+
require 'rspec/core/rake_task'
|
6
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
7
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
8
|
+
end
|
9
|
+
task :default => :spec
|
10
|
+
|
11
|
+
desc 'Open an irb session preloaded with the gem library'
|
12
|
+
task :console do
|
13
|
+
sh 'irb -rubygems -I lib -r yohoushi-client.rb'
|
14
|
+
end
|
15
|
+
task :c => :console
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.1
|
data/bin/yohoushi-client
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# An example to create complex graphs
|
3
|
+
|
4
|
+
# require anyway
|
5
|
+
require 'yohoushi-client'
|
6
|
+
|
7
|
+
# Create a Yohoushi Client, given the base URI of Yohoushi
|
8
|
+
client = Yohoushi::Client.new('http://localhost:4804')
|
9
|
+
|
10
|
+
# Create a graph!
|
11
|
+
path = "foo/bar"
|
12
|
+
number = 10.1
|
13
|
+
begin
|
14
|
+
client.debug_dev = STDOUT
|
15
|
+
client.post_graph(path, {"number" => number})
|
16
|
+
rescue Yohoushi::AlreadyExists => e
|
17
|
+
puts "\tclass:#{e.class}\t#{e.message}"
|
18
|
+
rescue Yohoushi::NotFound => e
|
19
|
+
puts "\tclass:#{e.class}\t#{e.message}"
|
20
|
+
end
|
data/lib/yohoushi/cli.rb
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require 'thor'
|
3
|
+
require 'yohoushi-client'
|
4
|
+
|
5
|
+
class Yohoushi::CLI < Thor
|
6
|
+
class_option :silent, :aliases => ["-S"], :type => :boolean
|
7
|
+
|
8
|
+
desc 'post <json> <url>', 'Post a parameter to a graph'
|
9
|
+
long_desc <<-LONGDESC
|
10
|
+
Post a parameter to a graph
|
11
|
+
|
12
|
+
ex)
|
13
|
+
$ yohoushi-client post '{"number":0}' http://localhost:4804/api/graphs/foo/bar
|
14
|
+
LONGDESC
|
15
|
+
def post(json, url)
|
16
|
+
uri = URI.parse(url)
|
17
|
+
client = client(uri)
|
18
|
+
path = graph_path(uri.path)
|
19
|
+
begin
|
20
|
+
res = client.post_graph(path, JSON.parse(json))
|
21
|
+
$stdout.puts res unless @options['silent']
|
22
|
+
rescue => e
|
23
|
+
$stderr.puts "\tclass:#{e.class}\t#{e.message}"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
no_tasks do
|
28
|
+
def graph_path(path)
|
29
|
+
path.split("/api/graphs/").last
|
30
|
+
end
|
31
|
+
|
32
|
+
def client(uri)
|
33
|
+
Yohoushi::Client.new("#{uri.scheme}://#{uri.host}:#{uri.port}")
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
@@ -0,0 +1,147 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require 'httpclient'
|
3
|
+
require 'json'
|
4
|
+
require 'cgi'
|
5
|
+
require 'pp'
|
6
|
+
|
7
|
+
module Yohoushi
|
8
|
+
class Error < StandardError; end
|
9
|
+
class NotFound < Error; end
|
10
|
+
class AlreadyExists < Error; end
|
11
|
+
|
12
|
+
class Client
|
13
|
+
attr_accessor :debug
|
14
|
+
attr_accessor :client
|
15
|
+
attr_reader :debug_dev
|
16
|
+
attr_reader :base_uri
|
17
|
+
|
18
|
+
# @param [String] base_uri The base uri of Yohoushi
|
19
|
+
def initialize(base_uri = 'http://127.0.0.1:4804')
|
20
|
+
@base_uri = base_uri
|
21
|
+
end
|
22
|
+
|
23
|
+
def client
|
24
|
+
@client ||= HTTPClient.new
|
25
|
+
end
|
26
|
+
|
27
|
+
# set the `debug_dev` attribute of HTTPClient
|
28
|
+
# @param [IO] debug_dev such as STDOUT
|
29
|
+
def debug_dev=(debug_dev)
|
30
|
+
client.debug_dev = debug_dev
|
31
|
+
end
|
32
|
+
|
33
|
+
def last_response
|
34
|
+
@res
|
35
|
+
end
|
36
|
+
|
37
|
+
# GET the JSON API
|
38
|
+
# @param [String] path
|
39
|
+
# @return [Hash] response body
|
40
|
+
def get_json(path)
|
41
|
+
@res = client.get("#{@base_uri}#{path}")
|
42
|
+
handle_error(@res)
|
43
|
+
JSON.parse(@res.body)
|
44
|
+
end
|
45
|
+
|
46
|
+
# POST the JSON API
|
47
|
+
# @param [String] path
|
48
|
+
# @param [Hash] data
|
49
|
+
# @return [Hash] response body
|
50
|
+
def post_json(path, data = {})
|
51
|
+
pp data if @debug
|
52
|
+
@res = client.post("#{@base_uri}#{path}", data)
|
53
|
+
handle_error(@res)
|
54
|
+
JSON.parse(@res.body)
|
55
|
+
end
|
56
|
+
|
57
|
+
# Post parameters to a graph, POST /api/graphs/:path
|
58
|
+
# @param [String] path
|
59
|
+
# @param [Hash] params The POST parameters.
|
60
|
+
# @return [Hash] the error code and graph property
|
61
|
+
# @example
|
62
|
+
# {"error":0,
|
63
|
+
# "data":{
|
64
|
+
# "number":"1",
|
65
|
+
# "llimit":"-1000000000",
|
66
|
+
# "mode":"gauge",
|
67
|
+
# "stype":"AREA",
|
68
|
+
# "adjustval":"1",
|
69
|
+
# "meta":"",
|
70
|
+
# "service_name":"multiforecast",
|
71
|
+
# "gmode":"gauge",
|
72
|
+
# "color":"#cc6633",
|
73
|
+
# "created_at":"2013/08/29 11:58:15",
|
74
|
+
# "section_name":"foo%2Fbar%2Ffoo",
|
75
|
+
# "ulimit":"1000000000",
|
76
|
+
# "id":"2",
|
77
|
+
# "graph_name":"bar",
|
78
|
+
# "description":"",
|
79
|
+
# "sulimit":"100000",
|
80
|
+
# "unit":"","sort":"0",
|
81
|
+
# "updated_at":"2013/08/29 11:58:15",
|
82
|
+
# "adjust":"*",
|
83
|
+
# "path":"foo/bar/foo/bar",
|
84
|
+
# "type":"AREA",
|
85
|
+
# "sllimit":"-100000",
|
86
|
+
# "md5":"c81e728d9d4c2f636f067f89cc14862c"}
|
87
|
+
def post_graph(path, params)
|
88
|
+
post_json("/api/graphs/#{escape path}", params)
|
89
|
+
end
|
90
|
+
|
91
|
+
# Get parameters from a graph, GET /api/graphs/:path
|
92
|
+
# @param [String] path
|
93
|
+
# @return [Hash] the graph property
|
94
|
+
# @example
|
95
|
+
# {
|
96
|
+
# "number":"1",
|
97
|
+
# "llimit":"-1000000000",
|
98
|
+
# "mode":"gauge",
|
99
|
+
# "stype":"AREA",
|
100
|
+
# "adjustval":"1",
|
101
|
+
# "meta":"",
|
102
|
+
# "service_name":"multiforecast",
|
103
|
+
# "gmode":"gauge",
|
104
|
+
# "color":"#cc6633",
|
105
|
+
# "created_at":"2013/08/29 11:58:15",
|
106
|
+
# "section_name":"foo%2Fbar%2Ffoo",
|
107
|
+
# "ulimit":"1000000000",
|
108
|
+
# "id":"2",
|
109
|
+
# "graph_name":"bar",
|
110
|
+
# "description":"",
|
111
|
+
# "sulimit":"100000",
|
112
|
+
# "unit":"","sort":"0",
|
113
|
+
# "updated_at":"2013/08/29 11:58:15",
|
114
|
+
# "adjust":"*",
|
115
|
+
# "path":"foo/bar/foo/bar",
|
116
|
+
# "type":"AREA",
|
117
|
+
# "sllimit":"-100000",
|
118
|
+
# "md5":"c81e728d9d4c2f636f067f89cc14862c"}
|
119
|
+
def get_graph(path)
|
120
|
+
get_json("/api/graphs/#{escape path}")
|
121
|
+
end
|
122
|
+
|
123
|
+
private
|
124
|
+
|
125
|
+
def escape(str)
|
126
|
+
URI.escape(str) if str
|
127
|
+
end
|
128
|
+
|
129
|
+
def handle_error(res)
|
130
|
+
case res.status
|
131
|
+
when 200
|
132
|
+
when 201
|
133
|
+
when 404
|
134
|
+
raise NotFound.new(error_message(res))
|
135
|
+
when 409
|
136
|
+
raise AlreadyExists.new(error_message(res))
|
137
|
+
else
|
138
|
+
raise Error.new(error_message(res))
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
def error_message(res)
|
143
|
+
"status:#{res.status}\turi:#{res.http_header.request_uri.to_s}\tmessage:#{res.body}"
|
144
|
+
end
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'yohoushi/client'
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require "bundler/setup"
|
3
|
+
|
4
|
+
ENV['MOCK'] ||= 'on'
|
5
|
+
require "pry"
|
6
|
+
require "pry-nav"
|
7
|
+
require 'yohoushi-client'
|
8
|
+
require 'webmock/rspec'
|
9
|
+
require 'cgi'
|
10
|
+
WebMock.allow_net_connect! if ENV['MOCK'] == 'off'
|
11
|
+
|
12
|
+
ROOT = File.dirname(__FILE__)
|
13
|
+
Dir[File.expand_path("support/**/*.rb", ROOT)].each {|f| require f }
|
14
|
+
|
15
|
+
RSpec.configure do |config|
|
16
|
+
config.treat_symbols_as_metadata_keys_with_true_values = true
|
17
|
+
config.run_all_when_everything_filtered = true
|
18
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
module Yohoushi::SpecHelper
|
2
|
+
def escape(str)
|
3
|
+
URI.escape(str) if str
|
4
|
+
end
|
5
|
+
|
6
|
+
def base_uri
|
7
|
+
'http://localhost:4804'
|
8
|
+
end
|
9
|
+
|
10
|
+
def client
|
11
|
+
Yohoushi::Client.new(base_uri)
|
12
|
+
end
|
13
|
+
|
14
|
+
def graph_example
|
15
|
+
{
|
16
|
+
"number"=>0,
|
17
|
+
"llimit"=>-1000000000,
|
18
|
+
"mode"=>"gauge",
|
19
|
+
"stype"=>"AREA",
|
20
|
+
"adjustval"=>"1",
|
21
|
+
"meta"=>"",
|
22
|
+
"service_name"=>"multiforecast",
|
23
|
+
"gmode"=>"gauge",
|
24
|
+
"color"=>"#cc6633",
|
25
|
+
"created_at"=>"2013/02/02 00:41:11",
|
26
|
+
"section_name"=>"foo%2Fbar%2Ffoo",
|
27
|
+
"ulimit"=>1000000000,
|
28
|
+
"id"=>1,
|
29
|
+
"graph_name"=>"bar",
|
30
|
+
"description"=>"",
|
31
|
+
"sulimit"=>100000,
|
32
|
+
"unit"=>"",
|
33
|
+
"sort"=>0,
|
34
|
+
"updated_at"=>"2013/02/02 02:32:10",
|
35
|
+
"adjust"=>"*",
|
36
|
+
"path"=>"foo/bar/foo/bar",
|
37
|
+
"type"=>"AREA",
|
38
|
+
"sllimit"=>-100000,
|
39
|
+
"md5"=>"3c59dc048e8850243be8079a5c74d079"
|
40
|
+
}
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
shared_context "stub_get_graph" do
|
4
|
+
proc = Proc.new do
|
5
|
+
stub_request(:get, "#{base_uri}/api/graphs/#{escape graph['path']}").
|
6
|
+
to_return(:status => 200, :body => graph_example.to_json)
|
7
|
+
end
|
8
|
+
before(:each, &proc)
|
9
|
+
end
|
10
|
+
|
11
|
+
shared_context "stub_post_graph" do
|
12
|
+
include_context "stub_get_graph"
|
13
|
+
before do
|
14
|
+
stub_request(:post, "#{base_uri}/api/graphs/#{escape graph['path']}").
|
15
|
+
to_return(:status => 200, :body => { "error" => 0, "data" => graph_example }.to_json)
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'yohoushi/cli'
|
3
|
+
|
4
|
+
describe Yohoushi::CLI do
|
5
|
+
before(:all) { @cli = Yohoushi::CLI.new }
|
6
|
+
|
7
|
+
context "#graph_path" do
|
8
|
+
before { @url = 'http://localhost:4804/api/graphs/foo/bar' }
|
9
|
+
before { @path = @cli.graph_path(URI.parse(@url).path) }
|
10
|
+
it { @path.should == 'foo/bar' }
|
11
|
+
end
|
12
|
+
|
13
|
+
context "post" do
|
14
|
+
pending
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Yohoushi::Client do
|
4
|
+
include Yohoushi::SpecHelper
|
5
|
+
|
6
|
+
graph_keys = %w[number llimit mode stype adjustval gmode color created_at ulimit description
|
7
|
+
sulimit unit sort updated_at adjust type sllimit meta md5 path]
|
8
|
+
|
9
|
+
context "#post_graph" do
|
10
|
+
include_context "stub_post_graph" if ENV['MOCK'] == 'on'
|
11
|
+
include_context "stub_get_graph" if ENV['MOCK'] == 'on'
|
12
|
+
params = {
|
13
|
+
'number' => 0,
|
14
|
+
}
|
15
|
+
let(:graph) { graph_example }
|
16
|
+
subject { client.post_graph(graph["path"], params) }
|
17
|
+
it { subject["error"].should == 0 }
|
18
|
+
# params.keys.each {|key| it { subject["data"][key].should == params[key] } }
|
19
|
+
end
|
20
|
+
|
21
|
+
describe 'http://blog.64p.org/?page=1366971426' do
|
22
|
+
before { @client ||= client }
|
23
|
+
context "#client=" do
|
24
|
+
before { @client.client = HTTPClient.new(agent_name: 'TestAgent/0.1') }
|
25
|
+
it { @client.client.agent_name.should == 'TestAgent/0.1' }
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
@@ -0,0 +1,29 @@
|
|
1
|
+
#! /usr/bin/env gem build
|
2
|
+
# encoding: utf-8
|
3
|
+
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.name = 'yohoushi-client'
|
6
|
+
gem.version = File.read(File.expand_path('VERSION', File.dirname(__FILE__))).chomp
|
7
|
+
gem.authors = ["Naotoshi Seo"]
|
8
|
+
gem.email = ["sonots@gmail.com"]
|
9
|
+
gem.homepage = "https://github.com/yohoushi/yohoushi-client"
|
10
|
+
gem.summary = "A Ruby Client Library for Yohoushi API"
|
11
|
+
gem.description = gem.summary
|
12
|
+
|
13
|
+
gem.files = `git ls-files`.split($\)
|
14
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
15
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
16
|
+
gem.require_paths = ["lib"]
|
17
|
+
|
18
|
+
gem.add_runtime_dependency "httpclient"
|
19
|
+
gem.add_runtime_dependency "thor"
|
20
|
+
|
21
|
+
# for testing
|
22
|
+
gem.add_development_dependency "rake"
|
23
|
+
gem.add_development_dependency "rspec", "~> 2.11"
|
24
|
+
gem.add_development_dependency "webmock"
|
25
|
+
|
26
|
+
# for debug
|
27
|
+
gem.add_development_dependency "pry"
|
28
|
+
gem.add_development_dependency "pry-nav"
|
29
|
+
end
|
metadata
ADDED
@@ -0,0 +1,168 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: yohoushi-client
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Naotoshi Seo
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-08-29 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: httpclient
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: thor
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.11'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2.11'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: webmock
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: pry
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: pry-nav
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description: A Ruby Client Library for Yohoushi API
|
112
|
+
email:
|
113
|
+
- sonots@gmail.com
|
114
|
+
executables:
|
115
|
+
- yohoushi-client
|
116
|
+
extensions: []
|
117
|
+
extra_rdoc_files: []
|
118
|
+
files:
|
119
|
+
- .gitignore
|
120
|
+
- .rspec
|
121
|
+
- .travis.yml
|
122
|
+
- CHANGELOG.md
|
123
|
+
- Gemfile
|
124
|
+
- LICENSE
|
125
|
+
- README.md
|
126
|
+
- Rakefile
|
127
|
+
- VERSION
|
128
|
+
- bin/yohoushi-client
|
129
|
+
- examples/create_graph.rb
|
130
|
+
- lib/yohoushi-client.rb
|
131
|
+
- lib/yohoushi/cli.rb
|
132
|
+
- lib/yohoushi/client.rb
|
133
|
+
- spec/spec_helper.rb
|
134
|
+
- spec/support/helper.rb
|
135
|
+
- spec/support/mock.rb
|
136
|
+
- spec/yohoushi/cli_spec.rb
|
137
|
+
- spec/yohoushi/client_spec.rb
|
138
|
+
- yohoushi-client.gemspec
|
139
|
+
homepage: https://github.com/yohoushi/yohoushi-client
|
140
|
+
licenses: []
|
141
|
+
metadata: {}
|
142
|
+
post_install_message:
|
143
|
+
rdoc_options: []
|
144
|
+
require_paths:
|
145
|
+
- lib
|
146
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
147
|
+
requirements:
|
148
|
+
- - '>='
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '0'
|
151
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
|
+
requirements:
|
153
|
+
- - '>='
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: '0'
|
156
|
+
requirements: []
|
157
|
+
rubyforge_project:
|
158
|
+
rubygems_version: 2.0.2
|
159
|
+
signing_key:
|
160
|
+
specification_version: 4
|
161
|
+
summary: A Ruby Client Library for Yohoushi API
|
162
|
+
test_files:
|
163
|
+
- spec/spec_helper.rb
|
164
|
+
- spec/support/helper.rb
|
165
|
+
- spec/support/mock.rb
|
166
|
+
- spec/yohoushi/cli_spec.rb
|
167
|
+
- spec/yohoushi/client_spec.rb
|
168
|
+
has_rdoc:
|