lessons_indexer 0.2.3 → 0.3.0

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: e1dc2b20d73f6fd79adc5feded4cb85f46f33365
4
- data.tar.gz: c9b696f2fb88f8fa53aa84e9e2b342c0c5f5a791
3
+ metadata.gz: 3461741f091bb48fa6494c54bf7e6ea29ddbed1a
4
+ data.tar.gz: 1fe9ee0ef860817d04b10d00867b24ad4aed5969
5
5
  SHA512:
6
- metadata.gz: e02ed5991a0b0f5a2e7a020868dd4d9f1c0517a1cf1cd8dbc5b0125b3a409f3ef8c7b6c7b0a4d6f75a1c25fd689647714c7ca101772cc9b46c1d19a4e07c4b94
7
- data.tar.gz: 69e72c82876fca2804369158d1a11536528343aea1d9fd7cf59219debf4a68ccdb8d0151c56e27d4c903821ca7f755649ec258e513dab6695bd7f0355916cd12
6
+ metadata.gz: fd78f1f7c947517a2ae09d0f31afeb7775900d87c00cae6d4e6ddefce2a624e01914ebfc0d3a13653d76908c406f921855ed7c92ff76e1f15ceaa7c8255d0b6e
7
+ data.tar.gz: bb52b38adfbb6e886eb9266bf9dde236370409ee6e8e79ead063e571f9bcd157f724dbd67f711fbcd8f1b16aec8d606715b10e79f2ebaae473d8a3a8c1045fdb
data/README.md CHANGED
@@ -3,10 +3,9 @@
3
3
  [![Code Climate](https://codeclimate.com/github/bodrovis/lessons_indexer/badges/gpa.svg)](https://codeclimate.com/github/bodrovis/lessons_indexer)
4
4
  [![Test Coverage](https://codeclimate.com/github/bodrovis/lessons_indexer/badges/coverage.svg)](https://codeclimate.com/github/bodrovis/lessons_indexer/coverage)
5
5
  [![Dependency Status](https://gemnasium.com/bodrovis/lessons_indexer.svg)](https://gemnasium.com/bodrovis/lessons_indexer)
6
- # Lessons Indexer for Learnable
6
+ # Lessons Indexer for Sitepoint Premium
7
7
 
8
- Builds an index in Markdown format for the lesson files in the provided directory, adds heading images to the files,
9
- pushes changes to GitHub. Can work with multiple branches.
8
+ Builds an index in Markdown format for the lesson files in the provided directory, adds heading images to the files, generates PDFs from Markdown, pushes changes to GitHub. Can work with multiple branches.
10
9
 
11
10
  ## Installation and Usage
12
11
 
@@ -19,8 +19,8 @@ Gem::Specification.new do |spec|
19
19
  spec.add_dependency "facets", "~> 3.0"
20
20
  spec.add_dependency "colorize", "~> 0.7.7"
21
21
 
22
- spec.add_development_dependency "rake", "~> 10.4"
23
- spec.add_development_dependency "rspec", "~> 3.2"
22
+ spec.add_development_dependency "rake", "~> 10.5"
23
+ spec.add_development_dependency "rspec", "~> 3.4"
24
24
  spec.add_development_dependency "codeclimate-test-reporter", "~> 0.4"
25
- spec.add_development_dependency "fasterer", "~> 0.1"
25
+ spec.add_development_dependency "fasterer", "~> 0.3"
26
26
  end
@@ -16,8 +16,7 @@ module LessonsIndexer
16
16
 
17
17
  def parse_args(argv)
18
18
  begin
19
- Slop.parse(argv, strict: true, help: true,
20
- banner: 'Welcome to Lessons Indexer. Here is the list of available options:') do |o|
19
+ Slop.parse argv do |o|
21
20
  o.string '-p', '--path', 'Path to the directory with the course', default: '.'
22
21
  o.bool '-s', '--skip_index', 'Skip index generation for the course', default: false
23
22
  o.string '-o', '--output', 'Output file', default: 'README.md'
@@ -27,6 +26,10 @@ module LessonsIndexer
27
26
  o.bool '-i', '--headings', 'Add heading images to the beginning of the lesson files?', default: false
28
27
  o.string '-d', '--headings_dir', 'Relative path to the directory with heading images', default: 'headings'
29
28
  o.bool '-f', '--pdf', 'Should PDFs be generated?', default: false
29
+ o.on '--help' do
30
+ puts o
31
+ exit
32
+ end
30
33
  end.to_hash
31
34
  rescue Slop::Error => e
32
35
  exit_msg e.message
@@ -1,3 +1,3 @@
1
1
  module LessonsIndexer
2
- VERSION = "0.2.3"
2
+ VERSION = "0.3.0"
3
3
  end
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.3
4
+ version: 0.3.0
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-30 00:00:00.000000000 Z
11
+ date: 2016-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slop
@@ -58,28 +58,28 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '10.4'
61
+ version: '10.5'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '10.4'
68
+ version: '10.5'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '3.2'
75
+ version: '3.4'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '3.2'
82
+ version: '3.4'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: codeclimate-test-reporter
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0.1'
103
+ version: '0.3'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0.1'
110
+ version: '0.3'
111
111
  description: Lessons Indexer for Learnable
112
112
  email:
113
113
  - golosizpru@gmail.com
@@ -176,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
176
  version: '0'
177
177
  requirements: []
178
178
  rubyforge_project:
179
- rubygems_version: 2.5.0
179
+ rubygems_version: 2.5.1
180
180
  signing_key:
181
181
  specification_version: 4
182
182
  summary: Lessons Indexer for Learnable
@@ -196,4 +196,3 @@ test_files:
196
196
  - spec/support/spec_files_setup.rb
197
197
  - spec/support/spec_samples.rb
198
198
  - spec/support/spec_utils.rb
199
- has_rdoc: