scrutinizer-ocular 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,7 +26,11 @@ module Scrutinizer
26
26
  end
27
27
 
28
28
  def upload(format, data)
29
- uri = URI.parse(@api_url + '/repositories/' + @repository_name + '/data/code-coverage')
29
+ uri_str = @api_url + '/repositories/' + @repository_name + '/data/code-coverage'
30
+ unless @access_token.nil?
31
+ uri_str += '?access_token=' + @access_token
32
+ end
33
+ uri = URI.parse(uri_str)
30
34
 
31
35
  request = Net::HTTP::Post.new(uri.request_uri)
32
36
  request.add_field('Content-Type', 'application/json')
@@ -1,5 +1,5 @@
1
1
  module Scrutinizer
2
2
  module Ocular
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,80 +1,80 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrutinizer-ocular
3
3
  version: !ruby/object:Gem::Version
4
+ version: 1.0.1
4
5
  prerelease:
5
- version: 1.0.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Scrutinizer
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-07-08 00:00:00.000000000 Z
12
+ date: 2014-09-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- type: :runtime
16
15
  name: simplecov
17
- version_requirements: !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
18
17
  none: false
19
18
  requirements:
20
19
  - - ! '>='
21
20
  - !ruby/object:Gem::Version
22
21
  version: '0.7'
23
- requirement: !ruby/object:Gem::Requirement
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
24
25
  none: false
25
26
  requirements:
26
27
  - - ! '>='
27
28
  - !ruby/object:Gem::Version
28
29
  version: '0.7'
29
- prerelease: false
30
30
  - !ruby/object:Gem::Dependency
31
- type: :development
32
31
  name: bundler
33
- version_requirements: !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
34
33
  none: false
35
34
  requirements:
36
35
  - - ~>
37
36
  - !ruby/object:Gem::Version
38
37
  version: '1.6'
39
- requirement: !ruby/object:Gem::Requirement
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
40
41
  none: false
41
42
  requirements:
42
43
  - - ~>
43
44
  - !ruby/object:Gem::Version
44
45
  version: '1.6'
45
- prerelease: false
46
46
  - !ruby/object:Gem::Dependency
47
- type: :development
48
47
  name: rake
49
- version_requirements: !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
50
49
  none: false
51
50
  requirements:
52
51
  - - ! '>='
53
52
  - !ruby/object:Gem::Version
54
53
  version: '0'
55
- requirement: !ruby/object:Gem::Requirement
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
56
57
  none: false
57
58
  requirements:
58
59
  - - ! '>='
59
60
  - !ruby/object:Gem::Version
60
61
  version: '0'
61
- prerelease: false
62
62
  - !ruby/object:Gem::Dependency
63
- type: :development
64
63
  name: rspec
65
- version_requirements: !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
66
65
  none: false
67
66
  requirements:
68
67
  - - ! '>='
69
68
  - !ruby/object:Gem::Version
70
69
  version: '0'
71
- requirement: !ruby/object:Gem::Requirement
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
72
73
  none: false
73
74
  requirements:
74
75
  - - ! '>='
75
76
  - !ruby/object:Gem::Version
76
77
  version: '0'
77
- prerelease: false
78
78
  description: Simple gem that uploads coverage data from a CI server; also handles
79
79
  submissions from parallelized runs.
80
80
  email:
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  requirements: []
125
125
  rubyforge_project:
126
- rubygems_version: 1.8.28
126
+ rubygems_version: 1.8.23
127
127
  signing_key:
128
128
  specification_version: 3
129
129
  summary: Uploads code coverage data to scrutinizer-ci.com