polyrex_calendarbase 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
  SHA256:
3
- metadata.gz: 16b1a652fc90a86d67da370601a5d4489e6f67de7362358b263f32309836425b
4
- data.tar.gz: d00884057b38f5f3ee08e318fe4168dafdd95fe2dfade881d3175c8fd53e4f76
3
+ metadata.gz: 4f21a0dce548df404ba9c1b54b1e01ab8dd0a811afd3e9ecb60eab282902ad66
4
+ data.tar.gz: 56bcc73d87bb2784fffc1656cc8c2d76dded31f6f9959d39553cd92e9a183801
5
5
  SHA512:
6
- metadata.gz: d07bc5b66b9b48f0515f56b404649bfdc46b0bb8e404f4210b67802cc147e28acbd8679e3ebe0d2d32125345d798a00d5d6c572640dd5faf67bb598954ad3604
7
- data.tar.gz: 07aac48912bf35e1268125a24f217407654fed608e513a3d0bbb2ba12cac4776737150b1bea1d205d835f98f856b982f0add5704c74960d1e14089bde28aa856
6
+ metadata.gz: f26595bc399dba667a22f894fedb7642a8ed5910744977a059b63cd72290aaaedc953eb00daf1413ba4142b785a8511f50f9df691b8a23f86584ff576c636e2f
7
+ data.tar.gz: 0e9d97dc7b5a2c1a44c58d8d963175fd58627993bedd535ed6b51e6ca9d4183184fc560d6b6e928efa9367c6471d42cc2508a3bd75d7397768c4072887932faf
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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 = read(self.xslt)
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
- {self.filename => html,
167
- self.css_layout => year_layout_css, self.css_style => year_css}
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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyrex_calendarbase
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
metadata.gz.sig CHANGED
Binary file