lessons_indexer 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/lessons_indexer/course.rb +1 -1
- data/lib/lessons_indexer/version.rb +1 -1
- data/spec/indexer_spec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: def7a3dfd90a486af7457b677482b088f03ed276
|
4
|
+
data.tar.gz: 78343697d868e13b0ae4d0344ee3cdf761372e31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02fb69eb0f55cac722b3cb55e6bce82847e7dad4a58be66c9c555b3e2ae19b3c27b43a66567677d24deca3b20732e098fe6766f65f235dd44be226244f67f68c
|
7
|
+
data.tar.gz: 866c73d462214f752094c038ae08f49f30f00ae3a7c533272dbf9a1acbf681d18d2b5ca2fef5a9e3686b37594046e0c34ae15c391867a6a60bbd0b7d881a3c54
|
data/README.md
CHANGED
@@ -72,7 +72,7 @@ this step will be just skipped and the corresponding warning message will be dis
|
|
72
72
|
|
73
73
|
## PDF Generation
|
74
74
|
|
75
|
-
Starting from version **0.2.0** Indexer supports PDF generation. It is disabled by default - provide `-f` flag to enable this feature.
|
75
|
+
Starting from version **0.2.0** Indexer supports PDF generation ([GitHub Flavored Markdown](https://help.github.com/articles/github-flavored-markdown/) is expected). It is disabled by default - provide `-f` flag to enable this feature.
|
76
76
|
|
77
77
|
PDF generation is not a very simple process, so some additional software has to be installed on your machine:
|
78
78
|
|
@@ -32,7 +32,7 @@ module LessonsIndexer
|
|
32
32
|
def generate_pdfs
|
33
33
|
within(dir, true) do
|
34
34
|
lessons.list.sort.each do |lesson|
|
35
|
-
%x{pandoc #{lesson.file_name} -f markdown_github -o #{lesson.file_name.gsub(/md\z/i, '')}
|
35
|
+
%x{pandoc #{lesson.file_name} -f markdown_github -o #{lesson.file_name.gsub(/md\z/i, '')}pdf --variable geometry:"top=1.5cm, bottom=2.5cm, left=1.5cm, right=1.5cm" --latex-engine=xelatex --variable mainfont="Open Sans" --variable monofont="Liberation Mono" --variable fontsize="12pt"}
|
36
36
|
end
|
37
37
|
end
|
38
38
|
end
|
data/spec/indexer_spec.rb
CHANGED
@@ -47,7 +47,7 @@ RSpec.describe LessonsIndexer::Indexer do
|
|
47
47
|
|
48
48
|
context "#get_course_dir" do
|
49
49
|
it "should return course dir" do
|
50
|
-
expect(subject.get_course_dir)
|
50
|
+
expect(subject.get_course_dir).to eq('my_course_handouts')
|
51
51
|
end
|
52
52
|
|
53
53
|
it "should abort if course dir is not found" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lessons_indexer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ilya Bodrov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slop
|
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
162
|
version: '0'
|
163
163
|
requirements: []
|
164
164
|
rubyforge_project:
|
165
|
-
rubygems_version: 2.4.
|
165
|
+
rubygems_version: 2.4.7
|
166
166
|
signing_key:
|
167
167
|
specification_version: 4
|
168
168
|
summary: Lessons Indexer for Learnable
|