polyrex_calendarbase 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.tar.gz.sig +0 -0
- data/lib/polyrex_calendarbase.rb +11 -5
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f21a0dce548df404ba9c1b54b1e01ab8dd0a811afd3e9ecb60eab282902ad66
|
4
|
+
data.tar.gz: 56bcc73d87bb2784fffc1656cc8c2d76dded31f6f9959d39553cd92e9a183801
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f26595bc399dba667a22f894fedb7642a8ed5910744977a059b63cd72290aaaedc953eb00daf1413ba4142b785a8511f50f9df691b8a23f86584ff576c636e2f
|
7
|
+
data.tar.gz: 0e9d97dc7b5a2c1a44c58d8d963175fd58627993bedd535ed6b51e6ca9d4183184fc560d6b6e928efa9367c6471d42cc2508a3bd75d7397768c4072887932faf
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/polyrex_calendarbase.rb
CHANGED
@@ -59,7 +59,7 @@ class PolyrexObjects
|
|
59
59
|
class Month
|
60
60
|
include LIBRARY2
|
61
61
|
|
62
|
-
attr_accessor :xslt, :css_layout, :css_style
|
62
|
+
attr_accessor :xslt, :css_layout, :css_style, :css_print
|
63
63
|
|
64
64
|
def inspect()
|
65
65
|
"#<CalendarObjects::Month:%s" % __id__
|
@@ -141,7 +141,7 @@ end
|
|
141
141
|
class Calendar < Polyrex
|
142
142
|
include LIBRARY2
|
143
143
|
|
144
|
-
attr_accessor :xslt, :css_layout, :css_style, :filename
|
144
|
+
attr_accessor :xslt, :css_layout, :css_style, :css_print, :filename
|
145
145
|
|
146
146
|
alias months records
|
147
147
|
|
@@ -155,16 +155,22 @@ class Calendar < Polyrex
|
|
155
155
|
|
156
156
|
def to_webpage()
|
157
157
|
|
158
|
-
year_xsl =
|
158
|
+
year_xsl = fetch_file(self.xslt)
|
159
159
|
year_layout_css = fetch_file self.css_layout
|
160
160
|
year_css = fetch_file self.css_style
|
161
|
+
year_print_css = fetch_file self.css_print
|
161
162
|
File.open('self.xml','w'){|f| f.write (self.to_xml pretty: true)}
|
162
163
|
File.open(File.basename(self.xslt),'w'){|f| f.write year_xsl }
|
163
164
|
#html = Rexslt.new(month_xsl, self.to_xml).to_xml
|
164
165
|
|
165
166
|
html = generate_webpage self.to_xml, year_xsl
|
166
|
-
|
167
|
-
|
167
|
+
|
168
|
+
{
|
169
|
+
self.filename => html,
|
170
|
+
self.css_layout => year_layout_css,
|
171
|
+
self.css_style => year_css,
|
172
|
+
self.css_print => year_print_css
|
173
|
+
}
|
168
174
|
|
169
175
|
end
|
170
176
|
end
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|