rss_to_dynarex 0.1.4 → 0.1.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 97f713ed097690d6302f8446b5babee1f4575a6d
4
- data.tar.gz: d0243d65ceb4d9604aa0978aebbd2f9f575d0d2d
3
+ metadata.gz: 5c55cd2aa589c8e72ebe54cf1fcc77470f4e931b
4
+ data.tar.gz: f71358dcb5d9909a5d2b6ed3a94b9f29a2b343b6
5
5
  SHA512:
6
- metadata.gz: 0f5ed331e28b7be8db51ba69f87633dd87646a10d0e623d443423bf4e99b9db22a582082042996cb242b76a8eb826c11ea40065fcb294dc06a1a4764f952151f
7
- data.tar.gz: 347388ed37536989637d510df8c38884f0a4d8baf77a3641e8eb6532692e1eef062c13cd9e4ba2242f808c1d267abcc3e83c781ce8b44a41caef8a4cc3cfad13
6
+ metadata.gz: 6c53c09e25efa7a92fe13d80e88cc3589360c857be7b293cc24ed8d6a09705aa163e75c1ac47d90a35389a31730b1754ee6039d3317f65da316d77821dd69187
7
+ data.tar.gz: 35085958ef352f4c353835cfe7b67964827fb945d38226817f987d40ecd2a9c7c37dc7a70b476a559236ddb21f747706fd5e7546329240765a0ce137e0c9a66c
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- uLG��J/�Kp#n��P��{
2
- ��L^�ސ��uV�ޒ:)����F]�W*
1
+ �yar���� �ı�vEv���ҧ��:ci6+#"E]���-S������u8* *ߍ!ļ���~5���FF���J�܁Ѝy�SI���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
@@ -1,2 +1,4 @@
1
- ! b���}q|��{cxOz
2
- k��ЏB��&)����E�Nѣ-��~ )*�s�@�3��H_QYK�s4���8�YZD����;�6�(��
1
+ m͇�&�q��FEk/��X�f��8浱 ����f��3�����65���dI$�I��
2
+ V�.J��4'hj�#�� f)
3
+ ~��� *[�̮ _�"�d�)hgOа\�AV��0�D���Y
4
+ 1aO4�`�f"�ЇPejꚷ��/��I��DgE�Ke����O�8d��F�"�C� ��<0�0Uƅx��^ap
@@ -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
- @to_dynarex = Dynarex.new xslt.transform(Nokogiri::XML(doc.to_s)).to_s
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
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-07 00:00:00.000000000 Z
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
- ��NV�:���Bq��R׏��_��<�6Z�%by$ ~&ɓ�ꔹ�5��N�����e���7e��|+w.C?���
1
+ \�$&7��xkH�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?Ǻsc��R}c�l� *��4\I�W�>��4���[��QѤ��~(I_f�%F�,