Skip to content

Commit 8ff4f94

Browse files
authored
Merge pull request #2 from microsoft/feature/native-request
- Adds a method to convert abstract requests to native requests in the request adapter interface
2 parents 13abb96 + cd47610 commit 8ff4f94

File tree

5 files changed

+18
-4
lines changed

5 files changed

+18
-4
lines changed

Diff for: CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Changed
1313

14+
## [0.11.0] - 2023-01-10
15+
16+
### Added
17+
18+
- Added a method to convert abstract requests to native requests in the request adapter interface.
19+
1420
## [0.10.0] - 2023-01-06
1521

1622
### Added

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Read more about Kiota [here](https://github.com/microsoft/kiota/blob/main/README
1313
Add this line to your application's Gemfile:
1414

1515
```ruby
16-
gem "microsoft_kiota_http", "0.10.0"
16+
gem "microsoft_kiota_http", "0.11.0"
1717
```
1818

1919
And then execute:
@@ -25,7 +25,7 @@ bundle install
2525
Or install it yourself as:
2626

2727
```shell
28-
gem install microsoft_kiota_http --version "0.10.0"
28+
gem install microsoft_kiota_http --version "0.11.0"
2929
```
3030

3131
## Contributing

Diff for: lib/microsoft_kiota_faraday/faraday_request_adapter.rb

+8
Original file line numberDiff line numberDiff line change
@@ -147,5 +147,13 @@ def get_response_content_type(response)
147147
end
148148
end
149149

150+
def convert_to_native_request_async(request_info)
151+
raise StandardError, 'request_info cannot be null' unless request_info
152+
return Fiber.new do
153+
@authentication_provider.authenticate_request(request_info).resume
154+
return self.get_request_from_request_info(request_info)
155+
end
156+
end
157+
150158
end
151159
end

Diff for: lib/microsoft_kiota_faraday/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module MicrosoftKiotaFaraday
4-
VERSION = '0.10.0'
4+
VERSION = '0.11.0'
55
end

Diff for: microsoft_kiota_faraday.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
2828
spec.bindir = 'bin'
2929
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
3030
spec.require_paths = ['lib']
31-
spec.add_runtime_dependency 'microsoft_kiota_abstractions', '~> 0.12.0', '>= 0.12.0'
31+
spec.add_runtime_dependency 'microsoft_kiota_abstractions', '~> 0.13.0', '>= 0.13.0'
3232
spec.add_runtime_dependency 'faraday', '~> 2.7', '>= 2.7.2'
3333
spec.add_development_dependency 'rake', '~> 13.0'
3434
spec.add_development_dependency 'rspec', '~> 3.0'

0 commit comments

Comments
 (0)