atlas-api 0.0.9 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 59f0187deaef56ad6acff1368a3212fee557681c
4
- data.tar.gz: 4424b0d843641cb2253375386e0f3229a8ea0de2
3
+ metadata.gz: e000826e8bb492cc0ebbefe286597358687ec749
4
+ data.tar.gz: 055c51916b78aa2476739e19addcd90690877d79
5
5
  SHA512:
6
- metadata.gz: 9bf9afe09463bd548215eaa24b437575d3194c57157dc507b1398c66d0781f27295d6259ce0670da000be51d5d8e9ba804266cd5f86fc76185a2b90aade69cc7
7
- data.tar.gz: d605f9a3725889ee31b267e6eaff641b9e3e05e3ffe3a6a5c7a34db1011e7d525877a6c91d40ddbe0051c43d9d11674c594c7a6dbd109726d4e21608716fcd91
6
+ metadata.gz: 5076c26d6b70d881e1b828391b5ef0510b571ad74f4aad66c0e671e2a1ec6a8f9734db3fadb4dc09e5a4b87459c2b3b342bc8dded178a4350bee52c014795404
7
+ data.tar.gz: fcf3591e112374f9dcffe8bc7e78170fbd91fab13de70e4356a3960c10bbfcce9d87dd6efea7b429f65a5ad86dccbe2405df86980ed73034cd4b1175f7ad4159
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- atlas-api (0.0.7)
4
+ atlas-api (0.0.9)
5
5
  faraday (~> 0.5.3)
6
6
  hashie (~> 0.4.0)
7
7
 
@@ -16,6 +16,7 @@ GEM
16
16
  addressable (~> 2.2.4)
17
17
  multipart-post (~> 1.1.0)
18
18
  rack (>= 1.1.0, < 2)
19
+ rack (>= 1.1.0, < 2)
19
20
  hashie (0.4.0)
20
21
  multipart-post (1.1.5)
21
22
  rack (1.5.2)
data/bin/atlas CHANGED
File without changes
@@ -43,11 +43,8 @@ module Atlas
43
43
  post("builds", options)
44
44
  end
45
45
 
46
- # Build Formats
47
- # ------------------------------------------------------------------------
48
-
49
- def update_build_format(uuid, options = {})
50
- put("build_formats/#{uuid}", options)
46
+ def update_build(id, formats = {})
47
+ put("builds/#{id}", :formats => formats)
51
48
  end
52
49
 
53
50
  # HTTP methods
@@ -1,5 +1,5 @@
1
1
  module Atlas
2
2
  module Api
3
- VERSION = "0.0.9"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
@@ -135,22 +135,16 @@ describe Atlas::Api::Client do
135
135
  stub.should have_been_requested
136
136
  end
137
137
 
138
- end
139
-
140
- describe "Build Format" do
141
-
142
- before(:each) do
143
- @uuid = "123bgsf"
144
- end
145
-
146
- it "#update_build_format" do
138
+ it "#update_build" do
147
139
  query = {
148
- :message => "hello",
149
- :download_url => "http://www.someurl.com",
150
- :status => "success"
140
+ :pdf => {
141
+ :message => "hello",
142
+ :download_url => "http://www.someurl.com",
143
+ :status => "success"
144
+ }
151
145
  }
152
- stub = stub_request_with_token(:put, "build_formats/#{@uuid}", @body.to_json, query)
153
- @client.update_build_format(@uuid, query)
146
+ stub = stub_request_with_token(:put, "builds/1", {:formats => query}.to_json)
147
+ @client.update_build(1, query)
154
148
  stub.should have_been_requested
155
149
  end
156
150
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atlas-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rune Skjoldborg Madsen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-24 00:00:00.000000000 Z
11
+ date: 2014-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday