pretty_doc 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -1
- data/CHANGES.md +5 -0
- data/README.md +2 -0
- data/images/preview.png +0 -0
- data/lib/pretty_doc/cli.rb +13 -3
- data/lib/pretty_doc/resources/source.rb +1 -1
- data/lib/pretty_doc/version.rb +1 -1
- data/pretty_doc.gemspec +1 -0
- metadata +16 -2
- data/Gemfile.lock +0 -88
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99ad9b4ee951a789f5ab7613f3e43acec9366adb
|
4
|
+
data.tar.gz: 2ec5653c6eea1e16c405619ec7f0f448546df3ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f2cb299f889965b9682b3d809ac6658d75384a33dd010d2ff508b05641111e2bb1f5d58d27e06797f95a2d03d48ac68124d22bd4c34d5b470c8581f067913d4
|
7
|
+
data.tar.gz: 9374b5420585dcb7a2aa4be8021b33924ec8a5a7723defd05aff5c83bf2fee34887f6184b3f797034fb9c39f93c472360bbda67e6665b89cd62b171e7544639f
|
data/.gitignore
CHANGED
data/CHANGES.md
CHANGED
data/README.md
CHANGED
@@ -19,6 +19,8 @@ Pretty Doc is quick and convenient markdown to html converter with beautiful tem
|
|
19
19
|
+ [Template Bootstrap](https://lyfeyaj.github.io/pretty_doc/examples/bootstrap/README.html)
|
20
20
|
+ [Template Parallel](https://lyfeyaj.github.io/pretty_doc/examples/parallel/README.html)
|
21
21
|
|
22
|
+
![Template Parallel](images/preview.png)
|
23
|
+
|
22
24
|
## Installation
|
23
25
|
|
24
26
|
Pretty Doc is relied on `ruby` environment. Please make sure that your system has `ruby` installed.
|
data/images/preview.png
ADDED
Binary file
|
data/lib/pretty_doc/cli.rb
CHANGED
@@ -13,7 +13,7 @@ module PrettyDoc
|
|
13
13
|
options.enable_line_numbers = false
|
14
14
|
|
15
15
|
opts_parser = OptionParser.new do |opts|
|
16
|
-
opts.banner = 'Pretty document empowered by
|
16
|
+
opts.banner = 'Pretty document empowered by markdown language.'
|
17
17
|
opts.separator ''
|
18
18
|
opts.separator 'Usage: pretty_doc [options] files'
|
19
19
|
opts.separator ''
|
@@ -49,9 +49,19 @@ module PrettyDoc
|
|
49
49
|
|
50
50
|
opts_parser.parse!(args)
|
51
51
|
|
52
|
-
|
53
|
-
|
52
|
+
if args.length == 0
|
53
|
+
options.files = Dir.glob('./*.md')
|
54
|
+
else
|
55
|
+
args.each do |arg|
|
56
|
+
if File.directory? arg
|
57
|
+
arg = File.join(File.expand_path(arg), '*.md')
|
58
|
+
end
|
59
|
+
options.files.concat(Dir.glob(arg))
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
54
63
|
if options.files.length == 0
|
64
|
+
puts 'No file found'
|
55
65
|
puts opts_parser
|
56
66
|
exit
|
57
67
|
end
|
data/lib/pretty_doc/version.rb
CHANGED
data/pretty_doc.gemspec
CHANGED
@@ -24,6 +24,7 @@ Gem::Specification.new do |s|
|
|
24
24
|
s.add_dependency 'pygments.rb', '~> 0.6.3'
|
25
25
|
s.add_dependency 'compass', '~> 1.0.3'
|
26
26
|
s.add_dependency 'bootstrap-sass', '~> 3.3.5'
|
27
|
+
s.add_dependency 'stringex', '~> 2.5.2'
|
27
28
|
|
28
29
|
s.add_development_dependency 'bundler', ['>= 1.0.0']
|
29
30
|
s.add_development_dependency 'rake', ['>= 0']
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pretty_doc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lyfeyaj
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 3.3.5
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: stringex
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 2.5.2
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 2.5.2
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: bundler
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -163,12 +177,12 @@ files:
|
|
163
177
|
- ".gitignore"
|
164
178
|
- CHANGES.md
|
165
179
|
- Gemfile
|
166
|
-
- Gemfile.lock
|
167
180
|
- LICENSE
|
168
181
|
- README.md
|
169
182
|
- Rakefile
|
170
183
|
- bin/pretty_doc
|
171
184
|
- build.sh
|
185
|
+
- images/preview.png
|
172
186
|
- lib/pretty_doc.rb
|
173
187
|
- lib/pretty_doc/cli.rb
|
174
188
|
- lib/pretty_doc/converter.rb
|
data/Gemfile.lock
DELETED
@@ -1,88 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
pretty_doc (1.0.0)
|
5
|
-
bootstrap-sass (~> 3.3.5)
|
6
|
-
compass (~> 1.0.3)
|
7
|
-
kramdown (~> 1.8.0)
|
8
|
-
nokogiri (~> 1.6.6)
|
9
|
-
pygments.rb (~> 0.6.3)
|
10
|
-
|
11
|
-
GEM
|
12
|
-
remote: https://rubygems.org/
|
13
|
-
specs:
|
14
|
-
autoprefixer-rails (5.2.1.1)
|
15
|
-
execjs
|
16
|
-
json
|
17
|
-
bootstrap-sass (3.3.5.1)
|
18
|
-
autoprefixer-rails (>= 5.0.0.1)
|
19
|
-
sass (>= 3.3.0)
|
20
|
-
chunky_png (1.3.4)
|
21
|
-
coderay (1.1.0)
|
22
|
-
compass (1.0.3)
|
23
|
-
chunky_png (~> 1.2)
|
24
|
-
compass-core (~> 1.0.2)
|
25
|
-
compass-import-once (~> 1.0.5)
|
26
|
-
rb-fsevent (>= 0.9.3)
|
27
|
-
rb-inotify (>= 0.9)
|
28
|
-
sass (>= 3.3.13, < 3.5)
|
29
|
-
compass-core (1.0.3)
|
30
|
-
multi_json (~> 1.0)
|
31
|
-
sass (>= 3.3.0, < 3.5)
|
32
|
-
compass-import-once (1.0.5)
|
33
|
-
sass (>= 3.2, < 3.5)
|
34
|
-
diff-lcs (1.2.5)
|
35
|
-
execjs (2.5.2)
|
36
|
-
ffi (1.9.10)
|
37
|
-
json (1.8.3)
|
38
|
-
kramdown (1.8.0)
|
39
|
-
method_source (0.8.2)
|
40
|
-
mini_portile (0.6.2)
|
41
|
-
multi_json (1.11.2)
|
42
|
-
nokogiri (1.6.6.2)
|
43
|
-
mini_portile (~> 0.6.0)
|
44
|
-
posix-spawn (0.3.11)
|
45
|
-
pry (0.10.1)
|
46
|
-
coderay (~> 1.1.0)
|
47
|
-
method_source (~> 0.8.1)
|
48
|
-
slop (~> 3.4)
|
49
|
-
pygments.rb (0.6.3)
|
50
|
-
posix-spawn (~> 0.3.6)
|
51
|
-
yajl-ruby (~> 1.2.0)
|
52
|
-
rake (10.4.2)
|
53
|
-
rb-fsevent (0.9.5)
|
54
|
-
rb-inotify (0.9.5)
|
55
|
-
ffi (>= 0.5.0)
|
56
|
-
rspec (3.3.0)
|
57
|
-
rspec-core (~> 3.3.0)
|
58
|
-
rspec-expectations (~> 3.3.0)
|
59
|
-
rspec-mocks (~> 3.3.0)
|
60
|
-
rspec-core (3.3.2)
|
61
|
-
rspec-support (~> 3.3.0)
|
62
|
-
rspec-expectations (3.3.1)
|
63
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
64
|
-
rspec-support (~> 3.3.0)
|
65
|
-
rspec-its (1.2.0)
|
66
|
-
rspec-core (>= 3.0.0)
|
67
|
-
rspec-expectations (>= 3.0.0)
|
68
|
-
rspec-mocks (3.3.2)
|
69
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
70
|
-
rspec-support (~> 3.3.0)
|
71
|
-
rspec-support (3.3.0)
|
72
|
-
sass (3.4.16)
|
73
|
-
slop (3.6.0)
|
74
|
-
yajl-ruby (1.2.1)
|
75
|
-
|
76
|
-
PLATFORMS
|
77
|
-
ruby
|
78
|
-
|
79
|
-
DEPENDENCIES
|
80
|
-
bundler (>= 1.0.0)
|
81
|
-
pretty_doc!
|
82
|
-
pry
|
83
|
-
rake
|
84
|
-
rspec (>= 3.0.0)
|
85
|
-
rspec-its (>= 1.0.0)
|
86
|
-
|
87
|
-
BUNDLED WITH
|
88
|
-
1.10.5
|