learn_linter 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/learn-lint +5 -9
- data/lib/learn_linter/readme_linter.rb +1 -2
- data/lib/learn_linter/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ec7b199030068c1ff1917e7b60ca6e9b5321a65
|
4
|
+
data.tar.gz: 547fe358346c1e1c6399a7c7e292f976b600aab6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a731a35eed2aea1105887f73fb119bee438fd1d5e15428ba86e8ddaef38f0b915e907783b4e6d4e2861d1e0aa73f4d61576af38dca33d0ab0f762a3d22b54e1e
|
7
|
+
data.tar.gz: 036883d79597b8aa22f13a82e8c1d82f8c14c8e035a95a7663cfe047a36c81c8a35f6ecb057a42355abc27213d51c8811e4d9e8fcd0705db47c8f4ef01a8a91b
|
data/bin/learn-lint
CHANGED
@@ -1,19 +1,15 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
+
|
2
3
|
require 'yaml'
|
3
4
|
require 'optparse'
|
4
|
-
|
5
|
+
require 'pry'
|
6
|
+
require './lib/learn_linter'
|
5
7
|
|
6
|
-
if ARGV.length ==
|
7
|
-
dir = File.expand_path(File.dirname(File.dirname(__FILE__)))
|
8
|
-
lint = LearnLinter.new(dir).lint_directory
|
9
|
-
elsif ARGV.length == 1 && ARGV[0] == "quiet"
|
10
|
-
dir = File.expand_path(File.dirname(File.dirname(__FILE__)))
|
11
|
-
lint = LearnLinter.new(dir, "quiet")
|
12
|
-
elsif ARGV.length > 1 && ARGV[1] == "quiet"
|
8
|
+
if ARGV.length > 1 && ARGV[1] == "quiet"
|
13
9
|
lint = LearnLinter.new(ARGV[0], "quiet").lint_directory
|
14
10
|
elsif ARGV.length > 1 && ARG[1] != "quiet"
|
15
11
|
puts "please use 'learn-lint directory_name quiet' or 'learn-lint directory_name"
|
16
|
-
|
12
|
+
else
|
17
13
|
lint = LearnLinter.new(ARGV[0]).lint_directory
|
18
14
|
end
|
19
15
|
|
data/lib/learn_linter/version.rb
CHANGED