learn_linter 1.2.0 → 1.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: 8aa0320e966088c1b214826afff41511f5cbb4ba
4
- data.tar.gz: 4043017799fd524efd8d9e107af7652c171b6fa5
3
+ metadata.gz: b983a6e25a3a85df9e225040e60dae6698759573
4
+ data.tar.gz: a9b0d0634fd5c2f1eddc63bb7772399989d52f1e
5
5
  SHA512:
6
- metadata.gz: 15f0fb239487602bb1da34eb291b20ea8e5e0c280c9f30a44a49c6c3ff28a6e93a6f7d1850cfc93ef30e2b7cb7dae8b34766318ad7c2afc796d27213d6be0964
7
- data.tar.gz: fd92b17fa5a0c42b547b78266f0b517d8885f0a638959a596fb523a6e8155145f3cf19e1c20653eeaa3f244c64ac3a0797cfc07e9beb8645b9bfc35c3f4962cc
6
+ metadata.gz: d1c36a8f796bb9238efa7d013e6c171a45d4c96963e1ca368ab3db8707edff3c293aa67236768313542b8ad8b08810484437f2b722594f0443d066efd49644c3
7
+ data.tar.gz: fde8d4094df7c518e64ba0237c86033cfd0ccbf15084b9ad06ecf051bd72ef06f2a22c2d1d8c0502c448ef0cd059b95c8feeaede820cf322b6d878d78ebb3788
@@ -1,3 +1,4 @@
1
+ require 'pry'
1
2
  class LicenseLinter
2
3
 
3
4
  VALID_FILE = File.open(File.expand_path(File.dirname(__FILE__)) + '/valid_license.md')
@@ -12,6 +13,6 @@ class LicenseLinter
12
13
  end
13
14
 
14
15
  def self.sanitize_whitespace(file)
15
- file.split("\n").delete_if { |l| l.empty? }
16
+ file.split.delete_if {|char| char.empty? || char == "\n"}
16
17
  end
17
18
  end
@@ -1,3 +1,3 @@
1
1
  class LearnLinter
2
- VERSION = "1.2.0"
2
+ VERSION = "1.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: learn_linter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sophie DeBenedetto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-15 00:00:00.000000000 Z
11
+ date: 2015-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler