Permalink
Browse files

Getting ready to release 1.1.0

--HG--
extra : convert_revision : svn%3Ad7c3077c-c7e4-11dd-a2ab-b939405fd53f/trunk%4027
  • Loading branch information...
1 parent 90dcb90 commit 78bdeeecb91de5c6f50c5e0b91a7ada017e37f08 jfisher@youtube.com committed Apr 28, 2009
Showing with 1,418 additions and 633 deletions.
  1. +1 −1 Rakefile
  2. +36 −36 doc/classes/GData/Auth/AuthSub.html
  3. +13 −14 doc/classes/GData/Auth/AuthSub.src/M000047.html
  4. +14 −16 doc/classes/GData/Auth/AuthSub.src/M000048.html
  5. +15 −13 doc/classes/GData/Auth/AuthSub.src/M000049.html
  6. +8 −12 doc/classes/GData/Auth/AuthSub.src/M000050.html
  7. +12 −7 doc/classes/GData/Auth/AuthSub.src/M000051.html
  8. +10 −14 doc/classes/GData/Auth/AuthSub.src/M000052.html
  9. +29 −0 doc/classes/GData/Auth/AuthSub.src/M000053.html
  10. +15 −15 doc/classes/GData/Auth/ClientLogin.html
  11. +11 −31 doc/classes/GData/Auth/ClientLogin.src/M000054.html
  12. +33 −6 doc/classes/GData/Auth/ClientLogin.src/M000055.html
  13. +22 −0 doc/classes/GData/Auth/ClientLogin.src/M000056.html
  14. +2 −0 doc/classes/GData/Client.html
  15. +5 −5 doc/classes/GData/Client/Apps.html
  16. +19 −0 doc/classes/GData/Client/Apps.src/M000028.html
  17. +3 −1 doc/classes/GData/Client/AuthorizationError.html
  18. +3 −1 doc/classes/GData/Client/BadRequestError.html
  19. +70 −70 doc/classes/GData/Client/Base.html
  20. +10 −18 doc/classes/GData/Client/Base.src/M000012.html
  21. +15 −26 doc/classes/GData/Client/Base.src/M000013.html
  22. +30 −4 doc/classes/GData/Client/Base.src/M000014.html
  23. +4 −4 doc/classes/GData/Client/Base.src/M000015.html
  24. +4 −4 doc/classes/GData/Client/Base.src/M000016.html
  25. +4 −4 doc/classes/GData/Client/Base.src/M000017.html
  26. +4 −4 doc/classes/GData/Client/Base.src/M000018.html
  27. +4 −4 doc/classes/GData/Client/Base.src/M000019.html
  28. +4 −11 doc/classes/GData/Client/Base.src/M000020.html
  29. +10 −13 doc/classes/GData/Client/Base.src/M000021.html
  30. +13 −7 doc/classes/GData/Client/Base.src/M000022.html
  31. +8 −4 doc/classes/GData/Client/Base.src/M000023.html
  32. +4 −8 doc/classes/GData/Client/Base.src/M000024.html
  33. +22 −0 doc/classes/GData/Client/Base.src/M000025.html
  34. +5 −5 doc/classes/GData/Client/BookSearch.html
  35. +20 −0 doc/classes/GData/Client/BookSearch.src/M000011.html
  36. +23 −23 doc/classes/GData/Client/Calendar.html
  37. +6 −5 doc/classes/GData/Client/Calendar.src/M000031.html
  38. +5 −11 doc/classes/GData/Client/Calendar.src/M000032.html
  39. +10 −6 doc/classes/GData/Client/Calendar.src/M000033.html
  40. +21 −0 doc/classes/GData/Client/Calendar.src/M000034.html
  41. +1 −1 doc/classes/GData/Client/CaptchaError.src/M000005.html
  42. +5 −5 doc/classes/GData/Client/DocList.html
  43. +20 −0 doc/classes/GData/Client/DocList.src/M000007.html
  44. +118 −0 doc/classes/GData/Client/Error.html
  45. +5 −5 doc/classes/GData/Client/Finance.html
  46. +20 −0 doc/classes/GData/Client/Finance.src/M000030.html
  47. +5 −5 doc/classes/GData/Client/GMail.html
  48. +20 −0 doc/classes/GData/Client/GMail.src/M000029.html
  49. +5 −5 doc/classes/GData/Client/Health.html
  50. +20 −0 doc/classes/GData/Client/Health.src/M000035.html
  51. +5 −5 doc/classes/GData/Client/Notebook.html
  52. +20 −0 doc/classes/GData/Client/Notebook.src/M000010.html
  53. +5 −5 doc/classes/GData/Client/Photos.html
  54. +21 −0 doc/classes/GData/Client/Photos.src/M000009.html
  55. +167 −0 doc/classes/GData/Client/RequestError.html
  56. +20 −0 doc/classes/GData/Client/RequestError.src/M000006.html
  57. +3 −1 doc/classes/GData/Client/ServerError.html
  58. +3 −1 doc/classes/GData/Client/UnknownError.html
  59. +3 −1 doc/classes/GData/Client/VersionConflictError.html
  60. +5 −5 doc/classes/GData/Client/WebmasterTools.html
  61. +20 −0 doc/classes/GData/Client/WebmasterTools.src/M000008.html
  62. +11 −11 doc/classes/GData/Client/YouTube.html
  63. +8 −10 doc/classes/GData/Client/YouTube.src/M000026.html
  64. +24 −0 doc/classes/GData/Client/YouTube.src/M000027.html
  65. +5 −5 doc/classes/GData/HTTP/DefaultService.html
  66. +66 −0 doc/classes/GData/HTTP/DefaultService.src/M000046.html
  67. +16 −16 doc/classes/GData/HTTP/MimeBody.html
  68. +8 −17 doc/classes/GData/HTTP/MimeBody.src/M000036.html
  69. +17 −4 doc/classes/GData/HTTP/MimeBody.src/M000037.html
  70. +18 −0 doc/classes/GData/HTTP/MimeBody.src/M000038.html
  71. +11 −11 doc/classes/GData/HTTP/MimeBodyString.html
  72. +5 −13 doc/classes/GData/HTTP/MimeBodyString.src/M000040.html
  73. +27 −0 doc/classes/GData/HTTP/MimeBodyString.src/M000041.html
  74. +20 −20 doc/classes/GData/HTTP/Request.html
  75. +9 −7 doc/classes/GData/HTTP/Request.src/M000042.html
  76. +6 −6 doc/classes/GData/HTTP/Request.src/M000043.html
  77. +7 −10 doc/classes/GData/HTTP/Request.src/M000044.html
  78. +25 −0 doc/classes/GData/HTTP/Request.src/M000045.html
  79. +5 −5 doc/classes/GData/HTTP/Response.html
  80. +26 −0 doc/classes/GData/HTTP/Response.src/M000039.html
  81. +1 −1 doc/created.rid
  82. +1 −1 doc/files/lib/gdata/auth/authsub_rb.html
  83. +1 −1 doc/files/lib/gdata/auth/clientlogin_rb.html
  84. +1 −1 doc/files/lib/gdata/client/base_rb.html
  85. +1 −1 doc/files/lib/gdata/client_rb.html
  86. +8 −1 doc/files/lib/gdata/http/response_rb.html
  87. +2 −0 doc/fr_class_index.html
  88. +51 −50 doc/fr_method_index.html
View
@@ -50,7 +50,7 @@ spec = Gem::Specification.new do |s|
s.summary = "Google Data APIs Ruby Utility Library"
s.rubyforge_project = 'gdata'
s.name = 'gdata'
- s.version = '1.0.1'
+ s.version = '1.1.0'
s.requirements << 'none'
s.require_path = 'lib'
s.test_files = FileList['test/ts_gdata.rb']
@@ -94,13 +94,13 @@
<h3 class="section-bar">Methods</h3>
<div class="name-list">
- <a href="#M000052">get_url</a>&nbsp;&nbsp;
- <a href="#M000050">info</a>&nbsp;&nbsp;
- <a href="#M000046">new</a>&nbsp;&nbsp;
- <a href="#M000047">private_key=</a>&nbsp;&nbsp;
- <a href="#M000051">revoke</a>&nbsp;&nbsp;
- <a href="#M000048">sign_request!</a>&nbsp;&nbsp;
- <a href="#M000049">upgrade</a>&nbsp;&nbsp;
+ <a href="#M000053">get_url</a>&nbsp;&nbsp;
+ <a href="#M000051">info</a>&nbsp;&nbsp;
+ <a href="#M000047">new</a>&nbsp;&nbsp;
+ <a href="#M000048">private_key=</a>&nbsp;&nbsp;
+ <a href="#M000052">revoke</a>&nbsp;&nbsp;
+ <a href="#M000049">sign_request!</a>&nbsp;&nbsp;
+ <a href="#M000050">upgrade</a>&nbsp;&nbsp;
</div>
</div>
@@ -204,12 +204,12 @@ <h3 class="section-bar">Attributes</h3>
<div id="methods">
<h3 class="section-bar">Public Class methods</h3>
- <div id="method-M000052" class="method-detail">
- <a name="M000052"></a>
+ <div id="method-M000053" class="method-detail">
+ <a name="M000053"></a>
<div class="method-heading">
- <a href="AuthSub.src/M000052.html" target="Code" class="method-signature"
- onclick="popupCode('AuthSub.src/M000052.html');return false;">
+ <a href="AuthSub.src/M000053.html" target="Code" class="method-signature"
+ onclick="popupCode('AuthSub.src/M000053.html');return false;">
<span class="method-name">get_url</span><span class="method-args">(next_url, scope, secure = false, session = true, domain = nil)</span>
</a>
</div>
@@ -224,32 +224,32 @@ <h3 class="section-bar">Public Class methods</h3>
</div>
</div>
- <div id="method-M000046" class="method-detail">
- <a name="M000046"></a>
+ <div id="method-M000047" class="method-detail">
+ <a name="M000047"></a>
<div class="method-heading">
- <a href="AuthSub.src/M000046.html" target="Code" class="method-signature"
- onclick="popupCode('AuthSub.src/M000046.html');return false;">
+ <a href="AuthSub.src/M000047.html" target="Code" class="method-signature"
+ onclick="popupCode('AuthSub.src/M000047.html');return false;">
<span class="method-name">new</span><span class="method-args">(token, options = {})</span>
</a>
</div>
<div class="method-description">
<p>
-Initialize the class with a <a href="AuthSub.html#M000046">new</a> token.
+Initialize the class with a <a href="AuthSub.html#M000047">new</a> token.
Optionally pass a private key or custom URLs.
</p>
</div>
</div>
<h3 class="section-bar">Public Instance methods</h3>
- <div id="method-M000050" class="method-detail">
- <a name="M000050"></a>
+ <div id="method-M000051" class="method-detail">
+ <a name="M000051"></a>
<div class="method-heading">
- <a href="AuthSub.src/M000050.html" target="Code" class="method-signature"
- onclick="popupCode('AuthSub.src/M000050.html');return false;">
+ <a href="AuthSub.src/M000051.html" target="Code" class="method-signature"
+ onclick="popupCode('AuthSub.src/M000051.html');return false;">
<span class="method-name">info</span><span class="method-args">()</span>
</a>
</div>
@@ -262,12 +262,12 @@ <h3 class="section-bar">Public Instance methods</h3>
</div>
</div>
- <div id="method-M000047" class="method-detail">
- <a name="M000047"></a>
+ <div id="method-M000048" class="method-detail">
+ <a name="M000048"></a>
<div class="method-heading">
- <a href="AuthSub.src/M000047.html" target="Code" class="method-signature"
- onclick="popupCode('AuthSub.src/M000047.html');return false;">
+ <a href="AuthSub.src/M000048.html" target="Code" class="method-signature"
+ onclick="popupCode('AuthSub.src/M000048.html');return false;">
<span class="method-name">private_key=</span><span class="method-args">(key)</span>
</a>
</div>
@@ -282,12 +282,12 @@ <h3 class="section-bar">Public Instance methods</h3>
</div>
</div>
- <div id="method-M000051" class="method-detail">
- <a name="M000051"></a>
+ <div id="method-M000052" class="method-detail">
+ <a name="M000052"></a>
<div class="method-heading">
- <a href="AuthSub.src/M000051.html" target="Code" class="method-signature"
- onclick="popupCode('AuthSub.src/M000051.html');return false;">
+ <a href="AuthSub.src/M000052.html" target="Code" class="method-signature"
+ onclick="popupCode('AuthSub.src/M000052.html');return false;">
<span class="method-name">revoke</span><span class="method-args">()</span>
</a>
</div>
@@ -299,12 +299,12 @@ <h3 class="section-bar">Public Instance methods</h3>
</div>
</div>
- <div id="method-M000048" class="method-detail">
- <a name="M000048"></a>
+ <div id="method-M000049" class="method-detail">
+ <a name="M000049"></a>
<div class="method-heading">
- <a href="AuthSub.src/M000048.html" target="Code" class="method-signature"
- onclick="popupCode('AuthSub.src/M000048.html');return false;">
+ <a href="AuthSub.src/M000049.html" target="Code" class="method-signature"
+ onclick="popupCode('AuthSub.src/M000049.html');return false;">
<span class="method-name">sign_request!</span><span class="method-args">(request)</span>
</a>
</div>
@@ -317,12 +317,12 @@ <h3 class="section-bar">Public Instance methods</h3>
</div>
</div>
- <div id="method-M000049" class="method-detail">
- <a name="M000049"></a>
+ <div id="method-M000050" class="method-detail">
+ <a name="M000050"></a>
<div class="method-heading">
- <a href="AuthSub.src/M000049.html" target="Code" class="method-signature"
- onclick="popupCode('AuthSub.src/M000049.html');return false;">
+ <a href="AuthSub.src/M000050.html" target="Code" class="method-signature"
+ onclick="popupCode('AuthSub.src/M000050.html');return false;">
<span class="method-name">upgrade</span><span class="method-args">()</span>
</a>
</div>
@@ -5,24 +5,23 @@
<html>
<head>
- <title>private_key= (GData::Auth::AuthSub)</title>
+ <title>new (GData::Auth::AuthSub)</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File lib/gdata/auth/authsub.rb, line 62</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">private_key=</span>(<span class="ruby-identifier">key</span>)
- <span class="ruby-keyword kw">begin</span>
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">key</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">key</span>.<span class="ruby-identifier">class</span> <span class="ruby-operator">==</span> <span class="ruby-constant">OpenSSL</span><span class="ruby-operator">::</span><span class="ruby-constant">PKey</span><span class="ruby-operator">::</span><span class="ruby-constant">RSA</span>
- <span class="ruby-ivar">@private_key</span> = <span class="ruby-identifier">key</span>
- <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">key</span>)
- <span class="ruby-identifier">key_from_file</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">key</span>)
- <span class="ruby-ivar">@private_key</span> = <span class="ruby-constant">OpenSSL</span><span class="ruby-operator">::</span><span class="ruby-constant">PKey</span><span class="ruby-operator">::</span><span class="ruby-constant">RSA</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">key_from_file</span>)
- <span class="ruby-keyword kw">else</span>
- <span class="ruby-ivar">@private_key</span> = <span class="ruby-constant">OpenSSL</span><span class="ruby-operator">::</span><span class="ruby-constant">PKey</span><span class="ruby-operator">::</span><span class="ruby-constant">RSA</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">key</span>)
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-keyword kw">rescue</span>
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">&quot;Not a valid private key.&quot;</span>
+ <pre><span class="ruby-comment cmt"># File lib/gdata/auth/authsub.rb, line 44</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">token</span>, <span class="ruby-identifier">options</span> = {})
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">token</span>.<span class="ruby-identifier">nil?</span>
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">&quot;Token cannot be nil.&quot;</span>
+ <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">token</span>.<span class="ruby-identifier">class</span> <span class="ruby-operator">!=</span> <span class="ruby-constant">String</span>
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">&quot;Token must be a String.&quot;</span>
+ <span class="ruby-keyword kw">end</span>
+
+ <span class="ruby-ivar">@token</span> = <span class="ruby-identifier">token</span>
+
+ <span class="ruby-identifier">options</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-node">&quot;#{key}=&quot;</span>, <span class="ruby-identifier">value</span>)
<span class="ruby-keyword kw">end</span>
<span class="ruby-keyword kw">end</span></pre>
</body>
@@ -5,27 +5,25 @@
<html>
<head>
- <title>sign_request! (GData::Auth::AuthSub)</title>
+ <title>private_key= (GData::Auth::AuthSub)</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File lib/gdata/auth/authsub.rb, line 79</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sign_request!</span>(<span class="ruby-identifier">request</span>)
- <span class="ruby-identifier">header</span> = <span class="ruby-node">&quot;AuthSub token=\&quot;#{@token}\&quot;&quot;</span>
-
- <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@private_key</span>
- <span class="ruby-identifier">time</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>.<span class="ruby-identifier">to_i</span>
- <span class="ruby-identifier">nonce</span> = <span class="ruby-constant">OpenSSL</span><span class="ruby-operator">::</span><span class="ruby-constant">BN</span>.<span class="ruby-identifier">rand_range</span>(<span class="ruby-constant">BIG_INT_MAX</span>)
- <span class="ruby-identifier">method</span> = <span class="ruby-identifier">request</span>.<span class="ruby-identifier">method</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">upcase</span>
- <span class="ruby-identifier">data</span> = <span class="ruby-node">&quot;#{method} #{request.url} #{time} #{nonce}&quot;</span>
- <span class="ruby-identifier">sig</span> = <span class="ruby-ivar">@private_key</span>.<span class="ruby-identifier">sign</span>(<span class="ruby-constant">OpenSSL</span><span class="ruby-operator">::</span><span class="ruby-constant">Digest</span><span class="ruby-operator">::</span><span class="ruby-constant">SHA1</span>.<span class="ruby-identifier">new</span>, <span class="ruby-identifier">data</span>)
- <span class="ruby-identifier">sig</span> = <span class="ruby-constant">Base64</span>.<span class="ruby-identifier">encode64</span>(<span class="ruby-identifier">sig</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\n/</span>, <span class="ruby-value str">''</span>)
- <span class="ruby-identifier">header</span> = <span class="ruby-node">&quot;#{header} sigalg=\&quot;rsa-sha1\&quot; data=\&quot;#{data}\&quot;&quot;</span>
- <span class="ruby-identifier">header</span> = <span class="ruby-node">&quot;#{header} sig=\&quot;#{sig}\&quot;&quot;</span>
+ <pre><span class="ruby-comment cmt"># File lib/gdata/auth/authsub.rb, line 62</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">private_key=</span>(<span class="ruby-identifier">key</span>)
+ <span class="ruby-keyword kw">begin</span>
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">key</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">key</span>.<span class="ruby-identifier">class</span> <span class="ruby-operator">==</span> <span class="ruby-constant">OpenSSL</span><span class="ruby-operator">::</span><span class="ruby-constant">PKey</span><span class="ruby-operator">::</span><span class="ruby-constant">RSA</span>
+ <span class="ruby-ivar">@private_key</span> = <span class="ruby-identifier">key</span>
+ <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">key</span>)
+ <span class="ruby-identifier">key_from_file</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">key</span>)
+ <span class="ruby-ivar">@private_key</span> = <span class="ruby-constant">OpenSSL</span><span class="ruby-operator">::</span><span class="ruby-constant">PKey</span><span class="ruby-operator">::</span><span class="ruby-constant">RSA</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">key_from_file</span>)
+ <span class="ruby-keyword kw">else</span>
+ <span class="ruby-ivar">@private_key</span> = <span class="ruby-constant">OpenSSL</span><span class="ruby-operator">::</span><span class="ruby-constant">PKey</span><span class="ruby-operator">::</span><span class="ruby-constant">RSA</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">key</span>)
+ <span class="ruby-keyword kw">end</span>
+ <span class="ruby-keyword kw">rescue</span>
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">&quot;Not a valid private key.&quot;</span>
<span class="ruby-keyword kw">end</span>
-
- <span class="ruby-identifier">request</span>.<span class="ruby-identifier">headers</span>[<span class="ruby-value str">'Authorization'</span>] = <span class="ruby-identifier">header</span>
<span class="ruby-keyword kw">end</span></pre>
</body>
</html>
Oops, something went wrong.

0 comments on commit 78bdeee

Please sign in to comment.