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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f2dc1f5c22a4fc1c595476538762f9a2bb3a7c28
4
- data.tar.gz: 37d365bd5b080d6af5ba16ffe097959ee85c6659
3
+ metadata.gz: b6073b8b188e445255a97f3491d8cc0b0c27ea8b
4
+ data.tar.gz: 9c472c765a716dcb5a11a7ce6c57edceeeb61f8e
5
5
  SHA512:
6
- metadata.gz: a9db154fb136f754f252b705ca1e6280e74fb1526fd8aaafe275b753e5afbc0a92a14d6a397cc83b5c2a67d703b3fedd7f01b5b2679b2d81a2de09e790d7e14a
7
- data.tar.gz: 65a9acf05ab02cdfea0708b359e37c4f1a00286b5fc2c8aa15603903f200a39db77995f4ae1d6895214de8babb256f0756c85c15a90aceffd21185ecc5a55ddc
6
+ metadata.gz: '0297eb3191d85a419b451e4fe030c83b66ff899f721547165a740d6514395c46d9e9248a54d011e535d461b0b3da58c49e241e047757b9e0f8f1daf871baff9c'
7
+ data.tar.gz: 2fc7448dd22e8cd74ea5c30935ef47be87e9b5a69bf4cb48740ff3db214653e20422cf2d41a4e43dc606c1ba5561e6e11d480d503d9c28229ee1c8be83aeb95b
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -10,7 +10,7 @@ class RSScreator
10
10
 
11
11
  attr_accessor :title, :description, :link, :limit, :xslt
12
12
 
13
- def initialize(filepath='feed.rss', dx_xslt: nil, dx_filename: 'feed.xml')
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.5
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-14 00:00:00.000000000 Z
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