codacy-coverage 1.1.1 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/Gemfile +0 -6
- data/Gemfile.ruby-19 +5 -0
- data/README.md +13 -0
- data/circle.yml +13 -4
- data/codacy-coverage.gemspec +9 -7
- data/lib/codacy/client.rb +2 -0
- data/scripts/ci.sh +28 -0
- metadata +49 -17
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
ZWVlNzEzZjliNzExODAyYmM0NDU4NjI4NzJmYWQ0M2U0N2JmNjM2NQ==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 99bab99d972e9aa05adbe7133147fbcaf951567b
|
4
|
+
data.tar.gz: 920815198a8cfb0a5f37a98d4b72ce9bb0bc72a4
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
Njg5MjhiZDMyNjhlYjNlZTk5ZjMzNTE4YTc2YmZmNDc3MjRmMDk2ZWUxNTAw
|
11
|
-
NjMxMmIyZDQxZTZkNTg2OGE2ZGMyNjA3ZTc2ZGY2NGI4MzAyYjM=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
OGNiMTRkZDk3MDFhMTA2M2Y3N2NiYzVhNmVjNjRjZmJlNzJkMjhiNDQ5Mzdk
|
14
|
-
YjM1OWU2ODdkNDMxYzE2ZWY2YWZiYzhmY2NmZjNiOGIyMDJiN2JlMTk5OTVk
|
15
|
-
Nzg3ZDc1MTBiYjcwOTFlYzNlYWQ4ZjdkNjNiYzYzNWQ0NzgwMGU=
|
6
|
+
metadata.gz: 617c45de70c43182da0a00f4fa61c21635b80f9c9f90905be097e50c67d3c5fd29d818d0a286d700bf1b6a084ce0596554fbee28751a44890916377bf63bbdf4
|
7
|
+
data.tar.gz: 91fb332168a3021d1d529c6937af0e5d2adb71d601d7efc711a066be803eb9465818c91c0ab0c4239e7354412bf489c3c59dd84f39e41b50713f937a94758c54
|
data/Gemfile
CHANGED
data/Gemfile.ruby-19
ADDED
data/README.md
CHANGED
@@ -76,6 +76,19 @@ export DEBUG_STDOUT=true
|
|
76
76
|
|
77
77
|
You can now check your coverage results in the Codacy dashboard of your project.
|
78
78
|
|
79
|
+
## Troubleshoot
|
80
|
+
|
81
|
+
**Cannot send coverage when using VCR**
|
82
|
+
|
83
|
+
```
|
84
|
+
require 'vcr'
|
85
|
+
VCR.configure do |config|
|
86
|
+
# other config options
|
87
|
+
c.allow_http_connections_when_no_cassette = false
|
88
|
+
c.ignore_hosts 'api.codacy.com'
|
89
|
+
end
|
90
|
+
```
|
91
|
+
|
79
92
|
## What is Codacy?
|
80
93
|
|
81
94
|
[Codacy](https://www.codacy.com/) is an Automated Code Review Tool that monitors your technical debt, helps you improve your code quality, teaches best practices to your developers, and helps you save time in Code Reviews.
|
data/circle.yml
CHANGED
@@ -1,7 +1,16 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
dependencies:
|
2
|
+
pre:
|
3
|
+
- git config --global user.email "ci@codacy.com"
|
4
|
+
- git config --global user.name "Codacy CI"
|
5
|
+
override:
|
6
|
+
- rvm install 1.9.3-p551
|
7
|
+
- rvm install 2.0.0-p648
|
8
|
+
- rvm install 2.1.10
|
9
|
+
- rvm install 2.2.5
|
10
|
+
- rvm install 2.3.1
|
11
|
+
cache_directories:
|
12
|
+
- "~/.rvm"
|
4
13
|
|
5
14
|
test:
|
6
15
|
override:
|
7
|
-
-
|
16
|
+
- scripts/ci.sh
|
data/codacy-coverage.gemspec
CHANGED
@@ -2,11 +2,11 @@ lib = File.expand_path('../lib', __FILE__)
|
|
2
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
|
-
gem.authors = ["Nuno Teixeira"]
|
6
|
-
gem.email = ["nuno@codacy.com"]
|
5
|
+
gem.authors = ["Nuno Teixeira", "Rodrigo Fernandes"]
|
6
|
+
gem.email = ["nuno@codacy.com", "rodrigo@codacy.com"]
|
7
7
|
gem.description = "Post code coverage results to Codacy."
|
8
8
|
gem.summary = "Post code coverage results to Codacy."
|
9
|
-
gem.homepage = "https://codacy.com"
|
9
|
+
gem.homepage = "https://www.codacy.com"
|
10
10
|
gem.license = "MIT"
|
11
11
|
|
12
12
|
gem.files = `git ls-files`.split($\)
|
@@ -14,11 +14,13 @@ Gem::Specification.new do |gem|
|
|
14
14
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
15
15
|
gem.name = "codacy-coverage"
|
16
16
|
gem.require_paths = ["lib"]
|
17
|
-
gem.version = ENV['PUBLISH_VERSION'] || '1.0.dev'
|
17
|
+
gem.version = ENV['PUBLISH_VERSION'] || '1.0.dev'.freeze
|
18
18
|
|
19
|
-
gem.required_ruby_version = '>= 1.9
|
19
|
+
gem.required_ruby_version = '>= 1.9'
|
20
20
|
|
21
|
-
gem.
|
21
|
+
gem.add_runtime_dependency 'simplecov'
|
22
22
|
|
23
|
-
gem.add_development_dependency 'bundler'
|
23
|
+
gem.add_development_dependency 'bundler'
|
24
|
+
gem.add_development_dependency 'rake'
|
25
|
+
gem.add_development_dependency 'rspec'
|
24
26
|
end
|
data/lib/codacy/client.rb
CHANGED
@@ -23,7 +23,9 @@ module Codacy
|
|
23
23
|
false
|
24
24
|
else
|
25
25
|
logger.info('Posting ' + result.to_s.length.to_s + ' bytes to ' + url)
|
26
|
+
VCR.turn_off! if Object.const_defined?('VCR') && VCR.respond_to?(:turn_off!)
|
26
27
|
response = send_request(url, result, project_token)
|
28
|
+
VCR.turn_on! if Object.const_defined?('VCR') && VCR.respond_to?(:turn_on!)
|
27
29
|
|
28
30
|
logger.info(response)
|
29
31
|
response.to_s.include? 'success'
|
data/scripts/ci.sh
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
#!/bin/bash --login
|
2
|
+
|
3
|
+
set -e
|
4
|
+
|
5
|
+
rvm use 1.9.3-p551
|
6
|
+
ruby -v
|
7
|
+
bundle install --gemfile Gemfile.ruby-19
|
8
|
+
bundle exec rspec
|
9
|
+
|
10
|
+
rvm use 2.0.0-p648
|
11
|
+
ruby -v
|
12
|
+
bundle install
|
13
|
+
bundle exec rspec
|
14
|
+
|
15
|
+
rvm use 2.1.10
|
16
|
+
ruby -v
|
17
|
+
bundle install
|
18
|
+
bundle exec rspec
|
19
|
+
|
20
|
+
rvm use 2.2.5
|
21
|
+
ruby -v
|
22
|
+
bundle install
|
23
|
+
bundle exec rspec
|
24
|
+
|
25
|
+
rvm use 2.3.1
|
26
|
+
ruby -v
|
27
|
+
bundle install
|
28
|
+
bundle exec rspec
|
metadata
CHANGED
@@ -1,53 +1,84 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codacy-coverage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nuno Teixeira
|
8
|
+
- Rodrigo Fernandes
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2016-
|
12
|
+
date: 2016-12-01 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: simplecov
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
16
17
|
requirements:
|
17
|
-
- -
|
18
|
+
- - ">="
|
18
19
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0
|
20
|
+
version: '0'
|
20
21
|
type: :runtime
|
21
22
|
prerelease: false
|
22
23
|
version_requirements: !ruby/object:Gem::Requirement
|
23
24
|
requirements:
|
24
|
-
- -
|
25
|
+
- - ">="
|
25
26
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0
|
27
|
+
version: '0'
|
27
28
|
- !ruby/object:Gem::Dependency
|
28
29
|
name: bundler
|
29
30
|
requirement: !ruby/object:Gem::Requirement
|
30
31
|
requirements:
|
31
|
-
- -
|
32
|
+
- - ">="
|
32
33
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
34
|
+
version: '0'
|
34
35
|
type: :development
|
35
36
|
prerelease: false
|
36
37
|
version_requirements: !ruby/object:Gem::Requirement
|
37
38
|
requirements:
|
38
|
-
- -
|
39
|
+
- - ">="
|
39
40
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
41
|
+
version: '0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: rake
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: rspec
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
41
70
|
description: Post code coverage results to Codacy.
|
42
71
|
email:
|
43
72
|
- nuno@codacy.com
|
73
|
+
- rodrigo@codacy.com
|
44
74
|
executables: []
|
45
75
|
extensions: []
|
46
76
|
extra_rdoc_files: []
|
47
77
|
files:
|
48
|
-
- .github/ISSUE_TEMPLATE.md
|
49
|
-
- .gitignore
|
78
|
+
- ".github/ISSUE_TEMPLATE.md"
|
79
|
+
- ".gitignore"
|
50
80
|
- Gemfile
|
81
|
+
- Gemfile.ruby-19
|
51
82
|
- README.md
|
52
83
|
- circle.yml
|
53
84
|
- codacy-coverage.gemspec
|
@@ -58,9 +89,10 @@ files:
|
|
58
89
|
- lib/codacy/git.rb
|
59
90
|
- lib/codacy/parser.rb
|
60
91
|
- lib/codacy/reporter.rb
|
92
|
+
- scripts/ci.sh
|
61
93
|
- spec/codacy/git_spec.rb
|
62
94
|
- spec/spec_helper.rb
|
63
|
-
homepage: https://codacy.com
|
95
|
+
homepage: https://www.codacy.com
|
64
96
|
licenses:
|
65
97
|
- MIT
|
66
98
|
metadata: {}
|
@@ -70,17 +102,17 @@ require_paths:
|
|
70
102
|
- lib
|
71
103
|
required_ruby_version: !ruby/object:Gem::Requirement
|
72
104
|
requirements:
|
73
|
-
- -
|
105
|
+
- - ">="
|
74
106
|
- !ruby/object:Gem::Version
|
75
|
-
version: 1.9
|
107
|
+
version: '1.9'
|
76
108
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
109
|
requirements:
|
78
|
-
- -
|
110
|
+
- - ">="
|
79
111
|
- !ruby/object:Gem::Version
|
80
112
|
version: '0'
|
81
113
|
requirements: []
|
82
114
|
rubyforge_project:
|
83
|
-
rubygems_version: 2.
|
115
|
+
rubygems_version: 2.5.1
|
84
116
|
signing_key:
|
85
117
|
specification_version: 4
|
86
118
|
summary: Post code coverage results to Codacy.
|