polyrex-calendar 0.6.1 → 0.6.4
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/polyrex-calendar.rb +30 -1
- data/stylesheet/layout.css +1 -0
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd3d6c724a54188d13ee3b085fce2089e642946b
|
4
|
+
data.tar.gz: c25b45be7c456cf1ff72bf7d2e2aaee8cf252da7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f568b7bb4e985115d35225924f333010d6618b7556413ea080f5e86008242c0eb30677135183a1f566fd36f498bbbc5591b8160e9528dac5c0673ec06bcadd08
|
7
|
+
data.tar.gz: c1597a0657af383e0cbc3508d6ea635b7154fbadce19dd25de17e2cebca604c00166b6aa6ba3689f8b5005079dfc4e5e4f80ff56d07484eb8975252866365a98
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/polyrex-calendar.rb
CHANGED
@@ -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 =
|
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'
|
data/stylesheet/layout.css
CHANGED
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.
|
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-
|
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.
|
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
|