kubeclient 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of kubeclient might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c1a9d1c94899f80aff5f5785eba76960e53aadd9
4
- data.tar.gz: b0b6a866ec05f67b6128adf1567f1439c574c6dd
3
+ metadata.gz: dec12a4dcb163b81ca8da0db77cf08752f41177a
4
+ data.tar.gz: 0a57e47650e7ee368b3d554842a26d982c86896a
5
5
  SHA512:
6
- metadata.gz: 4dec2bc2ebb2dbf0155b84ec0c58da5fe4a8b7c03b05b2f6831243c08cc7d313d265c63a39a377a25a2ea27d1237d2beb65a6727d9195aa4fe710c3760acfd0e
7
- data.tar.gz: ec7a46482a877e8329a011a4cab8705f5e839dab07dc9fbbe8c579563bd84cda46e2410b69d61d0e9095d9885306f61c67b1baf665d9ca9ddeaf7b6c7b706c8e
6
+ metadata.gz: 57fa63930a3ea9e626076806c1ec24528a0f21e1a60fff77f48edb12ea607a7ec2e35b8c5d70912af2a5116e648b7ee9ad531af4a2c99dcb4f5262fb98ba19d3
7
+ data.tar.gz: dbab4feff7832d392057430c11301e79ee2d2d3ff827ee471fabb74cb3ef08394579e11c6bd464577f3d36fa838e29c13360bf9307b506c7641cc63cb6de4f61
data/kubeclient.gemspec CHANGED
@@ -27,7 +27,6 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency 'rubocop', '= 0.30.0'
28
28
  spec.add_dependency 'rest-client'
29
29
  spec.add_dependency 'activesupport'
30
- spec.add_dependency 'json'
31
30
  spec.add_dependency 'recursive-open-struct', '= 1.0.0'
32
31
  spec.add_dependency 'http', '= 0.9.8'
33
32
  end
@@ -224,6 +224,7 @@ module Kubeclient
224
224
  hash[:kind] = entity_type
225
225
  end
226
226
  hash[:apiVersion] = @api_version
227
+ @headers['Content-Type'] = 'application/json'
227
228
  response = handle_exception do
228
229
  rest_client[ns_prefix + resource_name(entity_type)]
229
230
  .post(hash.to_json, @headers)
@@ -235,6 +236,7 @@ module Kubeclient
235
236
  def update_entity(entity_type, entity_config)
236
237
  name = entity_config[:metadata][:name]
237
238
  ns_prefix = build_namespace_prefix(entity_config[:metadata][:namespace])
239
+ @headers['Content-Type'] = 'application/json'
238
240
  handle_exception do
239
241
  rest_client[ns_prefix + resource_name(entity_type) + "/#{name}"]
240
242
  .put(entity_config.to_h.to_json, @headers)
@@ -1,4 +1,4 @@
1
1
  # Kubernetes REST-API Client
2
2
  module Kubeclient
3
- VERSION = '1.1.1'
3
+ VERSION = '1.1.2'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kubeclient
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alissa Bonas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-24 00:00:00.000000000 Z
11
+ date: 2016-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -122,20 +122,6 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: json
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :runtime
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
125
  - !ruby/object:Gem::Dependency
140
126
  name: recursive-open-struct
141
127
  requirement: !ruby/object:Gem::Requirement