cheffish 1.3.0 → 1.3.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: 85b4f608f3cf8b32a827f1b538c2cf7ef9185c8c
4
- data.tar.gz: 0c382ad53c007730730a591967628e507c8be51c
3
+ metadata.gz: a3b2d7aa4a600e12df982dcd0f7ed65bcda2c130
4
+ data.tar.gz: e47a8187c7d5f7c7ffb89887cb3557b7f6034a2f
5
5
  SHA512:
6
- metadata.gz: 6bed951a0243067a3ada2a3f073d788a4569d17f08f01ac7f76c6c148dca626e6f1b468cad947848ec548bd1ad723e14469bb8261d4be84567c3eb633cc4dc9d
7
- data.tar.gz: a8e7ac0b4ac306e32a9ccee854ef09ad71732b9ca8f87840246955b494a76e210c3a66b63f03e14d24881ab5d8a068486dd52b470c3c486314fac23707b83a91
6
+ metadata.gz: 6d94638b491c8aa79e7cc1f9f22e8776ffb9afee7c18f72dd00c6f3e74a3caafbd54061d53b3ae3edd93c76a2b76531a3eac8b57fef3069bc1c652229059e097
7
+ data.tar.gz: 8fc328b43823be5d05e971316b7f87daf44124c50bc7530b311343f670b8aed78e5d1601f849472e14f543c4407120fb7b7165841dbd8df01d214d65603cdd26
data/lib/cheffish.rb CHANGED
@@ -16,7 +16,11 @@ module Cheffish
16
16
  end
17
17
 
18
18
  def self.chef_server_api(chef_server = default_chef_server)
19
- Cheffish::ServerAPI.new(chef_server[:chef_server_url], chef_server[:options] || {})
19
+ # Pin the server api version to 0 until https://github.com/chef/cheffish/issues/56
20
+ # gets the correct compatibility fix.
21
+ chef_server[:options] ||= {}
22
+ chef_server[:options].merge!(api_version: "0")
23
+ Cheffish::ServerAPI.new(chef_server[:chef_server_url], chef_server[:options])
20
24
  end
21
25
 
22
26
  def self.profiled_config(config = Chef::Config)
@@ -1,3 +1,3 @@
1
1
  module Cheffish
2
- VERSION = '1.3.0'
2
+ VERSION = '1.3.1'
3
3
  end
@@ -0,0 +1,13 @@
1
+ require 'cheffish'
2
+
3
+ describe "api version" do
4
+
5
+ let(:server_api) do
6
+ Cheffish.chef_server_api({:chef_server_url => "my.chef.server"})
7
+ end
8
+
9
+ it "is pinned to 0" do
10
+ expect(Cheffish::ServerAPI).to receive(:new).with("my.chef.server", {api_version: "0"})
11
+ server_api
12
+ end
13
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cheffish
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Keiser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-29 00:00:00.000000000 Z
11
+ date: 2015-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef-zero
@@ -131,6 +131,7 @@ files:
131
131
  - lib/cheffish/with_pattern.rb
132
132
  - spec/functional/fingerprint_spec.rb
133
133
  - spec/functional/merged_config_spec.rb
134
+ - spec/functional/server_api_spec.rb
134
135
  - spec/integration/chef_acl_spec.rb
135
136
  - spec/integration/chef_client_spec.rb
136
137
  - spec/integration/chef_container_spec.rb
@@ -164,9 +165,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
165
  version: '0'
165
166
  requirements: []
166
167
  rubyforge_project:
167
- rubygems_version: 2.4.5
168
+ rubygems_version: 2.4.7
168
169
  signing_key:
169
170
  specification_version: 4
170
171
  summary: A library to manipulate Chef in Chef.
171
172
  test_files: []
172
- has_rdoc: