limited_red 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,9 +3,9 @@ module LimitedRed
3
3
  def initialize(config, out = STDOUT, adapter = nil, thread_pool = ThreadPool)
4
4
  @config ||= config
5
5
  @out = out
6
- @project_id = @config['project name']
7
6
  @username = @config['username']
8
7
  @api_key = @config['api key']
8
+ @project_id = "#{@username}/#{@config['project name']}"
9
9
 
10
10
  @adapter = adapter || LimitedRed::Adapter::HttParty.new(@config)
11
11
  @thread_pool = thread_pool
@@ -26,7 +26,7 @@ module LimitedRed
26
26
  :token => token_for(data.merge(:build_id => build_id))})
27
27
 
28
28
  @thread_pool.with_a_thread_run do
29
- response = @adapter.post("/#{@project_id}/builds/#{build_id}/results", :body => data)
29
+ response = @adapter.post("/{@project_id}/builds/#{build_id}/results", :body => data)
30
30
  log(response) if error?(response)
31
31
  end
32
32
  end
@@ -1,5 +1,5 @@
1
1
  module LimitedRed # :nodoc:
2
2
  module Version # :nodoc:
3
- STRING = '0.4.1'
3
+ STRING = '0.4.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: limited_red
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-09-16 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
16
- requirement: &70137392208020 !ruby/object:Gem::Requirement
16
+ requirement: &70249263161440 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - =
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.8.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70137392208020
24
+ version_requirements: *70249263161440
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: cucumber
27
- requirement: &70137392207500 !ruby/object:Gem::Requirement
27
+ requirement: &70249263160920 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 1.1.4
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70137392207500
35
+ version_requirements: *70249263160920
36
36
  description: Learn and adapt from you test metrics. Used with the www.limited-red.com
37
37
  service. Tests are priorited by the probability of failure
38
38
  email: joe@josephwilk.net