rss_creator 0.4.1 → 0.4.2

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
  SHA256:
3
- metadata.gz: be68caea693cc6a981a77d424b4b075e215552a81d60b0e877bd15f5d8154433
4
- data.tar.gz: 8c85c7865c96b934e40fabf8f564bcd22656b02c3e10696732d85c245a97ce5d
3
+ metadata.gz: 964177968b7e65dc668fb908dc49dcb2b22a4832938d97e953b2e14134ac063b
4
+ data.tar.gz: 6f4fc2255ebb1f6aeddb9960ea9f374fe3d78b681c84daeb775e4f88164ac832
5
5
  SHA512:
6
- metadata.gz: 922a6a2b33d8e322d10a8e3bc622576b9019a9a67eccb1821aca512c4a9c47aaf756f2aa6938ba295fb1d8b6d1504fa36774dfa7121ab00377ca8c8122d0de31
7
- data.tar.gz: e53397545a8c0953dd88d6e675df28c94683802136e6a8d00dbd1e92b4f1b2143a12c536b666062495810d7604f4a33f422ecffc47e7630e4c00c81a36591248
6
+ metadata.gz: ea214c5015341d577e860471405e51dc367809fbf2aa2c93e692f8c39510f015dfa07656b0b9b57890f7ed2cf82bbda56204074f323cde01838fc1a612889489
7
+ data.tar.gz: a30c5a086500b4a9c12915c7e4b719f0489f48853604cf0474c601ddcc8f3e192d2ea364c607c397891f77a555ab857f8e1a6f51e87b958985a6ef274cbaa14a
checksums.yaml.gz.sig CHANGED
@@ -1,3 +1,3 @@
1
- ��@�Q��O F
2
- �y��+آ�U8V��%?Y��0�r����<�����1b  ��" M\�_��p��-j��k�\��_i��O�Nb)�4yT��+��o:<��$
3
- Z���rdc67���~S8l��yNoy;`g�݅m���H���R������`m��A4��'f_��=[���*���+��ɏ�&0�����Cڻ�L�š5[��q7EgeX `,HP��B����5Rh�%�pkb9 ��������ga�UG�3Iau��䞣�����+��Q58�@3ڪ�� �`��f|r39Q���=��J�ce�� sR=:���$f3'�h���-&^x龰���R�
1
+ v3�H
2
+ 0E�皑�(?+�`�Ev͹O���4TQ�&�ȋAp�)rSy��b����~y&K�vZ��
3
+ 3���[��tZ�\ZQ2V�PfE���q.�l2��� VKs�wo��,�P���\I3Qv0�O�' �SPS䎴5"���&/�Ҍe��q��{g -;���PQEě�ޮLH)[eiO�ߘ��-�F��)B1
data.tar.gz.sig CHANGED
@@ -1,2 +1,3 @@
1
- ��!|(T����\a&�^����]j��#L6?���箭�<:jA�%�xJ��B�'�Aex�;�5;�)����9�(�ぉ���A�t��䀹pzpS�WW�G�X�>�{:v���W�#,-�D�&���[�"� �ދ�,��u<be��8�E����� 鰪o�FR��g�-C�"d�j�}�S��ø�
2
- ��!8к
1
+ ��o�fE�������;�K�L���ጭI��HH9�C6��&�>�]�̉���H{E�нh�|0W W9��'�1u�4�ėgc(��%��E.��c#�v
2
+ ��7Y��m���Ԯ1��3ڧ���s�F���2��ϭ�I��%�a���H�t�A��^e鬩G��D���'��k��4DOb��.b�MJ���^ �L���j��C�&U�b_�3m�@y@���lyL!r���y����Z#�y)O3�x�.��;�d�{P09���Ͳs��?�,bH�������w �U� w��3i5�ia��X_�VW�;��H
3
+ &������z'�<����V5���i����B�g;=H�G0��(w/y��^4�
data/lib/rss_creator.rb CHANGED
@@ -23,6 +23,7 @@ class RSScreator
23
23
 
24
24
  @dx = Dynarex.new dxfilepath
25
25
  @title, @description, @link = @dx.title, @dx.description, @dx.link
26
+ @image_url = @dx.image
26
27
 
27
28
  else
28
29
  if filepath and File.exists? filepath
@@ -31,6 +32,8 @@ class RSScreator
31
32
  @dx = rtd.to_dynarex
32
33
 
33
34
  @title, @description, @link = @dx.title, @dx.description, @dx.link
35
+ @image_url = @dx.image if @dx.image and @dx.image.length > 1
36
+ @image_target_url = @link if @link and @link.length > 1
34
37
 
35
38
  else
36
39
 
@@ -135,7 +138,7 @@ class RSScreator
135
138
  end
136
139
 
137
140
  @dx.title, @dx.description, @dx.link = @title, @description, @link || ''
138
- @dx.image = @image_url
141
+ @dx.image = @image_url if @dx.respond_to? :image
139
142
 
140
143
  @rss = if @xslt then
141
144
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rss_creator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file