rss_creator 0.2.7 → 0.2.8

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: 80156d2626f079b2febfefc17f9aa11b5175e724
4
- data.tar.gz: b633d4fe9d184f6f62f6bbfeb03a5d552688a936
3
+ metadata.gz: 116a72831aceb4b3cb3f9d569473f0deebb96f38
4
+ data.tar.gz: cd491bd362d45532f52d7a23863733e137a00d3c
5
5
  SHA512:
6
- metadata.gz: 3049b1dc1c416e40dd4268fd66432d67a0b6721a07d2abcd7181ba8c2e8aa2a60019e54cadac0729c563ac92ebce692167c7f8af7a30edb7f8a5374dfe3145c0
7
- data.tar.gz: 8dea9d59abbccf187b3d11a7442b7dab40be765272c6915aef9b787a3ebd318d262c47a9b36b3c853cabcf51b6109d69afb701a43ece12e8a00c66c644027958
6
+ metadata.gz: cf9075222540f487c4eaa4a2b41d165b32c0f4699788c9b54c9dcbd16f2f2715e08b88ed0ebeb79c95fc90d5836f75575127f0be6d16d7aaf08d5830a4418c96
7
+ data.tar.gz: b40b0756ffaef70b7ab6eb689020dd65062f390bea13eae3509b808ebe1dc1a9903ba870774d78b38dbab72e0ad5c2af828ef587449a5a2095047302b2782f4d
Binary file
data.tar.gz.sig CHANGED
@@ -1,2 +1,3 @@
1
- S<�3j�+�PLY8FU9H��_79Ŀ=_�Ӧ�l�����?��!?Ucm������,� 諏dQ.F:��E��i�lUR�Dp8Rk�ԄQUn lk'��W����UFo��"ZIDN��5���<��TW�.���fX�)���Q6<T�9~��:��Sz]�s����3���Wp>�p[cZC�]C���=���0�����+v�$�<���%�� S����eOe|
2
- |��r�ک�<@}# W\�=��{����w�@<oi�
1
+ �h~��n%A\wyv�t0��NL]��db��w��x�R.�A`w���hcRI�K�~����m)(#���otrz��Nt�Le��+�)0���'B���_ ��d����3p����L�'��)��6��9=�q
2
+ If.�(oV
3
+ �@63)��&���*�[V�t"����6@��'d�{��h�O�Rc�������X�K��=��P
@@ -10,17 +10,21 @@ class RSScreator
10
10
 
11
11
  attr_accessor :title, :description, :link, :limit, :xslt
12
12
 
13
- def initialize(filepath=nil)
13
+ def initialize(filepath=nil, dx_xslt: nil)
14
14
 
15
15
  @filepath = filepath
16
16
 
17
17
  if filepath and File.exists? filepath then
18
18
 
19
19
  rtd = RSStoDynarex.new filepath
20
- @dx = rtd.to_dynarex
20
+ @dx = rtd.to_dynarex
21
+
22
+ @dx.default_key = 'uid'
23
+ @dx.xslt = dx_xslt if dx_xslt
21
24
  @title = @dx.title
22
25
  @description = @dx.description
23
26
  @link = @dx.link
27
+ @dx.save File.join(File.dirname(filepath), 'raw.xml')
24
28
 
25
29
  else
26
30
  @dx = Dynarex.new 'channel[title, description, link]/' + \
@@ -54,6 +58,7 @@ class RSScreator
54
58
 
55
59
  filepath = new_filepath ? new_filepath : @filepath
56
60
  File.write filepath, print_rss
61
+ @dx.save File.join(File.dirname(filepath), 'feed.xml')
57
62
  end
58
63
 
59
64
  def description=(val)
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.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  9HFHvRHJvHbKI5qIF3G+KkFUx2ZXkSCaRP6NDkkPo0IY6vJ34w4pDwdSH4jHpld9
32
32
  4pCsHtS+NYWg/g==
33
33
  -----END CERTIFICATE-----
34
- date: 2015-10-27 00:00:00.000000000 Z
34
+ date: 2015-10-29 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rss_to_dynarex
metadata.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- �:$%�J�� ��&����fJEN$��Vq���]0�<�·p�@�duj�¤4Uq�~O3Ë;��#}����hr��r����B��`_8wz S���F�pUﬕ|1���+���"���&("cIx!x�W^�x�~ٕ4}�wI&����ؕ�"�ļ�G���:�R��R��BՉ"C"s#*�V�^x�7�Sv��
2
- ��իe��m��Hv M�j�8 'h��� ����Å���prr Qy���s3����
1
+
2
+ \h>]����c5��v*w���H��H�5LJ����W��:O�~Y-t��8�,�TMr߾��<�����e����rQ����g(����F:�����J�����J�r�X ��M��,����$�0v�|;�O+U?���͸j��8�?���"�Pʈ