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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 066ca6597bddc89b3925da3df00a4732cfdc4977
4
- data.tar.gz: 176a832789ba3064daeb96fac15c8de2abbdd31d
3
+ metadata.gz: def7a3dfd90a486af7457b677482b088f03ed276
4
+ data.tar.gz: 78343697d868e13b0ae4d0344ee3cdf761372e31
5
5
  SHA512:
6
- metadata.gz: 41ec1829cc6aa5c2e845189263a53e0e93080596f466a17f4ee1585734060f2f8057b44ea107c6e5496819978fe23699e5b0ca0de95d99c49f1bc2dbdd0e8a45
7
- data.tar.gz: ca02f59549d1e92127b1ebeda8139c78ab18ce1dfefcd5acf57f9416ad39326fbbb795344e00fd5b4874ee6bd2670da4bb3b6257c7ae113f4a3f28f47050d42f
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, '')}.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"}
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
@@ -1,3 +1,3 @@
1
1
  module LessonsIndexer
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  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.0
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-05-20 00:00:00.000000000 Z
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.6
165
+ rubygems_version: 2.4.7
166
166
  signing_key:
167
167
  specification_version: 4
168
168
  summary: Lessons Indexer for Learnable