polyrex-calendar 0.7.1 → 0.7.2
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 +1 -3
- data/lib/polyrex-calendar.rb +14 -2
- metadata +1 -2
- metadata.gz.sig +3 -2
- data/stylesheet/calendar.xsl~ +0 -58
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e713c4efdd8e9c27ecb0f294cbde87df56c09e7d81379f66dcb5a2e10ac4691
|
4
|
+
data.tar.gz: 0c9b364b18fa96341b7897e80499425412c53102b7169d02dcdb06768413cf35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d6177ff169465b3633e006177ee041b6c07f80df301695b185a9dd2888bb4a5e26e3bbf86267e0e94d6c5f3919c024aac68565a3d23ff5fbcd6e7238d6852f3
|
7
|
+
data.tar.gz: f84c5b79733abed9c8080c1a3bb407ba420beaadf70ace5f78061777fa2c91875f5a30970cdeb903ed6b95058e9a021ff15a9f9b607bc7ba991f4e24a2978512
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,3 +1 @@
|
|
1
|
-
|
2
|
-
\q��/P���+E���sw.&Xv���zT�����='V3^yt1k��?Ae�l^�A� �s��$5O߲Ks�{K�3�A�j���|�9��:�r��S8��|��$�9ciJ�EA���)�n�&v��)�옿��O��7?(�p�&?��ȅ�ʯ��lI�j����N��{{ٜ�\�[5
|
3
|
-
ɋf,��S�zؤ@�)�X�
|
1
|
+
_X��g�����z�Z~�}t��3M�K�:�F7�F
|
data/lib/polyrex-calendar.rb
CHANGED
@@ -6,6 +6,18 @@ require 'polyrex_calendarbase'
|
|
6
6
|
require 'weeklyplanner_template'
|
7
7
|
|
8
8
|
|
9
|
+
module LIBRARY2
|
10
|
+
|
11
|
+
def fetch_filepath(filename)
|
12
|
+
|
13
|
+
lib = File.dirname(__FILE__)
|
14
|
+
File.join(lib,'..','stylesheet',filename)
|
15
|
+
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
|
20
|
+
|
9
21
|
class PolyrexObjects
|
10
22
|
|
11
23
|
class Month
|
@@ -54,7 +66,7 @@ class PolyrexObjects
|
|
54
66
|
end
|
55
67
|
|
56
68
|
class PolyrexCalendar < PolyrexCalendarBase
|
57
|
-
|
69
|
+
using ColouredText
|
58
70
|
|
59
71
|
def initialize(calendar_file=nil, year: nil, debug: false)
|
60
72
|
|
@@ -66,7 +78,7 @@ class PolyrexCalendar < PolyrexCalendarBase
|
|
66
78
|
year
|
67
79
|
end
|
68
80
|
|
69
|
-
puts ('year: ' + year.inspect).debug if
|
81
|
+
puts ('year: ' + year.inspect).debug if debug
|
70
82
|
super(calendar_file, year: year)
|
71
83
|
|
72
84
|
@xsl = fetch_file 'calendar.xsl'
|
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.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -85,7 +85,6 @@ extra_rdoc_files: []
|
|
85
85
|
files:
|
86
86
|
- lib/polyrex-calendar.rb
|
87
87
|
- stylesheet/calendar.xsl
|
88
|
-
- stylesheet/calendar.xsl~
|
89
88
|
- stylesheet/kplanner.xsl
|
90
89
|
- stylesheet/kplanner_month.xsl
|
91
90
|
- stylesheet/layout.css
|
metadata.gz.sig
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
;Vs��G�D�,z�B��
|
2
|
+
|
3
|
+
�q���z�k˫�9�Ɖ���|��W��#�۰�`��\klS�O_m�}�����I�kv#造sg��_��z"~\7l�0�`�����6jH��2S�n"�=�^(��8�ֻE���^��I�Ib�Ŀ���ѹc+�l�)w��u���9OY��R4.���8�?�DU^=
|
data/stylesheet/calendar.xsl~
DELETED
@@ -1,58 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
3
|
-
<xsl:output method="xml" indent="yes" />
|
4
|
-
|
5
|
-
<xsl:template match="calendar">
|
6
|
-
|
7
|
-
<html lang="en">
|
8
|
-
|
9
|
-
<head>
|
10
|
-
<title><xsl:value-of select="summary/year"/> Calendar | generated by Polyrex-Calendar</title>
|
11
|
-
<link rel="stylesheet" href="xlayout.css"/>
|
12
|
-
</head>
|
13
|
-
|
14
|
-
<body>
|
15
|
-
<div id="wrap">
|
16
|
-
<h1><xsl:value-of select="summary/year"/></h1>
|
17
|
-
<xsl:apply-templates select="records"/>
|
18
|
-
</div>
|
19
|
-
</body>
|
20
|
-
</html>
|
21
|
-
|
22
|
-
</xsl:template>
|
23
|
-
|
24
|
-
<xsl:template match="records/month">
|
25
|
-
<div class="table">
|
26
|
-
<table border="1">
|
27
|
-
<xsl:apply-templates select="summary"/>
|
28
|
-
<tr><th>S</th><th>M</th><th>T</th><th>W</th><th>T</th><th>F</th><th>S</th></tr>
|
29
|
-
<xsl:apply-templates select="records"/>
|
30
|
-
</table>
|
31
|
-
</div>
|
32
|
-
</xsl:template>
|
33
|
-
|
34
|
-
<xsl:template match="month/summary">
|
35
|
-
<caption><xsl:value-of select="name"/></caption>
|
36
|
-
</xsl:template>
|
37
|
-
|
38
|
-
<xsl:template match="records/week">
|
39
|
-
<xsl:apply-templates select="summary"/>
|
40
|
-
<xsl:element name="tr">
|
41
|
-
<xsl:apply-templates select="records"/>
|
42
|
-
</xsl:element>
|
43
|
-
</xsl:template>
|
44
|
-
|
45
|
-
<xsl:template match="week/summary">
|
46
|
-
|
47
|
-
</xsl:template>
|
48
|
-
|
49
|
-
<xsl:template match="records/day">
|
50
|
-
<xsl:apply-templates select="summary"/>
|
51
|
-
<xsl:apply-templates select="records"/>
|
52
|
-
</xsl:template>
|
53
|
-
|
54
|
-
<xsl:template match="day/summary">
|
55
|
-
<td><xsl:value-of select="xday"/></td>
|
56
|
-
</xsl:template>
|
57
|
-
|
58
|
-
</xsl:stylesheet>
|