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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f0e9f63601abb0da7d52d2c491653f8fdbc4b14e
4
- data.tar.gz: 3aa7a18f06ab0b2f9329d49b06835b9587a36467
3
+ metadata.gz: b8270ed382cfdbbb37f87de07fb6d409eba6141d
4
+ data.tar.gz: 657b05db9df866d8e73c2dfad8f8f66eb02c9d5b
5
5
  SHA512:
6
- metadata.gz: ab9a10d536e7fb7d31034d141b897e51197ac622f0378587531179aa728abe18786c4239cc810af5e39ea05e19d494de64a43ef9c7b1138f737a6e0be45bb201
7
- data.tar.gz: 0dbd40d2dec1e79c46d80db6cceefbfedf2454730810af9e0420632f656515d5a41b16af4102a0beda0086e48986fc54262792da76290f3a395b8fa93c7bcebd
6
+ metadata.gz: 07223f79c32b58457398a912008cc3ce53d8536624ef13a783ca5688ac0fe658d28dda5d3f3bf2fa62345a491928b98b32088ba4e01b7023bce02a6d0cdd8bce
7
+ data.tar.gz: d6fbc49278db36630d30e8d22ec7c2b68ecb1e62f97eb5a95e2d68ca52d4ac6b556383db59f3eb8ad42465968a1731d88f55b4a62801d3ad9733cad37dd50eea
@@ -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
- result += "\n#{File.basename(file_name)}\n"
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
@@ -1,6 +1,6 @@
1
1
  module Appium
2
2
  class Lint
3
- VERSION = '0.0.5' unless defined? ::Appium::Lint::VERSION
3
+ VERSION = '0.0.6' unless defined? ::Appium::Lint::VERSION
4
4
  DATE = '2014-04-26' unless defined? ::Appium::Lint::DATE
5
5
  end
6
6
  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}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appium_doc_lint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - code@bootstraponline.com