atlas-api 0.0.9 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -1
- data/bin/atlas +0 -0
- data/lib/atlas-api/client.rb +2 -5
- data/lib/atlas-api/version.rb +1 -1
- data/spec/atlas-api/client_spec.rb +8 -14
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e000826e8bb492cc0ebbefe286597358687ec749
|
|
4
|
+
data.tar.gz: 055c51916b78aa2476739e19addcd90690877d79
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5076c26d6b70d881e1b828391b5ef0510b571ad74f4aad66c0e671e2a1ec6a8f9734db3fadb4dc09e5a4b87459c2b3b342bc8dded178a4350bee52c014795404
|
|
7
|
+
data.tar.gz: fcf3591e112374f9dcffe8bc7e78170fbd91fab13de70e4356a3960c10bbfcce9d87dd6efea7b429f65a5ad86dccbe2405df86980ed73034cd4b1175f7ad4159
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
atlas-api (0.0.
|
|
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
|
data/lib/atlas-api/client.rb
CHANGED
|
@@ -43,11 +43,8 @@ module Atlas
|
|
|
43
43
|
post("builds", options)
|
|
44
44
|
end
|
|
45
45
|
|
|
46
|
-
|
|
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
|
data/lib/atlas-api/version.rb
CHANGED
|
@@ -135,22 +135,16 @@ describe Atlas::Api::Client do
|
|
|
135
135
|
stub.should have_been_requested
|
|
136
136
|
end
|
|
137
137
|
|
|
138
|
-
|
|
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
|
-
:
|
|
149
|
-
|
|
150
|
-
|
|
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, "
|
|
153
|
-
@client.
|
|
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
|
|
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-
|
|
11
|
+
date: 2014-03-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|