atomutil 0.0.1 → 0.0.2
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/History.txt +5 -0
- data/README.txt +15 -12
- data/lib/atomutil.rb +1 -1
- data/website/index.txt +1 -1
- data/website/template.rhtml +1 -1
- metadata +1 -1
data/History.txt
CHANGED
data/README.txt
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
= Utilities for AtomPub / Atom Syndication Format
|
2
2
|
|
3
|
+
This library allows you to handle AtomPub and Atom Syndication Format easily.
|
4
|
+
Most of the idea is from great Perl modules on CPAN.
|
5
|
+
|
6
|
+
= INSTALLATION
|
7
|
+
|
8
|
+
sudo gem install atomutil
|
9
|
+
|
3
10
|
= SYNOPSIS
|
4
11
|
|
5
12
|
== Building or parsing XML with Atom Syndication Format
|
@@ -581,20 +588,20 @@ and in future, Atom::Auth::OAuth, Atom::Auth::OpenID, and etc.
|
|
581
588
|
client.delete_entry( entries[2].edit_link )
|
582
589
|
|
583
590
|
new_entry = Atom::Entry.new
|
584
|
-
new_entry.title
|
591
|
+
new_entry.title = 'New!'
|
585
592
|
new_entry.summary = 'New Entry for Example'
|
586
593
|
new_entry.published = Time.now
|
587
594
|
|
588
595
|
edit_uri = client.create_entry( collection.href, new_entry )
|
589
596
|
|
590
597
|
# you also can use 'slug'
|
591
|
-
slug = 'new
|
598
|
+
slug = 'new entry'
|
592
599
|
edit_uri = client.create_entry( collection.href, new_entry, slug )
|
593
600
|
|
594
601
|
media_collection = service.workspaces.first.collections[1]
|
595
602
|
media_collection_uri = media_collection.href
|
596
603
|
|
597
|
-
media_uri = client.create_media( media_collection_uri, '', 'image/jpeg')
|
604
|
+
media_uri = client.create_media( media_collection_uri, 'foo.jpg', 'image/jpeg')
|
598
605
|
# with slug
|
599
606
|
# client.create_media( media_collection_uri, 'foo.jpg', 'image/jpeg', 'new-image')
|
600
607
|
|
@@ -605,11 +612,6 @@ and in future, Atom::Auth::OAuth, Atom::Auth::OpenID, and etc.
|
|
605
612
|
|
606
613
|
feed_contains_media_entreis = client.get_feed( media_collection_uri )
|
607
614
|
|
608
|
-
= DESCRIPTION
|
609
|
-
|
610
|
-
This library allows you to handle AtomPub and Atom Syndication Format easily.
|
611
|
-
Most of the idea is from great Perl modules on CPAN.
|
612
|
-
|
613
615
|
= TO DO
|
614
616
|
|
615
617
|
* More document
|
@@ -619,10 +621,11 @@ Most of the idea is from great Perl modules on CPAN.
|
|
619
621
|
|
620
622
|
= SEE ALSO
|
621
623
|
|
622
|
-
AtomPub Spec(RFC)::
|
623
|
-
Atom
|
624
|
-
Atom::
|
625
|
-
|
624
|
+
AtomPub Spec(RFC):: http://atompub.org/rfc4287.html
|
625
|
+
XML::Atom(Perl):: http://search.cpan.org/perldoc?XML%3A%3AAtom
|
626
|
+
XML::Atom::Service(Perl):: http://search.cpan.org/perldoc?XML%3A%3AAtom%3A%3AService
|
627
|
+
XML::Atom::Ext::Threading(Perl):: http://search.cpan.org/perldoc?XML%3A%3AAtom%3A%3AExt%3A%3AThreading
|
628
|
+
Atompub(Perl):: http://search.cpan.org/perldoc?Atompub
|
626
629
|
|
627
630
|
= Author and License
|
628
631
|
|
data/lib/atomutil.rb
CHANGED
data/website/index.txt
CHANGED
@@ -35,5 +35,5 @@ This code is free to use under the terms of the MIT license.
|
|
35
35
|
|
36
36
|
h2. Contact
|
37
37
|
|
38
|
-
Comments are welcome. Send an email to "
|
38
|
+
Comments are welcome. Send an email to "FIXME full name":mailto:FIXME email via the "forum":http://groups.google.com/group/atomutil
|
39
39
|
|
data/website/template.rhtml
CHANGED
@@ -37,7 +37,7 @@
|
|
37
37
|
</div>
|
38
38
|
<%= body %>
|
39
39
|
<p class="coda">
|
40
|
-
<a href="
|
40
|
+
<a href="FIXME email">FIXME full name</a>, <%= modified.pretty %><br>
|
41
41
|
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
42
42
|
</p>
|
43
43
|
</div>
|