slather 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +2 -0
- data/lib/slather/coverage_file.rb +5 -4
- data/lib/slather/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzQ1ZmY1MjU4NDI0Njg5M2NkMGI5ZGJjNDhiNWZhMTQ1OTliNWUwNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YWY4ZTg1MDdjYTRhMDg4MDQyNGU2YzQzOWJhZGU0ODQ4NTE0ZjNiMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODU0OTQ5OGE0ZjYxMDI3OGVlYTcwMzE5ZjIwNWUyOGYzMGUxNDAxY2U3Yjll
|
10
|
+
MWI5ZjU1NzZhZTQ2MjYzNzA0MjNkNmE0MWY3MDAwNGQ4ZmU1NTI0Y2Q4NmUw
|
11
|
+
ODAxZGEwYWY4MDU2MDY2MDVhOTBkMmZhNjBlN2Y4YWRmMGY0ZTY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTVhMGExOTViY2VkNDA4ZTJhMTA3ZjA1NGZhM2YxMmZjNjBiZDZkNTk2ZjA2
|
14
|
+
Mjk4MzAxNTIxNzFlNTFiMDVmYjMyN2ViZjJiYzBkZjg0N2FjNTMxYWIxN2Q3
|
15
|
+
MjYwYTlkOTNhZDFmMTEyZDA3NTIwNTNjZDQxOGU1MWY2NmQ4NGQ=
|
data/README.md
CHANGED
@@ -58,6 +58,8 @@ And then in your `.travis.yml`, call `slather` after a successful_build
|
|
58
58
|
```yml
|
59
59
|
# .travis.yml
|
60
60
|
|
61
|
+
before_install: rvm use $RVM_RUBY_VERSION
|
62
|
+
install: bundle install --without=documentation --path ../travis_bundle_dir
|
61
63
|
after_success: slather
|
62
64
|
```
|
63
65
|
|
@@ -12,8 +12,8 @@ module Slather
|
|
12
12
|
@source_file_pathname ||= begin
|
13
13
|
base_filename = gcno_file_pathname.basename.sub_ext("")
|
14
14
|
# TODO: Handle Swift
|
15
|
-
|
16
|
-
|
15
|
+
path = Dir["./**/#{base_filename}.m"].first
|
16
|
+
path && Pathname(path)
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
@@ -26,12 +26,13 @@ module Slather
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def source_file_pathname_relative_to_repo_root
|
29
|
-
source_file_pathname.
|
29
|
+
puts "pathhh: #{source_file_pathname.cleanpath}"
|
30
|
+
source_file_pathname.realpath.relative_path_from(Pathname("./").realpath)
|
30
31
|
end
|
31
32
|
|
32
33
|
def gcov_data
|
33
34
|
@gcov_data ||= begin
|
34
|
-
gcov_output = `gcov #{source_file_pathname} --object-directory #{gcno_file_pathname.parent}`
|
35
|
+
gcov_output = `gcov "#{source_file_pathname}" --object-directory "#{gcno_file_pathname.parent}"`
|
35
36
|
# Sometimes gcov makes gcov files for Cocoa Touch classes, like NSRange. Ignore and delete later.
|
36
37
|
gcov_files_created = gcov_output.scan(/creating '(.+\..+\.gcov)'/)
|
37
38
|
|
data/lib/slather/version.rb
CHANGED