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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 896e56c8c6989701ac79594cb43f20cc16e64947
4
- data.tar.gz: a508bdaa4ee26fb3effc1aa70718439f40f026c2
3
+ metadata.gz: 5e012cb7bc45936de2be4211e167acee8a8908b8
4
+ data.tar.gz: aa2439edb8a6594826e8e1e892d86e4d3dd9df34
5
5
  SHA512:
6
- metadata.gz: 2b5eb9d59dabc325fa6c694bf5770b32bf1b002e03395efa4429737aa115efe9219df7e8d276a7c2522d2bdaad4dd7d04d3a14fe1507216211e3857ccf5343c1
7
- data.tar.gz: 37e4a6d198dc537124d01efd46be0bf90e78a140e6c837f61039c94ac5403f9272ff50a91eb0ae8ba22a8b77ad90ae9ca089976cff3fdf8c0351c1edc52ddc51
6
+ metadata.gz: 4b1088cdddc122bbfaef376f5e577155cecae4d2cfa5e658a1a7ddf593ea0253cf29929054da79dfa63ab2bfb3a1f410759043863a884fc7aeb2784ff808ff15
7
+ data.tar.gz: e4c960bd4754ae8bcb1dc08b79e903016c84b3f7583845f520c6b9cb458fc2b7c37336e2c52d85eda04d1aaa8c652b20c4aa7594c63c1f3abe9ae9d94a6b3f2a
data/LICENSE CHANGED
@@ -1,20 +1,13 @@
1
- The MIT License (MIT)
1
+ Copyright 2014 James Carrasquer, Orchestrate.io
2
2
 
3
- Copyright (c) 2014 jimcar
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
- Permission is hereby granted, free of charge, to any person obtaining a copy of
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
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
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
- - June 12, 2014: release 0.6.0
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
-
@@ -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 :get, []
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
@@ -1,3 +1,3 @@
1
1
  module Orchestrate
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
@@ -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, '' ]
@@ -30,7 +30,7 @@ describe Orchestrate::Client do
30
30
 
31
31
  it "handles ping request" do
32
32
  client, stubs = make_client_and_artifacts
33
- stubs.get("/v0") do |env|
33
+ stubs.head("/v0") do |env|
34
34
  [ 200, response_headers, '' ]
35
35
  end
36
36
  client.ping
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.0
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-16 00:00:00.000000000 Z
13
+ date: 2014-06-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: faraday