polyrex-calendar 0.6.1 → 0.6.4

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: d90087f3db9b53554c953655b76f05786c0cb693
4
- data.tar.gz: d60f5e572abd5c6add0f73e88a0f53f10fd837e4
3
+ metadata.gz: fd3d6c724a54188d13ee3b085fce2089e642946b
4
+ data.tar.gz: c25b45be7c456cf1ff72bf7d2e2aaee8cf252da7
5
5
  SHA512:
6
- metadata.gz: 85a119ee780f51dce9109265cdc21a9c8d5c37fd3f113d93ba3a16b6722648b373bc5b9763b3fd267781bf2114cf45c15eaad5c10cd437fec89d511a1fa6519c
7
- data.tar.gz: 325db8d46a06e2dee95bd03354d3a6398ce8c43e4124f494335887b76d2086970e17898ba1ffe1dbe710e0c6726d1113178fe795987948b17107539eba09f4f4
6
+ metadata.gz: f568b7bb4e985115d35225924f333010d6618b7556413ea080f5e86008242c0eb30677135183a1f566fd36f498bbbc5591b8160e9528dac5c0673ec06bcadd08
7
+ data.tar.gz: c1597a0657af383e0cbc3508d6ea635b7154fbadce19dd25de17e2cebca604c00166b6aa6ba3689f8b5005079dfc4e5e4f80ff56d07484eb8975252866365a98
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -5,6 +5,34 @@
5
5
  require 'polyrex_calendarbase'
6
6
 
7
7
 
8
+ module LIBRARY
9
+
10
+ def fetch_filepath(filename)
11
+
12
+ lib = File.dirname(__FILE__)
13
+ File.join(lib,'..','stylesheet',filename)
14
+ end
15
+
16
+ def fetch_file(filename)
17
+
18
+ filepath = fetch_filepath filename
19
+ read filepath
20
+ end
21
+
22
+
23
+ def generate_webpage(xml, xsl)
24
+
25
+ # transform the xml to html
26
+ doc = Nokogiri::XML(xml)
27
+ xslt = Nokogiri::XSLT(xsl)
28
+ xslt.transform(doc).to_s
29
+ end
30
+
31
+ def read(s)
32
+ RXFHelper.read(s).first
33
+ end
34
+ end
35
+
8
36
  class PolyrexObjects
9
37
 
10
38
  class Month
@@ -101,7 +129,7 @@ class PolyrexCalendar < PolyrexCalendarBase
101
129
 
102
130
  def year_planner()
103
131
 
104
- px = Polyrex.new(@visual_schema, id_counter: @id)
132
+ px = Calendar.new(@visual_schema, id_counter: @id)
105
133
  px.summary.year = @year
106
134
 
107
135
  (1..12).each {|n| px.add self.month(n, monday_week: true) }
@@ -112,6 +140,7 @@ class PolyrexCalendar < PolyrexCalendarBase
112
140
  + "summary[sdate='#{date}']")
113
141
  e.attributes[:class] = 'selected' if e
114
142
 
143
+ px.xslt = self.fetch_filepath('calendar.xsl')
115
144
  px.css_layout = 'layout.css'
116
145
  px.css_style = 'year.css'
117
146
  px.filename = px.summary.year.to_s + '-planner.html'
@@ -27,6 +27,7 @@ body {background-color: transparent }
27
27
 
28
28
  padding: 0.4em 0.4em;
29
29
  margin: 0.1em;
30
+ min-height: 9.5em;
30
31
  }
31
32
 
32
33
  #wrap table {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyrex-calendar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  lVRGh/hDZrM+tqTvjxqLAaxm3xsnPfVpEz8i35gI1fQPEYeOYkUFgZQ5gBv1nGDE
32
32
  uikNAnes+rZNGg==
33
33
  -----END CERTIFICATE-----
34
- date: 2015-05-25 00:00:00.000000000 Z
34
+ date: 2015-12-25 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: polyrex_calendarbase
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  version: '0'
96
96
  requirements: []
97
97
  rubyforge_project:
98
- rubygems_version: 2.4.6
98
+ rubygems_version: 2.4.8
99
99
  signing_key:
100
100
  specification_version: 4
101
101
  summary: Generates an HTML calendar from a Polyrex document
metadata.gz.sig CHANGED
Binary file