polyrex_calendarbase 0.2.2 → 0.2.3
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 +13 -7
- metadata +18 -18
- 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: 3a5d37f7554b9d465bcf2e20908b25a2dff1e26e
|
4
|
+
data.tar.gz: 3131236ba5eebea2c4bcc4a96dd822830cfd8a86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd90db434eafdd570bf64d2c477a3ead089c7a8e9b57f209af89d47e6d221e3aaaea253f5de2b3a41e5af4a7f6b8cca297940befabe51ca1274992c6ff01be4a
|
7
|
+
data.tar.gz: 64d3933b1598c6f06eac83a6fc95f099621a21220db798ed5eedd4cdfa147c5c48b9ada120c8540791d01f0abc072388ed1fd928c96e3888982f23d2470cf0aa
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/polyrex_calendarbase.rb
CHANGED
@@ -12,12 +12,18 @@ require 'rxfhelper'
|
|
12
12
|
|
13
13
|
module LIBRARY
|
14
14
|
|
15
|
-
def
|
15
|
+
def fetch_filepath(filename)
|
16
16
|
|
17
17
|
lib = File.dirname(__FILE__)
|
18
|
-
File.
|
18
|
+
File.join(lib, filename)
|
19
|
+
end
|
20
|
+
|
21
|
+
def fetch_file(filename)
|
19
22
|
|
20
|
-
|
23
|
+
filepath = fetch_filepath filename
|
24
|
+
read filepath
|
25
|
+
end
|
26
|
+
|
21
27
|
|
22
28
|
def generate_webpage(xml, xsl)
|
23
29
|
|
@@ -30,7 +36,7 @@ module LIBRARY
|
|
30
36
|
def read(s)
|
31
37
|
RXFHelper.read(s).first
|
32
38
|
end
|
33
|
-
end
|
39
|
+
end
|
34
40
|
|
35
41
|
h = {
|
36
42
|
calendar: 'calendar[year]',
|
@@ -89,11 +95,11 @@ class Calendar < Polyrex
|
|
89
95
|
|
90
96
|
def to_webpage()
|
91
97
|
|
92
|
-
year_xsl =
|
98
|
+
year_xsl = read(self.xslt)
|
93
99
|
year_layout_css = fetch_file self.css_layout
|
94
100
|
year_css = fetch_file self.css_style
|
95
101
|
File.open('self.xml','w'){|f| f.write (self.to_xml pretty: true)}
|
96
|
-
File.open(self.xslt,'w'){|f| f.write year_xsl }
|
102
|
+
File.open(File.basename(self.xslt),'w'){|f| f.write year_xsl }
|
97
103
|
#html = Rexslt.new(month_xsl, self.to_xml).to_xml
|
98
104
|
|
99
105
|
html = generate_webpage self.to_xml, year_xsl
|
@@ -469,4 +475,4 @@ class PolyrexCalendarBase
|
|
469
475
|
a = b.+([nil] * max_slots).take(max_slots).reverse
|
470
476
|
end
|
471
477
|
|
472
|
-
end
|
478
|
+
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.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -12,26 +12,26 @@ cert_chain:
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
|
14
14
|
YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
|
15
|
-
|
15
|
+
8ixkARkWAmV1MB4XDTE1MTIyNTE5MzEwNVoXDTE2MTIyNDE5MzEwNVowSDESMBAG
|
16
16
|
A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2J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6CS/dfXOX/HlxP
|
30
|
+
HjjQqFLG8M1mHK3ydMbqm8NhjPtCeBlNkNnFiuYAdwtsomZS6t0SMxMHAv2ZXWaK
|
31
|
+
uG9boVJJdiqglpswYWGqIa7GArn1qv+T6zjQ8VKZRytWla6Yh26bX+HV02maOONj
|
32
|
+
ovYcEWTRch3JSQ==
|
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
|
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
160
|
version: '0'
|
161
161
|
requirements: []
|
162
162
|
rubyforge_project:
|
163
|
-
rubygems_version: 2.4.
|
163
|
+
rubygems_version: 2.4.8
|
164
164
|
signing_key:
|
165
165
|
specification_version: 4
|
166
166
|
summary: A calendar object which can be output to XML format from a Polyrex document
|
metadata.gz.sig
CHANGED
Binary file
|