kielce 2.0.1 → 2.0.2
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
- data/lib/kielce.rb +1 -1
- data/lib/kielce_plugins/schedule/assignment.rb +4 -4
- data/lib/kielce_plugins/schedule/schedule.rb +5 -3
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b819ff70e1a20261da54d186de5d671b9733134c6c0ba5f62e9107531eae896b
|
4
|
+
data.tar.gz: 70cbeb088c2b28f42b3128454e5ec09a2ebd2a6efccd0488d41a11056e9e4318
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 621b21e9a8aae49e2631c664a8b07bb390311af0f3e9e30cde1945b86d7a24879b42fb94a79d5fe37b3f6076197c086767cfa9b4d3c0707010b6850d801ce14d
|
7
|
+
data.tar.gz: 872f8a534a83ff518ee665048aa77d8bae0defbe1ebcb68f4591e4a3945e0245e6f6130fe2340d34170b0c3e0102172cd727c388adfaf268461b0b18c61db51a
|
data/lib/kielce.rb
CHANGED
@@ -13,7 +13,7 @@ module KielcePlugins
|
|
13
13
|
|
14
14
|
attr_accessor :assignments, :schedule_days
|
15
15
|
|
16
|
-
def initialize(filename)
|
16
|
+
def initialize(filename)
|
17
17
|
workbook = RubyXL::Parser.parse(filename)
|
18
18
|
@assignments = build_assignments(build_rows(workbook['Assignments'], Assignment::ASSIGNMENT_KEYS))
|
19
19
|
@schedule_days = build_schedule_days(build_rows(workbook['Schedule'], SCHEDULE_KEYS))
|
@@ -27,7 +27,7 @@ module KielcePlugins
|
|
27
27
|
"<a href='#{$1}'>#{text}</a>"
|
28
28
|
end
|
29
29
|
|
30
|
-
value.gsub!(/<<(assign|due)\s+(\S.+)>>/) do
|
30
|
+
value.gsub!(/<<(assign|due|ref)\s+(\S.+)>>/) do
|
31
31
|
#$stderr.puts "Found assignment ref #{$1} --- #{$2} -- #{@assignments[$2].inspect}"
|
32
32
|
$stderr.puts "Assignment #{$2} not found" unless @assignments.has_key?($2)
|
33
33
|
|
@@ -36,6 +36,8 @@ module KielcePlugins
|
|
36
36
|
"Assign #{text}"
|
37
37
|
elsif $1 == 'due'
|
38
38
|
"<b>Due</b> #{text}"
|
39
|
+
elsif $1 == 'ref'
|
40
|
+
text
|
39
41
|
else
|
40
42
|
$stderr.puts "Unexpected match #{$1}"
|
41
43
|
end
|
@@ -50,7 +52,7 @@ module KielcePlugins
|
|
50
52
|
param = $2
|
51
53
|
|
52
54
|
method = 'default' if method.empty?
|
53
|
-
|
55
|
+
# $stderr.puts "Found link rule =>#{method}<= #{method.empty?} =>#{param}<="
|
54
56
|
|
55
57
|
link = $d.course.notesTemplates.method_missing(method, param)
|
56
58
|
else
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kielce
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zachary Kurmas
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: 'An ERB-based templating engine for generating course documents. '
|
14
|
-
email:
|
14
|
+
email:
|
15
15
|
executables:
|
16
16
|
- kielce
|
17
17
|
extensions: []
|
@@ -31,7 +31,7 @@ homepage: https://github.com/kurmasz/KielceRB
|
|
31
31
|
licenses:
|
32
32
|
- MIT
|
33
33
|
metadata: {}
|
34
|
-
post_install_message:
|
34
|
+
post_install_message:
|
35
35
|
rdoc_options: []
|
36
36
|
require_paths:
|
37
37
|
- lib
|
@@ -46,8 +46,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
requirements: []
|
49
|
-
rubygems_version: 3.
|
50
|
-
signing_key:
|
49
|
+
rubygems_version: 3.2.3
|
50
|
+
signing_key:
|
51
51
|
specification_version: 4
|
52
52
|
summary: An ERB-based templating engine for generating course documents.
|
53
53
|
test_files: []
|