xcov 1.3.1 → 1.3.2

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: 9ed18ae1a5be5a19b73fd2c11b7a1d9aad102448
4
- data.tar.gz: 8684ceb080f61e91b807cad3aa97314a03165b24
3
+ metadata.gz: 90dd13e4a35c65a3fbb420801e3eb9f26d820c15
4
+ data.tar.gz: 19bf7e52e1ba4e83cb4efa1c89cb9df768859371
5
5
  SHA512:
6
- metadata.gz: 62080188748d04ec2484018c2e4633491f4912ab604c360afb8cbf130ce6ea283aca1d40dc525d3f082ff0fef38559a9e4b2acbaf35c6cfc1056bf97fa25f6da
7
- data.tar.gz: 11615d504dc3da20dfb3693e2a349f29491bc867a27a15d3f4d24259d052b0e4fbcf44c48bdacfbf97ffb73ac1b3be80b648ac87c4da610640dccbd3579121b7
6
+ metadata.gz: 64b4eec89c9dfbf7e79963d5c425a790a0a2608347bbbc038d942fd2772ab442afefbd431724d56cf104bfa07ada56f5fba1d7679e643ce7050f7ff157468dc2
7
+ data.tar.gz: 89330bd2d1634a19cc95c0a2fd3d06d7d521724c75047ed4478d23576816b95455033dade2daf9a6cbaf23f6a695a878f00b9563cada8a061331ae838d8e4cec
data/README.md CHANGED
@@ -35,7 +35,7 @@ sudo gem install xcov
35
35
 
36
36
  ## Requirements
37
37
  In order to make *xcov* run you must:
38
- * Use Xcode 7.
38
+ * Use Xcode 7 or above.
39
39
  * Have the latest version of Xcode command line tools.
40
40
  * Set your project scheme as **shared**.
41
41
  * Enable the **Gather coverage data** setting available on your scheme settings window.
data/lib/xcov/options.rb CHANGED
@@ -5,7 +5,7 @@ module Xcov
5
5
  class Options
6
6
 
7
7
  def self.available_options
8
- containing = FastlaneCore::Helper.fastlane_enabled? ? './fastlane' : '.'
8
+ containing = self.containing_folder
9
9
 
10
10
  return [
11
11
  # Project options
@@ -213,5 +213,13 @@ module Xcov
213
213
  ]
214
214
  end
215
215
 
216
+ def self.containing_folder
217
+ if FastlaneCore::Helper.fastlane_enabled?
218
+ FastlaneCore::FastlaneFolder.path
219
+ else
220
+ '.'
221
+ end
222
+ end
223
+
216
224
  end
217
225
  end
@@ -7,14 +7,17 @@ module Xcov
7
7
  return if Xcov.config[:slack_url].to_s.empty?
8
8
 
9
9
  require 'slack-notifier'
10
- notifier = Slack::Notifier.new(Xcov.config[:slack_url])
11
- notifier.username = Xcov.config[:slack_username]
12
10
 
13
- if Xcov.config[:slack_channel].to_s.length > 0
14
- notifier.channel = Xcov.config[:slack_channel]
15
- notifier.channel = ('#' + notifier.channel) unless ['#', '@'].include?(notifier.channel[0])
11
+ slack_options = {username: Xcov.config[:slack_username]}
12
+
13
+ channel = Xcov.config[:slack_channel]
14
+ if channel.to_s.length > 0
15
+ channel = ('#' + channel) unless ['#', '@'].include?(channel[0])
16
+ slack_options[:channel] = channel
16
17
  end
17
18
 
19
+ notifier = Slack::Notifier.new(Xcov.config[:slack_url], options: slack_options)
20
+
18
21
  attachments = []
19
22
 
20
23
  report.targets.each do |target|
data/lib/xcov/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Xcov
2
2
 
3
- VERSION = "1.3.1"
3
+ VERSION = "1.3.2"
4
4
  DESCRIPTION = "xcov is a friendly visualizer for Xcode's code coverage files"
5
5
 
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcov
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Vidal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-02 00:00:00.000000000 Z
11
+ date: 2018-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane
@@ -34,16 +34,22 @@ dependencies:
34
34
  name: slack-notifier
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
37
+ - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: '1.3'
39
+ version: 2.0.0
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: 3.0.0
40
43
  type: :runtime
41
44
  prerelease: false
42
45
  version_requirements: !ruby/object:Gem::Requirement
43
46
  requirements:
44
- - - "~>"
47
+ - - ">="
45
48
  - !ruby/object:Gem::Version
46
- version: '1.3'
49
+ version: 2.0.0
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: 3.0.0
47
53
  - !ruby/object:Gem::Dependency
48
54
  name: xcodeproj
49
55
  requirement: !ruby/object:Gem::Requirement
@@ -200,3 +206,4 @@ signing_key:
200
206
  specification_version: 4
201
207
  summary: xcov is a friendly visualizer for Xcode's code coverage files
202
208
  test_files: []
209
+ has_rdoc: