rss_creator 0.3.0 → 0.3.1

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: aeb46339dd9a6ed4465eb85e403112bddd4ecc0c
4
- data.tar.gz: 4c05f83b8544252c8a1f5b53c99e91f4b8ce640d
3
+ metadata.gz: 37fb5327c0a5854cba06872fb9d073b7dc9346de
4
+ data.tar.gz: d2483ab57312884ce428be9c5663b957d968ded5
5
5
  SHA512:
6
- metadata.gz: 0de416d00a913d36396ae9981e85365b56760aa31334b08c813272b9bc6e360af97c114409ca7642ab24a25dfedb2abdd3da4796e2a324b6e82eb8ad389b108d
7
- data.tar.gz: 8dfbfda94c05ae1ee7500e9c93a811107ea7b0c26b00134bbb22b81f3524882765e893f8dda05e5136055a68ae02edca0dc2e721b4178d2a1973c28c00881459
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), 'feed.xml')
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.0
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-10-31 00:00:00.000000000 Z
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