coursegen 0.9.18 → 0.9.19

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03367a5baefdcd0a5b880d449e580b6800b43d58452ad84ef118efa99c629cbc
4
- data.tar.gz: c54b9388df86df292616c846acc5c17db6540e9c59133615d8a95c6da203f23b
3
+ metadata.gz: 0e04b3546c2431660b1808e4a46648b73e332578f3ebeb46085d5f1ee675f3e5
4
+ data.tar.gz: 166cec22386a715de6da584a500b191affb35e707b8518b0346a2e4db45902fe
5
5
  SHA512:
6
- metadata.gz: 73917acb3351c82c250158f9b46979fb7424fee0a30e8d1b50eedc78809c3bf994b62845534a718d67c47b4df8c4347f8da3071878c7e422b76f3728e8d9b332
7
- data.tar.gz: e2bff32aa96fea4ff2a2d7777745be7a395870dae870bc9b22900c2be9843119ef7ab58c698033d84bdb1f0f0c0b5b40950b062ba1bba14a44cd9870fb204f0b
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.18)
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.0)
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 callout(title, body, style="big")
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 discussion_box(string)
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"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Coursegen
4
- VERSION = '0.9.18'
4
+ VERSION = '0.9.19'
5
5
  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.9.18
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-04-19 00:00:00.000000000 Z
11
+ date: 2021-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler