microsoft_kiota_faraday 0.10.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/CODEOWNERS +1 -1
- data/.github/workflows/auto-merge-dependabot.yml +32 -0
- data/.github/workflows/code-ql.yml +2 -2
- data/.github/workflows/projectsbot.yml +1 -1
- data/.github/workflows/release.yml +1 -1
- data/.github/workflows/ruby.yml +2 -2
- data/CHANGELOG.md +13 -0
- data/README.md +2 -2
- data/lib/microsoft_kiota_faraday/faraday_request_adapter.rb +8 -0
- data/lib/microsoft_kiota_faraday/version.rb +1 -1
- data/microsoft_kiota_faraday.gemspec +3 -3
- metadata +8 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1fde07a89a8d7741101e0fb5704b734ea32ffcf67e640f4987c18c214e86a8b9
|
4
|
+
data.tar.gz: 329c905f02acf463d9222976d0d1bd6e0bd992896a06b3f620f778e0c825cd65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf99883e42ab84e66b5e8c1d219dbeb1c8ddd1568f993c577283640960cb9889e0c28e2a847429cd1b1190abaae415a7f9e149a7882c217fb892cfb64e6dd6a5
|
7
|
+
data.tar.gz: 18aee467d6bdd9008b2e9b48c037c3d89a77d48918941747da729ffa740e280c67d2168b795c5f12bc4d0fb2db0386b5c888cc97551d6bc1527187176b1ac4db
|
data/.github/CODEOWNERS
CHANGED
@@ -1 +1 @@
|
|
1
|
-
* @andrueastman @baywet @
|
1
|
+
* @andrueastman @baywet @zengin @MichaelMainer @peombwa @calebkiage @Ndiritu @rkodev
|
@@ -0,0 +1,32 @@
|
|
1
|
+
name: Auto-merge dependabot updates
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
branches: [ main ]
|
6
|
+
|
7
|
+
permissions:
|
8
|
+
pull-requests: write
|
9
|
+
contents: write
|
10
|
+
|
11
|
+
jobs:
|
12
|
+
|
13
|
+
dependabot-merge:
|
14
|
+
|
15
|
+
runs-on: ubuntu-latest
|
16
|
+
|
17
|
+
if: ${{ github.actor == 'dependabot[bot]' }}
|
18
|
+
|
19
|
+
steps:
|
20
|
+
- name: Dependabot metadata
|
21
|
+
id: metadata
|
22
|
+
uses: dependabot/fetch-metadata@v1.3.6
|
23
|
+
with:
|
24
|
+
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
25
|
+
|
26
|
+
- name: Enable auto-merge for Dependabot PRs
|
27
|
+
# Only if version bump is not a major version change
|
28
|
+
if: ${{steps.metadata.outputs.update-type != 'version-update:semver-major'}}
|
29
|
+
run: gh pr merge --auto --merge "$PR_URL"
|
30
|
+
env:
|
31
|
+
PR_URL: ${{github.event.pull_request.html_url}}
|
32
|
+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
@@ -13,10 +13,10 @@ name: "CodeQL"
|
|
13
13
|
|
14
14
|
on:
|
15
15
|
push:
|
16
|
-
branches: [
|
16
|
+
branches: [ main ]
|
17
17
|
pull_request:
|
18
18
|
# The branches below must be a subset of the branches above
|
19
|
-
branches: [
|
19
|
+
branches: [ main ]
|
20
20
|
schedule:
|
21
21
|
- cron: '41 2 * * 0'
|
22
22
|
|
@@ -10,7 +10,7 @@ jobs:
|
|
10
10
|
steps:
|
11
11
|
- name: Generate token
|
12
12
|
id: generate_token
|
13
|
-
uses: tibdex/github-app-token@
|
13
|
+
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
|
14
14
|
with:
|
15
15
|
app_id: ${{ secrets.GRAPHBOT_APP_ID }}
|
16
16
|
private_key: ${{ secrets.GRAPHBOT_APP_PEM }}
|
data/.github/workflows/ruby.yml
CHANGED
@@ -12,7 +12,7 @@ jobs:
|
|
12
12
|
fail-fast: false
|
13
13
|
matrix:
|
14
14
|
os: [ubuntu-latest, macos-latest]
|
15
|
-
ruby-version: ['
|
15
|
+
ruby-version: ['3.0', '3.1', '3.2', head, jruby, jruby-head, truffleruby, truffleruby-head]
|
16
16
|
runs-on: ${{ matrix.os }}
|
17
17
|
steps:
|
18
18
|
- uses: actions/checkout@v3
|
@@ -25,7 +25,7 @@ jobs:
|
|
25
25
|
- name: Run tests
|
26
26
|
run: bundle exec rake
|
27
27
|
- name: Upload artifacts for ruby version 3 and ubuntu
|
28
|
-
if: ${{ matrix.os == 'ubuntu-latest' && matrix.ruby-version == '3.
|
28
|
+
if: ${{ matrix.os == 'ubuntu-latest' && matrix.ruby-version == '3.2'}}
|
29
29
|
uses: actions/upload-artifact@v3
|
30
30
|
with:
|
31
31
|
name: drop
|
data/CHANGELOG.md
CHANGED
@@ -11,6 +11,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
11
11
|
|
12
12
|
### Changed
|
13
13
|
|
14
|
+
## [0.12.0] - 2023-03-28
|
15
|
+
|
16
|
+
### Changed
|
17
|
+
|
18
|
+
- Updated kiota abstractions reference
|
19
|
+
- Bumped minimum required ruby version to 3.0.
|
20
|
+
|
21
|
+
## [0.11.0] - 2023-01-10
|
22
|
+
|
23
|
+
### Added
|
24
|
+
|
25
|
+
- Added a method to convert abstract requests to native requests in the request adapter interface.
|
26
|
+
|
14
27
|
## [0.10.0] - 2023-01-06
|
15
28
|
|
16
29
|
### Added
|
data/README.md
CHANGED
@@ -13,7 +13,7 @@ Read more about Kiota [here](https://github.com/microsoft/kiota/blob/main/README
|
|
13
13
|
Add this line to your application's Gemfile:
|
14
14
|
|
15
15
|
```ruby
|
16
|
-
gem "
|
16
|
+
gem "microsoft_kiota_faraday", "0.11.0"
|
17
17
|
```
|
18
18
|
|
19
19
|
And then execute:
|
@@ -25,7 +25,7 @@ bundle install
|
|
25
25
|
Or install it yourself as:
|
26
26
|
|
27
27
|
```shell
|
28
|
-
gem install
|
28
|
+
gem install microsoft_kiota_faraday --version "0.11.0"
|
29
29
|
```
|
30
30
|
|
31
31
|
## Contributing
|
@@ -147,5 +147,13 @@ module MicrosoftKiotaFaraday
|
|
147
147
|
end
|
148
148
|
end
|
149
149
|
|
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
|
+
|
150
158
|
end
|
151
159
|
end
|
@@ -6,7 +6,7 @@ Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = "microsoft_kiota_faraday"
|
7
7
|
spec.version = MicrosoftKiotaFaraday::VERSION
|
8
8
|
spec.authors = 'Microsoft Corporation'
|
9
|
-
spec.email = 'graphsdkpub@microsoft.com'
|
9
|
+
spec.email = 'graphsdkpub+ruby@microsoft.com'
|
10
10
|
spec.description = 'Kiota HttpCore implementation with Faraday'
|
11
11
|
spec.summary = "Microsoft Kiota Faraday - Kiota Ruby http request adapter for running requests"
|
12
12
|
spec.homepage = 'https://microsoft.github.io/kiota/'
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
'source_code_uri' => 'https://github.com/microsoft/kiota-http-ruby',
|
19
19
|
'github_repo' => 'ssh://github.com/microsoft/kiota-http-ruby'
|
20
20
|
}
|
21
|
-
spec.required_ruby_version = ">=
|
21
|
+
spec.required_ruby_version = ">= 3.0.0"
|
22
22
|
|
23
23
|
# Specify which files should be added to the gem when it is released.
|
24
24
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.bindir = 'bin'
|
29
29
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
30
30
|
spec.require_paths = ['lib']
|
31
|
-
spec.add_runtime_dependency 'microsoft_kiota_abstractions', '~> 0.
|
31
|
+
spec.add_runtime_dependency 'microsoft_kiota_abstractions', '~> 0.14.0'
|
32
32
|
spec.add_runtime_dependency 'faraday', '~> 2.7', '>= 2.7.2'
|
33
33
|
spec.add_development_dependency 'rake', '~> 13.0'
|
34
34
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: microsoft_kiota_faraday
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
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-
|
11
|
+
date: 2023-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: microsoft_kiota_abstractions
|
@@ -16,20 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
20
|
-
- - ">="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 0.12.0
|
19
|
+
version: 0.14.0
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
24
|
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
30
|
-
- - ">="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 0.12.0
|
26
|
+
version: 0.14.0
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: faraday
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -93,13 +87,14 @@ dependencies:
|
|
93
87
|
- !ruby/object:Gem::Version
|
94
88
|
version: '0'
|
95
89
|
description: Kiota HttpCore implementation with Faraday
|
96
|
-
email: graphsdkpub@microsoft.com
|
90
|
+
email: graphsdkpub+ruby@microsoft.com
|
97
91
|
executables: []
|
98
92
|
extensions: []
|
99
93
|
extra_rdoc_files: []
|
100
94
|
files:
|
101
95
|
- ".github/CODEOWNERS"
|
102
96
|
- ".github/dependabot.yml"
|
97
|
+
- ".github/workflows/auto-merge-dependabot.yml"
|
103
98
|
- ".github/workflows/code-ql.yml"
|
104
99
|
- ".github/workflows/conflicting-pr-label.yml"
|
105
100
|
- ".github/workflows/projectsbot.yml"
|
@@ -142,14 +137,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
142
137
|
requirements:
|
143
138
|
- - ">="
|
144
139
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
140
|
+
version: 3.0.0
|
146
141
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
147
142
|
requirements:
|
148
143
|
- - ">="
|
149
144
|
- !ruby/object:Gem::Version
|
150
145
|
version: '0'
|
151
146
|
requirements: []
|
152
|
-
rubygems_version: 3.
|
147
|
+
rubygems_version: 3.4.6
|
153
148
|
signing_key:
|
154
149
|
specification_version: 4
|
155
150
|
summary: Microsoft Kiota Faraday - Kiota Ruby http request adapter for running requests
|