chef-zero 2.1.1 → 2.1.2

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: 06ef2b090b7ac3eed283205f44d61cd66c693c74
4
- data.tar.gz: 14fb6b29d392f772e579685056499a4e053cf5eb
3
+ metadata.gz: c7ed5dd8948e759d7ff44ccbc8eb4c99d55272f1
4
+ data.tar.gz: f9bb0c1e71bd100f1df405c251da8fcf92908879
5
5
  SHA512:
6
- metadata.gz: 91a2192f2a50b203f19e6b45e8d911fb0fb304a5771b0721e49e47b587df40d33f53bdd59a8a83f119815929087f9b0aa2002ba983e9497c79c5e0f33c47d557
7
- data.tar.gz: a82c744dbbacbc2841e8d11f9fdd17748393c8d1b9a5b8e713ce87876a521fc6ae3a8d0b55abb78a81e2fd8f84f9450ea1e7f190b4c12a0df32ee1d152a73d26
6
+ metadata.gz: af1b4f1e43fa810539c2541fbe5eea52966dcbfb014804672e4075329eb1201f9b89b6d4cd27b48fb68ade9d7e4d19c012af3ca1684de0cd722ab8a57cbf2b4f
7
+ data.tar.gz: 265e2a81198d21af35f3c5372e8cd3c847913211d9145abb14e060ff62e158847543902df616c80208f4327911a4ba6da2555dea9a25b03780d9252979c6bf2b
@@ -119,6 +119,7 @@ module ChefZero
119
119
  [response_code, {"Content-Type" => "application/json"}, json_text]
120
120
  end
121
121
 
122
+ # To be called from inside rest endpoints
122
123
  def build_uri(base_uri, rest_path)
123
124
  if server.options[:single_org]
124
125
  # Strip off /organizations/chef if we are in single org mode
@@ -132,6 +133,7 @@ module ChefZero
132
133
  end
133
134
 
134
135
  def self.build_uri(base_uri, rest_path)
136
+ "#{base_uri}/#{rest_path.join('/')}"
135
137
  end
136
138
 
137
139
  def populate_defaults(request, response)
@@ -1,3 +1,3 @@
1
1
  module ChefZero
2
- VERSION = '2.1.1'
2
+ VERSION = '2.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-zero
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Keiser