rss_to_dynarex 0.1.2 → 0.1.3
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.tar.gz.sig +0 -0
- data/lib/rss_to_dynarex.rb +3 -3
- metadata +1 -1
- 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: e4b8ce5b89583b5b1fbc878ac926bfd164b5a6f5
|
4
|
+
data.tar.gz: d169fd7edf8d201831ca914a50789097ff3c24df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d41f0841ebbdfa7534f74678c956e5ba138bc8c3721867ebc4019a7db1de2475e37302a3cf4ad18da2c7dd71b1aa95bd9c469109a47830eefc44f78a58ed9a83
|
7
|
+
data.tar.gz: d2953ee83b00f80d4ebdfc616faef5dd3e27f60f30cdb8d5407a9657575d368536eb9a7ac59d4978590c7ab0db19d037f3b6d55128f048f52c05dcd7f824bf07
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rss_to_dynarex.rb
CHANGED
@@ -15,15 +15,15 @@ class RSStoDynarex
|
|
15
15
|
xsl_buffer = File.read(lib + '/rss_to_dynarex.xsl')
|
16
16
|
|
17
17
|
xslt = Nokogiri::XSLT(xsl_buffer)
|
18
|
-
doc = open(url, 'UserAgent' => 'RSStoDynarex')
|
19
|
-
@to_dynarex = xslt.transform(Nokogiri::XML(doc.to_s))
|
18
|
+
doc = open(url, 'UserAgent' => 'RSStoDynarex'){|x| x.read }
|
19
|
+
@to_dynarex = Dynarex.new xslt.transform(Nokogiri::XML(doc.to_s)).to_s
|
20
20
|
end
|
21
21
|
|
22
22
|
end
|
23
23
|
|
24
24
|
if __FILE__ == $0 then
|
25
25
|
|
26
|
-
rtd = RSStoDynarex.new 'http://stallman.org/rss.xml'
|
26
|
+
rtd = RSStoDynarex.new 'http://stallman.org/rss/rss.xml'
|
27
27
|
dynarex = rtd.to_dynarex
|
28
28
|
dynarex.save 'rms.xml'
|
29
29
|
end
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|