lessons_indexer 1.2.1 → 1.2.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
  SHA1:
3
- metadata.gz: e3ab9f56e8047213550030b58897f47cade71a8f
4
- data.tar.gz: fa3631a521eb736e6a7d43c69d22d38fcd926d28
3
+ metadata.gz: 435740e20556cdcc9afe9d2f5814396e8db69703
4
+ data.tar.gz: 160c870ed9a89f66463f923723701a2c4b13652e
5
5
  SHA512:
6
- metadata.gz: bc8cc6f0d64db5408a174e4b657c0a36966edc8d36f03697e69e1e87ddac38c747093d57e3041042cd9699e1174ba912a39315063226cc3a5dcccf1a22d6b932
7
- data.tar.gz: 4a057a498f868de92d1d66869819cb3d4f1d93283938bb1a71b5a83fce1e6f13556566144b9ae2f1002796fbdbd238886fb9b8c84c7425b6b635809e4a261bef
6
+ metadata.gz: 69ab600484d098f9f5624bf5289464d6a5a031038883eebe38e13a2720b1b1315aa165264e4053bf0b83ef5a5609c6f3c6587e8514c0555bd3a9e63a7de588b8
7
+ data.tar.gz: d13734f633615c4827be3065ef1351a26380310082166c4c552843399bc3c4e54a838bc31e0d52fcacb752daf123e701e00f256f8a7d550687f773f12f9afeae
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
 
20
20
  spec.add_dependency "slop", "~> 4.2"
21
21
  spec.add_dependency "facets", "~> 3.0"
22
- spec.add_dependency "colorize", "~> 0.7.7"
22
+ spec.add_dependency "colorize", "~> 0.8"
23
23
  spec.add_dependency "messages_dictionary", "~> 0.1.2"
24
24
 
25
25
  spec.add_development_dependency "rake", "~> 11.1"
@@ -1,40 +1,40 @@
1
- module LessonsIndexer
2
- class Options < Messenger
3
- def initialize(argv)
4
- parse_args(argv).each do |k, v|
5
- # attr_accessor for each possible option
6
- self.class.class_eval do
7
- attr_accessor k
8
- end
9
-
10
- # setting each option as instance variable
11
- self.instance_variable_set "@#{k}", v
12
- end
13
- end
14
-
15
- private
16
-
17
- def parse_args(argv)
18
- begin
19
- Slop.parse argv do |o|
20
- o.string '-p', '--path', pou('options.path'), default: pou('options.default.path')
21
- o.bool '-s', '--skip_index', pou('options.skip_index'), default: false
22
- o.string '-o', '--output', pou('options.output'), default: pou('options.default.output')
23
- o.bool '-g', '--git', pou('options.git'), default: false
24
- o.string '-m', '--message', pou('options.message'), default: pou('options.default.message')
25
- o.bool '-a', '--all', pou('options.all'), default: false
26
- o.bool '-i', '--headings', pou('options.headings'), default: false
27
- o.string '-d', '--headings_dir', pou('options.headings_dir'), default: pou('options.default.headings_dir')
28
- o.bool '-f', '--pdf', pou('options.pdf'), default: false
29
- o.array '-l', '--lessons', pou('options.lessons'), default: []
30
- o.on '--help' do
31
- puts o
32
- exit
33
- end
34
- end.to_hash
35
- rescue Slop::Error => e
36
- exit_msg e.message
37
- end
38
- end
39
- end
1
+ module LessonsIndexer
2
+ class Options < Messenger
3
+ def initialize(argv)
4
+ parse_args(argv).each do |k, v|
5
+ # attr_accessor for each possible option
6
+ self.class.class_eval do
7
+ attr_accessor k
8
+ end
9
+
10
+ # setting each option as instance variable
11
+ self.instance_variable_set "@#{k}", v
12
+ end
13
+ end
14
+
15
+ private
16
+
17
+ def parse_args(argv)
18
+ begin
19
+ Slop.parse argv do |o|
20
+ o.string '-p', '--path', pou('options.path'), default: pou('options.default.path')
21
+ o.bool '-s', '--skip_index', pou('options.skip_index'), default: false
22
+ o.string '-o', '--output', pou('options.output'), default: pou('options.default.output')
23
+ o.bool '-g', '--git', pou('options.git'), default: false
24
+ o.string '-m', '--message', pou('options.message'), default: pou('options.default.message')
25
+ o.bool '-a', '--all', pou('options.all'), default: false
26
+ o.bool '-i', '--headings', pou('options.headings'), default: false
27
+ o.string '-d', '--headings_dir', pou('options.headings_dir'), default: pou('options.default.headings_dir')
28
+ o.bool '-f', '--pdf', pou('options.pdf'), default: false
29
+ o.array '-l', '--lessons', pou('options.lessons'), default: []
30
+ o.on '--help' do
31
+ puts o
32
+ exit
33
+ end
34
+ end.to_hash
35
+ rescue Slop::Error => e
36
+ exit_msg e.message
37
+ end
38
+ end
39
+ end
40
40
  end
@@ -1,3 +1,3 @@
1
1
  module LessonsIndexer
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
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: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya Bodrov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-29 00:00:00.000000000 Z
11
+ date: 2016-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slop
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.7.7
47
+ version: '0.8'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.7.7
54
+ version: '0.8'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: messages_dictionary
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
192
  version: '0'
193
193
  requirements: []
194
194
  rubyforge_project:
195
- rubygems_version: 2.6.4
195
+ rubygems_version: 2.6.3
196
196
  signing_key:
197
197
  specification_version: 4
198
198
  summary: Lessons Indexer for Learnable
@@ -212,3 +212,4 @@ test_files:
212
212
  - spec/support/spec_files_setup.rb
213
213
  - spec/support/spec_samples.rb
214
214
  - spec/support/spec_utils.rb
215
+ has_rdoc: