coursegen 0.8.1 → 0.8.2

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: cca3ea6a24a51feffa46a0c72ee7d27fef3ce1988a3690d8fb3772b7ccc2d238
4
- data.tar.gz: 5b97d5fb5babc88014f1ac9b76f3904a0a7b59b6b4e04026fc57f3dd658b6c80
3
+ metadata.gz: 3d7cfecbdfc9cc27a34202651fcf666fe196e282fb74838c2d0b15d23ac41538
4
+ data.tar.gz: 5e29b7102285aaf434953ae280c9a2fc4003aad4feb30e11d05f0c4e6685bc49
5
5
  SHA512:
6
- metadata.gz: 97746947829dc2bce361063028566124117d596b88be444a0c59197ad48920771823738bd7f116d04e2aadacaa0013ee94388b9a36df9ed247ca7912425c8834
7
- data.tar.gz: d9772ec587218a8b72536a7fde92e16ec7defb40118342c1ee6700ea9ef3c360c2fe3bbf0556008c881769b91fedc04332ed675cbea490ac3f46154795bb9e5d
6
+ metadata.gz: 25463aff6ebacc54b69f6b0b97bc78b370b498fa18e3997b730c42cde32c9bb3cf3388c7aea222a5833094cdd2651d4d773fe8496156d6fd91f2e4c71c1daf88
7
+ data.tar.gz: 89ae5c4e44d465fe4738ccdd539984811189b103ffe83608880554e6a207b316cfb04bc91953617e1e2a2a22b9598417798d16d6287d0fc88c7d8da8e4013872
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- coursegen (0.8.0)
4
+ coursegen (0.8.1)
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.0.1)
22
+ activesupport (6.0.2.1)
23
23
  concurrent-ruby (~> 1.0, >= 1.0.2)
24
24
  i18n (>= 0.7, < 2)
25
25
  minitest (~> 5.1)
@@ -27,9 +27,9 @@ GEM
27
27
  zeitwerk (~> 2.2)
28
28
  addressable (2.7.0)
29
29
  public_suffix (>= 2.0.2, < 5.0)
30
- adsf (1.4.2)
30
+ adsf (1.4.3)
31
31
  rack (>= 1.0.0, < 3.0.0)
32
- byebug (11.0.1)
32
+ byebug (11.1.1)
33
33
  coderay (1.1.2)
34
34
  colored (1.2)
35
35
  concurrent-ruby (1.1.5)
@@ -41,7 +41,7 @@ GEM
41
41
  ddplugin (1.0.2)
42
42
  diff-lcs (1.3)
43
43
  equatable (0.6.1)
44
- ffi (1.11.1)
44
+ ffi (1.12.2)
45
45
  formatador (0.2.5)
46
46
  guard (2.16.1)
47
47
  formatador (>= 0.2.4)
@@ -58,35 +58,35 @@ GEM
58
58
  guard-compat (~> 1.0)
59
59
  hamster (3.0.0)
60
60
  concurrent-ruby (~> 1.0)
61
- i18n (1.7.0)
61
+ i18n (1.8.2)
62
62
  concurrent-ruby (~> 1.0)
63
- icalendar (2.5.3)
63
+ icalendar (2.6.1)
64
64
  ice_cube (~> 0.16)
65
65
  ice_cube (0.16.3)
66
- json (2.2.0)
66
+ json (2.1.0)
67
67
  json_schema (0.20.8)
68
68
  kramdown (2.1.0)
69
- listen (3.2.0)
69
+ listen (3.2.1)
70
70
  rb-fsevent (~> 0.10, >= 0.10.3)
71
71
  rb-inotify (~> 0.9, >= 0.9.10)
72
- lumberjack (1.0.13)
72
+ lumberjack (1.1.1)
73
73
  method_source (0.9.2)
74
74
  mini_portile2 (2.4.0)
75
- minitest (5.13.0)
76
- nanoc (4.11.13)
75
+ minitest (5.14.0)
76
+ nanoc (4.11.14)
77
77
  addressable (~> 2.5)
78
78
  colored (~> 1.2)
79
- nanoc-cli (= 4.11.13)
80
- nanoc-core (= 4.11.13)
79
+ nanoc-cli (= 4.11.14)
80
+ nanoc-core (= 4.11.14)
81
81
  parallel (~> 1.12)
82
82
  tty-command (~> 0.8)
83
83
  tty-which (~> 0.4)
84
- nanoc-cli (4.11.13)
84
+ nanoc-cli (4.11.14)
85
85
  cri (~> 2.15)
86
86
  diff-lcs (~> 1.3)
87
- nanoc-core (= 4.11.13)
87
+ nanoc-core (= 4.11.14)
88
88
  zeitwerk (~> 2.1)
89
- nanoc-core (4.11.13)
89
+ nanoc-core (4.11.14)
90
90
  ddmemoize (~> 1.0)
91
91
  ddmetrics (~> 1.0)
92
92
  ddplugin (~> 1.0)
@@ -97,23 +97,23 @@ GEM
97
97
  tty-platform (~> 0.2)
98
98
  zeitwerk (~> 2.1)
99
99
  nenv (0.3.0)
100
- nokogiri (1.10.5)
100
+ nokogiri (1.10.7)
101
101
  mini_portile2 (~> 2.4.0)
102
102
  notiffany (0.1.3)
103
103
  nenv (~> 0.1)
104
104
  shellany (~> 0.0)
105
- parallel (1.18.0)
105
+ parallel (1.19.1)
106
106
  pastel (0.7.3)
107
107
  equatable (~> 0.6)
108
108
  tty-color (~> 0.5)
109
109
  pry (0.12.2)
110
110
  coderay (~> 1.1.0)
111
111
  method_source (~> 0.9.0)
112
- public_suffix (4.0.1)
113
- rack (2.0.7)
112
+ public_suffix (4.0.3)
113
+ rack (2.1.2)
114
114
  rake (13.0.0)
115
115
  rb-fsevent (0.10.3)
116
- rb-inotify (0.10.0)
116
+ rb-inotify (0.10.1)
117
117
  ffi (~> 1.0)
118
118
  ref (2.0.0)
119
119
  rubytree (1.0.0)
@@ -122,17 +122,17 @@ GEM
122
122
  shellany (0.0.1)
123
123
  slow_enumerator_tools (1.1.0)
124
124
  structured_warnings (0.4.0)
125
- thor (0.20.3)
125
+ thor (1.0.1)
126
126
  thread_safe (0.3.6)
127
- tomlrb (1.2.8)
127
+ tomlrb (1.2.9)
128
128
  tty-color (0.5.0)
129
129
  tty-command (0.9.0)
130
130
  pastel (~> 0.7.0)
131
131
  tty-platform (0.2.1)
132
132
  tty-which (0.4.1)
133
- tzinfo (1.2.5)
133
+ tzinfo (1.2.6)
134
134
  thread_safe (~> 0.1)
135
- zeitwerk (2.2.1)
135
+ zeitwerk (2.2.2)
136
136
 
137
137
  PLATFORMS
138
138
  ruby
@@ -143,4 +143,4 @@ DEPENDENCIES
143
143
  rake
144
144
 
145
145
  BUNDLED WITH
146
- 2.1.2
146
+ 2.1.4
@@ -174,48 +174,79 @@ module ContentHelpers
174
174
  body
175
175
  end
176
176
 
177
- def carousel(filenames)
178
- body = %(<div id="myCarousel" class="carousel slide" style="width: 500px; margin: 0 auto;">
179
- <div class="carousel-inner" style="margin: 20px; ">)
180
- counter = 0
181
- filenames.each do |nam|
182
- body << counter == 0 ? %(div class="item active">) : body << %(<div class="item">~
183
- body << %~<img src=")
184
- body << "/content/images/#{nam}"
185
- body << %(" class="img-polaroid" alt=""></div>)
186
- counter += 1
187
- end
188
- body << %(</div> <a class="left carousel-control" href="#myCarousel" data-slide="prev">‹</a>
189
- <a class="right carousel-control" href="#myCarousel" data-slide="next">›</a>
190
- </div>)
191
- body
192
- end
193
-
194
- def carousel_new(filenames)
195
- carousel_work(filenames.map { |filename| "/content/topics/images/" + filename })
196
- end
197
-
198
- def carousel_work(filenames)
199
- body = %(<div id="myCarousel" class="carousel slide" data-ride="carousel" style="width: 500px; margin: 0 auto;">
200
- <div class="carousel-inner" role="listbox" style="margin: 20px; ">)
201
- counter = 0
202
- filenames.each do |nam|
203
- ci = counter == 0 ? %(<div class="item active">) : %(<div class="item">)
204
- body << ci
205
- body << %(<img src=")
206
- body << nam
207
- body << %("/>"></div>)
208
- counter += 1
177
+ # def carousel(filenames)
178
+ # body = %(<div id="myCarousel" class="carousel slide" style="width: 500px; margin: 0 auto;">
179
+ # <div class="carousel-inner" style="margin: 20px; ">)
180
+ # counter = 0
181
+ # filenames.each do |nam|
182
+ # body << counter == 0 ? %(div class="item active">) : body << %(<div class="item">~
183
+ # body << %~<img src=")
184
+ # body << "/content/images/#{nam}"
185
+ # body << %(" class="img-polaroid" alt=""></div>)
186
+ # counter += 1
187
+ # end
188
+ # body << %(</div> <a class="left carousel-control" href="#myCarousel" data-slide="prev">‹</a>
189
+ # <a class="right carousel-control" href="#myCarousel" data-slide="next">›</a>
190
+ # </div>)
191
+ # body
192
+ # end
193
+
194
+ # def carousel_new(filenames)
195
+ # carousel_work(filenames.map { |filename| "/content/topics/images/" + filename })
196
+ # end
197
+
198
+ # def carousel_work(filenames)
199
+ # body = %(<div id="myCarousel" class="carousel slide" data-ride="carousel" style="width: 500px; margin: 0 auto;">
200
+ # <div class="carousel-inner" role="listbox" style="margin: 20px; ">)
201
+ # counter = 0
202
+ # filenames.each do |nam|
203
+ # ci = counter == 0 ? %(<div class="item active">) : %(<div class="item">)
204
+ # body << ci
205
+ # body << %(<img src=")
206
+ # body << nam
207
+ # body << %("/>"></div>)
208
+ # counter += 1
209
+ # end
210
+ # body << %(</div> <a class="left carousel-control" role="button" href="#myCarousel" data-slide="prev">
211
+ # <span class="glyphicon glyphicon-chevron-left"></span>
212
+ # <span class="sr-only">Previous</span>
213
+ # </a>
214
+ # <a class="right carousel-control" role="button" href="#myCarousel" data-slide="next">
215
+ # <span class="glyphicon glyphicon-chevron-right"></span>
216
+ # <span class="sr-only">Next</span>
217
+ # </a>
218
+ # </div>)
219
+ # body
220
+ # end
221
+
222
+ def carousel_V4(filenames)
223
+ body = <<~HEREDOC
224
+ <div id="carouselExampleControls" class="carousel slide" data-ride="carousel">
225
+ <div class="carousel-inner">
226
+ HEREDOC
227
+ count = 0
228
+ filenames.each do |fname|
229
+ active = count == 0 ? "active" : ""
230
+ body << <<~HEREDOC
231
+ <div class="carousel-item #{active}">
232
+ <img class="d-block w-100" src="/content/topics/images/#{fname}">
233
+ </div>
234
+ HEREDOC
235
+ count += 1
209
236
  end
210
- body << %(</div> <a class="left carousel-control" role="button" href="#myCarousel" data-slide="prev">
211
- <span class="glyphicon glyphicon-chevron-left"></span>
237
+ body << <<~HEREDOC
238
+ </div>
239
+ <a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">
240
+ <span class="carousel-control-prev-icon" aria-hidden="true"></span>
212
241
  <span class="sr-only">Previous</span>
213
242
  </a>
214
- <a class="right carousel-control" role="button" href="#myCarousel" data-slide="next">
215
- <span class="glyphicon glyphicon-chevron-right"></span>
243
+ <a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">
244
+ <span class="carousel-control-next-icon" aria-hidden="true"></span>
216
245
  <span class="sr-only">Next</span>
217
- </a>
218
- </div>)
246
+ </a>
247
+ </div>
248
+ HEREDOC
249
+ puts body
219
250
  body
220
251
  end
221
252
 
@@ -1,3 +1,3 @@
1
1
  module Coursegen
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
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.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pito Salas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-23 00:00:00.000000000 Z
11
+ date: 2020-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler