rss_creator 0.3.0 → 0.3.1
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/lib/rss_creator.rb +4 -3
- data.tar.gz.sig +0 -0
- metadata +22 -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: 37fb5327c0a5854cba06872fb9d073b7dc9346de
|
4
|
+
data.tar.gz: d2483ab57312884ce428be9c5663b957d968ded5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 977ea5bc4d8b8fb4b1dda2372498f56fedcb93ba309b2f62ecf0659f38082c6122db42290cde1b8f7b4fceb68b8c4e6ccb55801021c63d081e362f783137a4a9
|
7
|
+
data.tar.gz: 7dc22e09ed1108ad331385d5914717033b48e2b245d17cb0bff1fc4ca5b673750e097023bc007c45d7f398fa9f926f84fc21237b96dec0664baf5730563cc3a1
|
checksums.yaml.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=nil, dx_xslt: nil)
|
13
|
+
def initialize(filepath=nil, dx_xslt: nil, dx_filename: 'feed.xml')
|
14
14
|
|
15
15
|
@filepath = filepath
|
16
16
|
|
@@ -36,7 +36,8 @@ class RSScreator
|
|
36
36
|
'link:link,pubDate:date)'
|
37
37
|
# maxium number of items saved in the RSS feed
|
38
38
|
@dx.limit = @limit = 10
|
39
|
-
@dirty = true
|
39
|
+
@dirty = true
|
40
|
+
@dxfilename = dx_filename
|
40
41
|
|
41
42
|
end
|
42
43
|
|
@@ -57,7 +58,7 @@ class RSScreator
|
|
57
58
|
|
58
59
|
filepath = new_filepath ? new_filepath : @filepath
|
59
60
|
File.write filepath, print_rss
|
60
|
-
@dx.save File.join(File.dirname(filepath),
|
61
|
+
@dx.save File.join(File.dirname(filepath), @dxfilename)
|
61
62
|
end
|
62
63
|
|
63
64
|
def description=(val)
|
data.tar.gz.sig
CHANGED
Binary file
|
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.1
|
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-
|
34
|
+
date: 2015-11-14 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rss_to_dynarex
|
@@ -53,6 +53,26 @@ dependencies:
|
|
53
53
|
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: 0.1.7
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: rss_sliml
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0.1'
|
63
|
+
- - ">="
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: 0.1.0
|
66
|
+
type: :runtime
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: !ruby/object:Gem::Requirement
|
69
|
+
requirements:
|
70
|
+
- - "~>"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '0.1'
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.1.0
|
56
76
|
description:
|
57
77
|
email: james@r0bertson.co.uk
|
58
78
|
executables: []
|
metadata.gz.sig
CHANGED
Binary file
|