coursegen 0.9.17 → 0.9.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/coursegen/course/lib/nanoc_filters.rb +8 -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: 03367a5baefdcd0a5b880d449e580b6800b43d58452ad84ef118efa99c629cbc
|
4
|
+
data.tar.gz: c54b9388df86df292616c846acc5c17db6540e9c59133615d8a95c6da203f23b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73917acb3351c82c250158f9b46979fb7424fee0a30e8d1b50eedc78809c3bf994b62845534a718d67c47b4df8c4347f8da3071878c7e422b76f3728e8d9b332
|
7
|
+
data.tar.gz: e2bff32aa96fea4ff2a2d7777745be7a395870dae870bc9b22900c2be9843119ef7ab58c698033d84bdb1f0f0c0b5b40950b062ba1bba14a44cd9870fb204f0b
|
data/Gemfile.lock
CHANGED
@@ -5,13 +5,16 @@ Nanoc::Filter.define(:handle_shortcodes) do |content, _params = {}|
|
|
5
5
|
content
|
6
6
|
.gsub(Regexp.new(prefix.source + /callout :(\w+), "(.+)", "(.+)"/.source)) { callout($2, $3, $1) }
|
7
7
|
.gsub(Regexp.new(prefix.source + /deliverable (.+)$/.source)) { deliverable($1) }
|
8
|
-
.gsub(Regexp.new(prefix.source + /discussion_box (.+)
|
8
|
+
.gsub(Regexp.new(prefix.source + /discussion_box "(.+)"/.source)) { discussion_box($1) }
|
9
9
|
.gsub(Regexp.new(prefix.source + /h1 (.+)$/.source), "# \\1 ")
|
10
10
|
.gsub(Regexp.new(prefix.source + /h2 (.+)$/.source), "## \\1 ")
|
11
11
|
.gsub(Regexp.new(prefix.source + /h3 (.+)$/.source), "### \\1 ")
|
12
12
|
.gsub(Regexp.new(prefix.source + /h4 (.+)$/.source), "#### \\1 ")
|
13
|
-
.gsub(Regexp.new(prefix.source + /
|
13
|
+
.gsub(Regexp.new(prefix.source + /h5 (.+)$/.source)) { "<h5>#{$1}</h5>" }
|
14
|
+
.gsub(Regexp.new(prefix.source + /image :(\w+)$/.source)) { "<img src=\"/content/topics/images/#{$1}.jpg\" class=\"img-thumbnail\" style=\"height:300px;\"/>" }
|
15
|
+
.gsub(Regexp.new(prefix.source + /image :(\w+), :(\w+)$/.source)) { "<img src=\"/content/topics/images/#{$2}.jpg\" class=\"img-thumbnail\" style=\"height:#{$1}px;\"/>" }
|
14
16
|
.gsub(Regexp.new(prefix.source + /lecture_end/.source), end_of_lecture)
|
17
|
+
.gsub(Regexp.new(prefix.source + /li (.+)$/.source)) { "<li>#{$1}</li>" }
|
15
18
|
.gsub(Regexp.new(prefix.source + /partbadge/.source), partbadge)
|
16
19
|
.gsub(Regexp.new(prefix.source + /pdfbadge/.source), pdfbadge)
|
17
20
|
.gsub(Regexp.new(prefix.source + /section_link :(\w+) :(\w+)/.source)) { link_to_section($1, $2) }
|
@@ -25,6 +28,9 @@ Nanoc::Filter.define(:handle_shortcodes) do |content, _params = {}|
|
|
25
28
|
.gsub(Regexp.new(prefix.source + /teambadge/.source), teambadge)
|
26
29
|
.gsub(Regexp.new(prefix.source + /topic_include :(\w+)$/.source)) { include_topic($1) }
|
27
30
|
.gsub(Regexp.new(prefix.source + /topic_link :(\w+)/.source)) { link_to_topic($1) }
|
31
|
+
.gsub(Regexp.new(prefix.source + /ul_begin :(\w+)/.source)) { "<ul class=\"#{$1}\">" }
|
32
|
+
.gsub(Regexp.new(prefix.source + /ul_begin$/.source)) { "<ul>" }
|
33
|
+
.gsub(Regexp.new(prefix.source + /ul_end$/.source)) { "</ul>" }
|
28
34
|
.gsub(Regexp.new(prefix.source + /youtube \"(.+)\"$/.source)) { %Q!<iframe width="560" height="315" src="#{$1}"></iframe>! }
|
29
35
|
.gsub(Regexp.new(prefix.source + /zipbadge/.source), zipbadge)
|
30
36
|
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.9.
|
4
|
+
version: 0.9.18
|
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-
|
11
|
+
date: 2021-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|