rss_to_dynarex 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 4f2ca67f98c31e5f3ace1b8b7f37ef4ea095ee15
4
+ data.tar.gz: 76b7adfb603351ef8907fee307240fd1853ec8b9
5
+ SHA512:
6
+ metadata.gz: f77f03879a424b4fe3ccacecab98cf99b17b0e1a19945d7731cdae9c9627c83ccd02d1efd98958909f58a1a8c02ffa07013e164e57190b2a9444e9e07e16a74d
7
+ data.tar.gz: 9c8ae5c7234282ea72acf23dbfe9bebf68327fc4e6cb64106f32374754cb23170b7dfd8967f09d3a55ba70932aae752a9483b0471b49a8e1d151345abedd8bb3
@@ -0,0 +1,5 @@
1
+ �_VY#��j�L�0���{����Rp']ag�ccƓ7wy�b
2
+ ��Q�l��PK\
3
+ ��+,ѿ�t�{��Eg�n�]|�dp�^Hn�� F栕��AVQj.�X:?�ю�{?��Mȿ;�2!>
4
+ �k������*�X���o�b*E
5
+ p��8ē9��cRK���$�+���ͻ��Lk�i��[yO����`�<�MG�<�f�Z:)h�=C��Z��B_X��+�
Binary file
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # file: rss_to_dynarex.rb
4
+
5
+ require 'dynarex'
6
+ require 'nokogiri'
7
+
8
+ class RSStoDynarex
9
+
10
+ attr_reader :to_dynarex
11
+
12
+ def initialize(url)
13
+
14
+ lib = File.dirname(__FILE__)
15
+ xsl_buffer = File.read(lib + '/rss_to_dynarex.xsl')
16
+
17
+ xslt = Nokogiri::XSLT(xsl_buffer)
18
+ doc = open(url, 'UserAgent' => 'RSStoDynarex')
19
+ @to_dynarex = xslt.transform(Nokogiri::XML(doc.to_s))
20
+ end
21
+
22
+ end
23
+
24
+ if __FILE__ == $0 then
25
+
26
+ rtd = RSStoDynarex.new 'http://stallman.org/rss.xml'
27
+ dynarex = rtd.to_dynarex
28
+ dynarex.save 'rms.xml'
29
+ end
metadata ADDED
@@ -0,0 +1,95 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rss_to_dynarex
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - James Robertson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
14
+ YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
15
+ 8ixkARkWAmV1MB4XDTEzMTIwMjE5MDExN1oXDTE0MTIwMjE5MDExN1owSDESMBAG
16
+ A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
+ EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
18
+ ggEBAMr8Ir1dqN4hD/gNOxT0qouRa2BbgjavrHysrt54myIqEt+3wHCYj2PGEAcg
19
+ npJDkQt2z92rAJ5fTOonPVubehMtozItmgc2HYJTkE0+sFsbKwolBswqjUkxlGYp
20
+ eIeGg88bwHoPHb51fxYl2BbVJ091LRzt0ijrfbytO1HGIUnl31KtFCazvWe05IUH
21
+ 0dK36eGOupKDQiZgKh+JsQUnkefCs4I11ekfBSDn+xuZoJHbhVK0HuA6jPjoFsvq
22
+ 2wITf29EQ/kcbggF8dnAph6JLQf7kw4gPPDSOuxUFz+dsq2S+e1ErTZH1rvDViX9
23
+ YALvZUahOmAaUZm0CRTgaoHGWDMCAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
24
+ DwQEAwIEsDAdBgNVHQ4EFgQUphWWK+3P1GWFKFEuIx+KoVBZxSIwJgYDVR0RBB8w
25
+ HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1h
26
+ c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAM+tsKCNO
27
+ pumBlqCAEH8z5QbL3L6m/dYfUhxMiDN45m12d0mrhivm3jIfPGnSKQatgu6e18Hi
28
+ ZVzA903Bkq7VOytgfL7z+h+0GKjU1ZLptuCo7WU7iOVdyDDPBIbB37ACvJwg1SFP
29
+ MqqX2g8KXtzZ3hI9uve2Re9Gpm3ip5zhxxydt1diHhEJUZKIsBZzRCASktNX7gAa
30
+ u0ZO45wzqpwizl1l+1yBn42LwFEz5qhzPrDvIa/QtgTFFe2NQnIyKQHvxbFxJ7is
31
+ 4Wo4x16sHbZMfz/VdmufsHZCPpy58YR2UIMsrLfXiMmt3uV77VZcvc0LT9ggyMm2
32
+ DsOgLeb1eghnBw==
33
+ -----END CERTIFICATE-----
34
+ date: 2013-12-02 00:00:00.000000000 Z
35
+ dependencies:
36
+ - !ruby/object:Gem::Dependency
37
+ name: nokogiri
38
+ requirement: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
50
+ - !ruby/object:Gem::Dependency
51
+ name: dynarex
52
+ requirement: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
57
+ type: :runtime
58
+ prerelease: false
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ description:
65
+ email: james@r0bertson.co.uk
66
+ executables: []
67
+ extensions: []
68
+ extra_rdoc_files: []
69
+ files:
70
+ - lib/rss_to_dynarex.rb
71
+ homepage: https://github.com/jrobertson/rss_to_dynarex
72
+ licenses:
73
+ - MIT
74
+ metadata: {}
75
+ post_install_message:
76
+ rdoc_options: []
77
+ require_paths:
78
+ - lib
79
+ required_ruby_version: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ required_rubygems_version: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ requirements: []
90
+ rubyforge_project:
91
+ rubygems_version: 2.0.0.rc.2
92
+ signing_key:
93
+ specification_version: 4
94
+ summary: rss_to_dynarex
95
+ test_files: []
@@ -0,0 +1,2 @@
1
+ ��
2
+ �p��G*O+%�V,_ܦR�s����a���ZS{'L?1~�ɯ('�(Ȱ�@^$;�)��2|5=ͺB��D�����s