mushikago-sdk 0.1.6 → 0.1.7
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 +125 -0
- data/autotest/discover.rb +7 -0
- data/doc/Mushikago.html +243 -0
- data/doc/Mushikago/Auth.html +120 -0
- data/doc/Mushikago/Auth/Signature.html +305 -0
- data/doc/Mushikago/Auth/Signer.html +452 -0
- data/doc/Mushikago/Config.html +272 -0
- data/doc/Mushikago/Http.html +118 -0
- data/doc/Mushikago/Http/Client.html +551 -0
- data/doc/Mushikago/Http/Request.html +1264 -0
- data/doc/Mushikago/Http/Response.html +706 -0
- data/doc/Mushikago/Tombo.html +118 -0
- data/doc/Mushikago/Tombo/CaptureRequest.html +446 -0
- data/doc/Mushikago/Tombo/CapturesRequest.html +389 -0
- data/doc/Mushikago/Tombo/Client.html +770 -0
- data/doc/Mushikago/Tombo/DeleteRequest.html +391 -0
- data/doc/Mushikago/Tombo/InfoRequest.html +325 -0
- data/doc/Mushikago/Tombo/Request.html +287 -0
- data/doc/_index.html +278 -0
- data/doc/class_list.html +47 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +53 -0
- data/doc/css/style.css +320 -0
- data/doc/file.README.html +201 -0
- data/doc/file_list.html +49 -0
- data/doc/frames.html +13 -0
- data/doc/index.html +201 -0
- data/doc/js/app.js +205 -0
- data/doc/js/full_list.js +150 -0
- data/doc/js/jquery.js +16 -0
- data/doc/method_list.html +398 -0
- data/doc/top-level-namespace.html +103 -0
- data/lib/mushikago/tombo/capture_request.rb +1 -1
- data/lib/mushikago/tombo/client.rb +1 -1
- data/lib/mushikago/version.rb +1 -1
- data/spec/mushikago/tombo/capture_request_spec.rb +3 -3
- metadata +34 -3
@@ -0,0 +1,103 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Top Level Namespace
|
8
|
+
|
9
|
+
— Documentation by YARD 0.7.2
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
relpath = '';
|
19
|
+
if (relpath != '') relpath += '/';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
25
|
+
|
26
|
+
|
27
|
+
</head>
|
28
|
+
<body>
|
29
|
+
<script type="text/javascript" charset="utf-8">
|
30
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
31
|
+
</script>
|
32
|
+
|
33
|
+
<div id="header">
|
34
|
+
<div id="menu">
|
35
|
+
|
36
|
+
<a href="_index.html">Index</a> »
|
37
|
+
|
38
|
+
|
39
|
+
<span class="title">Top Level Namespace</span>
|
40
|
+
|
41
|
+
|
42
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<div id="search">
|
46
|
+
|
47
|
+
<a id="class_list_link" href="#">Class List</a>
|
48
|
+
|
49
|
+
<a id="method_list_link" href="#">Method List</a>
|
50
|
+
|
51
|
+
<a id="file_list_link" href="#">File List</a>
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<div class="clear"></div>
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<iframe id="search_frame"></iframe>
|
58
|
+
|
59
|
+
<div id="content"><h1>Top Level Namespace
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
</h1>
|
64
|
+
|
65
|
+
<dl class="box">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
</dl>
|
75
|
+
<div class="clear"></div>
|
76
|
+
|
77
|
+
<h2>Defined Under Namespace</h2>
|
78
|
+
<p class="children">
|
79
|
+
|
80
|
+
|
81
|
+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Mushikago.html" title="Mushikago (module)">Mushikago</a></span>
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
</p>
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
</div>
|
95
|
+
|
96
|
+
<div id="footer">
|
97
|
+
Generated on Tue Sep 6 18:23:01 2011 by
|
98
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
99
|
+
0.7.2 (ruby-1.8.7).
|
100
|
+
</div>
|
101
|
+
|
102
|
+
</body>
|
103
|
+
</html>
|
@@ -7,7 +7,7 @@ module Mushikago
|
|
7
7
|
add_param :url
|
8
8
|
add_param :image_format
|
9
9
|
add_param :image_quality do |v| v.to_i.to_s end
|
10
|
-
add_param :thumbnail do |v| (v
|
10
|
+
add_param :thumbnail do |v| (v ? 1 : 0).to_s end
|
11
11
|
add_param :tags do |v| [v].flatten.compact.join(',') end
|
12
12
|
|
13
13
|
# @param [String] url キャプチャ対象のURL
|
@@ -13,7 +13,7 @@ module Mushikago
|
|
13
13
|
# end
|
14
14
|
#
|
15
15
|
# @example APIキーをファイルから読み込む場合
|
16
|
-
# Mushikago.config.load(YAML.load(File.read(
|
16
|
+
# Mushikago.config.load(YAML.load(File.read('config.yml')))
|
17
17
|
# client = Mushikago::Tombo::Client.new
|
18
18
|
class Client < Mushikago::Http::Client
|
19
19
|
# 指定したURLのキャプチャを取得する
|
data/lib/mushikago/version.rb
CHANGED
@@ -19,7 +19,7 @@ describe Mushikago::Tombo::CaptureRequest do
|
|
19
19
|
options = {
|
20
20
|
:image_format => 'png',
|
21
21
|
:image_quality => '20',
|
22
|
-
:thumbnail =>
|
22
|
+
:thumbnail => true,
|
23
23
|
:tags => 'hoge,fuga',
|
24
24
|
}
|
25
25
|
@request = Mushikago::Tombo::CaptureRequest.new('http://www.mushikago.org/', options)
|
@@ -39,10 +39,10 @@ describe Mushikago::Tombo::CaptureRequest do
|
|
39
39
|
it{ subject.url_encoded_params.should == 'image_format=png&image_quality=20&tags=hoge%2Cfuga&thumbnail=1&url=http%3A%2F%2Fwww.mushikago.org%2F' }
|
40
40
|
end
|
41
41
|
|
42
|
-
context 'tags can be array and thumbnail is
|
42
|
+
context 'tags can be array and thumbnail is false' do
|
43
43
|
before :all do
|
44
44
|
options = {
|
45
|
-
:thumbnail =>
|
45
|
+
:thumbnail => false,
|
46
46
|
:tags => ['hoge','fuga'],
|
47
47
|
}
|
48
48
|
@request = Mushikago::Tombo::CaptureRequest.new('http://www.mushikago.org/', options)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mushikago-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 7
|
10
|
+
version: 0.1.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Toru Matsuoka
|
@@ -127,6 +127,7 @@ extensions: []
|
|
127
127
|
extra_rdoc_files: []
|
128
128
|
|
129
129
|
files:
|
130
|
+
- autotest/discover.rb
|
130
131
|
- lib/mushikago.rb
|
131
132
|
- lib/mushikago/tombo.rb
|
132
133
|
- lib/mushikago/auth/signer.rb
|
@@ -145,6 +146,36 @@ files:
|
|
145
146
|
- lib/mushikago/http/client.rb
|
146
147
|
- lib/mushikago/http.rb
|
147
148
|
- lib/mushikago-sdk.rb
|
149
|
+
- doc/frames.html
|
150
|
+
- doc/_index.html
|
151
|
+
- doc/css/style.css
|
152
|
+
- doc/css/common.css
|
153
|
+
- doc/css/full_list.css
|
154
|
+
- doc/method_list.html
|
155
|
+
- doc/js/app.js
|
156
|
+
- doc/js/full_list.js
|
157
|
+
- doc/js/jquery.js
|
158
|
+
- doc/class_list.html
|
159
|
+
- doc/top-level-namespace.html
|
160
|
+
- doc/Mushikago.html
|
161
|
+
- doc/index.html
|
162
|
+
- doc/Mushikago/Auth.html
|
163
|
+
- doc/Mushikago/Http.html
|
164
|
+
- doc/Mushikago/Tombo.html
|
165
|
+
- doc/Mushikago/Http/Request.html
|
166
|
+
- doc/Mushikago/Http/Client.html
|
167
|
+
- doc/Mushikago/Http/Response.html
|
168
|
+
- doc/Mushikago/Config.html
|
169
|
+
- doc/Mushikago/Auth/Signer.html
|
170
|
+
- doc/Mushikago/Auth/Signature.html
|
171
|
+
- doc/Mushikago/Tombo/Request.html
|
172
|
+
- doc/Mushikago/Tombo/CaptureRequest.html
|
173
|
+
- doc/Mushikago/Tombo/DeleteRequest.html
|
174
|
+
- doc/Mushikago/Tombo/CapturesRequest.html
|
175
|
+
- doc/Mushikago/Tombo/InfoRequest.html
|
176
|
+
- doc/Mushikago/Tombo/Client.html
|
177
|
+
- doc/file_list.html
|
178
|
+
- doc/file.README.html
|
148
179
|
- LICENSE
|
149
180
|
- README
|
150
181
|
- Rakefile
|