coursegen 0.7.5 → 0.7.6
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/Gemfile.lock +2 -2
- data/lib/coursegen/course/data/citem.rb +2 -1
- data/lib/coursegen/course/data/data_adaptor.rb +2 -0
- data/lib/coursegen/course/helpers/content_helpers.rb +7 -7
- data/lib/coursegen/course/helpers/list_of_helpers.rb +1 -0
- data/lib/coursegen/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2e9403029aa45dfc8bf3dc63e07b8fdec5c10dedc74ff77d48043e8a61ac1bdb
|
|
4
|
+
data.tar.gz: 257ec234d1ea117bf214ba4231d56fce4c561514d8d59161c39873502deab8aa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b643b2ef9603c77fb13d4239a788c857d82c90dba2caa25137065e4b780e0c8868ce356e7257ab582686b6bf2b95a882f53c07208d324e1f8738697bee41f1db
|
|
7
|
+
data.tar.gz: 9df9e0a79160473a63f201352aaf047b4c08383be236b1b98cf1902bc90c211018765db85658b5b26abd945ddd5678995634b1f067f62b36f5996d3256a60215
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
coursegen (0.7.
|
|
4
|
+
coursegen (0.7.6)
|
|
5
5
|
activesupport
|
|
6
6
|
adsf
|
|
7
7
|
byebug
|
|
@@ -96,7 +96,7 @@ GEM
|
|
|
96
96
|
method_source (~> 0.9.0)
|
|
97
97
|
public_suffix (3.0.3)
|
|
98
98
|
rack (2.0.7)
|
|
99
|
-
rake (
|
|
99
|
+
rake (12.3.2)
|
|
100
100
|
rb-fsevent (0.10.3)
|
|
101
101
|
rb-inotify (0.10.0)
|
|
102
102
|
ffi (~> 1.0)
|
|
@@ -6,7 +6,7 @@ require 'active_support/inflector'
|
|
|
6
6
|
#
|
|
7
7
|
class CItem
|
|
8
8
|
attr_reader :order, :section, :subsection, :subsection_citem, :title,
|
|
9
|
-
:type, :identifier, :short_name, :status, :nitem, :css_class, :homework, :desc, :cat
|
|
9
|
+
:type, :identifier, :short_name, :status, :nitem, :css_class, :homework, :desc, :cat, :assigned
|
|
10
10
|
attr_accessor :lecture_number, :lecture_date, :start_time, :end_time
|
|
11
11
|
|
|
12
12
|
# Callable with nitem=nil to create a mock
|
|
@@ -85,6 +85,7 @@ class CItem
|
|
|
85
85
|
@homework = @nitem[:homework]
|
|
86
86
|
@desc = @nitem[:desc]
|
|
87
87
|
@cat = @nitem[:cat]
|
|
88
|
+
@assigned = @nitem[:assigned]
|
|
88
89
|
end
|
|
89
90
|
|
|
90
91
|
def parse_identifier(ident)
|
|
@@ -69,10 +69,6 @@ HTMLSTRING
|
|
|
69
69
|
iconbadge("file", "Submit as 1 page pdf, include name and homework #")
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
-
def teambadge
|
|
73
|
-
iconbadge("stroller", "Team submission")
|
|
74
|
-
end
|
|
75
|
-
|
|
76
72
|
def codebadge
|
|
77
73
|
iconbadge("cloud", "Work on code in your portfolio")
|
|
78
74
|
end
|
|
@@ -82,11 +78,11 @@ HTMLSTRING
|
|
|
82
78
|
end
|
|
83
79
|
|
|
84
80
|
def zipbadge
|
|
85
|
-
iconbadge("briefcase", "Submit
|
|
81
|
+
iconbadge("briefcase", "Submit work as an attachment")
|
|
86
82
|
end
|
|
87
83
|
|
|
88
84
|
def partbadge
|
|
89
|
-
iconbadge("check", "Graded for participation only")
|
|
85
|
+
iconbadge("check", "Graded for participation only - pass/fail")
|
|
90
86
|
end
|
|
91
87
|
|
|
92
88
|
def timebadge
|
|
@@ -165,7 +161,7 @@ HTMLSTRING
|
|
|
165
161
|
|
|
166
162
|
def homework_hdr(show_legend: :on)
|
|
167
163
|
body = "#### Homework due for today"
|
|
168
|
-
legend = "\n**Legend**: #{partbadge}: Participation
|
|
164
|
+
legend = "\n**Legend**: #{partbadge}: Participation (pass/fail) | #{pdfbadge}: PDF | #{teambadge}: Team | #{zipbadge}: Attachment"
|
|
169
165
|
body += legend if show_legend == :on
|
|
170
166
|
body
|
|
171
167
|
end
|
|
@@ -302,4 +298,8 @@ HTMLSTRING
|
|
|
302
298
|
end
|
|
303
299
|
end
|
|
304
300
|
end
|
|
301
|
+
|
|
302
|
+
def lab_note(title)
|
|
303
|
+
"<h5 style=\"font-family:cursive; font-weight:bold; font-szie:18px; color: red;\">#{title}</h5>"
|
|
304
|
+
end
|
|
305
305
|
end
|
data/lib/coursegen/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: coursegen
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Pito Salas
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-09-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|