mushikago-sdk 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. data/README.md +2 -0
  2. data/doc/Mushikago.html +2 -2
  3. data/doc/Mushikago/Auth.html +1 -1
  4. data/doc/Mushikago/Auth/Signature.html +1 -1
  5. data/doc/Mushikago/Auth/Signer.html +1 -1
  6. data/doc/Mushikago/Config.html +1 -1
  7. data/doc/Mushikago/Hotaru.html +1 -1
  8. data/doc/Mushikago/Hotaru/ClassifierJudgeRequest.html +1 -1
  9. data/doc/Mushikago/Hotaru/Client.html +1 -1
  10. data/doc/Mushikago/Hotaru/CollocationCreateRequest.html +1 -1
  11. data/doc/Mushikago/Hotaru/CollocationDeleteRequest.html +1 -1
  12. data/doc/Mushikago/Hotaru/CollocationDownloadRequest.html +1 -1
  13. data/doc/Mushikago/Hotaru/CollocationGetRequest.html +1 -1
  14. data/doc/Mushikago/Hotaru/CollocationListRequest.html +1 -1
  15. data/doc/Mushikago/Hotaru/CollocationWordlistRequest.html +1 -1
  16. data/doc/Mushikago/Hotaru/DictionaryDeleteRequest.html +1 -1
  17. data/doc/Mushikago/Hotaru/DictionaryListRequest.html +1 -1
  18. data/doc/Mushikago/Hotaru/DictionaryPutRequest.html +1 -1
  19. data/doc/Mushikago/Hotaru/DomainCreateRequest.html +1 -1
  20. data/doc/Mushikago/Hotaru/DomainDeleteRequest.html +1 -1
  21. data/doc/Mushikago/Hotaru/DomainInfoRequest.html +1 -1
  22. data/doc/Mushikago/Hotaru/DomainListRequest.html +1 -1
  23. data/doc/Mushikago/Hotaru/TagDeleteRequest.html +1 -1
  24. data/doc/Mushikago/Hotaru/TagListRequest.html +1 -1
  25. data/doc/Mushikago/Hotaru/TagPutRequest.html +1 -1
  26. data/doc/Mushikago/Hotaru/TextDeleteRequest.html +1 -1
  27. data/doc/Mushikago/Hotaru/TextGetRequest.html +1 -1
  28. data/doc/Mushikago/Hotaru/TextListRequest.html +1 -1
  29. data/doc/Mushikago/Hotaru/TextPutRequest.html +1 -1
  30. data/doc/Mushikago/Hotaru/TextTagsetRequest.html +1 -1
  31. data/doc/Mushikago/Hotaru/WordGetRequest.html +1 -1
  32. data/doc/Mushikago/Hotaru/WordListRequest.html +1 -1
  33. data/doc/Mushikago/Http.html +1 -1
  34. data/doc/Mushikago/Http/Client.html +27 -17
  35. data/doc/Mushikago/Http/DeleteRequest.html +1 -1
  36. data/doc/Mushikago/Http/GetRequest.html +1 -1
  37. data/doc/Mushikago/Http/MultipartPostRequest.html +1 -1
  38. data/doc/Mushikago/Http/MultipartPutRequest.html +1 -1
  39. data/doc/Mushikago/Http/MultipartRequest.html +1 -1
  40. data/doc/Mushikago/Http/PostRequest.html +1 -1
  41. data/doc/Mushikago/Http/PutRequest.html +1 -1
  42. data/doc/Mushikago/Http/Request.html +1 -1
  43. data/doc/Mushikago/Http/Response.html +1 -1
  44. data/doc/Mushikago/Mitsubachi.html +1 -1
  45. data/doc/Mushikago/Mitsubachi/Client.html +1 -1
  46. data/doc/Mushikago/Mitsubachi/HttpFetchRequest.html +1 -1
  47. data/doc/Mushikago/Mitsubachi/HttpPushRequest.html +1 -1
  48. data/doc/Mushikago/Mitsubachi/Project.html +1 -1
  49. data/doc/Mushikago/Mitsubachi/ProjectCreateRequest.html +1 -1
  50. data/doc/Mushikago/Mitsubachi/ProjectDeleteRequest.html +1 -1
  51. data/doc/Mushikago/Mitsubachi/ProjectDiscontinueRequest.html +1 -1
  52. data/doc/Mushikago/Mitsubachi/ProjectInfoRequest.html +1 -1
  53. data/doc/Mushikago/Mitsubachi/ProjectListRequest.html +1 -1
  54. data/doc/Mushikago/Mitsubachi/ProjectQueuesRequest.html +1 -1
  55. data/doc/Mushikago/Mitsubachi/ProjectUpdateRequest.html +1 -1
  56. data/doc/Mushikago/Mitsubachi/Projects.html +1 -1
  57. data/doc/Mushikago/Mitsubachi/Resource.html +1 -1
  58. data/doc/Mushikago/Mitsubachi/ResourceDeleteRequest.html +1 -1
  59. data/doc/Mushikago/Mitsubachi/ResourceGetRequest.html +1 -1
  60. data/doc/Mushikago/Mitsubachi/ResourceListRequest.html +1 -1
  61. data/doc/Mushikago/Mitsubachi/ResourceStoreRequest.html +1 -1
  62. data/doc/Mushikago/Mitsubachi/Resources.html +1 -1
  63. data/doc/Mushikago/Mitsubachi/Script.html +1 -1
  64. data/doc/Mushikago/Mitsubachi/ScriptDeleteRequest.html +1 -1
  65. data/doc/Mushikago/Mitsubachi/ScriptDeployRequest.html +1 -1
  66. data/doc/Mushikago/Mitsubachi/ScriptGetRequest.html +1 -1
  67. data/doc/Mushikago/Mitsubachi/ScriptListRequest.html +1 -1
  68. data/doc/Mushikago/Mitsubachi/Scripts.html +1 -1
  69. data/doc/Mushikago/Tombo.html +1 -1
  70. data/doc/Mushikago/Tombo/CaptureRequest.html +19 -5
  71. data/doc/Mushikago/Tombo/CapturesRequest.html +1 -1
  72. data/doc/Mushikago/Tombo/Client.html +25 -13
  73. data/doc/Mushikago/Tombo/DeleteRequest.html +1 -1
  74. data/doc/Mushikago/Tombo/InfoRequest.html +1 -1
  75. data/doc/_index.html +1 -1
  76. data/doc/file.README.html +5 -1
  77. data/doc/index.html +5 -1
  78. data/doc/top-level-namespace.html +1 -1
  79. data/lib/mushikago/tombo/capture_request.rb +3 -0
  80. data/lib/mushikago/tombo/client.rb +1 -0
  81. data/lib/mushikago/version.rb +1 -1
  82. metadata +18 -18
data/README.md CHANGED
@@ -193,6 +193,8 @@ $ export MUSHIKAGO_SECRET_KEY=<シークレットキー>
193
193
  変更履歴
194
194
  --------
195
195
 
196
+ - **Feb.20.12**: 0.4.2 release
197
+ - tomboのcaptureオプション「delay_time」に対応
196
198
  - **Feb.20.12**: 0.4.0 release
197
199
  - 新サービス「hotaru」対応
198
200
  - **Feb.14.12**: 0.3.7 release
data/doc/Mushikago.html CHANGED
@@ -123,7 +123,7 @@ Mushikago SDK for Ruby のバージョン
123
123
 
124
124
  </div>
125
125
  </dt>
126
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0.4.0</span><span class='tstring_end'>'</span></span></pre></dd>
126
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0.4.2</span><span class='tstring_end'>'</span></span></pre></dd>
127
127
 
128
128
  </dl>
129
129
 
@@ -237,7 +237,7 @@ config コンフィグのインスタンスへのアクセスを提供する
237
237
  </div>
238
238
 
239
239
  <div id="footer">
240
- Generated on Mon Feb 20 09:55:31 2012 by
240
+ Generated on Mon Mar 26 17:08:26 2012 by
241
241
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
242
242
  0.7.4 (ruby-1.9.2).
243
243
  </div>
@@ -113,7 +113,7 @@ Mushikagoサービスの認証を扱うモジュール
113
113
  </div>
114
114
 
115
115
  <div id="footer">
116
- Generated on Mon Feb 20 09:55:31 2012 by
116
+ Generated on Mon Mar 26 17:08:26 2012 by
117
117
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
118
118
  0.7.4 (ruby-1.9.2).
119
119
  </div>
@@ -303,7 +303,7 @@ MushikagoのリクエストにMix-inして利用する
303
303
  </div>
304
304
 
305
305
  <div id="footer">
306
- Generated on Mon Feb 20 09:55:32 2012 by
306
+ Generated on Mon Mar 26 17:08:27 2012 by
307
307
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
308
308
  0.7.4 (ruby-1.9.2).
309
309
  </div>
@@ -456,7 +456,7 @@ A new instance of Signer
456
456
  </div>
457
457
 
458
458
  <div id="footer">
459
- Generated on Mon Feb 20 09:55:32 2012 by
459
+ Generated on Mon Mar 26 17:08:26 2012 by
460
460
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
461
461
  0.7.4 (ruby-1.9.2).
462
462
  </div>
@@ -276,7 +276,7 @@ optionsをロードします
276
276
  </div>
277
277
 
278
278
  <div id="footer">
279
- Generated on Mon Feb 20 09:55:32 2012 by
279
+ Generated on Mon Mar 26 17:08:26 2012 by
280
280
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
281
281
  0.7.4 (ruby-1.9.2).
282
282
  </div>
@@ -111,7 +111,7 @@ Hotaruへのアクセスを行うモジュール
111
111
  </div>
112
112
 
113
113
  <div id="footer">
114
- Generated on Mon Feb 20 09:55:31 2012 by
114
+ Generated on Mon Mar 26 17:08:26 2012 by
115
115
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
116
116
  0.7.4 (ruby-1.9.2).
117
117
  </div>
@@ -298,7 +298,7 @@ A new instance of ClassifierJudgeRequest
298
298
  </div>
299
299
 
300
300
  <div id="footer">
301
- Generated on Mon Feb 20 09:55:34 2012 by
301
+ Generated on Mon Mar 26 17:08:29 2012 by
302
302
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
303
303
  0.7.4 (ruby-1.9.2).
304
304
  </div>
@@ -4165,7 +4165,7 @@ tagを追加する場合false, 入れ替える場合true
4165
4165
  </div>
4166
4166
 
4167
4167
  <div id="footer">
4168
- Generated on Mon Feb 20 09:55:32 2012 by
4168
+ Generated on Mon Mar 26 17:08:27 2012 by
4169
4169
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
4170
4170
  0.7.4 (ruby-1.9.2).
4171
4171
  </div>
@@ -366,7 +366,7 @@ A new instance of CollocationCreateRequest
366
366
  </div>
367
367
 
368
368
  <div id="footer">
369
- Generated on Mon Feb 20 09:55:34 2012 by
369
+ Generated on Mon Mar 26 17:08:29 2012 by
370
370
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
371
371
  0.7.4 (ruby-1.9.2).
372
372
  </div>
@@ -298,7 +298,7 @@ A new instance of CollocationDeleteRequest
298
298
  </div>
299
299
 
300
300
  <div id="footer">
301
- Generated on Mon Feb 20 09:55:34 2012 by
301
+ Generated on Mon Mar 26 17:08:29 2012 by
302
302
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
303
303
  0.7.4 (ruby-1.9.2).
304
304
  </div>
@@ -298,7 +298,7 @@ A new instance of CollocationDownloadRequest
298
298
  </div>
299
299
 
300
300
  <div id="footer">
301
- Generated on Mon Feb 20 09:55:35 2012 by
301
+ Generated on Mon Mar 26 17:08:30 2012 by
302
302
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
303
303
  0.7.4 (ruby-1.9.2).
304
304
  </div>
@@ -300,7 +300,7 @@ A new instance of CollocationGetRequest
300
300
  </div>
301
301
 
302
302
  <div id="footer">
303
- Generated on Mon Feb 20 09:55:34 2012 by
303
+ Generated on Mon Mar 26 17:08:29 2012 by
304
304
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
305
305
  0.7.4 (ruby-1.9.2).
306
306
  </div>
@@ -304,7 +304,7 @@ A new instance of CollocationListRequest
304
304
  </div>
305
305
 
306
306
  <div id="footer">
307
- Generated on Mon Feb 20 09:55:34 2012 by
307
+ Generated on Mon Mar 26 17:08:29 2012 by
308
308
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
309
309
  0.7.4 (ruby-1.9.2).
310
310
  </div>
@@ -304,7 +304,7 @@ A new instance of CollocationWordlistRequest
304
304
  </div>
305
305
 
306
306
  <div id="footer">
307
- Generated on Mon Feb 20 09:55:35 2012 by
307
+ Generated on Mon Mar 26 17:08:30 2012 by
308
308
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
309
309
  0.7.4 (ruby-1.9.2).
310
310
  </div>
@@ -296,7 +296,7 @@ A new instance of DictionaryDeleteRequest
296
296
  </div>
297
297
 
298
298
  <div id="footer">
299
- Generated on Mon Feb 20 09:55:34 2012 by
299
+ Generated on Mon Mar 26 17:08:29 2012 by
300
300
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
301
301
  0.7.4 (ruby-1.9.2).
302
302
  </div>
@@ -300,7 +300,7 @@ A new instance of DictionaryListRequest
300
300
  </div>
301
301
 
302
302
  <div id="footer">
303
- Generated on Mon Feb 20 09:55:34 2012 by
303
+ Generated on Mon Mar 26 17:08:29 2012 by
304
304
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
305
305
  0.7.4 (ruby-1.9.2).
306
306
  </div>
@@ -333,7 +333,7 @@ A new instance of DictionaryPutRequest
333
333
  </div>
334
334
 
335
335
  <div id="footer">
336
- Generated on Mon Feb 20 09:55:34 2012 by
336
+ Generated on Mon Mar 26 17:08:29 2012 by
337
337
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
338
338
  0.7.4 (ruby-1.9.2).
339
339
  </div>
@@ -304,7 +304,7 @@ A new instance of DomainCreateRequest
304
304
  </div>
305
305
 
306
306
  <div id="footer">
307
- Generated on Mon Feb 20 09:55:34 2012 by
307
+ Generated on Mon Mar 26 17:08:29 2012 by
308
308
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
309
309
  0.7.4 (ruby-1.9.2).
310
310
  </div>
@@ -296,7 +296,7 @@ A new instance of DomainDeleteRequest
296
296
  </div>
297
297
 
298
298
  <div id="footer">
299
- Generated on Mon Feb 20 09:55:34 2012 by
299
+ Generated on Mon Mar 26 17:08:28 2012 by
300
300
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
301
301
  0.7.4 (ruby-1.9.2).
302
302
  </div>
@@ -298,7 +298,7 @@ A new instance of DomainInfoRequest
298
298
  </div>
299
299
 
300
300
  <div id="footer">
301
- Generated on Mon Feb 20 09:55:33 2012 by
301
+ Generated on Mon Mar 26 17:08:28 2012 by
302
302
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
303
303
  0.7.4 (ruby-1.9.2).
304
304
  </div>
@@ -302,7 +302,7 @@ A new instance of DomainListRequest
302
302
  </div>
303
303
 
304
304
  <div id="footer">
305
- Generated on Mon Feb 20 09:55:34 2012 by
305
+ Generated on Mon Mar 26 17:08:28 2012 by
306
306
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
307
307
  0.7.4 (ruby-1.9.2).
308
308
  </div>
@@ -298,7 +298,7 @@ A new instance of TagDeleteRequest
298
298
  </div>
299
299
 
300
300
  <div id="footer">
301
- Generated on Mon Feb 20 09:55:33 2012 by
301
+ Generated on Mon Mar 26 17:08:28 2012 by
302
302
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
303
303
  0.7.4 (ruby-1.9.2).
304
304
  </div>
@@ -298,7 +298,7 @@ A new instance of TagListRequest
298
298
  </div>
299
299
 
300
300
  <div id="footer">
301
- Generated on Mon Feb 20 09:55:33 2012 by
301
+ Generated on Mon Mar 26 17:08:28 2012 by
302
302
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
303
303
  0.7.4 (ruby-1.9.2).
304
304
  </div>
@@ -298,7 +298,7 @@ A new instance of TagPutRequest
298
298
  </div>
299
299
 
300
300
  <div id="footer">
301
- Generated on Mon Feb 20 09:55:33 2012 by
301
+ Generated on Mon Mar 26 17:08:28 2012 by
302
302
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
303
303
  0.7.4 (ruby-1.9.2).
304
304
  </div>
@@ -300,7 +300,7 @@ A new instance of TextDeleteRequest
300
300
  </div>
301
301
 
302
302
  <div id="footer">
303
- Generated on Mon Feb 20 09:55:33 2012 by
303
+ Generated on Mon Mar 26 17:08:28 2012 by
304
304
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
305
305
  0.7.4 (ruby-1.9.2).
306
306
  </div>
@@ -298,7 +298,7 @@ A new instance of TextGetRequest
298
298
  </div>
299
299
 
300
300
  <div id="footer">
301
- Generated on Mon Feb 20 09:55:33 2012 by
301
+ Generated on Mon Mar 26 17:08:28 2012 by
302
302
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
303
303
  0.7.4 (ruby-1.9.2).
304
304
  </div>
@@ -306,7 +306,7 @@ A new instance of TextListRequest
306
306
  </div>
307
307
 
308
308
  <div id="footer">
309
- Generated on Mon Feb 20 09:55:33 2012 by
309
+ Generated on Mon Mar 26 17:08:28 2012 by
310
310
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
311
311
  0.7.4 (ruby-1.9.2).
312
312
  </div>
@@ -302,7 +302,7 @@ A new instance of TextPutRequest
302
302
  </div>
303
303
 
304
304
  <div id="footer">
305
- Generated on Mon Feb 20 09:55:33 2012 by
305
+ Generated on Mon Mar 26 17:08:28 2012 by
306
306
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
307
307
  0.7.4 (ruby-1.9.2).
308
308
  </div>
@@ -302,7 +302,7 @@ A new instance of TextTagsetRequest
302
302
  </div>
303
303
 
304
304
  <div id="footer">
305
- Generated on Mon Feb 20 09:55:33 2012 by
305
+ Generated on Mon Mar 26 17:08:28 2012 by
306
306
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
307
307
  0.7.4 (ruby-1.9.2).
308
308
  </div>
@@ -298,7 +298,7 @@ A new instance of WordGetRequest
298
298
  </div>
299
299
 
300
300
  <div id="footer">
301
- Generated on Mon Feb 20 09:55:33 2012 by
301
+ Generated on Mon Mar 26 17:08:28 2012 by
302
302
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
303
303
  0.7.4 (ruby-1.9.2).
304
304
  </div>
@@ -302,7 +302,7 @@ A new instance of WordListRequest
302
302
  </div>
303
303
 
304
304
  <div id="footer">
305
- Generated on Mon Feb 20 09:55:33 2012 by
305
+ Generated on Mon Mar 26 17:08:28 2012 by
306
306
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
307
307
  0.7.4 (ruby-1.9.2).
308
308
  </div>
@@ -111,7 +111,7 @@ MushikagoサービスへのHTTPリクエストを扱うモジュール
111
111
  </div>
112
112
 
113
113
  <div id="footer">
114
- Generated on Mon Feb 20 09:55:31 2012 by
114
+ Generated on Mon Mar 26 17:08:26 2012 by
115
115
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
116
116
  0.7.4 (ruby-1.9.2).
117
117
  </div>
@@ -338,14 +338,14 @@ value) 秘密鍵
338
338
  <pre class="lines">
339
339
 
340
340
 
341
- 20
342
341
  21
343
342
  22
344
343
  23
345
- 24</pre>
344
+ 24
345
+ 25</pre>
346
346
  </td>
347
347
  <td>
348
- <pre class="code"><span class="info file"># File 'lib/mushikago/http/client.rb', line 20</span>
348
+ <pre class="code"><span class="info file"># File 'lib/mushikago/http/client.rb', line 21</span>
349
349
 
350
350
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span> <span class='id identifier rubyid_options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span>
351
351
  <span class='ivar'>@api_key</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:api_key</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='const'>Mushikago</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_api_key'>api_key</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
@@ -409,12 +409,12 @@ api_key
409
409
  <pre class="lines">
410
410
 
411
411
 
412
- 9
413
412
  10
414
- 11</pre>
413
+ 11
414
+ 12</pre>
415
415
  </td>
416
416
  <td>
417
- <pre class="code"><span class="info file"># File 'lib/mushikago/http/client.rb', line 9</span>
417
+ <pre class="code"><span class="info file"># File 'lib/mushikago/http/client.rb', line 10</span>
418
418
 
419
419
  <span class='kw'>def</span> <span class='id identifier rubyid_api_key'>api_key</span>
420
420
  <span class='ivar'>@api_key</span>
@@ -471,12 +471,12 @@ signer
471
471
  <pre class="lines">
472
472
 
473
473
 
474
- 12
475
474
  13
476
- 14</pre>
475
+ 14
476
+ 15</pre>
477
477
  </td>
478
478
  <td>
479
- <pre class="code"><span class="info file"># File 'lib/mushikago/http/client.rb', line 12</span>
479
+ <pre class="code"><span class="info file"># File 'lib/mushikago/http/client.rb', line 13</span>
480
480
 
481
481
  <span class='kw'>def</span> <span class='id identifier rubyid_signer'>signer</span>
482
482
  <span class='ivar'>@signer</span>
@@ -533,12 +533,12 @@ use_ssl
533
533
  <pre class="lines">
534
534
 
535
535
 
536
- 15
537
536
  16
538
- 17</pre>
537
+ 17
538
+ 18</pre>
539
539
  </td>
540
540
  <td>
541
- <pre class="code"><span class="info file"># File 'lib/mushikago/http/client.rb', line 15</span>
541
+ <pre class="code"><span class="info file"># File 'lib/mushikago/http/client.rb', line 16</span>
542
542
 
543
543
  <span class='kw'>def</span> <span class='id identifier rubyid_use_ssl'>use_ssl</span>
544
544
  <span class='ivar'>@use_ssl</span>
@@ -614,7 +614,6 @@ response
614
614
  <pre class="lines">
615
615
 
616
616
 
617
- 28
618
617
  29
619
618
  30
620
619
  31
@@ -626,10 +625,16 @@ response
626
625
  37
627
626
  38
628
627
  39
629
- 40</pre>
628
+ 40
629
+ 41
630
+ 42
631
+ 43
632
+ 44
633
+ 45
634
+ 46</pre>
630
635
  </td>
631
636
  <td>
632
- <pre class="code"><span class="info file"># File 'lib/mushikago/http/client.rb', line 28</span>
637
+ <pre class="code"><span class="info file"># File 'lib/mushikago/http/client.rb', line 29</span>
633
638
 
634
639
  <span class='kw'>def</span> <span class='id identifier rubyid_send_request'>send_request</span> <span class='id identifier rubyid_request'>request</span>
635
640
  <span class='comment'># add authorization
@@ -638,7 +643,12 @@ response
638
643
  <span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_add_signature!'>add_signature!</span><span class='lparen'>(</span><span class='id identifier rubyid_signer'>signer</span><span class='rparen'>)</span>
639
644
 
640
645
  <span class='comment'># send request
641
- </span> <span class='const'>Net</span><span class='op'>::</span><span class='const'>HTTP</span><span class='period'>.</span><span class='id identifier rubyid_start'>start</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_host'>host</span><span class='comma'>,</span> <span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_port'>port</span><span class='comma'>,</span> <span class='symbol'>:use_ssl</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_use_ssl'>use_ssl</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_http'>http</span><span class='op'>|</span>
646
+ </span> <span class='id identifier rubyid_port'>port</span> <span class='op'>=</span> <span class='id identifier rubyid_use_ssl'>use_ssl</span> <span class='op'>?</span> <span class='int'>443</span> <span class='op'>:</span> <span class='int'>80</span>
647
+ <span class='id identifier rubyid_port'>port</span> <span class='op'>=</span> <span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_port'>port</span> <span class='kw'>unless</span> <span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_port'>port</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
648
+ <span class='id identifier rubyid_session'>session</span> <span class='op'>=</span> <span class='const'>Net</span><span class='op'>::</span><span class='const'>HTTP</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_host'>host</span><span class='comma'>,</span> <span class='id identifier rubyid_port'>port</span><span class='rparen'>)</span>
649
+ <span class='id identifier rubyid_session'>session</span><span class='period'>.</span><span class='id identifier rubyid_use_ssl'>use_ssl</span> <span class='op'>=</span> <span class='id identifier rubyid_use_ssl'>use_ssl</span>
650
+ <span class='id identifier rubyid_session'>session</span><span class='period'>.</span><span class='id identifier rubyid_verify_mode'>verify_mode</span> <span class='op'>=</span> <span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>SSL</span><span class='op'>::</span><span class='const'>VERIFY_NONE</span> <span class='kw'>if</span> <span class='id identifier rubyid_use_ssl'>use_ssl</span>
651
+ <span class='id identifier rubyid_session'>session</span><span class='period'>.</span><span class='id identifier rubyid_start'>start</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_http'>http</span><span class='op'>|</span>
642
652
  <span class='id identifier rubyid_http_request'>http_request</span> <span class='op'>=</span> <span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_to_http_request'>to_http_request</span>
643
653
  <span class='id identifier rubyid_http_response'>http_response</span> <span class='op'>=</span> <span class='id identifier rubyid_http'>http</span><span class='period'>.</span><span class='id identifier rubyid_request'>request</span><span class='lparen'>(</span><span class='id identifier rubyid_http_request'>http_request</span><span class='rparen'>)</span>
644
654
  <span class='kw'>return</span> <span class='const'>Mushikago</span><span class='op'>::</span><span class='const'>Http</span><span class='op'>::</span><span class='const'>Response</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='const'>JSON</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_http_response'>http_response</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span><span class='rparen'>)</span><span class='rparen'>)</span>
@@ -654,7 +664,7 @@ response
654
664
  </div>
655
665
 
656
666
  <div id="footer">
657
- Generated on Mon Feb 20 09:55:32 2012 by
667
+ Generated on Mon Mar 26 17:08:26 2012 by
658
668
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
659
669
  0.7.4 (ruby-1.9.2).
660
670
  </div>