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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e1c4769dbe98129a6d08cb35c8c87c100071c87479c0e0a517e286d361eb892a
4
- data.tar.gz: e695fdcf6ea62e9a17241926c91b5e10a4635845da56f2d118448d63adf34a36
3
+ metadata.gz: 03367a5baefdcd0a5b880d449e580b6800b43d58452ad84ef118efa99c629cbc
4
+ data.tar.gz: c54b9388df86df292616c846acc5c17db6540e9c59133615d8a95c6da203f23b
5
5
  SHA512:
6
- metadata.gz: 9f1f6f58aa999ddacd3bbf5735104b41f0551589ddf4179aa2bad85f6ec567a01f8b6ce654f2ad87a166be93f397d16075543aee229528388c41f81c1a832f1a
7
- data.tar.gz: 0175deec4cfbe7caa22c95fc1d352567b1624122354b08346cea1d929ee34107f404ee59e68224fae37bd2fb83f5205aababe4b32f1fd9e026fa82c04990ca99
6
+ metadata.gz: 73917acb3351c82c250158f9b46979fb7424fee0a30e8d1b50eedc78809c3bf994b62845534a718d67c47b4df8c4347f8da3071878c7e422b76f3728e8d9b332
7
+ data.tar.gz: e2bff32aa96fea4ff2a2d7777745be7a395870dae870bc9b22900c2be9843119ef7ab58c698033d84bdb1f0f0c0b5b40950b062ba1bba14a44cd9870fb204f0b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- coursegen (0.9.17)
4
+ coursegen (0.9.18)
5
5
  activesupport
6
6
  adsf
7
7
  byebug
@@ -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 (.+)$/.source), "<%= discussion_box( \"\\1\") %>")
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 + /image :(\w+)/.source), "<img src=\"/content/topics/images/\\1.jpg\" class=\"img-thumbnail\" style=\"height:300px;\"/>")
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Coursegen
4
- VERSION = '0.9.17'
4
+ VERSION = '0.9.18'
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.17
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-13 00:00:00.000000000 Z
11
+ date: 2021-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler