coveralls-lcov 1.2.0 → 1.3.0

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: 0ddb611041dfcf4cbe4eb70138d4817c4b37d2b5
4
- data.tar.gz: 156febabb8bfb10e2c72cf9e3d05fd2e7f5db4f2
3
+ metadata.gz: 57344e96bb1d56cf2faf3892ed21cf7abaf87409
4
+ data.tar.gz: 9641dc761eedf6908685555970c6a831a62fc0bf
5
5
  SHA512:
6
- metadata.gz: 840adfb95fff15a69f88387bba87dff3410fc72c819cdb439d0047bea073227aca033092dfc013e59034af06a43ea25c10e5fc9798bca1a4497a312600368669
7
- data.tar.gz: a9190302204c811a870931ab2d4000c2875461133d0aa86cb135701d13085a832170417a0eb1449b249264b9574de83485d3443595fb4efc0ac8e44e5db6270e
6
+ metadata.gz: 1ef168a1e6990e2612af8feae9dbdabc223e790988e38dd7601f2f3f8e0085f1f19253c9ef45f468170d410e4f903fa3b75daf04fe17b181f2d99b6179b18a63
7
+ data.tar.gz: c5c4beafbe4acbc1c7b61d6d933cf598dd7f027a2c10a2319658a7b9a5df6f20e00b1ec82d40e763b0138d9a3f133bd55a188a22946d6dd88612e5f97ee146b0
@@ -2,10 +2,11 @@
2
2
  module Coveralls
3
3
  module Lcov
4
4
  class Converter
5
- def initialize(tracefile, source_encoding = Encoding::UTF_8, service_name = "travis-ci")
5
+ def initialize(tracefile, source_encoding = Encoding::UTF_8, service_name = "travis-ci", service_job_id = nil)
6
6
  @tracefile = tracefile
7
7
  @source_encoding = source_encoding
8
8
  @service_name = service_name
9
+ @service_job_id = service_job_id
9
10
  end
10
11
 
11
12
  def convert
@@ -16,7 +17,7 @@ module Coveralls
16
17
  end
17
18
  payload = {
18
19
  service_name: @service_name,
19
- service_job_id: ENV["TRAVIS_JOB_ID"],
20
+ service_job_id: service_job_id,
20
21
  git: git_info,
21
22
  source_files: source_files,
22
23
  }
@@ -74,6 +75,10 @@ module Coveralls
74
75
  branch: `git rev-parse --abbrev-ref HEAD`,
75
76
  }
76
77
  end
78
+
79
+ def service_job_id
80
+ ENV["TRAVIS_JOB_ID"] || @service_job_id
81
+ end
77
82
  end
78
83
  end
79
84
  end
@@ -33,6 +33,9 @@ BANNER
33
33
  @parser.on("-s", "--service-name=SERVICENAME", "Service name") do |service_name|
34
34
  @service_name = service_name
35
35
  end
36
+ @parser.on("--service-job-id=JOB_ID", "Service job id. ex. TRAVIS_JOB_ID") do |service_job_id|
37
+ @service_job_id = service_job_id
38
+ end
36
39
  @parser.on("--retry=N", Integer, "Retry to POST N times (default: 3)") do |n_times|
37
40
  @n_times = n_times
38
41
  end
@@ -1,5 +1,5 @@
1
1
  module Coveralls
2
2
  module Lcov
3
- VERSION = "1.2.0"
3
+ VERSION = "1.3.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coveralls-lcov
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenji Okimoto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-20 00:00:00.000000000 Z
11
+ date: 2017-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  version: '0'
78
78
  requirements: []
79
79
  rubyforge_project:
80
- rubygems_version: 2.6.8
80
+ rubygems_version: 2.6.11
81
81
  signing_key:
82
82
  specification_version: 4
83
83
  summary: Post coverage information to coveralls.io