distincter2 1.1.4 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -0
- data/bin/distincter2 +13 -2
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a8604db5a2f754b08135af05307d7164d0d54988163e91c20c91a09809a007f
|
4
|
+
data.tar.gz: 813d231a8ee7b4ace12726bedc9a9ebc2cd45e5be04e12446dc478ab36d6749b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cce320b5a321b1b589011dcaea2ee56b457512dfdf07f39cd2521a9d5af09978721462392bceeba8f9ed5afa0eea78a0577b839812d0d0f54b1db5e415490844
|
7
|
+
data.tar.gz: 86fe736d56978146e074c396b04fb92d7b747fc5adf3bc2726e5ad80139dc523f522066cf26089fad8b80cedb28f351a5e2a189cfb6af6639dcbd7d61665b9e8
|
data/README.md
CHANGED
@@ -1,9 +1,23 @@
|
|
1
1
|
# distincter2
|
2
2
|
|
3
|
+
[![GitHubActions](https://github.com/fartem/distincter2/workflows/Build/badge.svg)](https://github.com/fartem/distincter2/actions?branch=master)
|
4
|
+
[![Gem Version](https://badge.fury.io/rb/distincter2.svg)](https://badge.fury.io/rb/distincter2)
|
5
|
+
|
6
|
+
## About
|
7
|
+
|
3
8
|
A tool that can check lists in Markdown files and find duplicates.
|
4
9
|
|
5
10
|
## How to use
|
6
11
|
|
12
|
+
### Global installation
|
13
|
+
|
14
|
+
```shell
|
15
|
+
$ gem i distincter2
|
16
|
+
$ distincter2 ./path_to_directory_with_markdown_files
|
17
|
+
```
|
18
|
+
|
19
|
+
### Local installation
|
20
|
+
|
7
21
|
```shell
|
8
22
|
$ ./bin/local_distincter2 ./path_to_directory_with_markdown_files
|
9
23
|
```
|
data/bin/distincter2
CHANGED
@@ -1,6 +1,17 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
require 'distincter2'
|
4
|
+
require 'colorize'
|
4
5
|
|
5
|
-
|
6
|
-
|
6
|
+
# @param text String
|
7
|
+
def red_colored_text(text)
|
8
|
+
text.colorize(:light_red)
|
9
|
+
end
|
10
|
+
|
11
|
+
if ::ARGV.empty?
|
12
|
+
puts red_colored_text('ERROR: You need to provide a path to directory with files.').to_s
|
13
|
+
exit(1)
|
14
|
+
else
|
15
|
+
distincter2 = ::Distincter2::Distincter2.new
|
16
|
+
distincter2.start(::ARGV[0])
|
17
|
+
end
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: distincter2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Artem Fomchenkov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: colorize
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.8.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.8.1
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: minitest
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -79,7 +93,7 @@ files:
|
|
79
93
|
- bin/distincter2
|
80
94
|
- lib/distincter2.rb
|
81
95
|
- lib/distincter2/checker.rb
|
82
|
-
homepage:
|
96
|
+
homepage: https://github.com/fartem/distincter2
|
83
97
|
licenses:
|
84
98
|
- MIT
|
85
99
|
metadata: {}
|