daily_notices 0.3.2 → 0.4.0

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: 2d0956e4f9e411ea2bdf4331054c2400a291f976
4
- data.tar.gz: 899c4017cbdd20fb2c862336f3544ca090962749
3
+ metadata.gz: afc0cbb332d5629b138fc2d447fd7c5bd5c8a4d0
4
+ data.tar.gz: 013238f4c633828c24472e1345dde9a9e1dbbd60
5
5
  SHA512:
6
- metadata.gz: 58d380acca57875fed773a723e668139b62f5b752f738f5a36a7b91ba6db00d4f82769bbf03b92c1579cf7ba4f4d199616dbf9d275204baf0ebf80e526baf4c2
7
- data.tar.gz: caeb891075d3d18c98334f622fb05d57a9e6777541ad9abbb7c2ee9bf98c7e752269ae861395f6f3492d0dc6ac518efec981d972c8389da11e4f2b1c7b8db749
6
+ metadata.gz: 3c5a1408b56312576eafba7bdf54a064f84945f3f26f9bb37f19fa90932561e5d96df80c345ef6013a47607058c42b79148f02570c998bb62b22d2c5b8bb4e1d
7
+ data.tar.gz: 2d8f217855650302c9347af320ab547c2d35b084ba597441051209678b99812d91a2a870e1722dd6eeae1c43cdb9a68775c6ca9f9c7b589500bf47aeb3b47015
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/daily_notices.rb CHANGED
@@ -23,7 +23,7 @@ class DailyNotices
23
23
  @default_key ||= 'uid'
24
24
 
25
25
  if dx_xslt.nil? then
26
-
26
+
27
27
  subdir = File.basename filepath
28
28
  dir = url_base[/http:\/\/[^\/]+\/(.*)/,1]
29
29
 
@@ -35,6 +35,19 @@ class DailyNotices
35
35
  @dx_xslt = dxxsltfilepath
36
36
  end
37
37
 
38
+ if rss_xslt.nil? then
39
+
40
+ subdir = File.basename filepath
41
+ dir = url_base[/http:\/\/[^\/]+\/(.*)/,1]
42
+
43
+ rssxsltfilename = "rssx#{Time.now.to_i.to_s}.xsl"
44
+ rssxsltfilepath = '/' + [dir, subdir, rssxsltfilename].join('/')
45
+ File.write File.join(filepath, rssxsltfilename), \
46
+ RssSliml.new().to_xslt
47
+
48
+ @rss_xslt = rssxsltfilepath
49
+ end
50
+
38
51
  @day = Time.now.day
39
52
  new_day()
40
53
 
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daily_notices
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -73,6 +73,26 @@ dependencies:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: 0.1.6
76
+ - !ruby/object:Gem::Dependency
77
+ name: rss_sliml
78
+ requirement: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0.1'
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ version: 0.1.0
86
+ type: :runtime
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - "~>"
91
+ - !ruby/object:Gem::Version
92
+ version: '0.1'
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: 0.1.0
76
96
  description:
77
97
  email: james@r0bertson.co.uk
78
98
  executables: []
metadata.gz.sig CHANGED
Binary file