coursegen 0.9.14 → 0.9.15

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: 323d99c6b17448ab319c85d6d4b7aa1693cd3cd275c9191084ed2ef93d477ae7
4
- data.tar.gz: a64214599a18d924b7ed56af2744efb92d066dad4a5cc00dfd1f8bc6cf444a59
3
+ metadata.gz: 49756c03a13b085ddf764599198c727ea994f2186d6e0e70a741a7a123abc1b4
4
+ data.tar.gz: d73c9ab6104f269b5e89cf9e699de25fc2ee3f19ab110eb5627ca17cb85996d7
5
5
  SHA512:
6
- metadata.gz: 4661ab161dbca8e58bee2f4df3e673c7e0e5ffc716acb56f3a12be2fcb5520e80b96dca93750ee01518bbe25b0873168103c574edba520a6b6bc03ad41b1c3ab
7
- data.tar.gz: 63a9b31a4ccaf865bc0eecfdca6666f4de06fbaf4fc83dc7b89778a33db96799e757f8119f10700e56b6b622db373fa86ad6c8bb44cb939913057d53af438156
6
+ metadata.gz: ce411f54298438077ce2b978a0c0585ef0bd91e563f02677e056be928bd6c5de1bdcff914c22d9e4faf3366c2f52c100646df77091bdd6f714d117276df8ae8c
7
+ data.tar.gz: 471d7501b71ee5478dce759d3c2b274f8dae0d844f626d83d2f749bcaf58cc6f9db1391b9d64756307ee407b2b3a8d40a78a554e04e312c18deda23ec21e804f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- coursegen (0.9.14)
4
+ coursegen (0.9.15)
5
5
  activesupport
6
6
  adsf
7
7
  byebug
@@ -71,7 +71,6 @@ GEM
71
71
  rb-inotify (~> 0.9, >= 0.9.10)
72
72
  lumberjack (1.2.8)
73
73
  method_source (1.0.0)
74
- mini_portile2 (2.5.0)
75
74
  minitest (5.14.4)
76
75
  nanoc (4.12.1)
77
76
  addressable (~> 2.5)
@@ -106,8 +105,7 @@ GEM
106
105
  nanoc-cli (~> 4.11, >= 4.11.15)
107
106
  nanoc-core (~> 4.11, >= 4.11.15)
108
107
  nenv (0.3.0)
109
- nokogiri (1.11.2)
110
- mini_portile2 (~> 2.5.0)
108
+ nokogiri (1.11.2-x86_64-darwin)
111
109
  racc (~> 1.4)
112
110
  notiffany (0.1.3)
113
111
  nenv (~> 0.1)
@@ -6,6 +6,7 @@ Nanoc::Filter.define(:handle_shortcodes) do |content, _params = {}|
6
6
  .gsub(Regexp.new(prefix.source + /h1 (.+)$/.source), "# \\1 ")
7
7
  .gsub(Regexp.new(prefix.source + /h2 (.+)$/.source), "## \\1 ")
8
8
  .gsub(Regexp.new(prefix.source + /h3 (.+)$/.source), "### \\1 ")
9
+ .gsub(Regexp.new(prefix.source + /h4 (.+)$/.source), "#### \\1 ")
9
10
  .gsub(Regexp.new(prefix.source + /topic_include :(\w+)$/.source)) { |match| include_topic($1) }
10
11
  .gsub(Regexp.new(prefix.source + /topic_link :(\w+)/.source)) { |match| link_to_topic($1) }
11
12
  .gsub(Regexp.new(prefix.source + /section_link :(\w+) :(\w+)/.source)) { |match| link_to_section($1, $2) }
@@ -18,9 +19,12 @@ Nanoc::Filter.define(:handle_shortcodes) do |content, _params = {}|
18
19
  .gsub(Regexp.new(prefix.source + /teambadge/.source), teambadge)
19
20
  .gsub(Regexp.new(prefix.source + /zipbadge/.source), zipbadge)
20
21
  .gsub(Regexp.new(prefix.source + /slide_break/.source), "<slide_break></slide_break>")
22
+ .gsub(Regexp.new(prefix.source + /youtube \"(.+)\"$/.source)) { |match| %Q!<iframe width="560" height="315" src="#{$1}"></iframe>! }
23
+ # .gsub(Regexp.new(prefix.source + /youtube \"(.+)\"$/.source)) { |match| $1 }
21
24
  .gsub(Regexp.new(prefix.source + /source_begin :(.+)$/.source)) { |match| source_begin ( ":language-"+$1) }
22
25
  .gsub(Regexp.new(prefix.source + /source_end/.source), source_end)
23
26
  .gsub(Regexp.new(prefix.source + /team_deliverable (.+)$/.source), "<%= team_deliverable( \"\\1\") %>")
24
27
  .gsub(Regexp.new(prefix.source + /discussion_box (.+)$/.source), "<%= discussion_box( \"\\1\") %>")
28
+ .gsub(Regexp.new(prefix.source + /image :(\w+)/.source), "<img src=\"/content/topics/images/\\1.jpg\" class=\"img-thumbnail\" style=\"height:300px;\"/>")
25
29
 
26
30
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Coursegen
4
- VERSION = '0.9.14'
4
+ VERSION = '0.9.15'
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.14
4
+ version: 0.9.15
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-05 00:00:00.000000000 Z
11
+ date: 2021-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler