microsoft_kiota_abstractions 0.14.2 → 0.14.3

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
  SHA256:
3
- metadata.gz: 3d8867b9a8bfa01dc4d0a54613f3350d405c80f1d9e521ed8b35bb405a68b443
4
- data.tar.gz: d8d61123f81182e924f1cf74b86abb5ed89da24b8300e9ca80af2e0b054a83a4
3
+ metadata.gz: 8658b737ad744d31125d94257ea31acc0909a68cdaf64fa0043cc51eda2f0796
4
+ data.tar.gz: db65b15a75181d77aef0541e0ef13bc6cdd6c94e3d2e7f8bda380c4d99392123
5
5
  SHA512:
6
- metadata.gz: fba27a4c85291c028383b48e4d294ced778c1669b599eacbd3277661129bfb4cde99428c431563e84201a10d8a5d916df710436907e03e24a6d398beba108413
7
- data.tar.gz: 7afaaf78fbc9aea05b6ec991f299baa90ee9f0dfe70dfa70fa98e61b1448227eed6ebc1b2c21a67fd168e2e8d061e90142e55d91c85c7c61e52570feda71ba5a
6
+ metadata.gz: f04f5c1ff5c5fd4fa16eb646f5661445269a59c922d1a599a71f73e94a3fe747b290b8bed6a1d3faf1a1193f25d9de57b712430d1f4afeb9d7ab59d1c605e2ec
7
+ data.tar.gz: c4e1c81645a5a30949ba10f5cec6450e63c67d0cf35f65a176cf1d8db2bd438cbac3606828cd8c1a8582e54243106b23f2040bb031920c9c3ac33412a3b073c2
data/CHANGELOG.md CHANGED
@@ -11,7 +11,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
 
12
12
  ### Changed
13
13
 
14
- ## [0.14.1] - 2023-09-06
14
+ ## [0.14.3] - 2023-10-11
15
+
16
+ ### Added
17
+
18
+ - Added a content type parameter to the stream content method of request information.
19
+
20
+ ## [0.14.2] - 2023-10-06
15
21
 
16
22
  ### Added
17
23
 
@@ -83,9 +83,12 @@ module MicrosoftKiotaAbstractions
83
83
  @http_method = HttpMethod::HTTP_METHOD[method]
84
84
  end
85
85
 
86
- def set_stream_content(value = $stdin)
86
+ def set_stream_content(value = $stdin, content_type)
87
87
  @content = value
88
- @headers.try_add(@@content_type_header, @@binary_content_type)
88
+ if content_type.nil? || content_type.empty?
89
+ content_type = @@binary_content_type
90
+ end
91
+ @headers.try_add(@@content_type_header, content_type)
89
92
  end
90
93
 
91
94
  def set_content_from_parsable(request_adapter, content_type, values)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MicrosoftKiotaAbstractions
4
- VERSION = "0.14.2"
4
+ VERSION = "0.14.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: microsoft_kiota_abstractions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.2
4
+ version: 0.14.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-05 00:00:00.000000000 Z
11
+ date: 2023-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: stduritemplate