coveralls-lcov 1.5.1 → 1.6.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
- SHA1:
3
- metadata.gz: 55af10a66b7405fe018749cb47973aa42df67d86
4
- data.tar.gz: 575ff56f720f96fba946c4307d614c26f6504916
2
+ SHA256:
3
+ metadata.gz: 5947e0da86ee418e01885e3ffa90560160da8f408921a4fea674808d0479f448
4
+ data.tar.gz: 5d87045b77103b3061b889ed3a4ca485e252866cb154defe331613158c071e44
5
5
  SHA512:
6
- metadata.gz: 66337291792604ee5cf2fdf9bfb704dfafeb58d09967410869666395687144a2c63673198fde3734d41c51bdb354c0aaa903e46747dd1dbfc1daf05b804ec8dc
7
- data.tar.gz: f65d4706e225440aaedc79eaa338fb27b4cf8430e812d69e997de7db4ecf03b63f9b76c51d832650f94a55fc0fab033caf672e0e3249073da47f716935a28842
6
+ metadata.gz: 59e6f65330738325d79eacd9496a7637a4264a223c009ccaf8d64f628c2974159187005d0f83ffaeec196b06721ba70faa01cc0fc2ac6899e5a41b8c40a66213
7
+ data.tar.gz: d56f7e7f880e8cd9211b50d981efb3afc3e2d48701cf8af9d416ce12c7f9c083bdd9e9f424e6afe43e0ae08f7378ed7b7c57a816bd491ce78208f9cf8a2b6762
@@ -20,6 +20,6 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.required_ruby_version = ">= 1.9.3"
22
22
 
23
- spec.add_development_dependency "bundler", "~> 1.5"
23
+ spec.add_development_dependency "bundler"
24
24
  spec.add_development_dependency "rake"
25
25
  end
@@ -2,6 +2,5 @@ require "coveralls/lcov/version"
2
2
 
3
3
  module Coveralls
4
4
  module Lcov
5
- # Your code goes here...
6
5
  end
7
6
  end
@@ -97,7 +97,7 @@ module Coveralls
97
97
  message: `git log -1 --format=%s`,
98
98
  },
99
99
  remotes: [], # FIXME need this?
100
- branch: `git rev-parse --abbrev-ref HEAD`,
100
+ branch: ENV["TRAVIS_BRANCH"] || `git rev-parse --abbrev-ref HEAD`,
101
101
  }
102
102
  end
103
103
 
@@ -7,7 +7,6 @@ require "coveralls/lcov/converter"
7
7
 
8
8
  module Coveralls
9
9
  # URI: https://coveralls.io/api/v1/jobs
10
- HOST = "coveralls.io"
11
10
  PATH = "/api/v1/jobs"
12
11
 
13
12
  module Lcov
@@ -22,6 +21,10 @@ module Coveralls
22
21
  @service_job_id = nil
23
22
  @verbose = false
24
23
  @dry_run = false
24
+ @host = "coveralls.io"
25
+ @port = 443
26
+ @use_ssl = true
27
+ @parallel = ENV["COVERALLS_PARALLEL"] == "true"
25
28
  @parser = OptionParser.new(@argv)
26
29
  @parser.banner = <<BANNER
27
30
  Usage: coveralls-lcov [options] coverage.info
@@ -54,6 +57,15 @@ BANNER
54
57
  @parser.on("-n", "--dry-run", "Dry run") do
55
58
  @dry_run = true
56
59
  end
60
+ @parser.on("-h", "--host=HOST", "Host of Coveralls endpoint (default: coveralls.io)") do |host|
61
+ @host = host
62
+ end
63
+ @parser.on("-p", "--port=PORT", "Port of Coveralls endpoint (default: 443)") do |port|
64
+ @port = port
65
+ end
66
+ @parser.on("--[no-]ssl", "Use SSL for connecting (default)") do |use_ssl|
67
+ @use_ssl = use_ssl
68
+ end
57
69
  end
58
70
 
59
71
  def run
@@ -72,6 +84,7 @@ BANNER
72
84
  elsif coveralls_config && coveralls_config["repo_token"]
73
85
  payload[:repo_token] = coveralls_config["repo_token"]
74
86
  end
87
+ payload[:parallel] = @parallel
75
88
  payload_json = payload.to_json
76
89
  puts payload_json if @verbose
77
90
  unless @dry_run
@@ -88,8 +101,8 @@ BANNER
88
101
  Net::HTTP.version_1_2
89
102
  response = nil
90
103
 
91
- http = Net::HTTP.new(HOST, 443)
92
- http.use_ssl = true
104
+ http = Net::HTTP.new(@host, @port)
105
+ http.use_ssl = @use_ssl
93
106
  http.start do
94
107
  request = Net::HTTP::Post.new(PATH)
95
108
  request["content-type"] = "multipart/form-data; boundary=boundary"
@@ -1,5 +1,5 @@
1
1
  module Coveralls
2
2
  module Lcov
3
- VERSION = "1.5.1"
3
+ VERSION = "1.6.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coveralls-lcov
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.6.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-10-30 00:00:00.000000000 Z
11
+ date: 2020-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.5'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.5'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -76,8 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  requirements: []
79
- rubyforge_project:
80
- rubygems_version: 2.6.13
79
+ rubygems_version: 3.1.2
81
80
  signing_key:
82
81
  specification_version: 4
83
82
  summary: Post coverage information to coveralls.io