ncio 2.0.0 → 2.0.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
- SHA1:
3
- metadata.gz: 20233fc709a01d51184b10215692e54d696c171d
4
- data.tar.gz: a8e52b9ba661dc78b8d2fe84bfa43651fe2f1d69
2
+ SHA256:
3
+ metadata.gz: b45257c728580a17782ea914a0b1088c7c9c1664269e48ba8f7336f9cd592940
4
+ data.tar.gz: 00f87205ba300eb90f70399253cd7e4234cf38ee862af0a710b57f1586fbf598
5
5
  SHA512:
6
- metadata.gz: 7f9f4415dacc1480ce243593fbcc96cdf9abf02faf7d8c9feb31237daaf1b20a83005be5a61b97903053dc88c4fe52e2f50e7d4f253101e1fefb93c73f326064
7
- data.tar.gz: 4485600f5a8475979367893ea7978d0b5fc7e60cfae6f8b9c396f50cfd38b7f1d68d1001cfcc335143b6e8f68a73b51f34559feb58de7f48cc7b50880cc4a549
6
+ metadata.gz: 7049b00059ad2748f24606f4bb1ac8bb4d8c53b8e5da635128f97fa38d1022e288c79bed1f6f8d2aa52cc6f0e0d2c6291ec943978c117b3b670754d8271268e7
7
+ data.tar.gz: b08053f3a0e47a168917a69c0e6b9210fe7d2d5a7f5c3afab5e25fdc0b6594870d5aa8a2cd6ec49103069d9013cca14a2cee8748ddda9b9f2610c80d66a202ed
@@ -1,3 +1,10 @@
1
+ Version 2.0.1
2
+ ===
3
+
4
+ * Fix ncio with PE > 2017.2 Previous versions hang with requests with
5
+ Transfer-Encoding: chunked. Thanks to Dylan Ratcliffe and Geoff Williams for
6
+ the fix.
7
+
1
8
  Version 2.0.0
2
9
  ===
3
10
 
@@ -23,7 +23,6 @@ module Ncio
23
23
 
24
24
  DEFAULT_HEADERS = {
25
25
  'Content-Type' => 'application/json',
26
- 'Transfer-Encoding' => 'chunked'
27
26
  }.freeze
28
27
 
29
28
  ##
@@ -130,6 +129,7 @@ module Ncio
130
129
  def import_hierarchy(stream)
131
130
  uri = build_uri('import-hierarchy')
132
131
  req = Net::HTTP::Post.new(uri, DEFAULT_HEADERS)
132
+ req['Transfer-Encoding'] = ['chunked']
133
133
  req.body_stream = stream
134
134
  resp = request(req)
135
135
  return true if resp.code == '204'
@@ -1,3 +1,3 @@
1
1
  module Ncio
2
- VERSION = '2.0.0'.freeze
2
+ VERSION = '2.0.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ncio
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff McCune
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-04 00:00:00.000000000 Z
11
+ date: 2018-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -177,9 +177,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
177
  version: '0'
178
178
  requirements: []
179
179
  rubyforge_project:
180
- rubygems_version: 2.4.5.1
180
+ rubygems_version: 2.7.6
181
181
  signing_key:
182
182
  specification_version: 4
183
183
  summary: Puppet Node Classifier backup / restore / transform
184
184
  test_files: []
185
- has_rdoc: yard