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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f0f63c17b624c48909ad16a57e3aa8c104e5d8ca
4
- data.tar.gz: 609d4327031d33d9816b1dc071e7df6ab70884f6
3
+ metadata.gz: 897751a69516ca8d1e12eaa9dcb521b32aaea046
4
+ data.tar.gz: 054568ad2efe5331ed9f752bd7ff6eab4127cd3a
5
5
  SHA512:
6
- metadata.gz: fa907ef2a5761997afc8a0c6b0a07f68d287f775b6c6ae3946be2ee52797cbfe26c023640d87662d9309457dc772db43e3d4cf1c1793e3111c679b67247e8bff
7
- data.tar.gz: df493cd920ea8a6ab12b8d73e15c8fe4eceb8f1c4a7c339dbf1dc4c2be9c521b8f3e023ddfe80668120257c707e95995f6a9ca31e506d3c7f2a6f41ed4edd247
6
+ metadata.gz: 49db17dfafabca27646fc677a2e3067ce165bb04982c51cfcbd7d999251495dab9c2b264dd56efa8c2aa06b3ab7e5a61b1a20de75fdbee9e80c4b06bdd5cef11
7
+ data.tar.gz: deb8bcb861d3d3dc352f1c554de34eb9fc8d6064d4a4e5aa9e32f4032341e1e37bd29c4f8af0cba49c138ff8cc4b9e610f0f0f3efc58447da79fd9d2a388048e
@@ -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
@@ -21,5 +21,5 @@ Gem::Specification.new do |spec|
21
21
  spec.require_paths = ['lib']
22
22
 
23
23
  spec.add_dependency 'logify', '~> 0.1'
24
- spec.add_dependency 'mime-types', '~> 2.3'
24
+ spec.add_dependency 'mime-types'
25
25
  end
@@ -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?(File) }
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
 
@@ -1,3 +1,3 @@
1
1
  module ChefAPI
2
- VERSION = '0.4.1'
2
+ VERSION = '0.5.0'
3
3
  end
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.1
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-07 00:00:00.000000000 Z
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: '2.3'
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: '2.3'
40
+ version: '0'
41
41
  description: A tiny Chef API client with minimal dependencies
42
42
  email:
43
43
  - sethvargo@gmail.com