coursegen 0.9.12 → 0.9.13

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: 84a6ebef854e8593ec4220efb9489e46f382b514ed119d35da6bee36716af1ee
4
- data.tar.gz: c3fdae9061950f0ca24b0e961c1a7998e6fc25381aa653f54d195a9eb6a23877
3
+ metadata.gz: eb6053e9eeb976a40ba652fb07807896a6f0db975369998b081177e9fdfaf28b
4
+ data.tar.gz: '08f71b83b2f87ea9a3dd9d4bdf6e32ca3187ccea3e429330882b337d3e351644'
5
5
  SHA512:
6
- metadata.gz: dd08ac8ede337638feea1f03ed8ce99a80fb0df0254541d71b04e00b568241c8fbafe4f986eaf8b1152e64bd455444d2152ba4bc8b5c29319abd1b808cc55c78
7
- data.tar.gz: a4f27bbbd34669e32a65655a6427e2a5e2ad3191939c6efb21280c76af8ae9a959686a5e5b2d3a638bc7b223a0f8949d3ced80d776d0142583f57195ffdbde97
6
+ metadata.gz: 7c536dec568132e2009e2fa09b5d7cfe117f3867c0b89a017a71281f38541f1e964f2359b610394ee45eec6674064e54c5163e18ccd8a13689c8daf911836c49
7
+ data.tar.gz: c336424a9f86e8be8d948690ef33cf355fdfde1d4b47a0cfd76d5d0a7229fac165de69cc89d5fd953c2d61b3f14b4cfe03da4edf2f4d1f1a1de1e82d076ed40e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- coursegen (0.9.12)
4
+ coursegen (0.9.13)
5
5
  activesupport
6
6
  adsf
7
7
  byebug
@@ -40,7 +40,7 @@ GEM
40
40
  ddmetrics (1.0.1)
41
41
  ddplugin (1.0.3)
42
42
  diff-lcs (1.4.4)
43
- ffi (1.14.2)
43
+ ffi (1.15.0)
44
44
  formatador (0.2.5)
45
45
  guard (2.16.2)
46
46
  formatador (>= 0.2.4)
@@ -106,7 +106,7 @@ GEM
106
106
  nanoc-cli (~> 4.11, >= 4.11.15)
107
107
  nanoc-core (~> 4.11, >= 4.11.15)
108
108
  nenv (0.3.0)
109
- nokogiri (1.11.1-x86_64-darwin)
109
+ nokogiri (1.11.2-x86_64-darwin)
110
110
  racc (~> 1.4)
111
111
  notiffany (0.1.3)
112
112
  nenv (~> 0.1)
@@ -2,7 +2,7 @@ module VisualHelpers
2
2
 
3
3
  def end_of_lecture(type=:thatsall)
4
4
  if (type == :thatsall)
5
- %(<slide_break></slide_break><hr/><%= include_image "/content/topics/images/thatsallfolks.jpg" %>)
5
+ "<slide_break></slide_break>" + include_image("/content/topics/images/thatsallfolks.jpg")
6
6
  end
7
7
  end
8
8
  end
@@ -12,8 +12,8 @@ Nanoc::Filter.define(:handle_shortcodes) do |content, _params = {}|
12
12
  .gsub(Regexp.new(prefix.source + /h1 (.+)$/.source), "# \\1 ")
13
13
  .gsub(Regexp.new(prefix.source + /h2 (.+)$/.source), "## \\1 ")
14
14
  .gsub(Regexp.new(prefix.source + /h3 (.+)$/.source), "### \\1 ")
15
- .gsub(Regexp.new(prefix.source + /topic_include :(\w+)$/.source), "<%= include_topic( :\\1) %>")
16
- .gsub(Regexp.new(prefix.source + /topic_link :(\w+)$/.source), "<%= link_to_topic( :\\1) %>")
15
+ .gsub(Regexp.new(prefix.source + /topic_include :(\w+)$/.source)) { |match| include_topic($1) }
16
+ .gsub(Regexp.new(prefix.source + /topic_link :(\w+)/.source)) { |match| link_to_topic($1) }
17
17
  .gsub(Regexp.new(prefix.source + /slide_title (.+)$/.source), "<slide_break></slide_break>\n\n### \\1")
18
18
  .gsub(Regexp.new(prefix.source + /lecture_end/.source), end_of_lecture)
19
19
  .gsub(Regexp.new(prefix.source + /deliverable (.+)$/.source), "<%= deliverable( \"\\1\") %>")
@@ -22,8 +22,8 @@ Nanoc::Filter.define(:handle_shortcodes) do |content, _params = {}|
22
22
  .gsub(Regexp.new(prefix.source + /teambadge/.source), teambadge)
23
23
  .gsub(Regexp.new(prefix.source + /zipbadge/.source), zipbadge)
24
24
  .gsub(Regexp.new(prefix.source + /slide_break/.source), "<slide_break></slide_break>")
25
- .gsub(Regexp.new(prefix.source + /source_begin :(.+)$/.source), "<%= source_begin ( \":language-\\1\") %>")
26
- .gsub(Regexp.new(prefix.source + /source_end$/.source), "<%= source_end %>")
25
+ .gsub(Regexp.new(prefix.source + /source_begin :(.+)$/.source)) { |match| source_begin ( ":language-"+$1) }
26
+ .gsub(Regexp.new(prefix.source + /source_end$/.source), source_end)
27
27
  .gsub(Regexp.new(prefix.source + /team_deliverable (.+)$/.source), "<%= team_deliverable( \"\\1\") %>")
28
28
  .gsub(Regexp.new(prefix.source + /discussion_box (.+)$/.source), "<%= discussion_box( \"\\1\") %>")
29
29
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Coursegen
4
- VERSION = '0.9.12'
4
+ VERSION = '0.9.13'
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.12
4
+ version: 0.9.13
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-03-09 00:00:00.000000000 Z
11
+ date: 2021-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler