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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjMxM2E5NjllODYxYWVmNzIwOTVlYzRjOWI2ZmQwMmY1Njg0YzBhOA==
4
+ MzQ1ZmY1MjU4NDI0Njg5M2NkMGI5ZGJjNDhiNWZhMTQ1OTliNWUwNA==
5
5
  data.tar.gz: !binary |-
6
- MmUwMWU1NTY4NTRhY2U0MzUxMjJhMDhlMTFjMDkwOTE0NWJiYmI3OQ==
6
+ YWY4ZTg1MDdjYTRhMDg4MDQyNGU2YzQzOWJhZGU0ODQ4NTE0ZjNiMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NDRmZWQxYzg0NDkzYzE5YzEyNTliYTVjZjcxODVjZjJjNjNjOWJhYmIyZmM1
10
- ZmQ3M2U5MjE2NmExMjI5NWJlOTk2Njg3ZDM5NzJlYzQ2MjQ3ZTI0MzhjMDE0
11
- NWY0NWU5OTg5MjkwM2RhMmI1ODFiNGU2OGMzMGNkNDA2ZGIzNDU=
9
+ ODU0OTQ5OGE0ZjYxMDI3OGVlYTcwMzE5ZjIwNWUyOGYzMGUxNDAxY2U3Yjll
10
+ MWI5ZjU1NzZhZTQ2MjYzNzA0MjNkNmE0MWY3MDAwNGQ4ZmU1NTI0Y2Q4NmUw
11
+ ODAxZGEwYWY4MDU2MDY2MDVhOTBkMmZhNjBlN2Y4YWRmMGY0ZTY=
12
12
  data.tar.gz: !binary |-
13
- OTYyYTFhY2Y0ZDZkYzFiNWVjYTgzYjY5YzhlOWNiNjIwYWZmMTljMDI2N2Ew
14
- MDkxNjQ5NTliMjBmNDkzZGJkNGVlZjJiODRlOWUxMDhjYTc3MjYxMWMzYzIw
15
- YThmZGQ0YWIzNTI5OTdkY2M2MDI5YzgzMWViMzQ4NDhmZmQ3YTM=
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
- pbx_file = project.files.detect { |pbx_file| pbx_file.real_path.basename.to_s == "#{base_filename}.m" }
16
- pbx_file && pbx_file.real_path
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.relative_path_from(Pathname("./").realpath)
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
 
@@ -1,3 +1,3 @@
1
1
  module Slather
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slather
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Larsen