rss_to_dynarex 0.1.6 → 0.1.7
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 +5 -4
- metadata +35 -23
- 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: e8ad3add51f28de909a6accad224121c5a6024d5
|
4
|
+
data.tar.gz: 4302d0b6c7c448c0d1e6e062444b2ab7c07ba883
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9740d492d42213e232ba9e1c9ba00522d447cfdc102437fc32907da918b754f1603cb966eb4ee10e0564997a5e1a0642e18ddaccf2213360c8db2311e6aa272e
|
7
|
+
data.tar.gz: f27b953899aa08724052740560abe742b727bb694fd86d5c364d950368b7b81e945b72ffd772a01c8768f8864c0125199e5e0b1742c03ed18bb74ca7bd7fbbe2
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rss_to_dynarex.rb
CHANGED
@@ -16,11 +16,12 @@ class RSStoDynarex
|
|
16
16
|
#xsl_buffer = File.read('rss_to_dynarex.xsl')
|
17
17
|
|
18
18
|
xslt = Nokogiri::XSLT(xsl_buffer)
|
19
|
-
doc = open(url, 'UserAgent' => 'RSStoDynarex'){|x| x.read }
|
19
|
+
#doc = open(url, 'UserAgent' => 'RSStoDynarex'){|x| x.read }
|
20
|
+
doc = RXFHelper.read(url).first
|
20
21
|
doc.encode!('UTF-8', 'binary', invalid: :replace,
|
21
22
|
undef: :replace, replace: '')
|
22
23
|
xml_buffer = xslt.transform(Nokogiri::XML(doc.to_s)).to_s
|
23
|
-
|
24
|
+
|
24
25
|
@to_dynarex = Dynarex.new xml_buffer
|
25
26
|
end
|
26
27
|
|
@@ -28,7 +29,7 @@ end
|
|
28
29
|
|
29
30
|
if __FILE__ == $0 then
|
30
31
|
|
31
|
-
rtd = RSStoDynarex.new '
|
32
|
+
rtd = RSStoDynarex.new 'https://stallman.org/rss/rss.xml'
|
32
33
|
dynarex = rtd.to_dynarex
|
33
34
|
dynarex.save 'rms.xml'
|
34
|
-
end
|
35
|
+
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.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -12,55 +12,67 @@ cert_chain:
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
|
14
14
|
YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
|
15
|
-
|
15
|
+
8ixkARkWAmV1MB4XDTE1MTAyNDIzMjYwN1oXDTE2MTAyMzIzMjYwN1owSDESMBAG
|
16
16
|
A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
|
17
17
|
EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
18
|
+
ggEBALLwLQfedE1m9CU8+nFt1dJeRJCh1tnOM/8/gQewBsXHYjITNfdBvnoN/yh2
|
19
|
+
jHdXw77OrPOl4mEfDjcCHQs02FZBGTKbhBLXNkvHenO9kcCIMKK9/EejJoPeekcO
|
20
|
+
wniCDWjoDRYyeB3cYLXlld0/l380sseoEijXj7FrqePgy2HRZAp1JoESGeHbBbzE
|
21
|
+
Rkh72qvNS1wD6gjf/3MdwJgk9fazO+Am935DCqk9ONXX13e4Vk7b7j4TyKWImCiP
|
22
|
+
86wnGnIFoJaZXswNQJz7f2BcxyOS2vplKSkpzbRe841NlIrTIC81O1YCZH3GZlYM
|
23
|
+
Nqsj931ETGS3T0YB94HOqJiF5mMCAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
|
24
|
+
DwQEAwIEsDAdBgNVHQ4EFgQUJ6FF5ARarBIjE280Nci3Njq1+vowJgYDVR0RBB8w
|
25
25
|
HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1h
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
26
|
+
c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEApMT3/v4R
|
27
|
+
g1yeN2c+hNAhpwCR5Tc0CecPD2N0XNMr1BpVEtGLAmnYrmdKX75UlKsmlkBkB/6Q
|
28
|
+
Ur2Td0Ij1C6pOhJN6idGfY3jVfoEXCmadpfirN/insXYWHGunNS586J9PBxC6S9R
|
29
|
+
LtuqBN3BunzNYX33Xj3kDnak0GSBMiOy0xC3xekOPG2vXmaTZc2+o7TPvye3IGfW
|
30
|
+
pb3PVYzG833CnCysySVVatsfF6JnnGwt4CxVlNH/Ds7DyEOxpiXptkIMiCm2R5z5
|
31
|
+
ALVemLC5wL8HApsmAwaEN+Kn9h1u6/76PePR1BerFPK62fF3WFmIAGwBzEKXCIsC
|
32
|
+
Fs0YEOAhROwOlQ==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
34
|
+
date: 2015-10-24 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: nokogiri
|
38
38
|
requirement: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '1.6'
|
40
43
|
- - ">="
|
41
44
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
45
|
+
version: 1.6.2.1
|
43
46
|
type: :runtime
|
44
47
|
prerelease: false
|
45
48
|
version_requirements: !ruby/object:Gem::Requirement
|
46
49
|
requirements:
|
50
|
+
- - "~>"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '1.6'
|
47
53
|
- - ">="
|
48
54
|
- !ruby/object:Gem::Version
|
49
|
-
version:
|
55
|
+
version: 1.6.2.1
|
50
56
|
- !ruby/object:Gem::Dependency
|
51
57
|
name: dynarex
|
52
58
|
requirement: !ruby/object:Gem::Requirement
|
53
59
|
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '1.2'
|
54
63
|
- - ">="
|
55
64
|
- !ruby/object:Gem::Version
|
56
|
-
version:
|
65
|
+
version: 1.2.90
|
57
66
|
type: :runtime
|
58
67
|
prerelease: false
|
59
68
|
version_requirements: !ruby/object:Gem::Requirement
|
60
69
|
requirements:
|
70
|
+
- - "~>"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '1.2'
|
61
73
|
- - ">="
|
62
74
|
- !ruby/object:Gem::Version
|
63
|
-
version:
|
75
|
+
version: 1.2.90
|
64
76
|
description:
|
65
77
|
email: james@r0bertson.co.uk
|
66
78
|
executables: []
|
@@ -81,7 +93,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
81
93
|
requirements:
|
82
94
|
- - ">="
|
83
95
|
- !ruby/object:Gem::Version
|
84
|
-
version:
|
96
|
+
version: 2.1.2
|
85
97
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
98
|
requirements:
|
87
99
|
- - ">="
|
@@ -89,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
101
|
version: '0'
|
90
102
|
requirements: []
|
91
103
|
rubyforge_project:
|
92
|
-
rubygems_version: 2.
|
104
|
+
rubygems_version: 2.4.8
|
93
105
|
signing_key:
|
94
106
|
specification_version: 4
|
95
107
|
summary: rss_to_dynarex
|
metadata.gz.sig
CHANGED
Binary file
|