coursegen 0.9.18 → 0.9.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/coursegen/course/helpers/content_helpers.rb +24 -2
- 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: 0e04b3546c2431660b1808e4a46648b73e332578f3ebeb46085d5f1ee675f3e5
|
4
|
+
data.tar.gz: 166cec22386a715de6da584a500b191affb35e707b8518b0346a2e4db45902fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51f148ce7a2c272afceb6bd370085bc18590c3e4ccd0a2671c8e6a5cca8c81f6be7f65a939858983afcf1d6f172e1d52bbaa83def34592ad4ddab5c8a0d9df6f
|
7
|
+
data.tar.gz: 4887a9b340771d7796db1db3f56bfb83fe634eb2969eea2967234ba368c9b1eea46febb7f3cd2d65fd4ad3472801a24b7a06aedccb3e1428bc480db12936f296
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
coursegen (0.9.
|
4
|
+
coursegen (0.9.19)
|
5
5
|
activesupport
|
6
6
|
adsf
|
7
7
|
byebug
|
@@ -113,7 +113,7 @@ GEM
|
|
113
113
|
parallel (1.20.1)
|
114
114
|
pastel (0.8.0)
|
115
115
|
tty-color (~> 0.5)
|
116
|
-
pry (0.14.
|
116
|
+
pry (0.14.1)
|
117
117
|
coderay (~> 1.1)
|
118
118
|
method_source (~> 1.0)
|
119
119
|
public_suffix (4.0.6)
|
@@ -67,7 +67,7 @@ module ContentHelpers
|
|
67
67
|
HTMLSTRING
|
68
68
|
end
|
69
69
|
|
70
|
-
def
|
70
|
+
def callout3(title, body, style="big")
|
71
71
|
style = style.to_s if style.class != String
|
72
72
|
if (style == "big")
|
73
73
|
%(<div class="jumbotron py-1 border border-primary border-rounded-lg">
|
@@ -84,6 +84,24 @@ module ContentHelpers
|
|
84
84
|
end
|
85
85
|
end
|
86
86
|
|
87
|
+
def callout(title, body, style="big")
|
88
|
+
style = style.to_s if style.class != String
|
89
|
+
if (style == "big")
|
90
|
+
%(<div class="callout callout-big">
|
91
|
+
<h1 class="display-5">#{title}</h1>
|
92
|
+
<p class="lead">#{body}</p></div>)
|
93
|
+
elsif (style == "small")
|
94
|
+
<<~HTMLSTRING
|
95
|
+
<div class="callout callout-small">
|
96
|
+
<span class="callout-badge">#{title}</span>#{body}
|
97
|
+
</div>
|
98
|
+
HTMLSTRING
|
99
|
+
else
|
100
|
+
"error in callout call: .#{style}. #{style.class}"
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
|
87
105
|
def iconbadge1(icon, tooltip)
|
88
106
|
%(<img src="/bootstrap/bootstrap-icons-1.0.0/#{icon}.svg" title="#{tooltip}" class="iconbadge">)
|
89
107
|
end
|
@@ -194,10 +212,14 @@ module ContentHelpers
|
|
194
212
|
"*Discussion:*{: style=\"color: blue\"} *#{string}*"
|
195
213
|
end
|
196
214
|
|
197
|
-
def
|
215
|
+
def discussion_box1(string)
|
198
216
|
%(<div class="alert alert-info"><strong>Discussion:</strong> #{string}</div>)
|
199
217
|
end
|
200
218
|
|
219
|
+
def discussion_box(string)
|
220
|
+
%(<div class="discussionbox"><strong>Discussion:</strong> #{string}</div>)
|
221
|
+
end
|
222
|
+
|
201
223
|
def homework_hdr(show_legend: :on)
|
202
224
|
body = '## Homework due for today'
|
203
225
|
legend = "\n**Legend**: #{partbadge}: Participation (pass/fail) | #{pdfbadge}: PDF | #{teambadge}: Team | #{zipbadge}: Attachment"
|
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.9.
|
4
|
+
version: 0.9.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pito Salas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|