microsoft_kiota_abstractions 0.14.2 → 0.14.4

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: 6ec58710e601fe9ca6f8f1dc7e19088549ed7732e77193aea4c2840af5a6b6fd
4
+ data.tar.gz: 9363081caae82e938321ceb08eeab120767a7a09bd0575bb291b960bed322e59
5
5
  SHA512:
6
- metadata.gz: fba27a4c85291c028383b48e4d294ced778c1669b599eacbd3277661129bfb4cde99428c431563e84201a10d8a5d916df710436907e03e24a6d398beba108413
7
- data.tar.gz: 7afaaf78fbc9aea05b6ec991f299baa90ee9f0dfe70dfa70fa98e61b1448227eed6ebc1b2c21a67fd168e2e8d061e90142e55d91c85c7c61e52570feda71ba5a
6
+ metadata.gz: ea75cb8b7d52fc9c90c33bcc679c82e0d58d7b910d009470afde7475e4f41a8e4184933e354c5327e3fcfe05a68c8f64f90363336b14ae817f28694ba1d83c44
7
+ data.tar.gz: 3ee285c65cfd1b58d1c833fc0bea218a5b2ae027a76f2fc6658e694db42a93e9327fdf06285d82d60be7494733df3485e78274d49f868a3ec92fa323dd60914f
@@ -44,7 +44,7 @@ jobs:
44
44
 
45
45
  # Initializes the CodeQL tools for scanning.
46
46
  - name: Initialize CodeQL
47
- uses: github/codeql-action/init@v2
47
+ uses: github/codeql-action/init@v3
48
48
  with:
49
49
  languages: ${{ matrix.language }}
50
50
  # If you wish to specify custom queries, you can do so here or in a config file.
@@ -58,7 +58,7 @@ jobs:
58
58
  # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
59
59
  # If this step fails, then you should remove it and run the build manually (see below)
60
60
  - name: Autobuild
61
- uses: github/codeql-action/autobuild@v2
61
+ uses: github/codeql-action/autobuild@v3
62
62
 
63
63
  # ℹ️ Command-line programs to run using the OS shell.
64
64
  # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -71,6 +71,6 @@ jobs:
71
71
  # ./location_of_script_within_repo/buildscript.sh
72
72
 
73
73
  - name: Perform CodeQL Analysis
74
- uses: github/codeql-action/analyze@v2
74
+ uses: github/codeql-action/analyze@v3
75
75
  with:
76
76
  category: "/language:${{matrix.language}}"
@@ -11,6 +11,10 @@ on:
11
11
  types: [synchronize]
12
12
  branches: [ main ]
13
13
 
14
+ permissions:
15
+ pull-requests: write
16
+ contents: read
17
+
14
18
  # A workflow run is made up of one or more jobs that can run sequentially or in parallel
15
19
  jobs:
16
20
  # This workflow contains a single job called "build"
@@ -6,13 +6,16 @@ on:
6
6
  - "v[0-9]+.[0-9]+.[0-9]+"
7
7
  workflow_dispatch:
8
8
 
9
+ permissions:
10
+ contents: write
11
+
9
12
  jobs:
10
13
  Git_Release:
11
14
  runs-on: ubuntu-latest
12
15
  steps:
13
16
  - uses: actions/checkout@v4
14
17
  - name: Github Release
15
- uses: anton-yurchenko/git-release@v5.0
18
+ uses: anton-yurchenko/git-release@v6.0
16
19
  env:
17
20
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}
18
21
  DRAFT_RELEASE: "false"
@@ -26,7 +26,7 @@ jobs:
26
26
  run: bundle exec rake
27
27
  - name: Upload artifacts for ruby version 3 and ubuntu
28
28
  if: ${{ matrix.os == 'ubuntu-latest' && matrix.ruby-version == '3.2'}}
29
- uses: actions/upload-artifact@v3
29
+ uses: actions/upload-artifact@v4
30
30
  with:
31
31
  name: drop
32
32
  path: |
data/CHANGELOG.md CHANGED
@@ -11,7 +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.14.1] - 2023-09-06
14
+ ## [0.14.4] - 2024-01-06
15
+
16
+ ### Changed
17
+
18
+ - Fixed a bug that was causing the content not to be set in the request information.
19
+
20
+ ## [0.14.3] - 2023-10-11
21
+
22
+ ### Added
23
+
24
+ - Added a content type parameter to the stream content method of request information.
25
+
26
+ ## [0.14.2] - 2023-10-06
15
27
 
16
28
  ### Added
17
29
 
@@ -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)
@@ -97,7 +100,7 @@ module MicrosoftKiotaAbstractions
97
100
  else
98
101
  writer.write_object_value(nil, values);
99
102
  end
100
- this.content = writer.get_serialized_content();
103
+ @content = writer.get_serialized_content();
101
104
  rescue => exception
102
105
  raise Exception.new "could not serialize payload"
103
106
  end
@@ -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.4"
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.4
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: 2024-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: stduritemplate
@@ -93,7 +93,6 @@ files:
93
93
  - ".github/workflows/auto-merge-dependabot.yml"
94
94
  - ".github/workflows/code-ql.yml"
95
95
  - ".github/workflows/conflicting-pr-label.yml"
96
- - ".github/workflows/projectsbot.yml"
97
96
  - ".github/workflows/release.yml"
98
97
  - ".github/workflows/ruby.yml"
99
98
  - ".gitignore"
@@ -155,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
154
  - !ruby/object:Gem::Version
156
155
  version: '0'
157
156
  requirements: []
158
- rubygems_version: 3.4.10
157
+ rubygems_version: 3.4.19
159
158
  signing_key:
160
159
  specification_version: 4
161
160
  summary: The Kiota abstractions are language specific libraries defining the basic
@@ -1,81 +0,0 @@
1
- # This workflow is used to add new issues to GitHub Projects (Beta)
2
-
3
- name: Add PR to project
4
- on:
5
- issues:
6
- types: [opened]
7
- jobs:
8
- track_issue:
9
- runs-on: ubuntu-latest
10
- steps:
11
- - name: Generate token
12
- id: generate_token
13
- uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
14
- with:
15
- app_id: ${{ secrets.GRAPHBOT_APP_ID }}
16
- private_key: ${{ secrets.GRAPHBOT_APP_PEM }}
17
-
18
- - name: Get project data
19
- env:
20
- GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
21
- ORGANIZATION: microsoftgraph
22
- PROJECT_NUMBER: 38
23
- run: |
24
- gh api graphql -f query='
25
- query($org: String!, $number: Int!) {
26
- organization(login: $org){
27
- projectNext(number: $number) {
28
- id
29
- fields(first:20) {
30
- nodes {
31
- id
32
- name
33
- settings
34
- }
35
- }
36
- }
37
- }
38
- }' -f org=$ORGANIZATION -F number=$PROJECT_NUMBER > project_data.json
39
-
40
- echo 'PROJECT_ID='$(jq '.data.organization.projectNext.id' project_data.json) >> $GITHUB_ENV
41
- echo 'STATUS_FIELD_ID='$(jq '.data.organization.projectNext.fields.nodes[] | select(.name== "Status") | .id' project_data.json) >> $GITHUB_ENV
42
- echo 'TRIAGE_OPTION_ID='$(jq '.data.organization.projectNext.fields.nodes[] | select(.name== "Status") |.settings | fromjson.options[] | select(.name=="Needs Triage 🔍") |.id' project_data.json) >> $GITHUB_ENV
43
-
44
- - name: Add Issue to project
45
- env:
46
- GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
47
- ISSUE_ID: ${{ github.event.issue.node_id }}
48
- run: |
49
- item_id="$( gh api graphql -f query='
50
- mutation($project:ID!, $issue:ID!) {
51
- addProjectNextItem(input: {projectId: $project, contentId: $issue}) {
52
- projectNextItem {
53
- id
54
- }
55
- }
56
- }' -f project=$PROJECT_ID -f issue=$ISSUE_ID --jq '.data.addProjectNextItem.projectNextItem.id')"
57
-
58
- echo 'ITEM_ID='$item_id >> $GITHUB_ENV
59
-
60
- - name: Set Triage
61
- env:
62
- GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
63
- run: |
64
- gh api graphql -f query='
65
- mutation (
66
- $project: ID!
67
- $item: ID!
68
- $status_field: ID!
69
- $status_value: String!
70
- ) {
71
- set_status: updateProjectNextItemField(input: {
72
- projectId: $project
73
- itemId: $item
74
- fieldId: $status_field
75
- value: $status_value
76
- }) {
77
- projectNextItem {
78
- id
79
- }
80
- }
81
- }' -f project=$PROJECT_ID -f item=$ITEM_ID -f status_field=$STATUS_FIELD_ID -f status_value=${{ env.TRIAGE_OPTION_ID }} --silent