appium_doc_lint 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/appium_doc_lint/lint.rb +2 -1
- data/lib/appium_doc_lint/version.rb +1 -1
- data/release_notes.md +7 -0
- data/spec/lint_spec.rb +2 -2
- 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: b8270ed382cfdbbb37f87de07fb6d409eba6141d
|
4
|
+
data.tar.gz: 657b05db9df866d8e73c2dfad8f8f66eb02c9d5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07223f79c32b58457398a912008cc3ce53d8536624ef13a783ca5688ac0fe658d28dda5d3f3bf2fa62345a491928b98b32088ba4e01b7023bce02a6d0cdd8bce
|
7
|
+
data.tar.gz: d6fbc49278db36630d30e8d22ec7c2b68ecb1e62f97eb5a95e2d68ca52d4ac6b556383db59f3eb8ad42465968a1731d88f55b4a62801d3ad9733cad37dd50eea
|
data/lib/appium_doc_lint/lint.rb
CHANGED
@@ -82,7 +82,8 @@ module Appium
|
|
82
82
|
return nil if data.nil? || data.empty?
|
83
83
|
result = ''
|
84
84
|
data.each do |file_name, analysis|
|
85
|
-
|
85
|
+
rel_path = File.join('.', File.expand_path(file_name).sub(Dir.pwd, ''))
|
86
|
+
result += "\n#{rel_path}\n"
|
86
87
|
analysis.each do |line_number, warning|
|
87
88
|
result += " #{line_number}: #{warning.join(',')}\n"
|
88
89
|
end
|
data/release_notes.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
#### v0.0.5 2014-04-26
|
2
|
+
|
3
|
+
- [f79fbcd](https://github.com/appium/appium_doc_lint/commit/f79fbcd4ecb8cec0c0e6c5aa81919c35ac30af0d) Release 0.0.5
|
4
|
+
- [b4063f8](https://github.com/appium/appium_doc_lint/commit/b4063f8132acf97ac3cd4af0aeb8a09a0f1c6222) Include the broken link in the warning message
|
5
|
+
- [13df5bf](https://github.com/appium/appium_doc_lint/commit/13df5bf8498a4838e994ca4e3c1f767bb491e40a) Fix release notes
|
6
|
+
|
7
|
+
|
1
8
|
#### v0.0.4 2014-04-26
|
2
9
|
|
3
10
|
- [293f87b](https://github.com/appium/appium_doc_lint/commit/293f87b56667e1c0d81b069cc9b700be521a965a) Release 0.0.4
|
data/spec/lint_spec.rb
CHANGED
@@ -35,12 +35,12 @@ class Appium::Lint
|
|
35
35
|
|
36
36
|
actual = lint.report lint.glob dir
|
37
37
|
expected = (<<REPORT).strip
|
38
|
-
0.md
|
38
|
+
./spec/data/0.md
|
39
39
|
1: #{H1Missing::FAIL}
|
40
40
|
2: #{H1Invalid::FAIL}
|
41
41
|
5: #{H2Invalid::FAIL}
|
42
42
|
|
43
|
-
3.md
|
43
|
+
./spec/data/sub/3.md
|
44
44
|
3: #{LineBreakInvalid::FAIL}
|
45
45
|
7: #{LineBreakInvalid::FAIL}
|
46
46
|
9: #{H1Multiple::FAIL}
|