rss_creator 0.2.3 → 0.2.7

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: 03c7921871f1a37a2fa2d6cd544baa844f4f1a18
4
- data.tar.gz: 7f04bda066cf647da72731324b3e4a8890f04642
3
+ metadata.gz: 80156d2626f079b2febfefc17f9aa11b5175e724
4
+ data.tar.gz: b633d4fe9d184f6f62f6bbfeb03a5d552688a936
5
5
  SHA512:
6
- metadata.gz: fc9af4c46ba46a2aa04716d062686acc0ef3218c66746fb5133d8c953841ebf2546bffd7d91977a04a92f96bb0261bbe06d4175c0b55885aad4852bf35b44045
7
- data.tar.gz: b6932abd33c7dc3c07b39b83c5e5679604f6dfc9e8c93d4b91fb00131e72988bf827ea79e1cbaab203fa59788dee78a6c708535521232d9eed75e61be7d170dc
6
+ metadata.gz: 3049b1dc1c416e40dd4268fd66432d67a0b6721a07d2abcd7181ba8c2e8aa2a60019e54cadac0729c563ac92ebce692167c7f8af7a30edb7f8a5374dfe3145c0
7
+ data.tar.gz: 8dea9d59abbccf187b3d11a7442b7dab40be765272c6915aef9b787a3ebd318d262c47a9b36b3c853cabcf51b6109d69afb701a43ece12e8a00c66c644027958
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/rss_creator.rb CHANGED
@@ -8,7 +8,7 @@ require 'rss_to_dynarex'
8
8
 
9
9
  class RSScreator
10
10
 
11
- attr_accessor :title, :description, :link, :limit
11
+ attr_accessor :title, :description, :link, :limit, :xslt
12
12
 
13
13
  def initialize(filepath=nil)
14
14
 
@@ -59,7 +59,10 @@ class RSScreator
59
59
  def description=(val)
60
60
  @description = val
61
61
  @dirty = true
62
- end
62
+ end
63
+
64
+ alias desc= description=
65
+ alias desc description
63
66
 
64
67
  def dynarex()
65
68
  @dx
@@ -90,7 +93,22 @@ class RSScreator
90
93
  end
91
94
 
92
95
  @dx.title, @dx.description, @dx.link = @title, @description, @link || ''
93
- @rss = @dx.to_rss({limit: @limit})
96
+
97
+ @rss = if @xslt then
98
+
99
+ @dx.to_rss({limit: @limit}) do |doc|
100
+
101
+ doc.instructions << ['xml-stylsheet',\
102
+ "title='XSL_formatting' type='text/xsl' href='#{@xslt}'"]
103
+
104
+ end
105
+
106
+ else
107
+
108
+ @dx.to_rss({limit: @limit})
109
+
110
+ end
111
+
94
112
  @dirty = false
95
113
  @rss
96
114
 
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.2.3
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,28 +31,8 @@ cert_chain:
31
31
  9HFHvRHJvHbKI5qIF3G+KkFUx2ZXkSCaRP6NDkkPo0IY6vJ34w4pDwdSH4jHpld9
32
32
  4pCsHtS+NYWg/g==
33
33
  -----END CERTIFICATE-----
34
- date: 2015-10-25 00:00:00.000000000 Z
34
+ date: 2015-10-27 00:00:00.000000000 Z
35
35
  dependencies:
36
- - !ruby/object:Gem::Dependency
37
- name: dynarex
38
- requirement: !ruby/object:Gem::Requirement
39
- requirements:
40
- - - "~>"
41
- - !ruby/object:Gem::Version
42
- version: '1.5'
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- version: 1.5.38
46
- type: :runtime
47
- prerelease: false
48
- version_requirements: !ruby/object:Gem::Requirement
49
- requirements:
50
- - - "~>"
51
- - !ruby/object:Gem::Version
52
- version: '1.5'
53
- - - ">="
54
- - !ruby/object:Gem::Version
55
- version: 1.5.38
56
36
  - !ruby/object:Gem::Dependency
57
37
  name: rss_to_dynarex
58
38
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file