rss_to_dynarex 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/rss_to_dynarex.xsl +26 -24
- data.tar.gz.sig +0 -0
- metadata +2 -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: ff396317c296ca47b2ace6e7f23dfdf2ca2cb05c
|
4
|
+
data.tar.gz: f689bca92124711f3c054992a91ebf737153c243
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e1040bff0573dc90022b5791db1460a565eba1b2c080532ed3cf8a4caf2011f0731ab9eeeded4473dec10c06cc6e6ef95510412c21547dd5c18d16864a75b6b
|
7
|
+
data.tar.gz: 2027f0ec99984edda87a74ad2283591a2cbc9c756112002ae77a53d16b611a65069b41add6c4db8ce44d5b0899c1b877b69566761ce771c21ad0d8d882fa5712
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/rss_to_dynarex.xsl
CHANGED
@@ -5,53 +5,55 @@
|
|
5
5
|
|
6
6
|
xmlns:content = "http://purl.org/rss/1.0/modules/content/"
|
7
7
|
|
8
|
-
|
8
|
+
xmlns:feed="http://www.w3.org/2005/Atom"
|
9
9
|
|
10
|
-
|
10
|
+
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
11
11
|
|
12
|
-
|
12
|
+
xmlns:purl="http://purl.org/rss/1.0/"
|
13
13
|
|
14
|
-
|
14
|
+
xmlns:rss="http://purl.org/rss/1.0/"
|
15
15
|
|
16
|
-
|
16
|
+
xmlns:atom="http://purl.org/atom/ns#"
|
17
17
|
|
18
|
+
exclude-result-prefixes="xsl feed rdf purl dc atom">
|
18
19
|
|
19
20
|
|
20
|
-
<xsl:output
|
21
21
|
|
22
|
-
|
22
|
+
<xsl:output
|
23
23
|
|
24
|
-
|
24
|
+
method="xml"
|
25
25
|
|
26
|
-
|
26
|
+
indent="yes"
|
27
27
|
|
28
|
-
|
28
|
+
omit-xml-declaration="no"
|
29
29
|
|
30
|
-
|
30
|
+
encoding="UTF-8"
|
31
31
|
|
32
|
+
/>
|
32
33
|
|
33
34
|
|
34
35
|
|
35
36
|
|
36
|
-
<xsl:template match="/feed:feed | /rss/channel | /rdf:RDF">
|
37
37
|
|
38
|
-
|
38
|
+
<xsl:template match="/feed:feed | /rss/channel | /rdf:RDF | /atom:feed">
|
39
39
|
|
40
|
-
|
40
|
+
<xsl:element name="channel">
|
41
|
+
|
42
|
+
|
41
43
|
|
42
44
|
<xsl:element name="summary">
|
43
45
|
<xsl:element name="recordx_type">dynarex</xsl:element>
|
44
46
|
<xsl:element name="format_mask">[!link] [!title] [!date] [!description]</xsl:element>
|
45
47
|
<xsl:element name="schema">channel[recordx_type, format_mask, title, description, link]/item(link, title, date, description)</xsl:element>
|
46
48
|
<xsl:element name="title">
|
47
|
-
<xsl:value-of select="feed:title | purl:channel/purl:title | title"/>
|
49
|
+
<xsl:value-of select="feed:title | purl:channel/purl:title | atom:title | title"/>
|
48
50
|
</xsl:element>
|
49
51
|
<xsl:element name="description">
|
50
52
|
|
51
|
-
|
53
|
+
<xsl:value-of select="description"/>
|
52
54
|
</xsl:element>
|
53
55
|
<xsl:element name="link">
|
54
|
-
|
56
|
+
<xsl:value-of select="link | atom:link/@href"/>
|
55
57
|
</xsl:element>
|
56
58
|
|
57
59
|
</xsl:element>
|
@@ -60,7 +62,7 @@
|
|
60
62
|
|
61
63
|
<xsl:element name="records">
|
62
64
|
|
63
|
-
<xsl:apply-templates select="item | purl:item | feed:entry | rdf:RDF/rss:item" />
|
65
|
+
<xsl:apply-templates select="item | purl:item | feed:entry | rdf:RDF/rss:item | atom:entry | entry" />
|
64
66
|
|
65
67
|
</xsl:element>
|
66
68
|
</xsl:element>
|
@@ -71,7 +73,7 @@
|
|
71
73
|
|
72
74
|
|
73
75
|
|
74
|
-
<xsl:template match="item | purl:item | feed:entry | rdf:RDF/rss:item">
|
76
|
+
<xsl:template match="item | purl:item | feed:entry | rdf:RDF/rss:item | atom:entry | entry">
|
75
77
|
|
76
78
|
|
77
79
|
|
@@ -79,21 +81,21 @@
|
|
79
81
|
|
80
82
|
<xsl:element name="link">
|
81
83
|
|
82
|
-
|
84
|
+
<xsl:value-of disable-output-escaping="no" select="feed:link/@href | purl:link | atom:link/@href | link"/>
|
83
85
|
</xsl:element>
|
84
86
|
<xsl:element name="title">
|
85
87
|
|
86
|
-
|
88
|
+
<xsl:value-of disable-output-escaping="no" select="title | purl:title | feed:title | atom:title" />
|
87
89
|
|
88
90
|
</xsl:element>
|
89
91
|
|
90
92
|
<xsl:element name="date">
|
91
93
|
|
92
|
-
<xsl:value-of select="feed:date | purl:date | dc:date | pubDate"/>
|
94
|
+
<xsl:value-of select="feed:date | purl:date | dc:date | pubDate | atom:modified"/>
|
93
95
|
</xsl:element>
|
94
96
|
|
95
97
|
<xsl:element name="description">
|
96
|
-
<xsl:value-of disable-output-escaping="no" select="description | purl:description | feed:content"/>
|
98
|
+
<xsl:value-of disable-output-escaping="no" select="description | purl:description | feed:content | atom:summary"/>
|
97
99
|
</xsl:element>
|
98
100
|
</xsl:element>
|
99
101
|
|
@@ -101,4 +103,4 @@
|
|
101
103
|
</xsl:template>
|
102
104
|
|
103
105
|
|
104
|
-
</xsl:stylesheet>
|
106
|
+
</xsl:stylesheet>
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rss_to_dynarex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
4Wo4x16sHbZMfz/VdmufsHZCPpy58YR2UIMsrLfXiMmt3uV77VZcvc0LT9ggyMm2
|
32
32
|
DsOgLeb1eghnBw==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2013-12-
|
34
|
+
date: 2013-12-11 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: nokogiri
|
metadata.gz.sig
CHANGED
Binary file
|