tinyatom 0.3.0 → 0.3.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.
- data/README.textile +8 -4
- data/VERSION +1 -1
- data/lib/tinyatom/feed.rb +1 -1
- data/tinyatom.gemspec +1 -1
- metadata +3 -3
data/README.textile
CHANGED
|
@@ -29,6 +29,9 @@ feed.add_entry(
|
|
|
29
29
|
|
|
30
30
|
# optional
|
|
31
31
|
|
|
32
|
+
:summary => 'the summary',
|
|
33
|
+
:content => 'the content',
|
|
34
|
+
|
|
32
35
|
:author_name => 'me',
|
|
33
36
|
:author_email => 'me@mysite.com',
|
|
34
37
|
:author_uri => 'http://mysite.com/',
|
|
@@ -42,7 +45,6 @@ feed.add_entry(
|
|
|
42
45
|
:via_href => 'http://anotherblog.com/posts/999',
|
|
43
46
|
:via_title => 'Look at this photo',
|
|
44
47
|
|
|
45
|
-
|
|
46
48
|
:media_thumbnail_url => 'http://mysite.com/thumbnails/1.jpg',
|
|
47
49
|
:media_thumbnail_width => 100,
|
|
48
50
|
:media_thumbnail_height => 100,
|
|
@@ -56,7 +58,7 @@ puts feed.make(:indent => 2)
|
|
|
56
58
|
<feed xmlns:media="http://purl.org/syndication/atommedia" xmlns="http://www.w3.org/2005/Atom">
|
|
57
59
|
<title>My Blog</title>
|
|
58
60
|
<link rel="self" href="http://mysite.com/blog/atom.xml"/>
|
|
59
|
-
<updated>2010-11-14T10:
|
|
61
|
+
<updated>2010-11-14T10:35:27-05:00</updated>
|
|
60
62
|
<id>http://mysite.com/blog/</id>
|
|
61
63
|
<author>
|
|
62
64
|
<name>me</name>
|
|
@@ -68,13 +70,15 @@ puts feed.make(:indent => 2)
|
|
|
68
70
|
<title>post 1</title>
|
|
69
71
|
<link href="http://mysite.com/blog/1"/>
|
|
70
72
|
<id>tag:mysite.com,2010-11-14:1</id>
|
|
71
|
-
<updated>2010-11-14T10:
|
|
73
|
+
<updated>2010-11-14T10:35:27-05:00</updated>
|
|
74
|
+
<summary>the summary</summary>
|
|
75
|
+
<content>the content</content>
|
|
72
76
|
<author>
|
|
73
77
|
<name>me</name>
|
|
74
78
|
<email>me@mysite.com</email>
|
|
75
79
|
<uri>http://mysite.com/</uri>
|
|
76
80
|
</author>
|
|
77
|
-
<link type="image/png" rel="enclosure"
|
|
81
|
+
<link type="image/png" rel="enclosure" length="6227" title="photo" href="http://mysite.com/image.png"/>
|
|
78
82
|
<media:thumbnail url="http://mysite.com/thumbnails/1.jpg" height="100" time="00:00:00.000" width="100"/>
|
|
79
83
|
<link type="text/html" rel="via" title="Look at this photo" href="http://anotherblog.com/posts/999"/>
|
|
80
84
|
</entry>
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.1
|
data/lib/tinyatom/feed.rb
CHANGED
|
@@ -30,7 +30,7 @@ module TinyAtom
|
|
|
30
30
|
xm.instruct!(:xml)
|
|
31
31
|
|
|
32
32
|
xm.feed(:xmlns => 'http://www.w3.org/2005/Atom',
|
|
33
|
-
:'xmlns:media' => 'http://
|
|
33
|
+
:'xmlns:media' => 'http://search.yahoo.com/mrss/') {
|
|
34
34
|
xm.title(title)
|
|
35
35
|
xm.link(:href => feed_url, :rel => 'self')
|
|
36
36
|
xm.updated(updated.xmlschema)
|
data/tinyatom.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tinyatom
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 17
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 3
|
|
9
|
-
-
|
|
10
|
-
version: 0.3.
|
|
9
|
+
- 1
|
|
10
|
+
version: 0.3.1
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Matthew M. Boedicker
|