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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ff6709294423453b712f1860fb87d32547883ef4
4
- data.tar.gz: 8aad25a7d9c986e6025828c8781e6a4e3c4cd2c0
3
+ metadata.gz: 4ec7b199030068c1ff1917e7b60ca6e9b5321a65
4
+ data.tar.gz: 547fe358346c1e1c6399a7c7e292f976b600aab6
5
5
  SHA512:
6
- metadata.gz: bab10c9091c47939a7f5ab3404b7c5b913fe240da5b99bc5817f17b56da64661150abc08505cefd17e14efc9dec2087b20bce3b3d5e868507fbb6dc8411c26d3
7
- data.tar.gz: 665585a7d296bfc2b55f4e011f48f7051eae194484c936562d124be21019d9cfe96d94381cdd4c4f9a2bc29b411f4d2a747e6492a828ff0a798435cad7ef251c
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
- require_relative '../lib/learn_linter.rb'
5
+ require 'pry'
6
+ require './lib/learn_linter'
5
7
 
6
- if ARGV.length == 0
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
- elsif ARGV.length == 1
12
+ else
17
13
  lint = LearnLinter.new(ARGV[0]).lint_directory
18
14
  end
19
15
 
@@ -29,5 +29,4 @@ class ReadmeLinter
29
29
  end
30
30
  end
31
31
  end
32
- end
33
-
32
+ end
@@ -1,3 +1,3 @@
1
1
  class LearnLinter
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: learn_linter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sophie DeBenedetto