bamboo-client 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -54,7 +54,7 @@ module Bamboo
54
54
  end
55
55
 
56
56
  def queue
57
- get("queue/").auto_expand Queue, @http
57
+ Queue.new get("queue/").data, @http
58
58
  end
59
59
 
60
60
  private
@@ -1,5 +1,5 @@
1
1
  module Bamboo
2
2
  module Client
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
@@ -49,12 +49,12 @@ module Bamboo
49
49
  end
50
50
 
51
51
  it "should be able to fetch the queue" do
52
- document.should_receive(:auto_expand).with(Rest::Queue, http).and_return %w[foo bar]
52
+ document.should_receive(:data).and_return('some' => 'data')
53
53
 
54
54
  http.should_receive(:get).with("/rest/api/latest/queue/", nil, nil).
55
55
  and_return(document)
56
56
 
57
- client.queue.should == %w[foo bar]
57
+ client.queue().should be_kind_of(Rest::Queue)
58
58
  end
59
59
 
60
60
  it "should be able to fetch results for a specific key" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bamboo-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-02-26 00:00:00.000000000 Z
13
+ date: 2013-02-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec
@@ -186,7 +186,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
186
186
  version: '0'
187
187
  segments:
188
188
  - 0
189
- hash: 1404739530384036117
189
+ hash: -3149209803594637235
190
190
  required_rubygems_version: !ruby/object:Gem::Requirement
191
191
  none: false
192
192
  requirements:
@@ -195,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
195
  version: '0'
196
196
  segments:
197
197
  - 0
198
- hash: 1404739530384036117
198
+ hash: -3149209803594637235
199
199
  requirements: []
200
200
  rubyforge_project: bamboo-client
201
201
  rubygems_version: 1.8.25