chef-api 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/chef-api.gemspec +1 -1
- data/lib/chef-api/authentication.rb +3 -1
- data/lib/chef-api/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 897751a69516ca8d1e12eaa9dcb521b32aaea046
|
4
|
+
data.tar.gz: 054568ad2efe5331ed9f752bd7ff6eab4127cd3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49db17dfafabca27646fc677a2e3067ce165bb04982c51cfcbd7d999251495dab9c2b264dd56efa8c2aa06b3ab7e5a61b1a20de75fdbee9e80c4b06bdd5cef11
|
7
|
+
data.tar.gz: deb8bcb861d3d3dc352f1c554de34eb9fc8d6064d4a4e5aa9e32f4032341e1e37bd29c4f8af0cba49c138ff8cc4b9e610f0f0f3efc58447da79fd9d2a388048e
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
ChefAPI Changelog
|
2
2
|
=================
|
3
3
|
|
4
|
+
v0.5.0 (2014-07-10)
|
5
|
+
-------------------
|
6
|
+
- Relax the dependency on mime-types
|
7
|
+
- When searching for the file object of a multipart filepart, find the first IO that not a StringIO
|
8
|
+
- Rewind IO objects after digesting them
|
9
|
+
|
4
10
|
v0.4.1 (2014-07-07)
|
5
11
|
-------------------
|
6
12
|
- Remove dependency on mixlib-authentication
|
data/chef-api.gemspec
CHANGED
@@ -118,7 +118,7 @@ module ChefAPI
|
|
118
118
|
else
|
119
119
|
if @body.is_a?(Multipart::MultiIO)
|
120
120
|
filepart = @body.ios.find { |io| io.is_a?(Multipart::MultiIO) }
|
121
|
-
file = filepart.ios.find { |io| io.is_a?(
|
121
|
+
file = filepart.ios.find { |io| !io.is_a?(StringIO) }
|
122
122
|
|
123
123
|
@content_hash = hash(file).chomp
|
124
124
|
else
|
@@ -280,6 +280,8 @@ module ChefAPI
|
|
280
280
|
digester.update(buffer)
|
281
281
|
end
|
282
282
|
|
283
|
+
io.rewind
|
284
|
+
|
283
285
|
Base64.encode64(digester.digest)
|
284
286
|
end
|
285
287
|
|
data/lib/chef-api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seth Vargo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logify
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: mime-types
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
description: A tiny Chef API client with minimal dependencies
|
42
42
|
email:
|
43
43
|
- sethvargo@gmail.com
|