polyrex-feed-reader 0.5.8 → 0.5.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 70cd5af224b421e30e10b21592dff7318997e9c3
4
- data.tar.gz: d17440d0114605492ef80cb7f677ff25446896e2
3
+ metadata.gz: 56162a41f6bec6c7a0759ee30912a160540ac9ab
4
+ data.tar.gz: 4c4420a0455c303e92811288c577845ec999ba6b
5
5
  SHA512:
6
- metadata.gz: 952f2418decaea137e0946e8edd5262abebefc59319e23ce8e0eff737c99136e24c0008e9139b09f89926a39eb541524b33597c9c93fde2628c7f4f4d43458d6
7
- data.tar.gz: efa60ecba20d82ed677b6479d7828841f4a4c898d7b951594f8b124145f05d317870a82a1dbf2c5b9b953e7dfb6d4899fa965f9df75a20a72affe3bae4bd1ced
6
+ metadata.gz: 42d1ac5ca854131e34bf455f53c5167d659e1bcab3bddb70393ab64f6867c3bf83ca53083777e6ced13bc5fdee3749289e0d9ae1cc2da8e981ddeb4f1bb5f500
7
+ data.tar.gz: e6db9cf933fa4d194877b1db93f08bd3c453d2e030b8c121ff738ebe79a6e7b7ed518684e989a62f3d30847617f3489f1c6a637a0e72c64b753b945b04a62246
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/dynarex-feed.xsl CHANGED
@@ -1,73 +1,24 @@
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
- <style type="text/css">
1
+ body {background-color: #aa5}
2
+
3
+ #records {background-color: #888;}
4
+ /*#records>ul{list-style-type: none;}*/
5
+ #records>ul:first-child {
6
+ background-color: #acc;
7
+ -moz-column-count: 4; -moz-column-gap: 1em; -moz-column-rule: 1px solid black; -webkit-column-count: 4; -webkit-column-gap: 1em; -webkit-column-rule: 1px solid black;
8
+ margin:0.7em 1.3em; padding: 0.8em;
9
+ }
10
+ #records>ul:first-child>li {margin: 0.2em; padding: 0.4em;}
11
+ #records>ul+ul {background-color: #ecf;list-style-type: none; margin: 0.2em; padding: 0.2em}
12
+ #records>ul+ul>li { background-color: #956;}
13
+
14
+ #records>ul+ul>li:nth-child(even) { background:#4b3; }
15
+ #records>ul+ul>li>div {
16
+ background-color: #9ca;
17
+ -moz-column-count: 3; -moz-column-gap: 1em; -moz-column-rule: 1px solid black; -webkit-column-count: 3; -webkit-column-gap: 1em; -webkit-column-rule: 1px solid black;
18
+ margin:0.7em 0.3em; padding: 0.4em;
19
+
20
+ }
21
+ #records>ul>li:nth-child(even)>div { background-color: #ba8; }
22
+ #records>ul>li>div>a>h1 {background-color: transparent; font-size: 1.0em;}
9
23
 
10
- body {background-color: #aa5}
11
- #records {background-color: #888;}
12
- #records>ul {background-color: #ecf;list-style-type: none; margin: 0.2em; padding: 0.2em}
13
- #records>ul>li { background-color: #956;}
14
24
 
15
- #records>ul>li:nth-child(even) { background:#4b3; }
16
- #records>ul>li>div {
17
- background-color: #9ca;
18
- -moz-column-count: 3; -moz-column-gap: 1em; -moz-column-rule: 1px solid black; -webkit-column-count: 3; -webkit-column-gap: 1em; -webkit-column-rule: 1px solid black;
19
- margin:0.7em 0.3em; padding: 0.4em;
20
-
21
- }
22
- #records>ul>li:nth-child(even)>div { background-color: #ba8; }
23
- #records>ul>li>div>a>h1 {background-color: transparent; font-size: 1.0em;}
24
-
25
-
26
- </style>
27
- </head>
28
- <body>
29
- <div id="wrap" class="dynarex">
30
- <ul>
31
- <li><a href="/">home</a></li>
32
- <li><a href="/feeds/">feeds</a></li>
33
- </ul>
34
- <xsl:apply-templates select="summary"/>
35
- <xsl:apply-templates select="records"/>
36
- </div>
37
- </body>
38
- </html>
39
- </xsl:template>
40
- <xsl:template match="summary">
41
- <div id="summary">
42
- <a href="{link}"><h1><xsl:value-of select="title" disable-output-escaping="yes"/></h1></a>
43
- </div>
44
- </xsl:template>
45
-
46
- <xsl:template match="records">
47
- <xsl:text>
48
- </xsl:text><div id="records">
49
-
50
- <xsl:text>
51
- </xsl:text>
52
- <ul><xsl:text>
53
- </xsl:text>
54
-
55
-
56
- <xsl:for-each select="item">
57
-
58
- <li><div><a name="{@id}"/>
59
- <a href="{link}" target="_blank"><h1><xsl:value-of select="title" disable-output-escaping="yes"/></h1></a>
60
- <p><xsl:value-of select="description" disable-output-escaping="yes"/></p>
61
- <p>last updated: <xsl:value-of select="date"/></p>
62
- <h2>Share</h2><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>
63
- </div>
64
- </li>
65
-
66
- </xsl:for-each>
67
-
68
- </ul><xsl:text>
69
- </xsl:text>
70
- </div>
71
- </xsl:template>
72
-
73
- </xsl:stylesheet>
data/lib/feeds.xsl CHANGED
@@ -50,7 +50,7 @@
50
50
 
51
51
 
52
52
  <xsl:template match='feeds/summary'>
53
- <h1><xsl:value-of select='title'/></h1>
53
+ <a href="javascript:window.location.reload()"><h1><xsl:value-of select='title'/></h1></a>
54
54
  </xsl:template>
55
55
 
56
56
  <xsl:template match='records/column'>
@@ -89,7 +89,7 @@
89
89
  </xsl:template>
90
90
 
91
91
  <xsl:template match='feed/summary'>
92
- <a href="{substring-before(xhtml,'.')}.html" target="_blank"><h3><xsl:value-of select='title'/></h3></a>
92
+ <a href="{substring-before(xhtml,'.')}.html" target="_blank" rel="nofollow"><h3><xsl:value-of select='title'/></h3></a>
93
93
  <span><xsl:value-of select='last_modified'/></span>
94
94
  </xsl:template>
95
95
 
@@ -101,7 +101,7 @@
101
101
  </xsl:template>
102
102
 
103
103
  <xsl:template match='item/summary'>
104
- <a href="{local_link}" target="_blank"><h4><xsl:value-of disable-output-escaping="yes" select='title'/></h4></a>
104
+ <a href="{local_link}" target="_blank" rel="nofollow"><h4><xsl:value-of disable-output-escaping="yes" select='title'/></h4></a>
105
105
  <p><xsl:value-of disable-output-escaping="yes" select='description'/></p>
106
106
  </xsl:template>
107
107
 
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.8
4
+ version: 0.5.9
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-16 00:00:00.000000000 Z
32
+ date: 2013-12-17 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: polyrex
metadata.gz.sig CHANGED
Binary file