orchestrate 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +10 -17
- data/README.md +7 -2
- data/lib/orchestrate/client.rb +2 -2
- data/lib/orchestrate/version.rb +1 -1
- data/test/orchestrate/api/key_value_test.rb +2 -2
- data/test/orchestrate/client_test.rb +1 -1
- 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: 5e012cb7bc45936de2be4211e167acee8a8908b8
|
4
|
+
data.tar.gz: aa2439edb8a6594826e8e1e892d86e4d3dd9df34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b1088cdddc122bbfaef376f5e577155cecae4d2cfa5e658a1a7ddf593ea0253cf29929054da79dfa63ab2bfb3a1f410759043863a884fc7aeb2784ff808ff15
|
7
|
+
data.tar.gz: e4c960bd4754ae8bcb1dc08b79e903016c84b3f7583845f520c6b9cb458fc2b7c37336e2c52d85eda04d1aaa8c652b20c4aa7594c63c1f3abe9ae9d94a6b3f2a
|
data/LICENSE
CHANGED
@@ -1,20 +1,13 @@
|
|
1
|
-
|
1
|
+
Copyright 2014 James Carrasquer, Orchestrate.io
|
2
2
|
|
3
|
-
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
you may not use this file except in compliance with the License.
|
5
|
+
You may obtain a copy of the License at
|
4
6
|
|
5
|
-
|
6
|
-
this software and associated documentation files (the "Software"), to deal in
|
7
|
-
the Software without restriction, including without limitation the rights to
|
8
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
9
|
-
the Software, and to permit persons to whom the Software is furnished to do so,
|
10
|
-
subject to the following conditions:
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
11
8
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
18
|
-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
19
|
-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
See the License for the specific language governing permissions and
|
13
|
+
limitations under the License.
|
data/README.md
CHANGED
@@ -103,7 +103,13 @@ end
|
|
103
103
|
```
|
104
104
|
|
105
105
|
## Release Notes
|
106
|
-
|
106
|
+
|
107
|
+
- June 17, 2014: release 0.6.1
|
108
|
+
- Fix #43 for If-None-Match on Client#put
|
109
|
+
- Fix #46 for Client#ping
|
110
|
+
- License changed to ASLv2
|
111
|
+
|
112
|
+
- June 16, 2014: release 0.6.0
|
107
113
|
- **BACKWARDS-INCOMPATIBLE** Reworked Client constructor to take API key and
|
108
114
|
optional Faraday configuration block. See 9045ffc for details.
|
109
115
|
- Migrated documentation to YARD
|
@@ -120,4 +126,3 @@ end
|
|
120
126
|
- Uses Faraday HTTP Library as backend, with examples of alternate adapters
|
121
127
|
- Cleanup client method signatures
|
122
128
|
|
123
|
-
|
data/lib/orchestrate/client.rb
CHANGED
@@ -39,7 +39,7 @@ module Orchestrate
|
|
39
39
|
# @return Orchestrate::API::Response
|
40
40
|
# @raise Orchestrate::API::Unauthorized if the client could not authenticate.
|
41
41
|
def ping
|
42
|
-
send_request :
|
42
|
+
send_request :head, []
|
43
43
|
end
|
44
44
|
|
45
45
|
# @!group Collections
|
@@ -128,7 +128,7 @@ module Orchestrate
|
|
128
128
|
if condition.is_a?(String)
|
129
129
|
headers['If-Match'] = API::Helpers.format_ref(condition)
|
130
130
|
elsif condition == false
|
131
|
-
headers['If-None-Match'] = '*'
|
131
|
+
headers['If-None-Match'] = '"*"'
|
132
132
|
end
|
133
133
|
send_request :put, [collection, key], { body: body, headers: headers, response: API::ItemResponse }
|
134
134
|
end
|
data/lib/orchestrate/version.rb
CHANGED
@@ -102,7 +102,7 @@ class KeyValueTest < MiniTest::Unit::TestCase
|
|
102
102
|
|
103
103
|
@stubs.put("/v0/#{@collection}/#{@key}") do |env|
|
104
104
|
assert_authorization @basic_auth, env
|
105
|
-
assert_header 'If-None-Match', '*', env
|
105
|
+
assert_header 'If-None-Match', '"*"', env
|
106
106
|
assert_header 'Content-Type', 'application/json', env
|
107
107
|
assert_equal body.to_json, env.body
|
108
108
|
[ 200, response_headers, '' ]
|
@@ -116,7 +116,7 @@ class KeyValueTest < MiniTest::Unit::TestCase
|
|
116
116
|
body = {"foo" => "bar"}
|
117
117
|
@stubs.put("/v0/#{@collection}/#{@key}") do |env|
|
118
118
|
assert_authorization @basic_auth, env
|
119
|
-
assert_header 'If-None-Match', '*', env
|
119
|
+
assert_header 'If-None-Match', '"*"', env
|
120
120
|
assert_header 'Content-Type', 'application/json', env
|
121
121
|
assert_equal body.to_json, env.body
|
122
122
|
[ 200, response_headers, '' ]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: orchestrate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Lyon
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-06-
|
13
|
+
date: 2014-06-17 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: faraday
|