rss_creator 0.3.5 → 0.3.6
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 +0 -0
- data.tar.gz.sig +0 -0
- data/lib/rss_creator.rb +5 -4
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6073b8b188e445255a97f3491d8cc0b0c27ea8b
|
4
|
+
data.tar.gz: 9c472c765a716dcb5a11a7ce6c57edceeeb61f8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0297eb3191d85a419b451e4fe030c83b66ff899f721547165a740d6514395c46d9e9248a54d011e535d461b0b3da58c49e241e047757b9e0f8f1daf871baff9c'
|
7
|
+
data.tar.gz: 2fc7448dd22e8cd74ea5c30935ef47be87e9b5a69bf4cb48740ff3db214653e20422cf2d41a4e43dc606c1ba5561e6e11d480d503d9c28229ee1c8be83aeb95b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rss_creator.rb
CHANGED
@@ -10,7 +10,7 @@ class RSScreator
|
|
10
10
|
|
11
11
|
attr_accessor :title, :description, :link, :limit, :xslt
|
12
12
|
|
13
|
-
def initialize(filepath='
|
13
|
+
def initialize(filepath='rss.xml', dx_xslt: nil, dx_filename: 'feed.xml')
|
14
14
|
|
15
15
|
|
16
16
|
@filepath = filepath
|
@@ -18,15 +18,16 @@ class RSScreator
|
|
18
18
|
dxfilepath = File.join(File.dirname(filepath), dx_filename)
|
19
19
|
|
20
20
|
if filepath and File.exists? dxfilepath then
|
21
|
+
|
21
22
|
@dx = Dynarex.new dxfilepath
|
23
|
+
@title, @description, @link = @dx.title, @dx.description, @dx.link
|
24
|
+
|
22
25
|
elsif filepath and File.exists? filepath
|
23
26
|
|
24
27
|
rtd = RSStoDynarex.new filepath
|
25
28
|
@dx = rtd.to_dynarex
|
26
29
|
|
27
|
-
@title = @dx.title
|
28
|
-
@description = @dx.description
|
29
|
-
@link = @dx.link
|
30
|
+
@title, @description, @link = @dx.title, @dx.description, @dx.link
|
30
31
|
|
31
32
|
else
|
32
33
|
@dx = Dynarex.new 'channel[title, description, link]/' + \
|
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.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
hXSgrPL6ACV7rtc2iVhUYecvY3zMO7BYslWTwMttsJoWwM3Y1/zMxqGA6hyM1FiZ
|
32
32
|
NhhuO3PIc1VSzw==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2016-11-
|
34
|
+
date: 2016-11-15 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rss_to_dynarex
|
metadata.gz.sig
CHANGED
Binary file
|