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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e31b6859b5bae58c5ed226888a9d5a7916f5fe7
4
- data.tar.gz: ef79f62567021a0b75d30dbb1f01a90129835bda
3
+ metadata.gz: 3a5d37f7554b9d465bcf2e20908b25a2dff1e26e
4
+ data.tar.gz: 3131236ba5eebea2c4bcc4a96dd822830cfd8a86
5
5
  SHA512:
6
- metadata.gz: 561480d5d66cafc6075785cd330d4d526f9a3b05c2ec3c0dfe56824ef248ca8eb1e1b846466c5f49a81f3c8672dfd52f012caf9eff3f3b5e76615a71e66fb09c
7
- data.tar.gz: cafb9f72f9fabc58eb40fcfc7bc6259b8a5b4aa90b48500530ffc79bf8e701d83579e5ba89992c3699486dc35b84b4e0fede1bc1aa77170057a64a6efc52d241
6
+ metadata.gz: bd90db434eafdd570bf64d2c477a3ead089c7a8e9b57f209af89d47e6d221e3aaaea253f5de2b3a41e5af4a7f6b8cca297940befabe51ca1274992c6ff01be4a
7
+ data.tar.gz: 64d3933b1598c6f06eac83a6fc95f099621a21220db798ed5eedd4cdfa147c5c48b9ada120c8540791d01f0abc072388ed1fd928c96e3888982f23d2470cf0aa
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -12,12 +12,18 @@ require 'rxfhelper'
12
12
 
13
13
  module LIBRARY
14
14
 
15
- def fetch_file(filename)
15
+ def fetch_filepath(filename)
16
16
 
17
17
  lib = File.dirname(__FILE__)
18
- File.read File.join(lib,'..','stylesheet',filename)
18
+ File.join(lib, filename)
19
+ end
20
+
21
+ def fetch_file(filename)
19
22
 
20
- end
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 = self.xslt ? read(self.xslt) : fetch_file(self.xslt)
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.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
- 8ixkARkWAmV1MB4XDTE0MDkyOTIwMDkxN1oXDTE1MDkyOTIwMDkxN1owSDESMBAG
15
+ 8ixkARkWAmV1MB4XDTE1MTIyNTE5MzEwNVoXDTE2MTIyNDE5MzEwNVowSDESMBAG
16
16
  A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
17
  EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIh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
26
- c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAji7qs53M
27
- 2HDinomZZCFxYBMZSJZyNqkC1qnnioiaZWmGyK2sZcBixl3e4KUTv+ZDyJZN0Oup
28
- cu1s/ylzgMvkLlSOpVlHG+1FAH7IDS2bzjkqB96YErxihysGLh5AJOmXRSyU+kCN
29
- LKQ6ENmk293hB0Jxtdd/f2anNCAcjMnOVJKeU0ZHfE9ZdD8VRu9WNg9MOaeDcFXq
30
- YkErwxoT8MnOW+hqaFFdReAnMZsue8kEvrfrKRj0XjQDAAVmKPu94O4NU8sR1boF
31
- eGxjKaL2sbouS4fyw4A39SBdlnl+EEAc05wbVgSI3V3Qx6T/opctD22MCO7rCLKx
32
- cODimpf9WykDmA==
26
+ c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAwJcMJod6
27
+ RV65MKG+erXIGN4hsXMrOfK4H8cc5bY96lsV8IlAoJA98rJ24Q6nnxHZcYymRpEe
28
+ JE2bDz5G6R5pUogdsU9yPqDjH3Cjh9pt/+o7Y5GreBqf9STuYgL8mAxetfsqzbvz
29
+ cqosaZLzRdVZIiTsWfPjb/rmhpYeH1mdeYFeVlB+cl7O+NzE3u6CS/dfXOX/HlxP
30
+ HjjQqFLG8M1mHK3ydMbqm8NhjPtCeBlNkNnFiuYAdwtsomZS6t0SMxMHAv2ZXWaK
31
+ uG9boVJJdiqglpswYWGqIa7GArn1qv+T6zjQ8VKZRytWla6Yh26bX+HV02maOONj
32
+ ovYcEWTRch3JSQ==
33
33
  -----END CERTIFICATE-----
34
- date: 2015-05-26 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
@@ -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.6
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