learn_linter 1.3.0 → 1.4.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: b983a6e25a3a85df9e225040e60dae6698759573
4
- data.tar.gz: a9b0d0634fd5c2f1eddc63bb7772399989d52f1e
3
+ metadata.gz: c9e3092f6c9b97460b2a2f13d6cbbf2a5396857b
4
+ data.tar.gz: d58a8a6bf5cff738a8dc16f65edd7ffd1be20e8f
5
5
  SHA512:
6
- metadata.gz: d1c36a8f796bb9238efa7d013e6c171a45d4c96963e1ca368ab3db8707edff3c293aa67236768313542b8ad8b08810484437f2b722594f0443d066efd49644c3
7
- data.tar.gz: fde8d4094df7c518e64ba0237c86033cfd0ccbf15084b9ad06ecf051bd72ef06f2a22c2d1d8c0502c448ef0cd059b95c8feeaede820cf322b6d878d78ebb3788
6
+ metadata.gz: 5f5b779157f5d0fec64c3da14d81be89d9416a3b04a3bf770c37cdc2a80425346d199dddd4e50eeab7c2e55d3d0ac5c12fe800350a443e0c82cf0fb0b7b6f709
7
+ data.tar.gz: 8e51e62c55d53844d17c6ead15c83ca8345cc6e39b3f9018a589232f4f30847d4467bc2a573ae43b3d5a4b84b972001987997446b01b2cfacca6361de5af1701
@@ -27,7 +27,9 @@ class LearnLinter
27
27
  @learn_error.total_errors
28
28
  end
29
29
 
30
-
30
+ def result_message
31
+ @learn_error.result_message
32
+ end
31
33
 
32
34
  def has_file?(file)
33
35
  Dir.entries(filepath).include?(file)
@@ -49,10 +49,13 @@ class LearnError < StandardError
49
49
 
50
50
  end
51
51
 
52
+ def result_message
53
+ [present_learn, valid_yaml, correct_yaml_content, present_license, valid_license, present_readme, valid_readme, valid_contributing, present_contributing]
54
+ end
55
+
52
56
 
53
57
  def result_output
54
- all_results = [present_learn, valid_yaml, correct_yaml_content, present_license, valid_license, present_readme, valid_readme, valid_contributing, present_contributing]
55
- all_results.each do |result|
58
+ result_message.each do |result|
56
59
  emit(result)
57
60
  end
58
61
  end
@@ -1,3 +1,3 @@
1
1
  class LearnLinter
2
- VERSION = "1.3.0"
2
+ VERSION = "1.4.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.3.0
4
+ version: 1.4.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-17 00:00:00.000000000 Z
11
+ date: 2015-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler