mdcat 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +82 -0
- data/bin/mdcat +11 -7
- data/lib/mdcat/version.rb +1 -1
- metadata +2 -5
- data/bin/console +0 -11
- data/bin/setup +0 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3230ada7366241572efd5432611638066224ed9c467ca9a8a136942cdc45f91d
|
|
4
|
+
data.tar.gz: 98fe44332942419dc31f0d28b4b3ced5e0715d7f23560846e93faa1aafd709ad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5d9ba213e33c46205a72c6e0bec52e39f85a0410eb31772c8715c055322becab43e42e4fd676a0eaf36d945d7cd6f6df10b13cd4be1235f1c6921c4c0606e322
|
|
7
|
+
data.tar.gz: c9e3b9513ff985bf90cd9208c4d6d5e3fa38c1946b9556753f26fce479ac60831e584212973dd424399dac1437f357839023e47c8bdc58be3f5b1cb1e9c205ee
|
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
mdcat (0.1.0)
|
|
5
|
+
tty-markdown
|
|
6
|
+
|
|
7
|
+
GEM
|
|
8
|
+
remote: https://rubygems.org/
|
|
9
|
+
specs:
|
|
10
|
+
ast (2.4.2)
|
|
11
|
+
diff-lcs (1.5.0)
|
|
12
|
+
json (2.7.0)
|
|
13
|
+
kramdown (2.4.0)
|
|
14
|
+
rexml
|
|
15
|
+
language_server-protocol (3.17.0.3)
|
|
16
|
+
parallel (1.23.0)
|
|
17
|
+
parser (3.2.2.4)
|
|
18
|
+
ast (~> 2.4.1)
|
|
19
|
+
racc
|
|
20
|
+
pastel (0.8.0)
|
|
21
|
+
tty-color (~> 0.5)
|
|
22
|
+
racc (1.7.3)
|
|
23
|
+
rainbow (3.1.1)
|
|
24
|
+
rake (13.1.0)
|
|
25
|
+
regexp_parser (2.8.2)
|
|
26
|
+
rexml (3.2.6)
|
|
27
|
+
rouge (4.1.3)
|
|
28
|
+
rspec (3.12.0)
|
|
29
|
+
rspec-core (~> 3.12.0)
|
|
30
|
+
rspec-expectations (~> 3.12.0)
|
|
31
|
+
rspec-mocks (~> 3.12.0)
|
|
32
|
+
rspec-core (3.12.2)
|
|
33
|
+
rspec-support (~> 3.12.0)
|
|
34
|
+
rspec-expectations (3.12.3)
|
|
35
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
36
|
+
rspec-support (~> 3.12.0)
|
|
37
|
+
rspec-mocks (3.12.6)
|
|
38
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
39
|
+
rspec-support (~> 3.12.0)
|
|
40
|
+
rspec-support (3.12.1)
|
|
41
|
+
rubocop (1.58.0)
|
|
42
|
+
json (~> 2.3)
|
|
43
|
+
language_server-protocol (>= 3.17.0)
|
|
44
|
+
parallel (~> 1.10)
|
|
45
|
+
parser (>= 3.2.2.4)
|
|
46
|
+
rainbow (>= 2.2.2, < 4.0)
|
|
47
|
+
regexp_parser (>= 1.8, < 3.0)
|
|
48
|
+
rexml (>= 3.2.5, < 4.0)
|
|
49
|
+
rubocop-ast (>= 1.30.0, < 2.0)
|
|
50
|
+
ruby-progressbar (~> 1.7)
|
|
51
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
|
52
|
+
rubocop-ast (1.30.0)
|
|
53
|
+
parser (>= 3.2.1.0)
|
|
54
|
+
ruby-progressbar (1.13.0)
|
|
55
|
+
strings (0.2.1)
|
|
56
|
+
strings-ansi (~> 0.2)
|
|
57
|
+
unicode-display_width (>= 1.5, < 3.0)
|
|
58
|
+
unicode_utils (~> 1.4)
|
|
59
|
+
strings-ansi (0.2.0)
|
|
60
|
+
tty-color (0.6.0)
|
|
61
|
+
tty-markdown (0.7.2)
|
|
62
|
+
kramdown (>= 1.16.2, < 3.0)
|
|
63
|
+
pastel (~> 0.8)
|
|
64
|
+
rouge (>= 3.14, < 5.0)
|
|
65
|
+
strings (~> 0.2.0)
|
|
66
|
+
tty-color (~> 0.5)
|
|
67
|
+
tty-screen (~> 0.8)
|
|
68
|
+
tty-screen (0.8.1)
|
|
69
|
+
unicode-display_width (2.5.0)
|
|
70
|
+
unicode_utils (1.4.0)
|
|
71
|
+
|
|
72
|
+
PLATFORMS
|
|
73
|
+
ruby
|
|
74
|
+
|
|
75
|
+
DEPENDENCIES
|
|
76
|
+
mdcat!
|
|
77
|
+
rake (~> 13.0)
|
|
78
|
+
rspec (~> 3.0)
|
|
79
|
+
rubocop (~> 1.21)
|
|
80
|
+
|
|
81
|
+
BUNDLED WITH
|
|
82
|
+
2.4.22
|
data/bin/mdcat
CHANGED
|
@@ -6,20 +6,20 @@ $LOAD_PATH.unshift(File.expand_path("../lib", __dir__))
|
|
|
6
6
|
require "mdcat"
|
|
7
7
|
require "tty-markdown"
|
|
8
8
|
|
|
9
|
-
BANNER = %
|
|
9
|
+
BANNER = %q(
|
|
10
10
|
_ _
|
|
11
11
|
_ __ __| |__ __ _| |_
|
|
12
12
|
| ' \/ _` / _/ _` | _|
|
|
13
13
|
|_|_|_\__,_\__\__,_|\__|
|
|
14
|
-
|
|
15
|
-
}
|
|
14
|
+
)
|
|
16
15
|
|
|
17
16
|
def help
|
|
18
17
|
puts %(
|
|
19
18
|
#{BANNER}
|
|
19
|
+
version (#{Mdcat::VERSION})
|
|
20
20
|
|
|
21
21
|
USAGE
|
|
22
|
-
mdcat <file>
|
|
22
|
+
mdcat <file>
|
|
23
23
|
|
|
24
24
|
COMMANDS
|
|
25
25
|
mdcat -h, help show this help message
|
|
@@ -32,18 +32,22 @@ end
|
|
|
32
32
|
|
|
33
33
|
# commands
|
|
34
34
|
if ARGV[0] == "-h" || ARGV[0] == "help"
|
|
35
|
-
help
|
|
35
|
+
help
|
|
36
|
+
exit(0)
|
|
36
37
|
end
|
|
37
38
|
|
|
38
39
|
# validations
|
|
39
40
|
file_path = ARGV[0]
|
|
40
|
-
|
|
41
|
+
if file_path.nil?
|
|
42
|
+
help
|
|
43
|
+
exit(1)
|
|
44
|
+
end
|
|
41
45
|
|
|
42
46
|
file = File.expand_path(file_path)
|
|
43
47
|
unless File.exist?(file)
|
|
44
48
|
help
|
|
45
49
|
puts "File not found: #{file}"
|
|
46
|
-
exit
|
|
50
|
+
exit(1)
|
|
47
51
|
end
|
|
48
52
|
|
|
49
53
|
# proessing file and output
|
data/lib/mdcat/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mdcat
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Vinciguerra
|
|
@@ -28,21 +28,18 @@ description: mdcat is a command line tool to cat markdown files with syntax high
|
|
|
28
28
|
email:
|
|
29
29
|
- daniel.vinciguerra@bivee.com.br
|
|
30
30
|
executables:
|
|
31
|
-
- console
|
|
32
31
|
- mdcat
|
|
33
|
-
- setup
|
|
34
32
|
extensions: []
|
|
35
33
|
extra_rdoc_files: []
|
|
36
34
|
files:
|
|
37
35
|
- ".rspec"
|
|
38
36
|
- ".rubocop.yml"
|
|
39
37
|
- Gemfile
|
|
38
|
+
- Gemfile.lock
|
|
40
39
|
- LICENSE.txt
|
|
41
40
|
- README.md
|
|
42
41
|
- Rakefile
|
|
43
|
-
- bin/console
|
|
44
42
|
- bin/mdcat
|
|
45
|
-
- bin/setup
|
|
46
43
|
- lib/mdcat.rb
|
|
47
44
|
- lib/mdcat/version.rb
|
|
48
45
|
- mdcat.gemspec
|
data/bin/console
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
require "bundler/setup"
|
|
5
|
-
require "mdcat"
|
|
6
|
-
|
|
7
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
|
8
|
-
# with your gem easier. You can also use a different console, if you like.
|
|
9
|
-
|
|
10
|
-
require "irb"
|
|
11
|
-
IRB.start(__FILE__)
|