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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +3 -2
- data/lib/rss_creator.rb +7 -2
- metadata +2 -2
- metadata.gz.sig +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 116a72831aceb4b3cb3f9d569473f0deebb96f38
|
|
4
|
+
data.tar.gz: cd491bd362d45532f52d7a23863733e137a00d3c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cf9075222540f487c4eaa4a2b41d165b32c0f4699788c9b54c9dcbd16f2f2715e08b88ed0ebeb79c95fc90d5836f75575127f0be6d16d7aaf08d5830a4418c96
|
|
7
|
+
data.tar.gz: b40b0756ffaef70b7ab6eb689020dd65062f390bea13eae3509b808ebe1dc1a9903ba870774d78b38dbab72e0ad5c2af828ef587449a5a2095047302b2782f4d
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
�
|
|
1
|
+
�h~��n%A\w�y�v�t0��NL]��db��w��x�R.�A`w���hc�RI�K�~����m)(#���ot�r�z��Nt�L�e��+�)0���'B���_ ��d����3p����L�'��)��6��9=�q�
|
|
2
|
+
If.�(�oV
|
|
3
|
+
�@63)��&���*�[V�t"����6@��'d�{��h�O�Rc�������X�K��=��P
|
data/lib/rss_creator.rb
CHANGED
|
@@ -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.
|
|
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-
|
|
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
|
-
|
|
2
|
-
|
|
1
|
+
�
|
|
2
|
+
\h>]����c5��v*w���H��H�5LJ����W��:O�~Y-t��8�,�TMr߾��<�����e����rQ����g(����F:�����J�����J�r�X ��M��,����$�0�v�|;�O+U?���j��8�?���"�Pʈ
|