polyrex-feed-reader 0.5.5 → 0.5.6

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: 85019351de16c7097af235b167c26bb725c30afd
4
- data.tar.gz: 35b68a4f5da9abe5cbbf72e696b701042bd3f023
3
+ metadata.gz: b5470286cbeaf7daae8d3cc52d4e5a7364cd3b78
4
+ data.tar.gz: 13ec0b1936b754506c9d6ca785765cfe9e28ac93
5
5
  SHA512:
6
- metadata.gz: 5ef6e17bed5406b734d6249755ad13a9b897c2b8ef0ab31c58d3b462445590986978fad95c3f0073f44d6045e85737d52115ac7414b91010d04f6f122b07e6c0
7
- data.tar.gz: 78ee2d7e9bc126f715291b01d2ceaa0f155473d721cd18cf04d410769c35bf4bdb3f9b5f3821899462b840bc51a63704c02c67d86d4c7d0691fd7692d8a68dbd
6
+ metadata.gz: b87e74a3887affa2dc261395ce78899eb9f29d070f454525f4b92d4316205e4b6b096ee96170c288e549e7fdfbe6d842fea32bdd41832de7a908b3bd7cc6df7a
7
+ data.tar.gz: 4b38889078cb4c4582a701d4bd02efff17eb479956305bc5a9605429ced5403feec9772367d752176f1a1a4ae7adade024898aad1e17c64f2a1e2074bdb89c50
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/feeds.css CHANGED
@@ -1,13 +1,81 @@
1
- body {background-color: #39a}
1
+ body {background-color: #39a; margin: 0.1em; padding: 0.1em;}
2
2
 
3
- body>div {
3
+ #wrap{
4
+ background-color: transparent;
5
+ width: 1330px;
6
+ }
7
+
8
+ header {background-color: #46b; overflow: hidden;}
9
+ header>div {background-color: #79a; color: #389; float: right; margin-right: 4em;}
10
+ header>div>ul {
11
+ background-color: #79a;
12
+ list-style-type: none;
13
+ margin: 0.1em;
14
+ padding: 0.1em;
15
+ }
16
+ header>div>ul>li {
17
+ background-color: #89b;
18
+ float: left;
19
+ margin: 0em;
20
+ font-size: 0.8em;
21
+ padding: 0.2em 0.5em;
22
+ }
23
+ #wrap h1 {background-color: #59a; color: #389;}
24
+ #wrap h2 {background-color: transparent; color: #4b4;}
25
+
26
+ nav {
27
+ background-color: transparent;
28
+ float: left;
29
+ height: 80%;
30
+ width: 170px;
31
+ margin: 0.1em;
32
+ overflow: auto;
33
+ padding: 0.1em;
34
+ position: fixed;
35
+
36
+ }
37
+ nav>a{
38
+ background-color: transparent;
39
+ display: block;
40
+ color: #fff;
41
+ margin: 0.2em; padding: 0.4em
42
+ }
43
+ nav ul{
44
+ background-color: transparent;
45
+ list-style-type: none;
46
+ margin: 0.2em 0.1em;
47
+ padding: 0.3em 0.1em;
48
+ }
49
+ nav ul li{
50
+ background-color: transparent;
51
+ display: block;
52
+ color: #689;
53
+ font-size: 0.9em;
54
+ margin: 0.2em;
55
+ padding: 0.3em;
56
+ }
57
+ nav ul li a{
58
+ background-color: transparent;
59
+ color: #dde;
60
+ }
61
+
62
+ #wrap #c1 {
63
+ background-color: #19b;
64
+
65
+ margin-left: 180px;
66
+
67
+ }
68
+
69
+
70
+ #wrap>div {
4
71
  background-color: #19b;
5
72
  float: left;
6
- width: 200px;
73
+ width: 190px;
7
74
  }
8
75
 
9
- body div div {
10
- background-color: #9fa;
76
+ #wrap div div {
77
+ background-color: #7c8;
78
+
11
79
  }
12
80
 
13
81
  .feed>ul {
@@ -15,6 +83,19 @@ body div div {
15
83
  list-style-type: none;
16
84
  margin: 0.1em; padding: 0.2em;
17
85
  }
86
+ .feed span {
87
+ background-color: transparent;
88
+ color: #987;
89
+ font-size: 0.8em;
90
+ }
91
+ .feed p {
92
+ background-color: transparent;
93
+ font-size: 0.8em;
94
+ }
95
+ .feed h4 {
96
+ background-color: transparent;
97
+ font-size: 0.9em;
98
+ }
18
99
 
19
100
  div div>ul>li {
20
101
  background-color: transparent;
@@ -26,9 +107,9 @@ body div div {
26
107
  }
27
108
 
28
109
 
29
- .a_hot {background-color: #fdd;}
30
- .b_warm {background-color: #ea9;}
31
- .c_cold {background-color: #aae;}
32
- .d_coldx1week {background-color: #385;}
33
- .e_coldx1month {background-color: #385;}
34
- .f_coldx6months {background-color: #385;}
110
+ #wrap .a_hot {background-color: #fee;}
111
+ #wrap .b_warm {background-color: #edd;}
112
+ #wrap .c_cold {background-color: #dbc;}
113
+ #wrap .d_coldx1week {background-color: #cab;}
114
+ #wrap .e_coldx1month {background-color: #aae;}
115
+ #wrap .f_coldx6months {background-color: #88c;}
data/lib/feeds.xsl CHANGED
@@ -11,9 +11,38 @@
11
11
  </head>
12
12
 
13
13
  <body onload="" style="font-family:helvetica,arial;">
14
+ <div id="wrap">
15
+ <a name="top"/>
14
16
 
17
+ <header>
18
+ <a name="top"/>
15
19
  <xsl:apply-templates select='summary'/>
16
- <xsl:apply-templates select='records'/>
20
+
21
+ <div>
22
+ <ul>
23
+ <li>hotter</li>
24
+ <li class="a_hot">&#160;</li>
25
+ <li class="b_warm">&#160;</li>
26
+ <li class="c_cold">&#160;</li>
27
+ <li class="d_coldx1week">&#160;</li>
28
+ <li class="e_coldx1month">&#160;</li>
29
+ <li class="f_coldx6months">&#160;</li>
30
+ <li>colder</li>
31
+ </ul>
32
+ </div>
33
+ </header>
34
+
35
+ <nav>
36
+ <a href="#top">return to top</a>
37
+ <ul>
38
+ <xsl:for-each select="records/column/records/section/records/feed">
39
+ <xsl:sort select="summary/title"/>
40
+ <li><a href="#{summary/title}"><xsl:value-of select="summary/title"/></a></li>
41
+ </xsl:for-each>
42
+ </ul>
43
+ </nav>
44
+ <xsl:apply-templates select='records'/>
45
+ </div>
17
46
  </body>
18
47
  </html>
19
48
  </xsl:template>
@@ -51,6 +80,7 @@
51
80
 
52
81
  <xsl:template match='records/feed'>
53
82
  <div class="feed {summary/recent}">
83
+ <a name="{summary/title}"/>
54
84
  <xsl:apply-templates select='summary'>
55
85
 
56
86
  </xsl:apply-templates>
@@ -33,6 +33,14 @@ class PolyrexFeedReader
33
33
 
34
34
  def fetch_feeds()
35
35
 
36
+ w3centities =<<EOF
37
+ <!DOCTYPE stylesheet [
38
+ <!ENTITY % w3centities-f PUBLIC "-//W3C//ENTITIES Combined Set//EN//XML"
39
+ "http://www.w3.org/2003/entities/2007/w3centities-f.ent">
40
+ %w3centities-f;
41
+ ]>
42
+ EOF
43
+
36
44
  feeds do |feed, filename|
37
45
 
38
46
  puts "fetching %s " % feed.rss_url.inspect
@@ -44,9 +52,11 @@ class PolyrexFeedReader
44
52
  a = xml.lines.to_a
45
53
  line1 = a.shift
46
54
  a.unshift %Q{<?xml-stylesheet title="XSL_formatting" type="text/xsl" href="dynarex-feed.xsl"?>\n}
55
+ a.unshift w3centities
47
56
  a.unshift line1
48
57
  a.join
49
58
  end
59
+
50
60
  end
51
61
 
52
62
  end
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.5
4
+ version: 0.5.6
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-10 00:00:00.000000000 Z
32
+ date: 2013-12-12 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: polyrex
metadata.gz.sig CHANGED
Binary file