public
Description: A fast, libxml based, Ruby Atom library supporting the Syndication Format and the Publishing Protocol. <br> Gem is available now!!<br>
Homepage: http://ratom.rubyforge.org/
Clone URL: git://github.com/seangeo/ratom.git
Update docs and add bump to version 0.4.0
seangeo (author)
Wed Jun 25 20:21:25 -0700 2008
commit  ba86d5dddc9c3756a8ab4a65dddc6b768fbf589a
tree    3d4f7ae0778b240824fbea780b7ce3823e2cbf67
parent  05139af2de85adb089d809053e1bee8464b813e5
...
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
0
@@ -1,3 +1,7 @@
0
+== 0.4.0 2008-06-26
0
+
0
+* Support for HTTP Basic Authentication.
0
+
0
 == 0.3.7 2008-06-05
0
 
0
 * Support XML in extension elements. (Min Kim)
...
181
182
183
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
184
185
186
...
189
190
191
192
193
194
195
...
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
...
210
211
212
 
213
214
215
0
@@ -181,6 +181,27 @@ You can then call to_xml and rAtom will serialize the extension elements into xm
0
 Notice that the output repeats the xmlns attribute for each of the extensions, this is semantically the same the input XML, just a bit
0
 ugly. It seems to be a limitation of the libxml-Ruby API. But if anyone knows a work around I'd gladly accept a patch (or even advice).
0
 
0
+=== Basic Authentication
0
+
0
+All methods that involve HTTP requests now support HTTP Basic Authentication. Authentication credentials are passed
0
+as :user and :pass parameters to the methods that invoke the request. For example you can load a feed with HTTP Basic Authentication using:
0
+
0
+ Atom::Feed.load_entry(URI.parse("http://example.org/feed.atom"), :user => 'username', :pass => 'password')
0
+
0
+Likewise all the Atom Pub methods support similar parameters, for example you can publish an Entry to a Feed with authentication
0
+using:
0
+
0
+ feed.publish(entry, :user => 'username', :pass => 'password')
0
+
0
+Or destroy an entry with:
0
+
0
+ entry.destroy!(:user => 'username', :pass => 'password')
0
+
0
+rAtom doesn't store these credentials anywhere within the object model so you will need to pass them as arguments to every
0
+method call that requires them. This might be a bit of a pain but it does make things simpler and it means that I'm not responsible
0
+for protecting your credentials, although if you are using HTTP Basic Authentication there is a good chance your credentials aren't
0
+very well protected anyway.
0
+
0
 == TODO
0
 
0
 * Support partial content responses from the server.
0
@@ -189,7 +210,6 @@ ugly. It seems to be a limitation of the libxml-Ruby API. But if anyone knows a
0
 * All my tests have been against internal systems, I'd really like feedback from those who have tried rAtom using existing blog software that supports APP.
0
 * Handle all base uri tests.
0
 * Add slug support.
0
-* Handle HTTP basic authentication.
0
 
0
 == Source Code
0
 
...
1
2
3
4
5
 
 
6
7
8
...
1
2
3
 
 
4
5
6
7
8
0
@@ -1,8 +1,8 @@
0
 module Atom #:nodoc:
0
   module VERSION #:nodoc:
0
     MAJOR = 0
0
- MINOR = 3
0
- TINY = 7
0
+ MINOR = 4
0
+ TINY = 0
0
 
0
     STRING = [MAJOR, MINOR, TINY].join('.')
0
   end

Comments

    No one has commented yet.