coursegen 0.7.5 → 0.7.6

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
  SHA256:
3
- metadata.gz: 543b0fef5c5c04eb2f10cbb9f8a9ba89f740e50822ee15e88f0f6989928503b8
4
- data.tar.gz: 345f95242fdf23f71c87fc5351369ee1711f46d460ede6572815c7de43bbe34d
3
+ metadata.gz: 2e9403029aa45dfc8bf3dc63e07b8fdec5c10dedc74ff77d48043e8a61ac1bdb
4
+ data.tar.gz: 257ec234d1ea117bf214ba4231d56fce4c561514d8d59161c39873502deab8aa
5
5
  SHA512:
6
- metadata.gz: 388aa33947d9be4fde1f0f7024edd51ad78019fcb8d909a8c64fecdc4642f8f0fa255114316ab6090cc2731a24e265acee8db3b16c6c7bf7965eaeb5ac709957
7
- data.tar.gz: 94ee16cbe750e7b24e54a5648ccf0a3fb158512db59fe3e6cbf560971b1098f1433efcceb20a3c244982273574feb731f7befe030f67cc27f1c0b34c657b1621
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.5)
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 (11.3.0)
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)
@@ -32,6 +32,8 @@ class DataAdaptor
32
32
  citem.desc
33
33
  when :homework
34
34
  citem.homework
35
+ when :assigned
36
+ citem.assigned
35
37
  when :start_date_time
36
38
  citem.schedule_start_date_time
37
39
  when :end_date_time
@@ -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 code as a .zip file")
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 | #{timebadge}: Early | #{pdfbadge}: PDF | #{teambadge}: Team | #{zipbadge}: Zipped"
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
@@ -9,6 +9,7 @@ module ListOfHelpers
9
9
  # :number
10
10
  # :title
11
11
  # :homeworks
12
+ # :assigned
12
13
 
13
14
  def list_of(source:, rows:, cols:, subsections: [], items:)
14
15
  markup_adaptor = BootstrapMarkup.new
@@ -1,3 +1,3 @@
1
1
  module Coursegen
2
- VERSION = "0.7.5"
2
+ VERSION = "0.7.6"
3
3
  end
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.5
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-07-16 00:00:00.000000000 Z
11
+ date: 2019-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler