polyrex-feed-reader 0.5.9 → 0.5.10
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +3 -1
- data.tar.gz.sig +0 -0
- data/lib/latest.xsl +62 -0
- data/lib/opml-feeds.xsl +51 -0
- metadata +4 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 67f44809bc6fa5bac6ca8eae4845bba187a4e328
|
|
4
|
+
data.tar.gz: 3e969cbe3072d660d388acb5e0cfde488f8a2c49
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 87519b2eb22d630c70910beaba156a542d0af615e4eab5dee99b4137d88f9cc57325c13497e6192701d461dd32b9d6a224c019d3a0dc80f093efaf3129da45a1
|
|
7
|
+
data.tar.gz: bf9d51264120112e3e463aa94e66e6f50c822a28738710d3e6993c061d5a65d1962d221700feb236d53ff76142e8da5c050e6a5206fc7ba83bd70bc2e9a78483
|
checksums.yaml.gz.sig
CHANGED
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/latest.xsl
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
|
3
|
+
<xsl:output method="html" indent="yes" />
|
|
4
|
+
<xsl:template match="*">
|
|
5
|
+
<html>
|
|
6
|
+
<head>
|
|
7
|
+
<link rel='stylesheet' type='text/css' href='dynarex-feed.css' media='screen, projection, tv, print'></link>
|
|
8
|
+
|
|
9
|
+
</head>
|
|
10
|
+
<body>
|
|
11
|
+
<div id="wrap" class="dynarex">
|
|
12
|
+
<ul>
|
|
13
|
+
<li><a href="/">home</a></li>
|
|
14
|
+
<li><a href="/feeds/">feeds</a></li>
|
|
15
|
+
</ul>
|
|
16
|
+
<xsl:apply-templates select="summary"/>
|
|
17
|
+
<xsl:apply-templates select="records"/>
|
|
18
|
+
</div>
|
|
19
|
+
</body>
|
|
20
|
+
</html>
|
|
21
|
+
</xsl:template>
|
|
22
|
+
<xsl:template match="summary">
|
|
23
|
+
<div id="summary">
|
|
24
|
+
<a href="{link}"><h1><xsl:value-of select="title" disable-output-escaping="yes"/></h1></a>
|
|
25
|
+
</div>
|
|
26
|
+
</xsl:template>
|
|
27
|
+
|
|
28
|
+
<xsl:template match="records">
|
|
29
|
+
<xsl:text>
|
|
30
|
+
</xsl:text><div id="records">
|
|
31
|
+
|
|
32
|
+
<ul>
|
|
33
|
+
<xsl:for-each select="feed">
|
|
34
|
+
|
|
35
|
+
<li><xsl:value-of select="source" disable-output-escaping="yes"/>: <a href="#{position()}"><xsl:value-of select="title" disable-output-escaping="yes"/></a></li>
|
|
36
|
+
|
|
37
|
+
</xsl:for-each>
|
|
38
|
+
</ul>
|
|
39
|
+
<xsl:text>
|
|
40
|
+
</xsl:text>
|
|
41
|
+
<ul><xsl:text>
|
|
42
|
+
</xsl:text>
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
<xsl:for-each select="feed">
|
|
46
|
+
|
|
47
|
+
<li><div><a name="{@id}"/>
|
|
48
|
+
<h2><xsl:value-of select="source" disable-output-escaping="yes"/></h2>
|
|
49
|
+
<a href="{link}" target="_blank" rel="nofollow"><h1><xsl:value-of select="title" disable-output-escaping="yes"/></h1></a>
|
|
50
|
+
<p><xsl:value-of select="description" disable-output-escaping="yes"/></p>
|
|
51
|
+
<h3>Share</h3><textarea cols="50" rows="5">[<xsl:value-of select="title" disable-output-escaping="yes"/>](<xsl:value-of select="link" disable-output-escaping="yes"/>) via <xsl:value-of select="../../summary/title"/></textarea>
|
|
52
|
+
</div>
|
|
53
|
+
</li>
|
|
54
|
+
|
|
55
|
+
</xsl:for-each>
|
|
56
|
+
|
|
57
|
+
</ul><xsl:text>
|
|
58
|
+
</xsl:text>
|
|
59
|
+
</div>
|
|
60
|
+
</xsl:template>
|
|
61
|
+
|
|
62
|
+
</xsl:stylesheet>
|
data/lib/opml-feeds.xsl
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
|
3
|
+
<xsl:output method="xml" encoding="UTF-8" />
|
|
4
|
+
|
|
5
|
+
<xsl:template match='feeds'>
|
|
6
|
+
<opml version="1.0">
|
|
7
|
+
<head><xsl:apply-templates select='summary'/></head>
|
|
8
|
+
<body>
|
|
9
|
+
<xsl:apply-templates select='records'/>
|
|
10
|
+
</body>
|
|
11
|
+
</opml>
|
|
12
|
+
</xsl:template>
|
|
13
|
+
|
|
14
|
+
<xsl:template match='feeds/summary'>
|
|
15
|
+
<title><xsl:value-of select="title" /></title>
|
|
16
|
+
</xsl:template>
|
|
17
|
+
|
|
18
|
+
<xsl:template match='records/column'>
|
|
19
|
+
<xsl:apply-templates select='summary'/>
|
|
20
|
+
<xsl:apply-templates select='records/section'/>
|
|
21
|
+
</xsl:template>
|
|
22
|
+
|
|
23
|
+
<xsl:template match='column/summary'/>
|
|
24
|
+
|
|
25
|
+
<xsl:template match='records/section'>
|
|
26
|
+
<outline title="{summary/title}" text="{summary/title}" description="" type="folder">
|
|
27
|
+
<xsl:apply-templates select='summary'/>
|
|
28
|
+
<xsl:apply-templates select='records/feed'/>
|
|
29
|
+
</outline>
|
|
30
|
+
</xsl:template>
|
|
31
|
+
|
|
32
|
+
<xsl:template match='section/summary'/>
|
|
33
|
+
|
|
34
|
+
<xsl:template match='records/feed'>
|
|
35
|
+
<xsl:apply-templates select='summary'/>
|
|
36
|
+
<xsl:apply-templates select='records'/>
|
|
37
|
+
</xsl:template>
|
|
38
|
+
|
|
39
|
+
<xsl:template match='feed/summary'>
|
|
40
|
+
<outline title="{title}" text="{title}" description="{title}" type="rss" xmlUrl="{rss_url}" htmlUrl=""/>
|
|
41
|
+
</xsl:template>
|
|
42
|
+
|
|
43
|
+
<xsl:template match='records/item'>
|
|
44
|
+
<xsl:apply-templates select='summary'/>
|
|
45
|
+
<xsl:apply-templates select='records'/>
|
|
46
|
+
</xsl:template>
|
|
47
|
+
|
|
48
|
+
<xsl:template match='item/summary'/>
|
|
49
|
+
<xsl:template match='item/records'/>
|
|
50
|
+
|
|
51
|
+
</xsl:stylesheet>
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: polyrex-feed-reader
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -29,7 +29,7 @@ cert_chain:
|
|
|
29
29
|
LxhpHfLSRfOWDFimU0YGVs8dISSHOneULhblAYTTb7tvv2Zr8wG/bdlLhWuwoz23
|
|
30
30
|
L5EDjzznPMmVNG60mdktue6PKdOEFp7N
|
|
31
31
|
-----END CERTIFICATE-----
|
|
32
|
-
date: 2013-12-
|
|
32
|
+
date: 2013-12-18 00:00:00.000000000 Z
|
|
33
33
|
dependencies:
|
|
34
34
|
- !ruby/object:Gem::Dependency
|
|
35
35
|
name: polyrex
|
|
@@ -83,6 +83,8 @@ files:
|
|
|
83
83
|
- lib/feeds.xsl
|
|
84
84
|
- lib/feeds.css
|
|
85
85
|
- lib/dynarex-feed.xsl
|
|
86
|
+
- lib/latest.xsl
|
|
87
|
+
- lib/opml-feeds.xsl
|
|
86
88
|
homepage: https://github.com/jrobertson/polyrex-feed-reader
|
|
87
89
|
licenses:
|
|
88
90
|
- MIT
|
metadata.gz.sig
CHANGED
|
Binary file
|