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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd932fccec28e8b74d755006f6a6fdc11396676f
4
- data.tar.gz: 546e65d2f4ac4e2c2bd10d59853dbf44e287f85a
3
+ metadata.gz: e4b8ce5b89583b5b1fbc878ac926bfd164b5a6f5
4
+ data.tar.gz: d169fd7edf8d201831ca914a50789097ff3c24df
5
5
  SHA512:
6
- metadata.gz: 0f3974af7a1d30474b81dac81e5de632ebff123d6b927eb041ba8358ae643d307ca80327e2854473bde436a954d73461bda33d76ee07d6e4ae3dc126da1ee044
7
- data.tar.gz: de6e059fa0683b59fd331aaa8297bc39a253a243a40f83474f71cedb7fd66df80316a34d14bc547ed6800ff019d48c717a77fd901af16b001f5ed41f5d62ac75
6
+ metadata.gz: d41f0841ebbdfa7534f74678c956e5ba138bc8c3721867ebc4019a7db1de2475e37302a3cf4ad18da2c7dd71b1aa95bd9c469109a47830eefc44f78a58ed9a83
7
+ data.tar.gz: d2953ee83b00f80d4ebdfc616faef5dd3e27f60f30cdb8d5407a9657575d368536eb9a7ac59d4978590c7ab0db19d037f3b6d55128f048f52c05dcd7f824bf07
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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
@@ -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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file