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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e514898a835bd6eb929491edc1abec7a52702122ac4a6d823c29383acfb7d9c6
4
- data.tar.gz: da8a13c364989a1448c2dfe2585593a6bd675f9d88d9285ace41b01c026ce73a
3
+ metadata.gz: 1fde07a89a8d7741101e0fb5704b734ea32ffcf67e640f4987c18c214e86a8b9
4
+ data.tar.gz: 329c905f02acf463d9222976d0d1bd6e0bd992896a06b3f620f778e0c825cd65
5
5
  SHA512:
6
- metadata.gz: 65b2065a01457875ecc0a1ed1a5de4ee4cf1b8232e4afcef7adadf8d26edb9d594008000572e919f4414de76c2e2f93db7ade0685e41f472950c1a21251264d6
7
- data.tar.gz: 1f4b4b82f786a214c5ae148f6fbec70d91e22070572622bbb02fe10dfe32801209e2e6aab3f2b50b55b2f6e4275106aa8537a34b5a82949ee1881a4fb3502a68
6
+ metadata.gz: bf99883e42ab84e66b5e8c1d219dbeb1c8ddd1568f993c577283640960cb9889e0c28e2a847429cd1b1190abaae415a7f9e149a7882c217fb892cfb64e6dd6a5
7
+ data.tar.gz: 18aee467d6bdd9008b2e9b48c037c3d89a77d48918941747da729ffa740e280c67d2168b795c5f12bc4d0fb2db0386b5c888cc97551d6bc1527187176b1ac4db
data/.github/CODEOWNERS CHANGED
@@ -1 +1 @@
1
- * @andrueastman @baywet @darrelmiller @zengin @MichaelMainer @ddyett @peombwa @nikithauc @ramsessanchez @calebkiage @Ndiritu @rkodev @gavinbarron
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: [ "master", main ]
16
+ branches: [ main ]
17
17
  pull_request:
18
18
  # The branches below must be a subset of the branches above
19
- branches: [ "master" ]
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@021a2405c7f990db57f5eae5397423dcc554159c
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 }}
@@ -28,7 +28,7 @@ jobs:
28
28
  - uses: actions/checkout@v3
29
29
  - uses: ruby/setup-ruby@v1
30
30
  with:
31
- ruby-version: '3.1'
31
+ ruby-version: '3.2'
32
32
  bundler-cache: true # runs 'bundle install' and caches installed gems automatically
33
33
  bundler: 'latest'
34
34
  cache-version: 1
@@ -12,7 +12,7 @@ jobs:
12
12
  fail-fast: false
13
13
  matrix:
14
14
  os: [ubuntu-latest, macos-latest]
15
- ruby-version: ['2.7', '3.0', '3.1', head, jruby, jruby-head, truffleruby, truffleruby-head]
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.1'}}
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 "microsoft_kiota_http", "0.9.0"
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 microsoft_kiota_http --version "0.9.0"
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MicrosoftKiotaFaraday
4
- VERSION = '0.10.0'
4
+ VERSION = '0.12.0'
5
5
  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 = ">= 2.7.0"
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.12.0', '>= 0.12.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.10.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-01-09 00:00:00.000000000 Z
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.12.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.12.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: 2.7.0
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.3.26
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