rss_to_dynarex 0.1.4 → 0.1.5
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 +2 -2
- data.tar.gz.sig +4 -2
- data/lib/rss_to_dynarex.rb +7 -2
- metadata +2 -2
- metadata.gz.sig +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c55cd2aa589c8e72ebe54cf1fcc77470f4e931b
|
4
|
+
data.tar.gz: f71358dcb5d9909a5d2b6ed3a94b9f29a2b343b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c53c09e25efa7a92fe13d80e88cc3589360c857be7b293cc24ed8d6a09705aa163e75c1ac47d90a35389a31730b1754ee6039d3317f65da316d77821dd69187
|
7
|
+
data.tar.gz: 35085958ef352f4c353835cfe7b67964827fb945d38226817f987d40ecd2a9c7c37dc7a70b476a559236ddb21f747706fd5e7546329240765a0ce137e0c9a66c
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
�yar���� �ı�vEv���ҧ��:ci�6+#"E]���-S������u8* *ߍ!ļ���~5���FF���J�܁Ѝy�S�I���y?0eP�2A������Z��j�ƪ�9����F������� e��\k&ø�����P��~�9�����o�$���1�C�D�.ZP�
|
2
|
+
����V9�]�gj��]ɏn�ubc��k��Q��J.v�>��Dž)�0ߩ��~u:ʉ̠ML��!S��8AS�qt
|
data.tar.gz.sig
CHANGED
data/lib/rss_to_dynarex.rb
CHANGED
@@ -13,10 +13,15 @@ class RSStoDynarex
|
|
13
13
|
|
14
14
|
lib = File.dirname(__FILE__)
|
15
15
|
xsl_buffer = File.read(lib + '/rss_to_dynarex.xsl')
|
16
|
+
#xsl_buffer = File.read('rss_to_dynarex.xsl')
|
16
17
|
|
17
18
|
xslt = Nokogiri::XSLT(xsl_buffer)
|
18
19
|
doc = open(url, 'UserAgent' => 'RSStoDynarex'){|x| x.read }
|
19
|
-
|
20
|
+
doc.encode!('UTF-8', 'binary', invalid: :replace,
|
21
|
+
undef: :replace, replace: '')
|
22
|
+
xml_buffer = xslt.transform(Nokogiri::XML(doc.to_s)).to_s
|
23
|
+
|
24
|
+
@to_dynarex = Dynarex.new xml_buffer
|
20
25
|
end
|
21
26
|
|
22
27
|
end
|
@@ -26,4 +31,4 @@ if __FILE__ == $0 then
|
|
26
31
|
rtd = RSStoDynarex.new 'http://stallman.org/rss/rss.xml'
|
27
32
|
dynarex = rtd.to_dynarex
|
28
33
|
dynarex.save 'rms.xml'
|
29
|
-
end
|
34
|
+
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.5
|
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-10 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: nokogiri
|
metadata.gz.sig
CHANGED
@@ -1 +1 @@
|
|
1
|
-
��
|
1
|
+
\�$&7��xk�H�Ro(�ɠ�Qk=6��[���"�١�黶�틹g%f�[J��Bh���6bi-���FMT����Iz>;���_��E,|�ilG�S��VD�����?t�q�CSa���<��ooKh���+1�;�*kKtf0��{s���=o~���� ����n���::|��l�@'*�'��f~����;P}9?Ǻs�c��R}c�l� *��4\I�W�>��4���[��QѤ��~(I_f�%F�,
|