coursegen 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +25 -0
- data/lib/coursegen/course/helpers/sidebar_helpers.rb +4 -4
- data/lib/coursegen/version.rb +1 -1
- data/pkg/coursegen-0.0.1.gem +0 -0
- data/pkg/coursegen-0.0.2.gem +0 -0
- data/pkg/coursegen-0.0.3.gem +0 -0
- data/tech_debt.md +13 -0
- data/templates/.gitignore +3 -0
- data/templates/content/bootstrap/css/custom.css +1 -1
- data/templates/doc/readme.md +3 -0
- metadata +8 -2
- data/.gitignore +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 641c6b409ee8a797f79248602e2addc7b025ef63
|
4
|
+
data.tar.gz: 1088e150d540207edb0e717c2b8319841bb0ec75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e8731511aa5626696c28882bffe886de272b5f2b1c1061c53bda28f24c3134dc3b4b35ca1e714e05214ee92e059fb91439b83c15ed8f3485ba7ded02af01a8c
|
7
|
+
data.tar.gz: f94af8c16f907a600feb17cc5fffd514d47cea493100b6f54fa4bc14c250452acad148e5eacd874b1f75b66281adb4dccd36cafdeaca6d07dc1e1dc847bbdd65
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
coursegen (0.0.1)
|
5
|
+
nanoc
|
6
|
+
thor
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
colored (1.2)
|
12
|
+
cri (2.6.0)
|
13
|
+
colored (~> 1.2)
|
14
|
+
nanoc (3.6.11)
|
15
|
+
cri (~> 2.3)
|
16
|
+
rake (10.3.2)
|
17
|
+
thor (0.19.1)
|
18
|
+
|
19
|
+
PLATFORMS
|
20
|
+
ruby
|
21
|
+
|
22
|
+
DEPENDENCIES
|
23
|
+
bundler (~> 1.6)
|
24
|
+
coursegen!
|
25
|
+
rake
|
@@ -3,7 +3,7 @@ module SidebarHelpers
|
|
3
3
|
sect = Toc.instance.section(selector)
|
4
4
|
str = "<li>
|
5
5
|
<label class=\"tree-toggler level1\">
|
6
|
-
#{collapsed_indicator(sect
|
6
|
+
#{collapsed_indicator(sect.collapsed?)}
|
7
7
|
#{title}
|
8
8
|
</label>"
|
9
9
|
if sect.has_subsections?
|
@@ -22,10 +22,10 @@ module SidebarHelpers
|
|
22
22
|
"<ul class=\"tree\">
|
23
23
|
<li>
|
24
24
|
<label class=\"tree-toggler level2\">
|
25
|
-
#{collapsed_indicator(sect.content.collapsed)}
|
25
|
+
#{collapsed_indicator(sect.content.collapsed?)}
|
26
26
|
#{sect.content.title}
|
27
27
|
</label>
|
28
|
-
#{subsection(sect, sect.content.collapsed)}
|
28
|
+
#{subsection(sect, sect.content.collapsed?)}
|
29
29
|
</li>
|
30
30
|
</ul>"
|
31
31
|
end
|
@@ -46,7 +46,7 @@ module SidebarHelpers
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def flat_section sect
|
49
|
-
disp_clause = sect
|
49
|
+
disp_clause = sect.collapsed? ? "display: none" : "display: block"
|
50
50
|
str = "<ul class=\"tree\" style=\"#{disp_clause}\">"
|
51
51
|
str = sect.reduce(str) { |acc, item| acc + flat_section_item_link(item) }
|
52
52
|
str += "</ul>"
|
data/lib/coursegen/version.rb
CHANGED
Binary file
|
Binary file
|
Binary file
|
data/tech_debt.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
### Technical Debt
|
2
|
+
|
3
|
+
* In Citem, lecture_num and _date should refer to "event" not a lecture
|
4
|
+
* Is null item handling in Scheduler done the right way? Does it pay?
|
5
|
+
* Look at the two constructors of citem. There's a nicer way to handle that
|
6
|
+
* Make the way mocks are built in specs more consitent
|
7
|
+
* A way to have a nested section which is not an 'event' based section
|
8
|
+
* Clean up the placement of the .js files for the search stuff. It's a bit messy
|
9
|
+
|
10
|
+
### Features
|
11
|
+
|
12
|
+
* Add a macro for <%= link_to_next_lecture %>
|
13
|
+
* Add a way to automatically generate a list of homeworks on a single page
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coursegen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pito Salas
|
@@ -88,8 +88,8 @@ executables:
|
|
88
88
|
extensions: []
|
89
89
|
extra_rdoc_files: []
|
90
90
|
files:
|
91
|
-
- ".gitignore"
|
92
91
|
- Gemfile
|
92
|
+
- Gemfile.lock
|
93
93
|
- LICENSE.txt
|
94
94
|
- README.md
|
95
95
|
- Rakefile
|
@@ -113,12 +113,17 @@ files:
|
|
113
113
|
- lib/coursegen/course/lib/toc.rb
|
114
114
|
- lib/coursegen/templates.rb
|
115
115
|
- lib/coursegen/version.rb
|
116
|
+
- pkg/coursegen-0.0.1.gem
|
117
|
+
- pkg/coursegen-0.0.2.gem
|
118
|
+
- pkg/coursegen-0.0.3.gem
|
116
119
|
- spec/citem_spec.rb
|
117
120
|
- spec/lectures_spec.rb
|
118
121
|
- spec/scheduler_spec.rb
|
119
122
|
- spec/section_spec.rb
|
120
123
|
- spec/spec_helper.rb
|
121
124
|
- spec/toc_spec.rb
|
125
|
+
- tech_debt.md
|
126
|
+
- templates/.gitignore
|
122
127
|
- templates/Rules
|
123
128
|
- templates/cg_config.rb
|
124
129
|
- templates/cg_config.rb_sample
|
@@ -126,6 +131,7 @@ files:
|
|
126
131
|
- templates/content/bootstrap/fonts/glyphicons-halflings-regular.ttf
|
127
132
|
- templates/content/bootstrap/js/custom.js
|
128
133
|
- templates/content/content/index.md.erb
|
134
|
+
- templates/doc/readme.md
|
129
135
|
- templates/layouts/body_footer.html
|
130
136
|
- templates/layouts/body_header.html.erb
|
131
137
|
- templates/layouts/course.html
|
data/.gitignore
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
*.gem
|
2
|
-
*.rbc
|
3
|
-
.bundle
|
4
|
-
.config
|
5
|
-
.yardoc
|
6
|
-
Gemfile.lock
|
7
|
-
InstalledFiles
|
8
|
-
_yardoc
|
9
|
-
coverage
|
10
|
-
doc/
|
11
|
-
lib/bundler/man
|
12
|
-
pkg
|
13
|
-
rdoc
|
14
|
-
spec/reports
|
15
|
-
test/tmp
|
16
|
-
test/version_tmp
|
17
|
-
tmp
|
18
|
-
*.bundle
|
19
|
-
*.so
|
20
|
-
*.o
|
21
|
-
*.a
|
22
|
-
mkmf.log
|