pullreview-coverage 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +29 -1
- data/lib/pullreview/coverage/client_api.rb +2 -0
- data/lib/pullreview/coverage/version.rb +1 -1
- data/pullreview-coverage.gemspec +2 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d911da1d57a352f346a4ca601e926101c3dc60b
|
4
|
+
data.tar.gz: 332cc986f4f44d0515a3bd6f77e4b85486243611
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc67f37fad243f53c6df6b784fc27b1133775031215323a024be27b2bf30adff49308c2d30ac63fe81a113c3b2fc302e5309384f2992706be1950b8bf62e697e
|
7
|
+
data.tar.gz: 47577ef24022c5c99d023b4feb958cb5acd082c80b48f82ad8c9ccfb790672af254dba03544e4b3466666bac76d5a0bed427274c4ceda1dd6b0f1fba4b1cc91d
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# Pullreview::Coverage
|
2
2
|
|
3
|
-
[](http://badge.fury.io/rb/pullreview-coverage)
|
4
|
+
[](https://www.pullreview.com/github/8thcolor/pullreview-coverage/reviews/master)
|
5
|
+
[](https://codeship.com/projects/67847)
|
4
6
|
|
5
7
|
With the Gem PullReview-Coverage, you can retrieve your **Ruby test coverage** into PullReview.
|
6
8
|
|
@@ -89,6 +91,32 @@ PullReview::Coverage : info : Generated /tmp/coverage-8c2c37dd-8412-4137-9b38-71
|
|
89
91
|
|
90
92
|
A JSON file will be generated in `/tmp/`. The content might change a little bit depending on your environment (dev, CI).
|
91
93
|
|
94
|
+
### 3. I got a SSL error when sending the report. How can I fix it?
|
95
|
+
|
96
|
+
If you got an error similar to the following
|
97
|
+
```Text
|
98
|
+
PullReview::Coverage : error : Coverage report submission failed ClientApi : https://www.pullreview.com/api/coverage
|
99
|
+
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed OpenSSL::SSL::SSLError
|
100
|
+
...
|
101
|
+
```
|
102
|
+
|
103
|
+
there is a good chance you don't have an up to date bundle of [root certificates](https://en.wikipedia.org/wiki/Root_certificate).
|
104
|
+
As consequences, when you try to open a `https` resource and use the `Net::HTTP` module, the peer certificate cannot
|
105
|
+
be successfully verified, what gives you the previous error output.
|
106
|
+
|
107
|
+
Depending on your system, there are different ways to deal with that problem:
|
108
|
+
|
109
|
+
* [Download an up-to-date bundle of root certificates and directly patch the
|
110
|
+
`Net::HTTP`](http://stackoverflow.com/a/16983443/831180)
|
111
|
+
* If you use rvm, `rvm osx-ssl-certs update`.
|
112
|
+
* Whatever your OS, the generic solution consists in [downloading a up-to-date bundle of root certifcates and inform
|
113
|
+
Ruby where it is](http://stackoverflow.com/q/4528101/831180).
|
114
|
+
* If you are on windows, [download a up-to-date root certifcates and inform Ruby where it
|
115
|
+
is](https://gist.github.com/fnichol/867550).
|
116
|
+
|
117
|
+
Soon we will implement for you the first solution, so you shouldn't experiment anymore that issue.
|
118
|
+
|
119
|
+
|
92
120
|
## Contributing
|
93
121
|
|
94
122
|
1. Fork it ( http://github.com/8thcolor/pullreview-coverage/fork )
|
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'certifi'
|
1
2
|
require 'securerandom'
|
2
3
|
require 'tmpdir'
|
3
4
|
require 'net/http'
|
@@ -79,6 +80,7 @@ module PullReview
|
|
79
80
|
if uri.scheme == 'https'
|
80
81
|
http.use_ssl = true
|
81
82
|
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
83
|
+
http.ca_file = Certifi.where
|
82
84
|
http.verify_depth = 5
|
83
85
|
end
|
84
86
|
http.open_timeout = config.api_open_timeout_in_seconds
|
data/pullreview-coverage.gemspec
CHANGED
@@ -6,7 +6,7 @@ require 'pullreview/coverage/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'pullreview-coverage'
|
8
8
|
spec.version = PullReview::Coverage::VERSION
|
9
|
-
spec.authors = ['
|
9
|
+
spec.authors = ['Christophe Philemotte', 'Stephan Mestach']
|
10
10
|
spec.email = ['support@pullreview.com']
|
11
11
|
spec.summary = %q{Collect coverage information and send them to PullReview.com}
|
12
12
|
spec.description = %q{Collect coverage information generated by simplecov and send them to PullReview.com}
|
@@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
21
|
spec.add_dependency 'simplecov', '>= 0.7.1', '< 1.0.0'
|
22
|
+
spec.add_dependency 'certifi'
|
22
23
|
spec.add_development_dependency 'bundler', '~> 1.5'
|
23
24
|
spec.add_development_dependency 'rake'
|
24
25
|
spec.add_development_dependency 'minitest', '4.5.0'
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pullreview-coverage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Stephan Mestach
|
8
7
|
- Christophe Philemotte
|
8
|
+
- Stephan Mestach
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-04-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: simplecov
|
@@ -31,6 +31,20 @@ dependencies:
|
|
31
31
|
- - "<"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 1.0.0
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: certifi
|
36
|
+
requirement: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
type: :runtime
|
42
|
+
prerelease: false
|
43
|
+
version_requirements: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
34
48
|
- !ruby/object:Gem::Dependency
|
35
49
|
name: bundler
|
36
50
|
requirement: !ruby/object:Gem::Requirement
|