coursegen 0.9.9 → 0.9.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +23 -23
- data/lib/coursegen/course/helpers/visual_helpers.rb +1 -1
- data/lib/coursegen/course/lib/nanoc_filters.rb +15 -8
- 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: 323d99c6b17448ab319c85d6d4b7aa1693cd3cd275c9191084ed2ef93d477ae7
|
4
|
+
data.tar.gz: a64214599a18d924b7ed56af2744efb92d066dad4a5cc00dfd1f8bc6cf444a59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4661ab161dbca8e58bee2f4df3e673c7e0e5ffc716acb56f3a12be2fcb5520e80b96dca93750ee01518bbe25b0873168103c574edba520a6b6bc03ad41b1c3ab
|
7
|
+
data.tar.gz: 63a9b31a4ccaf865bc0eecfdca6666f4de06fbaf4fc83dc7b89778a33db96799e757f8119f10700e56b6b622db373fa86ad6c8bb44cb939913057d53af438156
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
coursegen (0.9.
|
4
|
+
coursegen (0.9.14)
|
5
5
|
activesupport
|
6
6
|
adsf
|
7
7
|
byebug
|
@@ -19,7 +19,7 @@ PATH
|
|
19
19
|
GEM
|
20
20
|
remote: https://rubygems.org/
|
21
21
|
specs:
|
22
|
-
activesupport (6.1.3)
|
22
|
+
activesupport (6.1.3.1)
|
23
23
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
24
24
|
i18n (>= 1.6, < 2)
|
25
25
|
minitest (>= 5.1)
|
@@ -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.
|
43
|
+
ffi (1.15.0)
|
44
44
|
formatador (0.2.5)
|
45
45
|
guard (2.16.2)
|
46
46
|
formatador (>= 0.2.4)
|
@@ -57,27 +57,28 @@ GEM
|
|
57
57
|
guard-compat (~> 1.0)
|
58
58
|
hamster (3.0.0)
|
59
59
|
concurrent-ruby (~> 1.0)
|
60
|
-
i18n (1.8.
|
60
|
+
i18n (1.8.10)
|
61
61
|
concurrent-ruby (~> 1.0)
|
62
|
-
icalendar (2.7.
|
62
|
+
icalendar (2.7.1)
|
63
63
|
ice_cube (~> 0.16)
|
64
64
|
ice_cube (0.16.3)
|
65
|
-
json (2.
|
66
|
-
json_schema (0.
|
67
|
-
kramdown (2.3.
|
65
|
+
json (2.5.1)
|
66
|
+
json_schema (0.21.0)
|
67
|
+
kramdown (2.3.1)
|
68
68
|
rexml
|
69
|
-
listen (3.
|
69
|
+
listen (3.5.1)
|
70
70
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
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)
|
74
75
|
minitest (5.14.4)
|
75
|
-
nanoc (4.
|
76
|
+
nanoc (4.12.1)
|
76
77
|
addressable (~> 2.5)
|
77
78
|
colored (~> 1.2)
|
78
79
|
nanoc-checking (~> 1.0)
|
79
|
-
nanoc-cli (= 4.
|
80
|
-
nanoc-core (= 4.
|
80
|
+
nanoc-cli (= 4.12.1)
|
81
|
+
nanoc-core (= 4.12.1)
|
81
82
|
nanoc-deploying (~> 1.0)
|
82
83
|
parallel (~> 1.12)
|
83
84
|
tty-command (~> 0.8)
|
@@ -85,12 +86,12 @@ GEM
|
|
85
86
|
nanoc-checking (1.0.1)
|
86
87
|
nanoc-cli (~> 4.11, >= 4.11.15)
|
87
88
|
nanoc-core (~> 4.11, >= 4.11.15)
|
88
|
-
nanoc-cli (4.
|
89
|
+
nanoc-cli (4.12.1)
|
89
90
|
cri (~> 2.15)
|
90
91
|
diff-lcs (~> 1.3)
|
91
|
-
nanoc-core (= 4.
|
92
|
+
nanoc-core (= 4.12.1)
|
92
93
|
zeitwerk (~> 2.1)
|
93
|
-
nanoc-core (4.
|
94
|
+
nanoc-core (4.12.1)
|
94
95
|
concurrent-ruby (~> 1.1)
|
95
96
|
ddmemoize (~> 1.0)
|
96
97
|
ddmetrics (~> 1.0)
|
@@ -98,7 +99,6 @@ GEM
|
|
98
99
|
hamster (~> 3.0)
|
99
100
|
json_schema (~> 0.19)
|
100
101
|
slow_enumerator_tools (~> 1.0)
|
101
|
-
tomlrb (~> 1.2)
|
102
102
|
tty-platform (~> 0.2)
|
103
103
|
zeitwerk (~> 2.1)
|
104
104
|
nanoc-deploying (1.0.1)
|
@@ -106,7 +106,8 @@ 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.
|
109
|
+
nokogiri (1.11.2)
|
110
|
+
mini_portile2 (~> 2.5.0)
|
110
111
|
racc (~> 1.4)
|
111
112
|
notiffany (0.1.3)
|
112
113
|
nenv (~> 0.1)
|
@@ -114,7 +115,7 @@ GEM
|
|
114
115
|
parallel (1.20.1)
|
115
116
|
pastel (0.8.0)
|
116
117
|
tty-color (~> 0.5)
|
117
|
-
pry (0.
|
118
|
+
pry (0.14.0)
|
118
119
|
coderay (~> 1.1)
|
119
120
|
method_source (~> 1.0)
|
120
121
|
public_suffix (4.0.6)
|
@@ -125,7 +126,7 @@ GEM
|
|
125
126
|
rb-inotify (0.10.1)
|
126
127
|
ffi (~> 1.0)
|
127
128
|
ref (2.0.0)
|
128
|
-
rexml (3.2.
|
129
|
+
rexml (3.2.5)
|
129
130
|
rspec (3.10.0)
|
130
131
|
rspec-core (~> 3.10.0)
|
131
132
|
rspec-expectations (~> 3.10.0)
|
@@ -135,10 +136,10 @@ GEM
|
|
135
136
|
rspec-expectations (3.10.1)
|
136
137
|
diff-lcs (>= 1.2.0, < 2.0)
|
137
138
|
rspec-support (~> 3.10.0)
|
138
|
-
rspec-mocks (3.10.
|
139
|
+
rspec-mocks (3.10.2)
|
139
140
|
diff-lcs (>= 1.2.0, < 2.0)
|
140
141
|
rspec-support (~> 3.10.0)
|
141
|
-
rspec-support (3.10.
|
142
|
+
rspec-support (3.10.2)
|
142
143
|
rubytree (1.0.0)
|
143
144
|
json (~> 2.1)
|
144
145
|
structured_warnings (~> 0.3)
|
@@ -146,9 +147,8 @@ GEM
|
|
146
147
|
slow_enumerator_tools (1.1.0)
|
147
148
|
structured_warnings (0.4.0)
|
148
149
|
thor (1.1.0)
|
149
|
-
tomlrb (1.3.0)
|
150
150
|
tty-color (0.6.0)
|
151
|
-
tty-command (0.10.
|
151
|
+
tty-command (0.10.1)
|
152
152
|
pastel (~> 0.8)
|
153
153
|
tty-platform (0.3.0)
|
154
154
|
tty-which (0.4.2)
|
@@ -2,7 +2,7 @@ module VisualHelpers
|
|
2
2
|
|
3
3
|
def end_of_lecture(type=:thatsall)
|
4
4
|
if (type == :thatsall)
|
5
|
-
|
5
|
+
"<slide_break></slide_break>" + include_image("/content/topics/images/thatsallfolks.jpg")
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
@@ -3,17 +3,24 @@ include VisualHelpers
|
|
3
3
|
Nanoc::Filter.define(:handle_shortcodes) do |content, _params = {}|
|
4
4
|
prefix = /:/
|
5
5
|
content
|
6
|
-
.gsub(/^\$\$TOPIC_INCLUDE :(\w+)$/) { "<%= include_topic( :#{Regexp.last_match(1)}) %>" }
|
7
|
-
.gsub(/\$\$TOPIC_LINK :(\w+)$/) { "<%= link_to_topic( :#{Regexp.last_match(1)}) %>" }
|
8
|
-
.gsub(/^\$\$SLIDE_TITLE (.+)$/) { "<slide_break></slide_break>\n\n### #{Regexp.last_match(1)}" }
|
9
|
-
.gsub(/^\$\$SLIDE_BREAK$/) { "<slide_break></slide_break>" }
|
10
|
-
.gsub(/^\$\$LECTURE_END$/) { end_of_lecture }
|
11
|
-
.gsub(/^\$\$LECTURE_BEGIN (.+)$/) { "## #{Regexp.last_match(1)} "}
|
12
6
|
.gsub(Regexp.new(prefix.source + /h1 (.+)$/.source), "# \\1 ")
|
13
7
|
.gsub(Regexp.new(prefix.source + /h2 (.+)$/.source), "## \\1 ")
|
14
8
|
.gsub(Regexp.new(prefix.source + /h3 (.+)$/.source), "### \\1 ")
|
15
|
-
.gsub(Regexp.new(prefix.source + /topic_include :(\w+)$/.source)
|
16
|
-
.gsub(Regexp.new(prefix.source + /topic_link :(\w+)
|
9
|
+
.gsub(Regexp.new(prefix.source + /topic_include :(\w+)$/.source)) { |match| include_topic($1) }
|
10
|
+
.gsub(Regexp.new(prefix.source + /topic_link :(\w+)/.source)) { |match| link_to_topic($1) }
|
11
|
+
.gsub(Regexp.new(prefix.source + /section_link :(\w+) :(\w+)/.source)) { |match| link_to_section($1, $2) }
|
17
12
|
.gsub(Regexp.new(prefix.source + /slide_title (.+)$/.source), "<slide_break></slide_break>\n\n### \\1")
|
13
|
+
.gsub(Regexp.new(prefix.source + /slide_bigtitle (.+)$/.source), "<slide_break></slide_break>\n\n## \\1")
|
18
14
|
.gsub(Regexp.new(prefix.source + /lecture_end/.source), end_of_lecture)
|
15
|
+
.gsub(Regexp.new(prefix.source + /deliverable (.+)$/.source), "<%= deliverable( \"\\1\") %>")
|
16
|
+
.gsub(Regexp.new(prefix.source + /pdfbadge/.source), pdfbadge)
|
17
|
+
.gsub(Regexp.new(prefix.source + /partbadge/.source), partbadge)
|
18
|
+
.gsub(Regexp.new(prefix.source + /teambadge/.source), teambadge)
|
19
|
+
.gsub(Regexp.new(prefix.source + /zipbadge/.source), zipbadge)
|
20
|
+
.gsub(Regexp.new(prefix.source + /slide_break/.source), "<slide_break></slide_break>")
|
21
|
+
.gsub(Regexp.new(prefix.source + /source_begin :(.+)$/.source)) { |match| source_begin ( ":language-"+$1) }
|
22
|
+
.gsub(Regexp.new(prefix.source + /source_end/.source), source_end)
|
23
|
+
.gsub(Regexp.new(prefix.source + /team_deliverable (.+)$/.source), "<%= team_deliverable( \"\\1\") %>")
|
24
|
+
.gsub(Regexp.new(prefix.source + /discussion_box (.+)$/.source), "<%= discussion_box( \"\\1\") %>")
|
25
|
+
|
19
26
|
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.14
|
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-
|
11
|
+
date: 2021-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|