mushikago-sdk 2.1.1 → 2.2
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.
- data/README.md +4 -2
- data/lib/mushikago/mitsubachi.rb +4 -0
- data/lib/mushikago/mitsubachi/client.rb +2 -0
- data/lib/mushikago/mitsubachi/cookie.rb +11 -0
- data/lib/mushikago/mitsubachi/cookiejar.rb +20 -0
- data/lib/mushikago/mitsubachi/http_fetch_request.rb +2 -0
- data/lib/mushikago/mitsubachi/http_push_request.rb +2 -0
- data/lib/mushikago/tombo/captures_request.rb +3 -0
- data/lib/mushikago/tombo/client.rb +1 -0
- data/lib/mushikago/version.rb +1 -1
- data/spec/mushikago/mitsubachi/cookie_spec.rb +9 -0
- data/spec/mushikago/mitsubachi/cookiejar_spec.rb +25 -0
- data/spec/mushikago/mitsubachi/http_fetch_request_spec.rb +14 -0
- data/spec/mushikago/mitsubachi/http_push_request_spec.rb +15 -0
- data/spec/mushikago/tombo/capture_request_spec.rb +4 -4
- data/spec/mushikago/tombo/captures_request_spec.rb +5 -1
- data/spec/mushikago/tombo/client_spec.rb +2 -0
- data/spec/spec_helper.rb +1 -0
- metadata +215 -169
data/README.md
CHANGED
@@ -5,8 +5,8 @@ Mushikago SDK for Ruby.
|
|
5
5
|
- **Author**: MiningBrownie
|
6
6
|
- **Copyright**: 2011
|
7
7
|
- **License**: Apache License, Version 2.0
|
8
|
-
- **Latest Version**: 2.
|
9
|
-
- **Release Date**:
|
8
|
+
- **Latest Version**: 2.2
|
9
|
+
- **Release Date**: Aug 3rd 2012
|
10
10
|
|
11
11
|
|
12
12
|
概要
|
@@ -154,6 +154,8 @@ $ export MUSHIKAGO_SECRET_KEY=<シークレットキー>
|
|
154
154
|
変更履歴
|
155
155
|
--------
|
156
156
|
|
157
|
+
- **Aug.3.12**: 2.2 release
|
158
|
+
- mitsubachiのcookiejar対応
|
157
159
|
- **Jul.31.12**: 2.1.1 release
|
158
160
|
- tomboのuser_agent修正
|
159
161
|
- **May.30.12**: 2.1.0 release
|
data/lib/mushikago/mitsubachi.rb
CHANGED
@@ -35,6 +35,10 @@ module Mushikago
|
|
35
35
|
autoload :Script, 'mushikago/mitsubachi/script'
|
36
36
|
autoload :Resources, 'mushikago/mitsubachi/resources'
|
37
37
|
autoload :Resource, 'mushikago/mitsubachi/resource'
|
38
|
+
|
39
|
+
# cookie
|
40
|
+
autoload :Cookie, 'mushikago/mitsubachi/cookie'
|
41
|
+
autoload :Cookiejar, 'mushikago/mitsubachi/cookiejar'
|
38
42
|
end
|
39
43
|
end
|
40
44
|
|
@@ -140,6 +140,7 @@ module Mushikago
|
|
140
140
|
# @option options [Boolean] :follow_redirect
|
141
141
|
# @option options [String] :parameters
|
142
142
|
# @option options [String] :header_overwrite
|
143
|
+
# @option options [String] :cookiejar
|
143
144
|
# @example
|
144
145
|
# client.http_fetch('project01', 'http://www.tombo.ne.jp/', 'sample.rb', :follow_redirect => true)
|
145
146
|
# @return [Mushikago::Http::Response] リクエストの結果
|
@@ -160,6 +161,7 @@ module Mushikago
|
|
160
161
|
# @option options [String] :parameters
|
161
162
|
# @option options [String] :header_overwrite
|
162
163
|
# @option options [String] :mime_type
|
164
|
+
# @option options [String] :cookiejar
|
163
165
|
# @example
|
164
166
|
# client.http_push('project01', 'http://www.tombo.ne.jp/', 'sample.rb')
|
165
167
|
# @return [Mushikago::Http::Response] リクエストの結果
|
@@ -0,0 +1,11 @@
|
|
1
|
+
#-*- coding : utf-8 -*-
|
2
|
+
require 'json'
|
3
|
+
module Mushikago
|
4
|
+
module Mitsubachi
|
5
|
+
class Cookie < Struct.new(:name, :value, :domain, :path, :secure)
|
6
|
+
def to_json *args
|
7
|
+
{:name => name, :value => value, :domain => domain, :path => path, :secure => secure}.to_json(args)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
#-*- coding : utf-8 -*-
|
2
|
+
require 'json'
|
3
|
+
module Mushikago
|
4
|
+
module Mitsubachi
|
5
|
+
class Cookiejar
|
6
|
+
attr_reader :cookies
|
7
|
+
def initialize
|
8
|
+
@cookies = []
|
9
|
+
end
|
10
|
+
|
11
|
+
def add cookie
|
12
|
+
@cookies << cookie
|
13
|
+
end
|
14
|
+
|
15
|
+
def to_json *args
|
16
|
+
@cookies.to_json(args)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -11,6 +11,7 @@ module Mushikago
|
|
11
11
|
request_parameter :follow_redirect do |v| (v ? 1 : 0).to_s end
|
12
12
|
request_parameter :parameters
|
13
13
|
request_parameter :header_overwrite
|
14
|
+
request_parameter :cookiejar do |c| c.to_json end
|
14
15
|
|
15
16
|
def initialize project_name, url, script_name, options={}
|
16
17
|
super(options)
|
@@ -22,6 +23,7 @@ module Mushikago
|
|
22
23
|
self.follow_redirect = options[:follow_redirect] if options.has_key?(:follow_redirect)
|
23
24
|
self.parameters = options[:parameters] if options.has_key?(:parameters)
|
24
25
|
self.header_overwrite = options[:header_overwrite] if options.has_key?(:header_overwrite)
|
26
|
+
self.cookiejar = options[:cookiejar] if options.has_key?(:cookiejar)
|
25
27
|
end
|
26
28
|
end
|
27
29
|
end
|
@@ -12,6 +12,7 @@ module Mushikago
|
|
12
12
|
request_parameter :parameters
|
13
13
|
request_parameter :header_overwrite
|
14
14
|
request_parameter :mime_type
|
15
|
+
request_parameter :cookiejar do |c| c.to_json end
|
15
16
|
|
16
17
|
def initialize project_name, url, script_name, file_name, file_input_key, options={}
|
17
18
|
super(options)
|
@@ -24,6 +25,7 @@ module Mushikago
|
|
24
25
|
self.parameters = options[:parameters] if options.has_key?(:parameters)
|
25
26
|
self.header_overwrite = options[:header_overwrite] if options.has_key?(:header_overwrite)
|
26
27
|
self.mime_type = options[:mime_type] if options.has_key?(:mime_type)
|
28
|
+
self.cookiejar = options[:cookiejar] if options.has_key?(:cookiejar)
|
27
29
|
end
|
28
30
|
end
|
29
31
|
end
|
@@ -10,11 +10,13 @@ module Mushikago
|
|
10
10
|
request_parameter :offset
|
11
11
|
request_parameter :domain
|
12
12
|
request_parameter :tag
|
13
|
+
request_parameter :source_url
|
13
14
|
|
14
15
|
# @param [Hash] options リクエストのオプション
|
15
16
|
# @option options [String] :id 画像のID
|
16
17
|
# @option options [String] :domain 指定したドメインの画像一覧を取得する
|
17
18
|
# @option options [String] :tag 指定したタグの画像一覧を取得する
|
19
|
+
# @option options [String] :source_url 指定した取得元URLの画像一覧を取得する
|
18
20
|
# @option options [Integer] :limit(10) 最大取得件数(1-100)
|
19
21
|
# @option options [Integer] :offset(0) 取得オフセット
|
20
22
|
def initialize options={}
|
@@ -24,6 +26,7 @@ module Mushikago
|
|
24
26
|
self.offset = options[:offset] if options.has_key?(:offset)
|
25
27
|
self.domain = options[:domain] if options.has_key?(:domain)
|
26
28
|
self.tag = options[:tag] if options.has_key?(:tag)
|
29
|
+
self.source_url = options[:source_url] if options.has_key?(:source_url)
|
27
30
|
end
|
28
31
|
end
|
29
32
|
end
|
@@ -41,6 +41,7 @@ module Mushikago
|
|
41
41
|
# @option options [String] :id 画像のID
|
42
42
|
# @option options [String] :domain 指定したドメインの画像一覧を取得する
|
43
43
|
# @option options [String] :tag 指定したタグの画像一覧を取得する
|
44
|
+
# @option options [String] :source_url 指定した取得元URLの画像一覧を取得する
|
44
45
|
# @option options [Integer] :limit(10) 最大取得件数(1-100)
|
45
46
|
# @option options [Integer] :offset(0) 取得オフセット
|
46
47
|
# @example
|
data/lib/mushikago/version.rb
CHANGED
@@ -0,0 +1,9 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
describe Mushikago::Mitsubachi::Cookie do
|
5
|
+
it 'to_jsonが良い感じに値を返す' do
|
6
|
+
cookie = Mushikago::Mitsubachi::Cookie.new('name', 'value', 'domain', 'path', true)
|
7
|
+
cookie.to_json.should == '{"name":"name","value":"value","domain":"domain","path":"path","secure":true}'
|
8
|
+
end
|
9
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
describe Mushikago::Mitsubachi::Cookiejar do
|
5
|
+
it '空っぽのcookiejarの動作' do
|
6
|
+
cookiejar = Mushikago::Mitsubachi::Cookiejar.new
|
7
|
+
cookiejar.to_json.should == '[]'
|
8
|
+
end
|
9
|
+
|
10
|
+
it 'to_jsonが良い感じに値を返す' do
|
11
|
+
cookiejar = Mushikago::Mitsubachi::Cookiejar.new
|
12
|
+
cookie = Mushikago::Mitsubachi::Cookie.new('name', 'value', 'domain', 'path', true)
|
13
|
+
cookiejar.add cookie
|
14
|
+
cookiejar.to_json.should == '[{"name":"name","value":"value","domain":"domain","path":"path","secure":true}]'
|
15
|
+
end
|
16
|
+
|
17
|
+
it 'to_jsonが良い感じに値を返す2' do
|
18
|
+
cookiejar = Mushikago::Mitsubachi::Cookiejar.new
|
19
|
+
cookie = Mushikago::Mitsubachi::Cookie.new('name', 'value', 'domain', 'path', true)
|
20
|
+
cookiejar.add cookie
|
21
|
+
cookiejar.add cookie
|
22
|
+
cookiejar.to_json.should == '[{"name":"name","value":"value","domain":"domain","path":"path","secure":true},{"name":"name","value":"value","domain":"domain","path":"path","secure":true}]'
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
describe Mushikago::Mitsubachi::HttpFetchRequest do
|
5
|
+
context 'cookieのテスト' do
|
6
|
+
it 'cookiejarを受け取ったら自動的にto_jsonしてる' do
|
7
|
+
cookiejar = Mushikago::Mitsubachi::Cookiejar.new
|
8
|
+
cookie = Mushikago::Mitsubachi::Cookie.new('name', 'value', 'domain', 'path', true)
|
9
|
+
cookiejar.add cookie
|
10
|
+
request = Mushikago::Mitsubachi::HttpFetchRequest.new('p', 'u', 's', :cookiejar => cookiejar)
|
11
|
+
request.cookiejar.should == '[{"name":"name","value":"value","domain":"domain","path":"path","secure":true}]'
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
describe Mushikago::Mitsubachi::HttpPushRequest do
|
5
|
+
context 'cookieのテスト' do
|
6
|
+
it 'cookiejarを受け取ったら自動的にto_jsonしてる' do
|
7
|
+
cookiejar = Mushikago::Mitsubachi::Cookiejar.new
|
8
|
+
cookie = Mushikago::Mitsubachi::Cookie.new('name', 'value', 'domain', 'path', true)
|
9
|
+
cookiejar.add cookie
|
10
|
+
request = Mushikago::Mitsubachi::HttpPushRequest.new('p', 'u', 's', 'f', 'f', :cookiejar => cookiejar)
|
11
|
+
request.cookiejar.should == '[{"name":"name","value":"value","domain":"domain","path":"path","secure":true}]'
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
@@ -13,7 +13,7 @@ describe Mushikago::Tombo::CaptureRequest do
|
|
13
13
|
it{ should respond_to(:image_quality) }
|
14
14
|
it{ should respond_to(:thumbnail) }
|
15
15
|
it{ should respond_to(:tags) }
|
16
|
-
it{ should respond_to(:
|
16
|
+
it{ should respond_to(:user_agent) }
|
17
17
|
it{ should respond_to(:add_signature!) }
|
18
18
|
|
19
19
|
context 'with options' do
|
@@ -23,7 +23,7 @@ describe Mushikago::Tombo::CaptureRequest do
|
|
23
23
|
:image_quality => '20',
|
24
24
|
:thumbnail => true,
|
25
25
|
:tags => 'hoge,fuga',
|
26
|
-
:
|
26
|
+
:user_agent => 'sampleua',
|
27
27
|
}
|
28
28
|
@request = Mushikago::Tombo::CaptureRequest.new('http://www.mushikago.org/', options)
|
29
29
|
end
|
@@ -37,10 +37,10 @@ describe Mushikago::Tombo::CaptureRequest do
|
|
37
37
|
its(:image_format){ should == 'png' }
|
38
38
|
its(:image_quality){ should == '20' }
|
39
39
|
its(:thumbnail){ should == '1' }
|
40
|
-
its(:
|
40
|
+
its(:user_agent){ should == 'sampleua' }
|
41
41
|
its(:tags){ should == 'hoge,fuga' }
|
42
42
|
it{ subject.headers['Content-type'].should == 'application/x-www-form-urlencoded; charset=utf-8' }
|
43
|
-
its(:url_encoded_params){ should == 'image_format=png&image_quality=20&tags=hoge%2Cfuga&thumbnail=1&url=http%3A%2F%2Fwww.mushikago.org%2F&
|
43
|
+
its(:url_encoded_params){ should == 'image_format=png&image_quality=20&tags=hoge%2Cfuga&thumbnail=1&url=http%3A%2F%2Fwww.mushikago.org%2F&user_agent=sampleua' }
|
44
44
|
end
|
45
45
|
|
46
46
|
context 'tags can be array and thumbnail is false' do
|
@@ -13,6 +13,8 @@ describe Mushikago::Tombo::CapturesRequest do
|
|
13
13
|
it{ should respond_to(:offset) }
|
14
14
|
it{ should respond_to(:domain) }
|
15
15
|
it{ should respond_to(:tag) }
|
16
|
+
it{ should respond_to(:source_url) }
|
17
|
+
|
16
18
|
|
17
19
|
context 'with options' do
|
18
20
|
before :all do
|
@@ -22,6 +24,7 @@ describe Mushikago::Tombo::CapturesRequest do
|
|
22
24
|
:offset => '5',
|
23
25
|
:domain => 'hogehoge.com',
|
24
26
|
:tag => 'tag',
|
27
|
+
:source_url => 'http://www.miningbrownie.co.jp',
|
25
28
|
}
|
26
29
|
@request = Mushikago::Tombo::CapturesRequest.new(options)
|
27
30
|
end
|
@@ -36,6 +39,7 @@ describe Mushikago::Tombo::CapturesRequest do
|
|
36
39
|
its(:offset){ should == '5' }
|
37
40
|
its(:domain){ should == 'hogehoge.com' }
|
38
41
|
its(:tag){ should == 'tag' }
|
39
|
-
its(:
|
42
|
+
its(:source_url){ should == 'http://www.miningbrownie.co.jp' }
|
43
|
+
its(:url_encoded_params){ should == 'domain=hogehoge.com&id=id&limit=2&offset=5&source_url=http%3A%2F%2Fwww.miningbrownie.co.jp&tag=tag' }
|
40
44
|
end
|
41
45
|
end
|
@@ -73,6 +73,7 @@ describe Mushikago::Tombo::Client do
|
|
73
73
|
:image_quality => 80,
|
74
74
|
:state => 'requested',
|
75
75
|
:tags => ['tag1', 'tag2'],
|
76
|
+
:created_at => '2012-07-24',
|
76
77
|
},
|
77
78
|
{}
|
78
79
|
]
|
@@ -100,6 +101,7 @@ describe Mushikago::Tombo::Client do
|
|
100
101
|
its(['state']){ should == 'requested' }
|
101
102
|
its(['tags']){ should be_a_kind_of(Enumerable) }
|
102
103
|
its(['tags']){ should have_exactly(2).items }
|
104
|
+
its(['created_at']){ should_not == nil }
|
103
105
|
end
|
104
106
|
end
|
105
107
|
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mushikago-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: '2.2'
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-08-03 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|
16
|
-
requirement: &
|
16
|
+
requirement: &2165881040 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2165881040
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: mime-types
|
27
|
-
requirement: &
|
27
|
+
requirement: &2165880600 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2165880600
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rake
|
38
|
-
requirement: &
|
38
|
+
requirement: &2165880180 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2165880180
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: maruku
|
49
|
-
requirement: &
|
49
|
+
requirement: &2165879760 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2165879760
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: yard
|
60
|
-
requirement: &
|
60
|
+
requirement: &2165879340 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *2165879340
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
|
-
requirement: &
|
71
|
+
requirement: &2165878840 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ~>
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: 2.6.0
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *2165878840
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: ci_reporter
|
82
|
-
requirement: &
|
82
|
+
requirement: &2165878420 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *2165878420
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: ZenTest
|
93
|
-
requirement: &
|
93
|
+
requirement: &2165908660 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: '0'
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *2165908660
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: bundler
|
104
|
-
requirement: &
|
104
|
+
requirement: &2165908240 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ! '>='
|
@@ -109,7 +109,7 @@ dependencies:
|
|
109
109
|
version: '0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *2165908240
|
113
113
|
description: A SDK for Mushikago Web Service.
|
114
114
|
email:
|
115
115
|
- t.matsuoka@miningbrownie.co.jp
|
@@ -117,140 +117,182 @@ executables: []
|
|
117
117
|
extensions: []
|
118
118
|
extra_rdoc_files: []
|
119
119
|
files:
|
120
|
-
- autotest
|
121
|
-
- lib/
|
122
|
-
- lib
|
123
|
-
- lib
|
124
|
-
- lib
|
125
|
-
- lib
|
126
|
-
- lib
|
127
|
-
- lib
|
128
|
-
- lib
|
129
|
-
- lib
|
130
|
-
- lib
|
131
|
-
- lib
|
132
|
-
- lib
|
133
|
-
- lib
|
134
|
-
- lib
|
135
|
-
- lib
|
136
|
-
- lib
|
137
|
-
- lib
|
138
|
-
- lib
|
139
|
-
- lib
|
140
|
-
- lib
|
141
|
-
- lib
|
142
|
-
- lib
|
143
|
-
- lib
|
144
|
-
- lib
|
145
|
-
- lib
|
146
|
-
- lib
|
147
|
-
- lib
|
148
|
-
- lib
|
149
|
-
- lib
|
150
|
-
- lib
|
151
|
-
- lib
|
152
|
-
- lib
|
153
|
-
- lib
|
154
|
-
- lib
|
155
|
-
- lib
|
156
|
-
- lib
|
157
|
-
- lib
|
158
|
-
- lib
|
159
|
-
- lib
|
160
|
-
- lib
|
161
|
-
- lib
|
162
|
-
- lib
|
163
|
-
- lib
|
164
|
-
- lib
|
165
|
-
- lib
|
166
|
-
- lib
|
167
|
-
- lib
|
168
|
-
- lib
|
169
|
-
- lib
|
170
|
-
- lib
|
171
|
-
- lib
|
172
|
-
- lib
|
173
|
-
- lib
|
174
|
-
- lib
|
175
|
-
- lib
|
176
|
-
- lib
|
177
|
-
- lib
|
178
|
-
- lib
|
179
|
-
- lib
|
180
|
-
- lib
|
181
|
-
- lib
|
182
|
-
- lib
|
183
|
-
- lib
|
184
|
-
- lib
|
185
|
-
- lib
|
186
|
-
- lib
|
187
|
-
- lib
|
188
|
-
- lib
|
189
|
-
- lib
|
190
|
-
- lib
|
191
|
-
- lib
|
192
|
-
- lib
|
193
|
-
- lib
|
194
|
-
- lib
|
195
|
-
- lib
|
196
|
-
- lib
|
197
|
-
- lib
|
198
|
-
- lib
|
199
|
-
- lib
|
200
|
-
- lib
|
201
|
-
- lib
|
202
|
-
- lib
|
203
|
-
- lib
|
204
|
-
- lib
|
205
|
-
- lib
|
206
|
-
- lib
|
207
|
-
- lib
|
208
|
-
- lib
|
209
|
-
- lib
|
210
|
-
- lib
|
211
|
-
- lib
|
212
|
-
- lib
|
213
|
-
- lib
|
214
|
-
- lib
|
215
|
-
- lib
|
216
|
-
- lib
|
217
|
-
- lib/
|
218
|
-
-
|
219
|
-
-
|
120
|
+
- autotest//discover.rb
|
121
|
+
- lib//mushikago/auth/signature.rb
|
122
|
+
- lib//mushikago/auth/signer.rb
|
123
|
+
- lib//mushikago/auth.rb
|
124
|
+
- lib//mushikago/configuration.rb
|
125
|
+
- lib//mushikago/hanamgri/client.rb
|
126
|
+
- lib//mushikago/hanamgri/create_domain_request.rb
|
127
|
+
- lib//mushikago/hanamgri/delete_dictionary_request.rb
|
128
|
+
- lib//mushikago/hanamgri/delete_domain_request.rb
|
129
|
+
- lib//mushikago/hanamgri/delete_knowledge_request.rb
|
130
|
+
- lib//mushikago/hanamgri/field.rb
|
131
|
+
- lib//mushikago/hanamgri/get_analysis_request.rb
|
132
|
+
- lib//mushikago/hanamgri/get_information_request.rb
|
133
|
+
- lib//mushikago/hanamgri/get_queue_size_request.rb
|
134
|
+
- lib//mushikago/hanamgri/list_analyses_request.rb
|
135
|
+
- lib//mushikago/hanamgri/list_dictionaries_request.rb
|
136
|
+
- lib//mushikago/hanamgri/list_domains_request.rb
|
137
|
+
- lib//mushikago/hanamgri/list_knowledges_request.rb
|
138
|
+
- lib//mushikago/hanamgri/request_analysis_request.rb
|
139
|
+
- lib//mushikago/hanamgri/save_dictionary_request.rb
|
140
|
+
- lib//mushikago/hanamgri/save_knowledge_request.rb
|
141
|
+
- lib//mushikago/hanamgri/schema.rb
|
142
|
+
- lib//mushikago/hanamgri/search_schema_request.rb
|
143
|
+
- lib//mushikago/hanamgri/train_request.rb
|
144
|
+
- lib//mushikago/hanamgri/training_data.rb
|
145
|
+
- lib//mushikago/hanamgri/update_domain_request.rb
|
146
|
+
- lib//mushikago/hanamgri.rb
|
147
|
+
- lib//mushikago/hotaru/classifier_judge_request.rb
|
148
|
+
- lib//mushikago/hotaru/client.rb
|
149
|
+
- lib//mushikago/hotaru/collocation_create_request.rb
|
150
|
+
- lib//mushikago/hotaru/collocation_delete_request.rb
|
151
|
+
- lib//mushikago/hotaru/collocation_download_request.rb
|
152
|
+
- lib//mushikago/hotaru/collocation_get_request.rb
|
153
|
+
- lib//mushikago/hotaru/collocation_list_request.rb
|
154
|
+
- lib//mushikago/hotaru/collocation_wordlist_request.rb
|
155
|
+
- lib//mushikago/hotaru/dictionary_delete_request.rb
|
156
|
+
- lib//mushikago/hotaru/dictionary_list_request.rb
|
157
|
+
- lib//mushikago/hotaru/dictionary_put_request.rb
|
158
|
+
- lib//mushikago/hotaru/domain_create_request.rb
|
159
|
+
- lib//mushikago/hotaru/domain_delete_request.rb
|
160
|
+
- lib//mushikago/hotaru/domain_info_request.rb
|
161
|
+
- lib//mushikago/hotaru/domain_list_request.rb
|
162
|
+
- lib//mushikago/hotaru/tag_delete_request.rb
|
163
|
+
- lib//mushikago/hotaru/tag_list_request.rb
|
164
|
+
- lib//mushikago/hotaru/tag_put_request.rb
|
165
|
+
- lib//mushikago/hotaru/text_delete_request.rb
|
166
|
+
- lib//mushikago/hotaru/text_get_request.rb
|
167
|
+
- lib//mushikago/hotaru/text_list_request.rb
|
168
|
+
- lib//mushikago/hotaru/text_put_request.rb
|
169
|
+
- lib//mushikago/hotaru/text_tagset_request.rb
|
170
|
+
- lib//mushikago/hotaru/word_get_request.rb
|
171
|
+
- lib//mushikago/hotaru/word_list_request.rb
|
172
|
+
- lib//mushikago/hotaru.rb
|
173
|
+
- lib//mushikago/http/client.rb
|
174
|
+
- lib//mushikago/http/multipart.rb
|
175
|
+
- lib//mushikago/http/request/delete.rb
|
176
|
+
- lib//mushikago/http/request/get.rb
|
177
|
+
- lib//mushikago/http/request/multipart_post.rb
|
178
|
+
- lib//mushikago/http/request/multipart_put.rb
|
179
|
+
- lib//mushikago/http/request/post.rb
|
180
|
+
- lib//mushikago/http/request/put.rb
|
181
|
+
- lib//mushikago/http/request.rb
|
182
|
+
- lib//mushikago/http/response.rb
|
183
|
+
- lib//mushikago/http.rb
|
184
|
+
- lib//mushikago/mitsubachi/client.rb
|
185
|
+
- lib//mushikago/mitsubachi/cookie.rb
|
186
|
+
- lib//mushikago/mitsubachi/cookiejar.rb
|
187
|
+
- lib//mushikago/mitsubachi/http_fetch_request.rb
|
188
|
+
- lib//mushikago/mitsubachi/http_push_request.rb
|
189
|
+
- lib//mushikago/mitsubachi/project.rb
|
190
|
+
- lib//mushikago/mitsubachi/project_create_request.rb
|
191
|
+
- lib//mushikago/mitsubachi/project_delete_request.rb
|
192
|
+
- lib//mushikago/mitsubachi/project_discontinue_request.rb
|
193
|
+
- lib//mushikago/mitsubachi/project_info_request.rb
|
194
|
+
- lib//mushikago/mitsubachi/project_list_request.rb
|
195
|
+
- lib//mushikago/mitsubachi/project_queues_request.rb
|
196
|
+
- lib//mushikago/mitsubachi/project_update_request.rb
|
197
|
+
- lib//mushikago/mitsubachi/projects.rb
|
198
|
+
- lib//mushikago/mitsubachi/resource.rb
|
199
|
+
- lib//mushikago/mitsubachi/resource_delete_request.rb
|
200
|
+
- lib//mushikago/mitsubachi/resource_get_request.rb
|
201
|
+
- lib//mushikago/mitsubachi/resource_list_request.rb
|
202
|
+
- lib//mushikago/mitsubachi/resource_store_request.rb
|
203
|
+
- lib//mushikago/mitsubachi/resources.rb
|
204
|
+
- lib//mushikago/mitsubachi/script.rb
|
205
|
+
- lib//mushikago/mitsubachi/script_delete_request.rb
|
206
|
+
- lib//mushikago/mitsubachi/script_deploy_request.rb
|
207
|
+
- lib//mushikago/mitsubachi/script_get_request.rb
|
208
|
+
- lib//mushikago/mitsubachi/script_list_request.rb
|
209
|
+
- lib//mushikago/mitsubachi/scripts.rb
|
210
|
+
- lib//mushikago/mitsubachi.rb
|
211
|
+
- lib//mushikago/tombo/capture_request.rb
|
212
|
+
- lib//mushikago/tombo/captures_request.rb
|
213
|
+
- lib//mushikago/tombo/client.rb
|
214
|
+
- lib//mushikago/tombo/delete_request.rb
|
215
|
+
- lib//mushikago/tombo/info_request.rb
|
216
|
+
- lib//mushikago/tombo.rb
|
217
|
+
- lib//mushikago/version.rb
|
218
|
+
- lib//mushikago-sdk.rb
|
219
|
+
- lib//mushikago.rb
|
220
|
+
- spec//mushikago/auth/signature_spec.rb
|
221
|
+
- spec//mushikago/auth/signer_spec.rb
|
222
|
+
- spec//mushikago/configuration_spec.rb
|
223
|
+
- spec//mushikago/hanamgri/client_spec.rb
|
224
|
+
- spec//mushikago/hanamgri/create_domain_spec.rb
|
225
|
+
- spec//mushikago/hanamgri/delete_dictionary_spec.rb
|
226
|
+
- spec//mushikago/hanamgri/delete_domain_spec.rb
|
227
|
+
- spec//mushikago/hanamgri/delete_knowledge_request_spec.rb
|
228
|
+
- spec//mushikago/hanamgri/field_spec.rb
|
229
|
+
- spec//mushikago/hanamgri/get_analysis_request_spec.rb
|
230
|
+
- spec//mushikago/hanamgri/get_information_request_spec.rb
|
231
|
+
- spec//mushikago/hanamgri/get_queue_size_request_spec.rb
|
232
|
+
- spec//mushikago/hanamgri/list_analyses_spec.rb
|
233
|
+
- spec//mushikago/hanamgri/list_dictionaries_spec.rb
|
234
|
+
- spec//mushikago/hanamgri/list_domains_spec.rb
|
235
|
+
- spec//mushikago/hanamgri/list_knowledges_request_spec.rb
|
236
|
+
- spec//mushikago/hanamgri/request_analysis_request_spec.rb
|
237
|
+
- spec//mushikago/hanamgri/save_dictionary_request_spec.rb
|
238
|
+
- spec//mushikago/hanamgri/save_knowledge_request_spec.rb
|
239
|
+
- spec//mushikago/hanamgri/schema_spec.rb
|
240
|
+
- spec//mushikago/hanamgri/search_schema_request_spec.rb
|
241
|
+
- spec//mushikago/hanamgri/train_spec.rb
|
242
|
+
- spec//mushikago/hanamgri/update_domain_spec.rb
|
243
|
+
- spec//mushikago/http/client_spec.rb
|
244
|
+
- spec//mushikago/http/request_spec.rb
|
245
|
+
- spec//mushikago/http/response_spec.rb
|
246
|
+
- spec//mushikago/mitsubachi/cookie_spec.rb
|
247
|
+
- spec//mushikago/mitsubachi/cookiejar_spec.rb
|
248
|
+
- spec//mushikago/mitsubachi/http_fetch_request_spec.rb
|
249
|
+
- spec//mushikago/mitsubachi/http_push_request_spec.rb
|
250
|
+
- spec//mushikago/tombo/capture_request_spec.rb
|
251
|
+
- spec//mushikago/tombo/captures_request_spec.rb
|
252
|
+
- spec//mushikago/tombo/client_spec.rb
|
253
|
+
- spec//mushikago/tombo/delete_request_spec.rb
|
254
|
+
- spec//mushikago/tombo/info_request_spec.rb
|
255
|
+
- spec//spec_helper.rb
|
256
|
+
- LICENSE
|
257
|
+
- README.md
|
258
|
+
- Rakefile
|
259
|
+
- Gemfile
|
220
260
|
- spec/mushikago/auth/signature_spec.rb
|
221
|
-
- spec/mushikago/
|
222
|
-
- spec/mushikago/
|
223
|
-
- spec/mushikago/tombo/captures_request_spec.rb
|
224
|
-
- spec/mushikago/tombo/info_request_spec.rb
|
225
|
-
- spec/mushikago/tombo/capture_request_spec.rb
|
226
|
-
- spec/mushikago/hanamgri/get_information_request_spec.rb
|
227
|
-
- spec/mushikago/hanamgri/delete_domain_spec.rb
|
228
|
-
- spec/mushikago/hanamgri/list_knowledges_request_spec.rb
|
229
|
-
- spec/mushikago/hanamgri/train_spec.rb
|
261
|
+
- spec/mushikago/auth/signer_spec.rb
|
262
|
+
- spec/mushikago/configuration_spec.rb
|
230
263
|
- spec/mushikago/hanamgri/client_spec.rb
|
231
|
-
- spec/mushikago/hanamgri/
|
232
|
-
- spec/mushikago/hanamgri/field_spec.rb
|
233
|
-
- spec/mushikago/hanamgri/schema_spec.rb
|
264
|
+
- spec/mushikago/hanamgri/create_domain_spec.rb
|
234
265
|
- spec/mushikago/hanamgri/delete_dictionary_spec.rb
|
235
|
-
- spec/mushikago/hanamgri/
|
236
|
-
- spec/mushikago/hanamgri/
|
237
|
-
- spec/mushikago/hanamgri/
|
266
|
+
- spec/mushikago/hanamgri/delete_domain_spec.rb
|
267
|
+
- spec/mushikago/hanamgri/delete_knowledge_request_spec.rb
|
268
|
+
- spec/mushikago/hanamgri/field_spec.rb
|
238
269
|
- spec/mushikago/hanamgri/get_analysis_request_spec.rb
|
270
|
+
- spec/mushikago/hanamgri/get_information_request_spec.rb
|
271
|
+
- spec/mushikago/hanamgri/get_queue_size_request_spec.rb
|
272
|
+
- spec/mushikago/hanamgri/list_analyses_spec.rb
|
239
273
|
- spec/mushikago/hanamgri/list_dictionaries_spec.rb
|
240
|
-
- spec/mushikago/hanamgri/
|
274
|
+
- spec/mushikago/hanamgri/list_domains_spec.rb
|
275
|
+
- spec/mushikago/hanamgri/list_knowledges_request_spec.rb
|
241
276
|
- spec/mushikago/hanamgri/request_analysis_request_spec.rb
|
242
|
-
- spec/mushikago/hanamgri/
|
243
|
-
- spec/mushikago/hanamgri/
|
244
|
-
- spec/mushikago/hanamgri/
|
277
|
+
- spec/mushikago/hanamgri/save_dictionary_request_spec.rb
|
278
|
+
- spec/mushikago/hanamgri/save_knowledge_request_spec.rb
|
279
|
+
- spec/mushikago/hanamgri/schema_spec.rb
|
245
280
|
- spec/mushikago/hanamgri/search_schema_request_spec.rb
|
246
|
-
- spec/mushikago/
|
281
|
+
- spec/mushikago/hanamgri/train_spec.rb
|
282
|
+
- spec/mushikago/hanamgri/update_domain_spec.rb
|
247
283
|
- spec/mushikago/http/client_spec.rb
|
248
|
-
- spec/mushikago/http/response_spec.rb
|
249
284
|
- spec/mushikago/http/request_spec.rb
|
250
|
-
-
|
251
|
-
-
|
252
|
-
-
|
253
|
-
-
|
285
|
+
- spec/mushikago/http/response_spec.rb
|
286
|
+
- spec/mushikago/mitsubachi/cookie_spec.rb
|
287
|
+
- spec/mushikago/mitsubachi/cookiejar_spec.rb
|
288
|
+
- spec/mushikago/mitsubachi/http_fetch_request_spec.rb
|
289
|
+
- spec/mushikago/mitsubachi/http_push_request_spec.rb
|
290
|
+
- spec/mushikago/tombo/capture_request_spec.rb
|
291
|
+
- spec/mushikago/tombo/captures_request_spec.rb
|
292
|
+
- spec/mushikago/tombo/client_spec.rb
|
293
|
+
- spec/mushikago/tombo/delete_request_spec.rb
|
294
|
+
- spec/mushikago/tombo/info_request_spec.rb
|
295
|
+
- spec/spec_helper.rb
|
254
296
|
homepage: http://www.mushikago.org/
|
255
297
|
licenses: []
|
256
298
|
post_install_message:
|
@@ -271,41 +313,45 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
271
313
|
version: '0'
|
272
314
|
requirements: []
|
273
315
|
rubyforge_project:
|
274
|
-
rubygems_version: 1.8.
|
316
|
+
rubygems_version: 1.8.10
|
275
317
|
signing_key:
|
276
318
|
specification_version: 3
|
277
319
|
summary: Mushikago SDK for Ruby
|
278
320
|
test_files:
|
279
|
-
- spec/spec_helper.rb
|
280
|
-
- spec/mushikago/auth/signer_spec.rb
|
281
321
|
- spec/mushikago/auth/signature_spec.rb
|
282
|
-
- spec/mushikago/
|
283
|
-
- spec/mushikago/
|
284
|
-
- spec/mushikago/tombo/captures_request_spec.rb
|
285
|
-
- spec/mushikago/tombo/info_request_spec.rb
|
286
|
-
- spec/mushikago/tombo/capture_request_spec.rb
|
287
|
-
- spec/mushikago/hanamgri/get_information_request_spec.rb
|
288
|
-
- spec/mushikago/hanamgri/delete_domain_spec.rb
|
289
|
-
- spec/mushikago/hanamgri/list_knowledges_request_spec.rb
|
290
|
-
- spec/mushikago/hanamgri/train_spec.rb
|
322
|
+
- spec/mushikago/auth/signer_spec.rb
|
323
|
+
- spec/mushikago/configuration_spec.rb
|
291
324
|
- spec/mushikago/hanamgri/client_spec.rb
|
292
|
-
- spec/mushikago/hanamgri/
|
293
|
-
- spec/mushikago/hanamgri/field_spec.rb
|
294
|
-
- spec/mushikago/hanamgri/schema_spec.rb
|
325
|
+
- spec/mushikago/hanamgri/create_domain_spec.rb
|
295
326
|
- spec/mushikago/hanamgri/delete_dictionary_spec.rb
|
296
|
-
- spec/mushikago/hanamgri/
|
297
|
-
- spec/mushikago/hanamgri/
|
298
|
-
- spec/mushikago/hanamgri/
|
327
|
+
- spec/mushikago/hanamgri/delete_domain_spec.rb
|
328
|
+
- spec/mushikago/hanamgri/delete_knowledge_request_spec.rb
|
329
|
+
- spec/mushikago/hanamgri/field_spec.rb
|
299
330
|
- spec/mushikago/hanamgri/get_analysis_request_spec.rb
|
331
|
+
- spec/mushikago/hanamgri/get_information_request_spec.rb
|
332
|
+
- spec/mushikago/hanamgri/get_queue_size_request_spec.rb
|
333
|
+
- spec/mushikago/hanamgri/list_analyses_spec.rb
|
300
334
|
- spec/mushikago/hanamgri/list_dictionaries_spec.rb
|
301
|
-
- spec/mushikago/hanamgri/
|
335
|
+
- spec/mushikago/hanamgri/list_domains_spec.rb
|
336
|
+
- spec/mushikago/hanamgri/list_knowledges_request_spec.rb
|
302
337
|
- spec/mushikago/hanamgri/request_analysis_request_spec.rb
|
303
|
-
- spec/mushikago/hanamgri/
|
304
|
-
- spec/mushikago/hanamgri/
|
305
|
-
- spec/mushikago/hanamgri/
|
338
|
+
- spec/mushikago/hanamgri/save_dictionary_request_spec.rb
|
339
|
+
- spec/mushikago/hanamgri/save_knowledge_request_spec.rb
|
340
|
+
- spec/mushikago/hanamgri/schema_spec.rb
|
306
341
|
- spec/mushikago/hanamgri/search_schema_request_spec.rb
|
307
|
-
- spec/mushikago/
|
342
|
+
- spec/mushikago/hanamgri/train_spec.rb
|
343
|
+
- spec/mushikago/hanamgri/update_domain_spec.rb
|
308
344
|
- spec/mushikago/http/client_spec.rb
|
309
|
-
- spec/mushikago/http/response_spec.rb
|
310
345
|
- spec/mushikago/http/request_spec.rb
|
346
|
+
- spec/mushikago/http/response_spec.rb
|
347
|
+
- spec/mushikago/mitsubachi/cookie_spec.rb
|
348
|
+
- spec/mushikago/mitsubachi/cookiejar_spec.rb
|
349
|
+
- spec/mushikago/mitsubachi/http_fetch_request_spec.rb
|
350
|
+
- spec/mushikago/mitsubachi/http_push_request_spec.rb
|
351
|
+
- spec/mushikago/tombo/capture_request_spec.rb
|
352
|
+
- spec/mushikago/tombo/captures_request_spec.rb
|
353
|
+
- spec/mushikago/tombo/client_spec.rb
|
354
|
+
- spec/mushikago/tombo/delete_request_spec.rb
|
355
|
+
- spec/mushikago/tombo/info_request_spec.rb
|
356
|
+
- spec/spec_helper.rb
|
311
357
|
has_rdoc:
|