coursegen 0.7.7 → 0.8.1

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: 9931d2c2c444972ec5fca48e85c95a772481a057bb70f0f3bb7e36f75749d197
4
- data.tar.gz: 221ca02ca8addd579154cc40a3585b997b1c855a06d706bec4da9ebeebb2caa8
3
+ metadata.gz: cca3ea6a24a51feffa46a0c72ee7d27fef3ce1988a3690d8fb3772b7ccc2d238
4
+ data.tar.gz: 5b97d5fb5babc88014f1ac9b76f3904a0a7b59b6b4e04026fc57f3dd658b6c80
5
5
  SHA512:
6
- metadata.gz: db54f4c3d71d47769bdf855f1a1114f7e2d53976dddfac2ee76fc6141a77a1eab5c349728f6e08885758992cce58db95f05d91b899dc6c597f32e51254470647
7
- data.tar.gz: e30c2d9054f7ca48b732f1dc7fb6b8dd5298de3b4a938c648a49c7166c18de30a90417a1ead666d08ba266832831ef487bace3b5afb1e216c6151ad340b71aae
6
+ metadata.gz: 97746947829dc2bce361063028566124117d596b88be444a0c59197ad48920771823738bd7f116d04e2aadacaa0013ee94388b9a36df9ed247ca7912425c8834
7
+ data.tar.gz: d9772ec587218a8b72536a7fde92e16ec7defb40118342c1ee6700ea9ef3c360c2fe3bbf0556008c881769b91fedc04332ed675cbea490ac3f46154795bb9e5d
@@ -0,0 +1,2 @@
1
+ {
2
+ }
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- coursegen (0.7.7)
4
+ coursegen (0.8.0)
5
5
  activesupport
6
6
  adsf
7
7
  byebug
@@ -19,29 +19,31 @@ PATH
19
19
  GEM
20
20
  remote: https://rubygems.org/
21
21
  specs:
22
- activesupport (5.2.3)
22
+ activesupport (6.0.1)
23
23
  concurrent-ruby (~> 1.0, >= 1.0.2)
24
24
  i18n (>= 0.7, < 2)
25
25
  minitest (~> 5.1)
26
26
  tzinfo (~> 1.1)
27
- addressable (2.6.0)
28
- public_suffix (>= 2.0.2, < 4.0)
29
- adsf (1.4.1)
27
+ zeitwerk (~> 2.2)
28
+ addressable (2.7.0)
29
+ public_suffix (>= 2.0.2, < 5.0)
30
+ adsf (1.4.2)
30
31
  rack (>= 1.0.0, < 3.0.0)
31
32
  byebug (11.0.1)
32
33
  coderay (1.1.2)
33
34
  colored (1.2)
34
35
  concurrent-ruby (1.1.5)
35
- cri (2.15.3)
36
- colored (~> 1.2)
36
+ cri (2.15.9)
37
37
  ddmemoize (1.0.0)
38
38
  ddmetrics (~> 1.0)
39
39
  ref (~> 2.0)
40
40
  ddmetrics (1.0.1)
41
41
  ddplugin (1.0.2)
42
- ffi (1.10.0)
42
+ diff-lcs (1.3)
43
+ equatable (0.6.1)
44
+ ffi (1.11.1)
43
45
  formatador (0.2.5)
44
- guard (2.15.0)
46
+ guard (2.16.1)
45
47
  formatador (>= 0.2.4)
46
48
  listen (>= 2.7, < 4.0)
47
49
  lumberjack (>= 1.0.12, < 2.0)
@@ -56,63 +58,81 @@ GEM
56
58
  guard-compat (~> 1.0)
57
59
  hamster (3.0.0)
58
60
  concurrent-ruby (~> 1.0)
59
- i18n (1.6.0)
61
+ i18n (1.7.0)
60
62
  concurrent-ruby (~> 1.0)
61
63
  icalendar (2.5.3)
62
64
  ice_cube (~> 0.16)
63
65
  ice_cube (0.16.3)
64
66
  json (2.2.0)
65
- json_schema (0.20.4)
67
+ json_schema (0.20.8)
66
68
  kramdown (2.1.0)
67
- listen (3.1.5)
68
- rb-fsevent (~> 0.9, >= 0.9.4)
69
- rb-inotify (~> 0.9, >= 0.9.7)
70
- ruby_dep (~> 1.2)
69
+ listen (3.2.0)
70
+ rb-fsevent (~> 0.10, >= 0.10.3)
71
+ rb-inotify (~> 0.9, >= 0.9.10)
71
72
  lumberjack (1.0.13)
72
73
  method_source (0.9.2)
73
74
  mini_portile2 (2.4.0)
74
- minitest (5.11.3)
75
- nanoc (4.11.0)
75
+ minitest (5.13.0)
76
+ nanoc (4.11.13)
76
77
  addressable (~> 2.5)
78
+ colored (~> 1.2)
79
+ nanoc-cli (= 4.11.13)
80
+ nanoc-core (= 4.11.13)
81
+ parallel (~> 1.12)
82
+ tty-command (~> 0.8)
83
+ tty-which (~> 0.4)
84
+ nanoc-cli (4.11.13)
77
85
  cri (~> 2.15)
86
+ diff-lcs (~> 1.3)
87
+ nanoc-core (= 4.11.13)
88
+ zeitwerk (~> 2.1)
89
+ nanoc-core (4.11.13)
78
90
  ddmemoize (~> 1.0)
79
91
  ddmetrics (~> 1.0)
80
92
  ddplugin (~> 1.0)
81
93
  hamster (~> 3.0)
82
94
  json_schema (~> 0.19)
83
- parallel (~> 1.12)
84
- ref (~> 2.0)
85
95
  slow_enumerator_tools (~> 1.0)
86
96
  tomlrb (~> 1.2)
97
+ tty-platform (~> 0.2)
98
+ zeitwerk (~> 2.1)
87
99
  nenv (0.3.0)
88
- nokogiri (1.10.2)
100
+ nokogiri (1.10.5)
89
101
  mini_portile2 (~> 2.4.0)
90
- notiffany (0.1.1)
102
+ notiffany (0.1.3)
91
103
  nenv (~> 0.1)
92
104
  shellany (~> 0.0)
93
- parallel (1.17.0)
105
+ parallel (1.18.0)
106
+ pastel (0.7.3)
107
+ equatable (~> 0.6)
108
+ tty-color (~> 0.5)
94
109
  pry (0.12.2)
95
110
  coderay (~> 1.1.0)
96
111
  method_source (~> 0.9.0)
97
- public_suffix (3.0.3)
112
+ public_suffix (4.0.1)
98
113
  rack (2.0.7)
99
- rake (12.3.2)
114
+ rake (13.0.0)
100
115
  rb-fsevent (0.10.3)
101
116
  rb-inotify (0.10.0)
102
117
  ffi (~> 1.0)
103
118
  ref (2.0.0)
104
- ruby_dep (1.5.0)
105
- rubytree (1.0.1)
119
+ rubytree (1.0.0)
106
120
  json (~> 2.1)
107
121
  structured_warnings (~> 0.3)
108
122
  shellany (0.0.1)
109
123
  slow_enumerator_tools (1.1.0)
110
- structured_warnings (0.3.0)
124
+ structured_warnings (0.4.0)
111
125
  thor (0.20.3)
112
126
  thread_safe (0.3.6)
113
127
  tomlrb (1.2.8)
128
+ tty-color (0.5.0)
129
+ tty-command (0.9.0)
130
+ pastel (~> 0.7.0)
131
+ tty-platform (0.2.1)
132
+ tty-which (0.4.1)
114
133
  tzinfo (1.2.5)
115
134
  thread_safe (~> 0.1)
135
+ zeitwerk (2.2.1)
116
136
 
117
137
  PLATFORMS
118
138
  ruby
@@ -123,4 +143,4 @@ DEPENDENCIES
123
143
  rake
124
144
 
125
145
  BUNDLED WITH
126
- 1.17.2
146
+ 2.1.2
@@ -49,12 +49,20 @@ module ContentHelpers
49
49
 
50
50
  def ir(string); italic_red(string); end
51
51
 
52
+ def callout_1(title, body)
53
+ <<~HTMLSTRING
54
+ <div class="well well-sm">
55
+ <span class="themebg label label-primary">#{title}</span>#{body}
56
+ </div>
57
+ HTMLSTRING
58
+ end
59
+
52
60
  def callout(title, body)
53
- <<-HTMLSTRING
54
- <div class="well well-sm">
55
- <span class="themebg label label-primary">#{title}</span>#{body}
56
- </div>
57
- HTMLSTRING
61
+ <<~HTMLSTRING
62
+ <div class="border border-primary rounded p-2 m-3">
63
+ <span class="badge badge-pill badge-primary">#{title}</span>#{body}
64
+ </div>
65
+ HTMLSTRING
58
66
  end
59
67
 
60
68
  def textbadge(text, tooltip)
@@ -62,19 +70,19 @@ HTMLSTRING
62
70
  end
63
71
 
64
72
  def iconbadge(icon, tooltip)
65
- %(<span class="glyphicon glyphicon-#{icon} themefg" data-toggle="tooltip" data-placement="top" title="#{tooltip}"></span>)
73
+ %(<span class="fas fa-#{icon} themefg" data-toggle="tooltip" data-placement="top" title="#{tooltip}"></span>)
66
74
  end
67
75
 
68
76
  def pdfbadge
69
- iconbadge("file", "Submit as 1 page pdf, include name and homework #")
77
+ iconbadge("file-pdf", "Submit as 1 page pdf, include name and homework #")
70
78
  end
71
79
 
72
80
  def codebadge
73
- iconbadge("cloud", "Work on code in your portfolio")
81
+ iconbadge("code", "Work on code in your portfolio")
74
82
  end
75
83
 
76
84
  def cloudbadge
77
- codebadge
85
+ iconbadge("cloud-upload-alt", "Work on code in your portfolio")
78
86
  end
79
87
 
80
88
  def zipbadge
@@ -82,15 +90,15 @@ HTMLSTRING
82
90
  end
83
91
 
84
92
  def partbadge
85
- iconbadge("check", "Graded for participation only - pass/fail")
93
+ iconbadge("hand-peace", "Graded for participation only - pass/fail")
86
94
  end
87
95
 
88
96
  def timebadge
89
- iconbadge("time", "Must be submitted first thing on day of class")
97
+ iconbadge("coffee", "Must be submitted first thing on day of class")
90
98
  end
91
99
 
92
100
  def teambadge
93
- iconbadge("tent", "Team Deliverable")
101
+ iconbadge("handshake", "Team Deliverable")
94
102
  end
95
103
 
96
104
  def include_image_old(filename_string, extra_class: nil)
@@ -102,13 +110,13 @@ HTMLSTRING
102
110
  end
103
111
 
104
112
  def include_image(filename_string, extra: "")
105
- <<-HTMLSTRING
106
- <div class="row">
107
- <div class="col-md-offset-2 col-md-8">
108
- <img src="#{filename_string}" class="img-responsive img-thumbnail" #{extra}/>
109
- </div>
110
- </div>
111
- HTMLSTRING
113
+ <<~HTMLSTRING
114
+ <div class="row">
115
+ <div class="col-md-offset-2 col-md-8">
116
+ <img src="#{filename_string}" class="img-responsive img-thumbnail" #{extra}/>
117
+ </div>
118
+ </div>
119
+ HTMLSTRING
112
120
  end
113
121
 
114
122
  def image(filename_string, extra: "")
@@ -302,4 +310,14 @@ HTMLSTRING
302
310
  def lab_note(title)
303
311
  "<h5 style=\"font-family:'Permanent Marker'; font-szie:18px; color: red;\">#{title}</h5>"
304
312
  end
313
+
314
+ def toasty(header, *items)
315
+ str = %Q(<div class="border border-info rounded w-75 mx-auto p-2 m-3">
316
+ <h5>#{header}</h5><ul>)
317
+ items.each do |itm|
318
+ str += "<li>" + itm + "</li>"
319
+ end
320
+ str += "</ul></div>"
321
+ str
322
+ end
305
323
  end
@@ -53,12 +53,12 @@ module NavigationHelpers
53
53
 
54
54
  def link_to_next toc, item
55
55
  next_nitem = toc.find_next_forn(item).identifier
56
- nav_markup "", @items[next_nitem].path, "glyphicon glyphicon-arrow-right", "next page"
56
+ nav_markup2 @items[next_nitem].path, "next"
57
57
  end
58
58
 
59
59
  def link_to_prev toc, item
60
60
  prev_nitem = toc.find_previous_forn(item).identifier
61
- nav_markup "", @items[prev_nitem].path, "glyphicon glyphicon-arrow-left", "previous page"
61
+ nav_markup2 @items[prev_nitem].path, "previous"
62
62
  end
63
63
 
64
64
  def link_to_inclusion item
@@ -75,4 +75,8 @@ module NavigationHelpers
75
75
  def nav_markup text, path, icon, tooltip=""
76
76
  "<a class=\"nav-btn btn btn-mini\" href=\"#{path}\"><i class=\"#{icon}\" rel=\"tooltip\" title=\"#{tooltip}\"></i>#{text}</a>"
77
77
  end
78
+
79
+ def nav_markup2 path, text
80
+ "<a class=\"btn btn-sm btn-light\" href=\"#{path}\">#{text}</a>"
81
+ end
78
82
  end
@@ -1,3 +1,3 @@
1
1
  module Coursegen
2
- VERSION = "0.7.7"
2
+ VERSION = "0.8.1"
3
3
  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.7.7
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pito Salas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-27 00:00:00.000000000 Z
11
+ date: 2020-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -230,6 +230,7 @@ extra_rdoc_files: []
230
230
  files:
231
231
  - ".DS_Store"
232
232
  - ".gitignore"
233
+ - ".vscode/settings.json"
233
234
  - Gemfile
234
235
  - Gemfile.lock
235
236
  - LICENSE.txt
@@ -341,7 +342,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
341
342
  - !ruby/object:Gem::Version
342
343
  version: '0'
343
344
  requirements: []
344
- rubygems_version: 3.0.1
345
+ rubygems_version: 3.0.3
345
346
  signing_key:
346
347
  specification_version: 4
347
348
  summary: Use Nanoc to build courses and deploy them to S3