mushikago-sdk 0.1.8 → 0.2.1

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.
Files changed (39) hide show
  1. data/LICENSE +10 -17
  2. data/README.md +5 -3
  3. data/doc/Mushikago.html +7 -20
  4. data/doc/Mushikago/Auth.html +2 -4
  5. data/doc/Mushikago/Auth/Signature.html +8 -28
  6. data/doc/Mushikago/Auth/Signer.html +13 -37
  7. data/doc/Mushikago/Config.html +6 -16
  8. data/doc/Mushikago/Http.html +2 -4
  9. data/doc/Mushikago/Http/Client.html +15 -43
  10. data/doc/Mushikago/Http/Request.html +48 -124
  11. data/doc/Mushikago/Http/Response.html +23 -76
  12. data/doc/Mushikago/Tombo.html +2 -4
  13. data/doc/Mushikago/Tombo/CaptureRequest.html +11 -29
  14. data/doc/Mushikago/Tombo/CapturesRequest.html +10 -28
  15. data/doc/Mushikago/Tombo/Client.html +30 -88
  16. data/doc/Mushikago/Tombo/DeleteRequest.html +7 -17
  17. data/doc/Mushikago/Tombo/InfoRequest.html +5 -13
  18. data/doc/Mushikago/Tombo/Request.html +6 -16
  19. data/doc/_index.html +1 -1
  20. data/doc/file.README.html +8 -4
  21. data/doc/index.html +8 -4
  22. data/doc/method_list.html +24 -24
  23. data/doc/top-level-namespace.html +1 -1
  24. data/lib/mushikago/http/request.rb +16 -1
  25. data/lib/mushikago/tombo/capture_request.rb +1 -1
  26. data/lib/mushikago/tombo/delete_request.rb +1 -1
  27. data/lib/mushikago/version.rb +1 -1
  28. data/spec/mushikago/auth/signature_spec.rb +2 -2
  29. data/spec/mushikago/configuration_spec.rb +9 -9
  30. data/spec/mushikago/http/client_spec.rb +2 -2
  31. data/spec/mushikago/http/request_spec.rb +8 -8
  32. data/spec/mushikago/http/response_spec.rb +3 -3
  33. data/spec/mushikago/tombo/capture_request_spec.rb +11 -11
  34. data/spec/mushikago/tombo/captures_request_spec.rb +9 -9
  35. data/spec/mushikago/tombo/client_spec.rb +22 -22
  36. data/spec/mushikago/tombo/delete_request_spec.rb +4 -4
  37. data/spec/mushikago/tombo/info_request_spec.rb +3 -3
  38. data/spec/mushikago/tombo/request_spec.rb +3 -3
  39. metadata +4 -4
data/LICENSE CHANGED
@@ -1,20 +1,13 @@
1
- Copyright (c) 2011 MiningBrownie, Inc.
1
+ Copyright 2011 MiningBrownie, Inc.
2
2
 
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
10
6
 
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
7
+ http://www.apache.org/licenses/LICENSE-2.0
13
8
 
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
data/README.md CHANGED
@@ -4,9 +4,9 @@ Mushikago SDK for Ruby.
4
4
  - **Homepage**: [http://www.miningbrownie.co.jp/](http://www.miningbrownie.co.jp/)
5
5
  - **Author**: Toru Matsuoka
6
6
  - **Copyright**: 2011
7
- - **License**: MIT License
8
- - **Latest Version**: 0.1.8
9
- - **Release Date**: September 6th 2011
7
+ - **License**: Apache License, Version 2.0
8
+ - **Latest Version**: 0.2.1
9
+ - **Release Date**: September 8th 2011
10
10
 
11
11
 
12
12
  概要
@@ -118,6 +118,8 @@ $ export MUSHIKAGO_SECRET_KEY=<シークレットキー>
118
118
  変更履歴
119
119
  --------
120
120
 
121
+ - **Sep.8.11**: 0.2.1 release
122
+ - ライセンスをApache License, Version 2.0に変更
121
123
  - **Sep.6.11**: 0.1.8 release
122
124
  - Mushikago SDK for Ruby新規作成
123
125
  - Tombo サポート
data/doc/Mushikago.html CHANGED
@@ -81,9 +81,7 @@
81
81
 
82
82
  <h2>Overview</h2><div class="docstring">
83
83
  <div class="discussion">
84
-
85
- <p>Mushikagoサービスを提供するモジュール</p>
86
-
84
+ <p>Mushikagoサービスを提供するモジュール</p>
87
85
 
88
86
  </div>
89
87
  </div>
@@ -109,9 +107,7 @@
109
107
  <dt id="VERSION-constant" class="">VERSION =
110
108
  <div class="docstring">
111
109
  <div class="discussion">
112
-
113
- <p>Mushikago SDK for Ruby のバージョン</p>
114
-
110
+ <p>Mushikago SDK for Ruby のバージョン</p>
115
111
 
116
112
  </div>
117
113
  </div>
@@ -119,7 +115,7 @@
119
115
 
120
116
  </div>
121
117
  </dt>
122
- <dd><pre class="code"><span class='string val'>'0.1.8'</span>
118
+ <dd><pre class="code"><span class='string val'>'0.2.1'</span>
123
119
  </pre></dd>
124
120
 
125
121
  </dl>
@@ -153,10 +149,7 @@
153
149
 
154
150
 
155
151
 
156
- <span class="summary_desc"><div class='inline'>
157
- <p>Config
158
- コンフィグのインスタンスへのアクセスを提供する.</p>
159
- </div></span>
152
+ <span class="summary_desc"><div class='inline'><p>Config コンフィグのインスタンスへのアクセスを提供する.</p></div></span>
160
153
 
161
154
  </li>
162
155
 
@@ -179,10 +172,7 @@
179
172
 
180
173
  </p><div class="docstring">
181
174
  <div class="discussion">
182
-
183
- <p>Config
184
- コンフィグのインスタンスへのアクセスを提供する</p>
185
-
175
+ <p>Config コンフィグのインスタンスへのアクセスを提供する</p>
186
176
 
187
177
  </div>
188
178
  </div>
@@ -198,10 +188,7 @@
198
188
 
199
189
 
200
190
  &mdash;
201
- <div class='inline'>
202
- <p>config
203
- コンフィグのインスタンスへのアクセスを提供する</p>
204
- </div>
191
+ <div class='inline'><p>config コンフィグのインスタンスへのアクセスを提供する</p></div>
205
192
 
206
193
  </li>
207
194
 
@@ -234,7 +221,7 @@
234
221
  </div>
235
222
 
236
223
  <div id="footer">
237
- Generated on Tue Sep 6 18:27:44 2011 by
224
+ Generated on Thu Sep 8 10:06:59 2011 by
238
225
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
239
226
  0.7.2 (ruby-1.8.7).
240
227
  </div>
@@ -81,9 +81,7 @@
81
81
 
82
82
  <h2>Overview</h2><div class="docstring">
83
83
  <div class="discussion">
84
-
85
- <p>Mushikagoサービスの認証を扱うモジュール</p>
86
-
84
+ <p>Mushikagoサービスの認証を扱うモジュール</p>
87
85
 
88
86
  </div>
89
87
  </div>
@@ -111,7 +109,7 @@
111
109
  </div>
112
110
 
113
111
  <div id="footer">
114
- Generated on Tue Sep 6 18:27:42 2011 by
112
+ Generated on Thu Sep 8 10:07:00 2011 by
115
113
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
116
114
  0.7.2 (ruby-1.8.7).
117
115
  </div>
@@ -83,9 +83,7 @@
83
83
 
84
84
  <h2>Overview</h2><div class="docstring">
85
85
  <div class="discussion">
86
-
87
- <p>MushikagoのリクエストにMix-inして利用する</p>
88
-
86
+ <p>MushikagoのリクエストにMix-inして利用する</p>
89
87
 
90
88
  </div>
91
89
  </div>
@@ -120,9 +118,7 @@
120
118
 
121
119
 
122
120
 
123
- <span class="summary_desc"><div class='inline'>
124
- <p>リクエストに署名を追加する.</p>
125
- </div></span>
121
+ <span class="summary_desc"><div class='inline'><p>リクエストに署名を追加する.</p></div></span>
126
122
 
127
123
  </li>
128
124
 
@@ -143,9 +139,7 @@
143
139
 
144
140
 
145
141
 
146
- <span class="summary_desc"><div class='inline'>
147
- <p>リクエストの情報から以下のような署名用文字列を作成する.</p>
148
- </div></span>
142
+ <span class="summary_desc"><div class='inline'><p>リクエストの情報から以下のような署名用文字列を作成する.</p></div></span>
149
143
 
150
144
  </li>
151
145
 
@@ -168,9 +162,7 @@
168
162
 
169
163
  </p><div class="docstring">
170
164
  <div class="discussion">
171
-
172
- <p>リクエストに署名を追加する</p>
173
-
165
+ <p>リクエストに署名を追加する</p>
174
166
 
175
167
  </div>
176
168
  </div>
@@ -188,9 +180,7 @@
188
180
 
189
181
 
190
182
  &mdash;
191
- <div class='inline'>
192
- <p>署名を作成するオブジェクト</p>
193
- </div>
183
+ <div class='inline'><p>署名を作成するオブジェクト</p></div>
194
184
 
195
185
  </li>
196
186
 
@@ -227,15 +217,7 @@
227
217
 
228
218
  </p><div class="docstring">
229
219
  <div class="discussion">
230
-
231
- <p>リクエストの情報から以下のような署名用文字列を作成する</p>
232
-
233
- <pre class="code"><span class='GET constant id'>GET</span>
234
- <span class='localhost identifier id'>localhost</span>
235
- <span class='regexp val'>/1/i</span><span class='nfo identifier id'>nfo</span><span class='dot token'>.</span><span class='json identifier id'>json</span>
236
- <span class='api_key identifier id'>api_key</span><span class='assign token'>=</span><span class='api_key identifier id'>api_key</span><span class='bitand op'>&amp;</span><span class='timestamp identifier id'>timestamp</span><span class='assign token'>=</span><span class='integer val'>2011</span><span class='minus op'>-</span><span class='integer val'>0</span><span class='integer val'>9</span><span class='minus op'>-</span><span class='integer val'>01</span><span class='T00 constant id'>T00</span><span class='mod op'>%</span><span class='integer val'>3</span><span class='A00 constant id'>A00</span><span class='mod op'>%</span><span class='integer val'>3</span><span class='A00Z constant id'>A00Z</span>
237
- </pre>
238
-
220
+ <p>リクエストの情報から以下のような署名用文字列を作成する GET localhost /1/info.json api_key=api_key&amp;timestamp=2011-09-01T00%3A00%3A00Z</p>
239
221
 
240
222
  </div>
241
223
  </div>
@@ -251,9 +233,7 @@
251
233
 
252
234
 
253
235
  &mdash;
254
- <div class='inline'>
255
- <p>署名用の文字列</p>
256
- </div>
236
+ <div class='inline'><p>署名用の文字列</p></div>
257
237
 
258
238
  </li>
259
239
 
@@ -296,7 +276,7 @@
296
276
  </div>
297
277
 
298
278
  <div id="footer">
299
- Generated on Tue Sep 6 18:27:44 2011 by
279
+ Generated on Thu Sep 8 10:06:59 2011 by
300
280
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
301
281
  0.7.2 (ruby-1.8.7).
302
282
  </div>
@@ -94,9 +94,7 @@
94
94
 
95
95
  <h2>Overview</h2><div class="docstring">
96
96
  <div class="discussion">
97
-
98
- <p>署名を作成するクラス</p>
99
-
97
+ <p>署名を作成するクラス</p>
100
98
 
101
99
  </div>
102
100
  </div>
@@ -126,9 +124,7 @@
126
124
 
127
125
 
128
126
 
129
- <span class="summary_desc"><div class='inline'>
130
- <p>シークレットキー.</p>
131
- </div></span>
127
+ <span class="summary_desc"><div class='inline'><p>シークレットキー.</p></div></span>
132
128
 
133
129
  </li>
134
130
 
@@ -164,9 +160,7 @@
164
160
 
165
161
 
166
162
 
167
- <span class="summary_desc"><div class='inline'>
168
- <p>A new instance of Signer.</p>
169
- </div></span>
163
+ <span class="summary_desc"><div class='inline'><p>A new instance of Signer.</p></div></span>
170
164
 
171
165
  </li>
172
166
 
@@ -187,9 +181,7 @@
187
181
 
188
182
 
189
183
 
190
- <span class="summary_desc"><div class='inline'>
191
- <p>署名.</p>
192
- </div></span>
184
+ <span class="summary_desc"><div class='inline'><p>署名.</p></div></span>
193
185
 
194
186
  </li>
195
187
 
@@ -209,9 +201,7 @@
209
201
 
210
202
  </p><div class="docstring">
211
203
  <div class="discussion">
212
-
213
- <p>A new instance of Signer</p>
214
-
204
+ <p>A new instance of Signer</p>
215
205
 
216
206
  </div>
217
207
  </div>
@@ -229,9 +219,7 @@
229
219
 
230
220
 
231
221
  &mdash;
232
- <div class='inline'>
233
- <p>シークレットキー</p>
234
- </div>
222
+ <div class='inline'><p>シークレットキー</p></div>
235
223
 
236
224
  </li>
237
225
 
@@ -276,9 +264,7 @@
276
264
 
277
265
  </p><div class="docstring">
278
266
  <div class="discussion">
279
-
280
- <p>シークレットキー</p>
281
-
267
+ <p>シークレットキー</p>
282
268
 
283
269
  </div>
284
270
  </div>
@@ -294,9 +280,7 @@
294
280
 
295
281
 
296
282
  &mdash;
297
- <div class='inline'>
298
- <p>シークレットキー</p>
299
- </div>
283
+ <div class='inline'><p>シークレットキー</p></div>
300
284
 
301
285
  </li>
302
286
 
@@ -340,9 +324,7 @@
340
324
 
341
325
  </p><div class="docstring">
342
326
  <div class="discussion">
343
-
344
- <p>署名</p>
345
-
327
+ <p>署名</p>
346
328
 
347
329
  </div>
348
330
  </div>
@@ -360,9 +342,7 @@
360
342
 
361
343
 
362
344
  &mdash;
363
- <div class='inline'>
364
- <p>署名の元になる文字列</p>
365
- </div>
345
+ <div class='inline'><p>署名の元になる文字列</p></div>
366
346
 
367
347
  </li>
368
348
 
@@ -378,9 +358,7 @@
378
358
 
379
359
 
380
360
  &mdash;
381
- <div class='inline'>
382
- <p>署名作成のアルゴリズム</p>
383
- </div>
361
+ <div class='inline'><p>署名作成のアルゴリズム</p></div>
384
362
 
385
363
  </li>
386
364
 
@@ -396,9 +374,7 @@
396
374
 
397
375
 
398
376
  &mdash;
399
- <div class='inline'>
400
- <p>署名</p>
401
- </div>
377
+ <div class='inline'><p>署名</p></div>
402
378
 
403
379
  </li>
404
380
 
@@ -443,7 +419,7 @@
443
419
  </div>
444
420
 
445
421
  <div id="footer">
446
- Generated on Tue Sep 6 18:27:44 2011 by
422
+ Generated on Thu Sep 8 10:07:02 2011 by
447
423
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
448
424
  0.7.2 (ruby-1.8.7).
449
425
  </div>
@@ -98,9 +98,7 @@
98
98
 
99
99
  <h2>Overview</h2><div class="docstring">
100
100
  <div class="discussion">
101
-
102
- <p>Mushikago SDK for Rubyの各設定</p>
103
-
101
+ <p>Mushikago SDK for Rubyの各設定</p>
104
102
 
105
103
  </div>
106
104
  </div>
@@ -190,9 +188,7 @@
190
188
 
191
189
 
192
190
  &mdash;
193
- <div class='inline'>
194
- <p>optionsをロードします</p>
195
- </div>
191
+ <div class='inline'><p>optionsをロードします</p></div>
196
192
 
197
193
  </li>
198
194
 
@@ -210,9 +206,7 @@
210
206
  <span class="default">
211
207
 
212
208
  </span>
213
- &mdash; <div class='inline'>
214
- <p>発行されたAPIKeyを設定する</p>
215
- </div>
209
+ &mdash; <div class='inline'><p>発行されたAPIKeyを設定する</p></div>
216
210
  </tr>
217
211
 
218
212
  <li>
@@ -221,9 +215,7 @@
221
215
  <span class="default">
222
216
 
223
217
  </span>
224
- &mdash; <div class='inline'>
225
- <p>発行されたSecretKeyを設定する</p>
226
- </div>
218
+ &mdash; <div class='inline'><p>発行されたSecretKeyを設定する</p></div>
227
219
  </tr>
228
220
 
229
221
  <li>
@@ -232,9 +224,7 @@
232
224
  <span class="default">
233
225
 
234
226
  </span>
235
- &mdash; <div class='inline'>
236
- <p>tomboサービスのエンドポイントを設定する</p>
237
- </div>
227
+ &mdash; <div class='inline'><p>tomboサービスのエンドポイントを設定する</p></div>
238
228
  </tr>
239
229
 
240
230
  </ul>
@@ -263,7 +253,7 @@
263
253
  </div>
264
254
 
265
255
  <div id="footer">
266
- Generated on Tue Sep 6 18:27:43 2011 by
256
+ Generated on Thu Sep 8 10:06:59 2011 by
267
257
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
268
258
  0.7.2 (ruby-1.8.7).
269
259
  </div>
@@ -81,9 +81,7 @@
81
81
 
82
82
  <h2>Overview</h2><div class="docstring">
83
83
  <div class="discussion">
84
-
85
- <p>MushikagoサービスへのHTTPリクエストを扱うモジュール</p>
86
-
84
+ <p>MushikagoサービスへのHTTPリクエストを扱うモジュール</p>
87
85
 
88
86
  </div>
89
87
  </div>
@@ -109,7 +107,7 @@
109
107
  </div>
110
108
 
111
109
  <div id="footer">
112
- Generated on Tue Sep 6 18:27:43 2011 by
110
+ Generated on Thu Sep 8 10:06:59 2011 by
113
111
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
114
112
  0.7.2 (ruby-1.8.7).
115
113
  </div>