microsoft_kiota_serialization_json 0.9.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/CODEOWNERS +1 -1
- data/.github/copilot-instructions.md +25 -0
- data/.github/policies/kiota-serialization-json-ruby-branch-protection.yml +40 -0
- data/.github/policies/resourceManagement.yml +101 -0
- data/.github/release-please.yml +3 -0
- data/.github/workflows/auto-merge-dependabot.yml +2 -1
- data/.github/workflows/code-ql.yml +5 -4
- data/.github/workflows/conflicting-pr-label.yml +5 -0
- data/.github/workflows/release-please-gha.yml +49 -0
- data/.github/workflows/release.yml +9 -18
- data/.github/workflows/ruby.yml +18 -4
- data/.release-please-manifest.json +3 -0
- data/CHANGELOG.md +20 -0
- data/CODE_OF_CONDUCT.md +1 -0
- data/CONTRIBUTING.md +56 -0
- data/lib/microsoft_kiota_serialization_json/version.rb +1 -1
- data/microsoft_kiota_serialization_json.gemspec +4 -4
- data/release-please-config.json +15 -0
- metadata +40 -18
- data/.github/workflows/projectsbot.yml +0 -81
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d639bc65366dd996f9718322979d0a2016b7153f485a54e827e52872427bbb8a
|
|
4
|
+
data.tar.gz: 8df1b983bf62a8ec269fca317f3813df3c4dc188cdba117507d4e36b35af9e96
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 360f4f242b9da0b167bc690c839d773437368ac0388d9444cf8c5f42d658214359f7cd79f1f9b4c1e609028c5b9c53ed1ed649b72bf89e439fa8f6add3ef4a25
|
|
7
|
+
data.tar.gz: 42566ba5d373ad2962479f8806168503ef40fbce1292a3546d0bcf39740585ba444b062f75ea98a284a2176f25a4acb87f74fd0bc6492e6ced9656556644e590
|
data/.github/CODEOWNERS
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
* @
|
|
1
|
+
* @microsoft/kiota-write
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Copilot Instructions for Kiota Serialization JSON Ruby
|
|
2
|
+
|
|
3
|
+
## Commit Messages
|
|
4
|
+
|
|
5
|
+
This repository uses [Conventional Commits](https://www.conventionalcommits.org/) and [release-please](https://github.com/googleapis/release-please) for automated releases.
|
|
6
|
+
|
|
7
|
+
All commit messages **must** follow the format:
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
<type>(<optional scope>): <description>
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Choosing the right type
|
|
14
|
+
|
|
15
|
+
- `fix:` for bug fixes (bumps patch version)
|
|
16
|
+
- `feat:` for new features (bumps minor version)
|
|
17
|
+
- Append `!` after the type for breaking changes, e.g. `feat!:` or `fix!:` (bumps minor version while pre-1.0)
|
|
18
|
+
- `docs:`, `chore:`, `ci:`, `test:`, `refactor:` for non-release changes
|
|
19
|
+
|
|
20
|
+
### Rules
|
|
21
|
+
|
|
22
|
+
- Use lowercase for the type and description
|
|
23
|
+
- Do not end the description with a period
|
|
24
|
+
- Use the imperative mood in the description (e.g. "add support for" not "added support for")
|
|
25
|
+
- When a PR is squash-merged, the PR title becomes the commit message — ensure PR titles follow this format
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Copyright (c) Microsoft Corporation.
|
|
2
|
+
# Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
name: kiota-serialization-json-ruby-branch-protection
|
|
5
|
+
description: Branch protection policy for the kiota-serialization-json-ruby repository
|
|
6
|
+
resource: repository
|
|
7
|
+
configuration:
|
|
8
|
+
branchProtectionRules:
|
|
9
|
+
|
|
10
|
+
- branchNamePattern: main
|
|
11
|
+
# Specifies whether this branch can be deleted. boolean
|
|
12
|
+
allowsDeletions: false
|
|
13
|
+
# Specifies whether forced pushes are allowed on this branch. boolean
|
|
14
|
+
allowsForcePushes: false
|
|
15
|
+
# Specifies whether new commits pushed to the matching branches dismiss pull request review approvals. boolean
|
|
16
|
+
dismissStaleReviews: true
|
|
17
|
+
# Specifies whether admins can overwrite branch protection. boolean
|
|
18
|
+
isAdminEnforced: false
|
|
19
|
+
# Indicates whether "Require a pull request before merging" is enabled. boolean
|
|
20
|
+
requiresPullRequestBeforeMerging: true
|
|
21
|
+
# Specifies the number of pull request reviews before merging. int (0-6). Should be null/empty if PRs are not required
|
|
22
|
+
requiredApprovingReviewsCount: 1
|
|
23
|
+
# Require review from Code Owners. Requires requiredApprovingReviewsCount. boolean
|
|
24
|
+
requireCodeOwnersReview: true
|
|
25
|
+
# Are commits required to be signed. boolean
|
|
26
|
+
requiresCommitSignatures: false
|
|
27
|
+
# Are conversations required to be resolved before merging? boolean
|
|
28
|
+
requiresConversationResolution: true
|
|
29
|
+
# Are merge commits prohibited from being pushed to this branch. boolean
|
|
30
|
+
requiresLinearHistory: false
|
|
31
|
+
# Required status checks to pass before merging
|
|
32
|
+
requiredStatusChecks:
|
|
33
|
+
- license/cla
|
|
34
|
+
- check-ruby-version-matrix
|
|
35
|
+
# Require branches to be up to date before merging. boolean
|
|
36
|
+
requiresStrictStatusChecks: false
|
|
37
|
+
# Indicates whether there are restrictions on who can push. boolean
|
|
38
|
+
restrictsPushes: false
|
|
39
|
+
# Restrict who can dismiss pull request reviews. boolean
|
|
40
|
+
restrictsReviewDismissals: false
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
id:
|
|
2
|
+
name: GitOps.PullRequestIssueManagement
|
|
3
|
+
description: GitOps.PullRequestIssueManagement primitive
|
|
4
|
+
owner:
|
|
5
|
+
resource: repository
|
|
6
|
+
disabled: false
|
|
7
|
+
where:
|
|
8
|
+
configuration:
|
|
9
|
+
resourceManagementConfiguration:
|
|
10
|
+
scheduledSearches:
|
|
11
|
+
- description:
|
|
12
|
+
frequencies:
|
|
13
|
+
- hourly:
|
|
14
|
+
hour: 6
|
|
15
|
+
filters:
|
|
16
|
+
- isIssue
|
|
17
|
+
- isOpen
|
|
18
|
+
- hasLabel:
|
|
19
|
+
label: 'status:waiting-for-author-feedback'
|
|
20
|
+
- hasLabel:
|
|
21
|
+
label: 'Status: No Recent Activity'
|
|
22
|
+
- noActivitySince:
|
|
23
|
+
days: 3
|
|
24
|
+
actions:
|
|
25
|
+
- closeIssue
|
|
26
|
+
- description:
|
|
27
|
+
frequencies:
|
|
28
|
+
- hourly:
|
|
29
|
+
hour: 6
|
|
30
|
+
filters:
|
|
31
|
+
- isIssue
|
|
32
|
+
- isOpen
|
|
33
|
+
- hasLabel:
|
|
34
|
+
label: 'status:waiting-for-author-feedback'
|
|
35
|
+
- noActivitySince:
|
|
36
|
+
days: 4
|
|
37
|
+
- isNotLabeledWith:
|
|
38
|
+
label: 'Status: No Recent Activity'
|
|
39
|
+
actions:
|
|
40
|
+
- addLabel:
|
|
41
|
+
label: 'Status: No Recent Activity'
|
|
42
|
+
- addReply:
|
|
43
|
+
reply: This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
|
|
44
|
+
- description:
|
|
45
|
+
frequencies:
|
|
46
|
+
- hourly:
|
|
47
|
+
hour: 6
|
|
48
|
+
filters:
|
|
49
|
+
- isIssue
|
|
50
|
+
- isOpen
|
|
51
|
+
- hasLabel:
|
|
52
|
+
label: 'Resolution: Duplicate'
|
|
53
|
+
- noActivitySince:
|
|
54
|
+
days: 1
|
|
55
|
+
actions:
|
|
56
|
+
- addReply:
|
|
57
|
+
reply: This issue has been marked as duplicate and has not had any activity for **1 day**. It will be closed for housekeeping purposes.
|
|
58
|
+
- closeIssue
|
|
59
|
+
eventResponderTasks:
|
|
60
|
+
- if:
|
|
61
|
+
- payloadType: Issue_Comment
|
|
62
|
+
- isAction:
|
|
63
|
+
action: Created
|
|
64
|
+
- isActivitySender:
|
|
65
|
+
issueAuthor: True
|
|
66
|
+
- hasLabel:
|
|
67
|
+
label: 'status:waiting-for-author-feedback'
|
|
68
|
+
- isOpen
|
|
69
|
+
then:
|
|
70
|
+
- addLabel:
|
|
71
|
+
label: 'Needs: Attention :wave:'
|
|
72
|
+
- removeLabel:
|
|
73
|
+
label: 'status:waiting-for-author-feedback'
|
|
74
|
+
description:
|
|
75
|
+
- if:
|
|
76
|
+
- payloadType: Issues
|
|
77
|
+
- not:
|
|
78
|
+
isAction:
|
|
79
|
+
action: Closed
|
|
80
|
+
- hasLabel:
|
|
81
|
+
label: 'Status: No Recent Activity'
|
|
82
|
+
then:
|
|
83
|
+
- removeLabel:
|
|
84
|
+
label: 'Status: No Recent Activity'
|
|
85
|
+
description:
|
|
86
|
+
- if:
|
|
87
|
+
- payloadType: Issue_Comment
|
|
88
|
+
- hasLabel:
|
|
89
|
+
label: 'Status: No Recent Activity'
|
|
90
|
+
then:
|
|
91
|
+
- removeLabel:
|
|
92
|
+
label: 'Status: No Recent Activity'
|
|
93
|
+
description:
|
|
94
|
+
- if:
|
|
95
|
+
- payloadType: Pull_Request
|
|
96
|
+
then:
|
|
97
|
+
- inPrLabel:
|
|
98
|
+
label: WIP
|
|
99
|
+
description:
|
|
100
|
+
onFailure:
|
|
101
|
+
onSuccess:
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
name: Auto-merge dependabot updates
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
|
+
workflow_dispatch:
|
|
4
5
|
pull_request:
|
|
5
6
|
branches: [ main ]
|
|
6
7
|
|
|
@@ -19,7 +20,7 @@ jobs:
|
|
|
19
20
|
steps:
|
|
20
21
|
- name: Dependabot metadata
|
|
21
22
|
id: metadata
|
|
22
|
-
uses: dependabot/fetch-metadata@
|
|
23
|
+
uses: dependabot/fetch-metadata@v3.1.0
|
|
23
24
|
with:
|
|
24
25
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
|
25
26
|
|
|
@@ -19,6 +19,7 @@ on:
|
|
|
19
19
|
branches: [ main ]
|
|
20
20
|
schedule:
|
|
21
21
|
- cron: '41 2 * * 0'
|
|
22
|
+
workflow_dispatch:
|
|
22
23
|
|
|
23
24
|
jobs:
|
|
24
25
|
analyze:
|
|
@@ -40,11 +41,11 @@ jobs:
|
|
|
40
41
|
|
|
41
42
|
steps:
|
|
42
43
|
- name: Checkout repository
|
|
43
|
-
uses: actions/checkout@
|
|
44
|
+
uses: actions/checkout@v6
|
|
44
45
|
|
|
45
46
|
# Initializes the CodeQL tools for scanning.
|
|
46
47
|
- name: Initialize CodeQL
|
|
47
|
-
uses: github/codeql-action/init@
|
|
48
|
+
uses: github/codeql-action/init@v4
|
|
48
49
|
with:
|
|
49
50
|
languages: ${{ matrix.language }}
|
|
50
51
|
# If you wish to specify custom queries, you can do so here or in a config file.
|
|
@@ -58,7 +59,7 @@ jobs:
|
|
|
58
59
|
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
|
|
59
60
|
# If this step fails, then you should remove it and run the build manually (see below)
|
|
60
61
|
- name: Autobuild
|
|
61
|
-
uses: github/codeql-action/autobuild@
|
|
62
|
+
uses: github/codeql-action/autobuild@v4
|
|
62
63
|
|
|
63
64
|
# ℹ️ Command-line programs to run using the OS shell.
|
|
64
65
|
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
|
@@ -71,6 +72,6 @@ jobs:
|
|
|
71
72
|
# ./location_of_script_within_repo/buildscript.sh
|
|
72
73
|
|
|
73
74
|
- name: Perform CodeQL Analysis
|
|
74
|
-
uses: github/codeql-action/analyze@
|
|
75
|
+
uses: github/codeql-action/analyze@v4
|
|
75
76
|
with:
|
|
76
77
|
category: "/language:${{matrix.language}}"
|
|
@@ -5,12 +5,17 @@ name: PullRequestConflicting
|
|
|
5
5
|
# Controls when the action will run. Triggers the workflow on push or pull request
|
|
6
6
|
# events but only for the master branch
|
|
7
7
|
on:
|
|
8
|
+
workflow_dispatch:
|
|
8
9
|
push:
|
|
9
10
|
branches: [ main ]
|
|
10
11
|
pull_request:
|
|
11
12
|
types: [synchronize]
|
|
12
13
|
branches: [ main ]
|
|
13
14
|
|
|
15
|
+
permissions:
|
|
16
|
+
pull-requests: write
|
|
17
|
+
contents: read
|
|
18
|
+
|
|
14
19
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
15
20
|
jobs:
|
|
16
21
|
# This workflow contains a single job called "build"
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
## -----------------------------------------------------------------------------
|
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
# Licensed under the MIT License. See LICENSE.txt in the project root for license information.
|
|
4
|
+
## -----------------------------------------------------------------------------
|
|
5
|
+
#
|
|
6
|
+
# Summary:
|
|
7
|
+
# This GitHub Actions workflow automates the release process using Release Please.
|
|
8
|
+
# It triggers on pushes to the main branch, generates a GitHub App token using organization
|
|
9
|
+
# variables and secrets, and then runs the release-please-action to manage versioning and changelogs.
|
|
10
|
+
|
|
11
|
+
name: Release Please
|
|
12
|
+
|
|
13
|
+
on:
|
|
14
|
+
push:
|
|
15
|
+
branches:
|
|
16
|
+
- main
|
|
17
|
+
workflow_dispatch:
|
|
18
|
+
|
|
19
|
+
permissions:
|
|
20
|
+
contents: read
|
|
21
|
+
|
|
22
|
+
jobs:
|
|
23
|
+
check-secret:
|
|
24
|
+
runs-on: ubuntu-latest
|
|
25
|
+
outputs:
|
|
26
|
+
has-token: ${{ steps.check.outputs.has-token }}
|
|
27
|
+
steps:
|
|
28
|
+
- id: check
|
|
29
|
+
run: echo "has-token=${{ secrets.RELEASE_PLEASE_TOKEN_PROVIDER_PEM != '' }}" >> $GITHUB_OUTPUT
|
|
30
|
+
release:
|
|
31
|
+
needs: check-secret
|
|
32
|
+
if: needs.check-secret.outputs.has-token == 'true'
|
|
33
|
+
runs-on: ubuntu-latest
|
|
34
|
+
steps:
|
|
35
|
+
- uses: actions/checkout@v6
|
|
36
|
+
|
|
37
|
+
- name: Generate GitHub App token
|
|
38
|
+
id: app-token
|
|
39
|
+
uses: actions/create-github-app-token@v3
|
|
40
|
+
with:
|
|
41
|
+
client-id: ${{ vars.RELEASE_PLEASE_TOKEN_PROVIDER_APP_ID }}
|
|
42
|
+
private-key: ${{ secrets.RELEASE_PLEASE_TOKEN_PROVIDER_PEM }}
|
|
43
|
+
|
|
44
|
+
- name: Release Please
|
|
45
|
+
uses: googleapis/release-please-action@v5
|
|
46
|
+
with:
|
|
47
|
+
token: ${{ steps.app-token.outputs.token }}
|
|
48
|
+
config-file: release-please-config.json
|
|
49
|
+
manifest-file: .release-please-manifest.json
|
|
@@ -1,35 +1,26 @@
|
|
|
1
|
-
name:
|
|
1
|
+
name: Publish
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
5
|
tags:
|
|
6
6
|
- "v[0-9]+.[0-9]+.[0-9]+"
|
|
7
|
-
workflow_dispatch:
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
steps:
|
|
13
|
-
- uses: actions/checkout@v3
|
|
14
|
-
- name: Github Release
|
|
15
|
-
uses: anton-yurchenko/git-release@v5.0
|
|
16
|
-
env:
|
|
17
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}
|
|
18
|
-
DRAFT_RELEASE: "false"
|
|
19
|
-
PRE_RELEASE: "false"
|
|
20
|
-
CHANGELOG_FILE: "CHANGELOG.md"
|
|
21
|
-
ALLOW_EMPTY_CHANGELOG: "true"
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
22
10
|
|
|
11
|
+
jobs:
|
|
23
12
|
deploy_prod:
|
|
24
13
|
environment:
|
|
25
14
|
name: production_feeds
|
|
26
15
|
runs-on: ubuntu-latest
|
|
27
16
|
steps:
|
|
28
|
-
- uses: actions/checkout@
|
|
17
|
+
- uses: actions/checkout@v6
|
|
18
|
+
with:
|
|
19
|
+
ref: ${{ github.ref }}
|
|
29
20
|
- uses: ruby/setup-ruby@v1
|
|
30
21
|
with:
|
|
31
|
-
ruby-version: '3.
|
|
32
|
-
bundler-cache: true
|
|
22
|
+
ruby-version: '3.4'
|
|
23
|
+
bundler-cache: true
|
|
33
24
|
bundler: 'latest'
|
|
34
25
|
cache-version: 1
|
|
35
26
|
- run: bundle exec rake
|
data/.github/workflows/ruby.yml
CHANGED
|
@@ -12,10 +12,10 @@ jobs:
|
|
|
12
12
|
fail-fast: false
|
|
13
13
|
matrix:
|
|
14
14
|
os: [ubuntu-latest, macos-latest]
|
|
15
|
-
ruby-version: ['3.
|
|
15
|
+
ruby-version: ['3.3', '3.4', '4.0', head, jruby, jruby-head, truffleruby, truffleruby-head]
|
|
16
16
|
runs-on: ${{ matrix.os }}
|
|
17
17
|
steps:
|
|
18
|
-
- uses: actions/checkout@
|
|
18
|
+
- uses: actions/checkout@v6
|
|
19
19
|
- uses: ruby/setup-ruby@v1
|
|
20
20
|
with:
|
|
21
21
|
ruby-version: ${{ matrix.ruby-version }}
|
|
@@ -25,10 +25,24 @@ 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.
|
|
29
|
-
uses: actions/upload-artifact@
|
|
28
|
+
if: ${{ matrix.os == 'ubuntu-latest' && matrix.ruby-version == '3.4'}}
|
|
29
|
+
uses: actions/upload-artifact@v7
|
|
30
30
|
with:
|
|
31
31
|
name: drop
|
|
32
32
|
path: |
|
|
33
33
|
./Gemfile.lock
|
|
34
34
|
./README.md
|
|
35
|
+
|
|
36
|
+
# The check-ruby-version-matrix returns success if all matrix jobs in build are successful; otherwise, it returns a failure.
|
|
37
|
+
# Use this as a PR status check for GitHub Policy Service instead of individual matrix entry checks.
|
|
38
|
+
check-ruby-version-matrix:
|
|
39
|
+
runs-on: ubuntu-latest
|
|
40
|
+
needs: [build]
|
|
41
|
+
if: always()
|
|
42
|
+
steps:
|
|
43
|
+
- name: All build matrix options are successful
|
|
44
|
+
if: ${{ !(contains(needs.*.result, 'failure')) }}
|
|
45
|
+
run: exit 0
|
|
46
|
+
- name: One or more build matrix options failed
|
|
47
|
+
if: ${{ contains(needs.*.result, 'failure') }}
|
|
48
|
+
run: exit 1
|
data/CHANGELOG.md
CHANGED
|
@@ -5,12 +5,32 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.10.0](https://github.com/microsoft/kiota-serialization-json-ruby/compare/v0.9.2...v0.10.0) (2026-04-23)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* upgrade ruby CI matrix to 3.3, 3.4 and 4.0 ([d5cdcbe](https://github.com/microsoft/kiota-serialization-json-ruby/commit/d5cdcbe3cba93c669c0a2070092c223e0fe07ea5))
|
|
14
|
+
* upgrade ruby CI matrix to 3.3, 3.4 and 4.0 ([d3ae6c7](https://github.com/microsoft/kiota-serialization-json-ruby/commit/d3ae6c703a86b90ab65140ef02d9f1ef329c0e6b))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* update minimum required ruby version to 3.3.0 ([9f270ae](https://github.com/microsoft/kiota-serialization-json-ruby/commit/9f270aeb873d1e420ff766c7de90100753bec8cb))
|
|
20
|
+
* update minimum required ruby version to 3.3.0 ([ec00107](https://github.com/microsoft/kiota-serialization-json-ruby/commit/ec001079bedb0d5c3cd65dedf0ac4b31fe901076))
|
|
21
|
+
|
|
8
22
|
## [Unreleased]
|
|
9
23
|
|
|
10
24
|
### Added
|
|
11
25
|
|
|
12
26
|
### Changed
|
|
13
27
|
|
|
28
|
+
## [0.9.2] - 2025-03-11
|
|
29
|
+
|
|
30
|
+
### Changed
|
|
31
|
+
|
|
32
|
+
- Updated dependencies including JSON.
|
|
33
|
+
|
|
14
34
|
## [0.9.1] - 2023-08-18
|
|
15
35
|
|
|
16
36
|
### Changed
|
data/CODE_OF_CONDUCT.md
CHANGED
|
@@ -7,3 +7,4 @@ Resources:
|
|
|
7
7
|
- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
|
|
8
8
|
- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
|
|
9
9
|
- Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns
|
|
10
|
+
- Employees can reach out at [aka.ms/opensource/moderation-support](https://aka.ms/opensource/moderation-support)
|
data/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Contributing to Kiota Serialization JSON for Ruby
|
|
2
|
+
|
|
3
|
+
This project welcomes contributions and suggestions. Most contributions require you to agree to a
|
|
4
|
+
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
|
|
5
|
+
the rights to use your contribution. For details, visit <https://cla.opensource.microsoft.com>.
|
|
6
|
+
|
|
7
|
+
When you submit a pull request, a CLA bot will automatically determine whether you need to provide
|
|
8
|
+
a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions
|
|
9
|
+
provided by the bot. You will only need to do this once across all repos using our CLA.
|
|
10
|
+
|
|
11
|
+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
|
|
12
|
+
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
|
|
13
|
+
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
|
|
14
|
+
|
|
15
|
+
## Commit Messages
|
|
16
|
+
|
|
17
|
+
This project uses [Conventional Commits](https://www.conventionalcommits.org/) to automate versioning and changelog generation through [release-please](https://github.com/googleapis/release-please).
|
|
18
|
+
|
|
19
|
+
Every commit merged to `main` **must** follow this format:
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
<type>(<optional scope>): <description>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Types
|
|
26
|
+
|
|
27
|
+
| Type | Description | Version Bump |
|
|
28
|
+
|------|-------------|--------------|
|
|
29
|
+
| `fix` | Bug fix | Patch (`0.9.2` → `0.9.3`) |
|
|
30
|
+
| `feat` | New feature | Minor (`0.9.2` → `0.10.0`) |
|
|
31
|
+
| `feat!`, `fix!`, `refactor!`, etc. | Breaking change (append `!`) | Minor while pre-1.0 (`0.9.2` → `0.10.0`) |
|
|
32
|
+
| `docs` | Documentation only | No release |
|
|
33
|
+
| `chore` | Maintenance tasks | No release |
|
|
34
|
+
| `ci` | CI/CD changes | No release |
|
|
35
|
+
| `test` | Test changes | No release |
|
|
36
|
+
| `refactor` | Code refactoring | No release |
|
|
37
|
+
|
|
38
|
+
### Examples
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
fix: correct content not being set in request information
|
|
42
|
+
feat: add try_add method for request headers
|
|
43
|
+
feat!: bump minimum required ruby version to 3.0
|
|
44
|
+
docs: update README installation instructions
|
|
45
|
+
chore: update dependencies
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Pull Requests
|
|
49
|
+
|
|
50
|
+
When a PR is squash-merged, the PR title becomes the commit message on `main`. Make sure the **PR title** follows the conventional commit format so release-please can categorize it correctly.
|
|
51
|
+
|
|
52
|
+
## Development Setup
|
|
53
|
+
|
|
54
|
+
1. Clone the repository
|
|
55
|
+
2. Run `bundle install` to install dependencies
|
|
56
|
+
3. Run `bundle exec rake` to run linting and tests
|
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
|
18
18
|
'source_code_uri' => 'https://github.com/microsoft/kiota-serialization-json-ruby',
|
|
19
19
|
'github_repo' => 'ssh://github.com/microsoft/kiota-serialization-json-ruby'
|
|
20
20
|
}
|
|
21
|
-
spec.required_ruby_version = ">= 3.
|
|
21
|
+
spec.required_ruby_version = ">= 3.3.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.
|
|
@@ -30,9 +30,9 @@ Gem::Specification.new do |spec|
|
|
|
30
30
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
|
31
31
|
spec.require_paths = ['lib']
|
|
32
32
|
|
|
33
|
-
spec.add_runtime_dependency 'microsoft_kiota_abstractions', '
|
|
34
|
-
spec.add_runtime_dependency 'uuidtools', '
|
|
35
|
-
spec.add_runtime_dependency 'json', '
|
|
33
|
+
spec.add_runtime_dependency 'microsoft_kiota_abstractions', '>= 0.14', '< 0.16'
|
|
34
|
+
spec.add_runtime_dependency 'uuidtools', '>= 2.2', '< 3.1'
|
|
35
|
+
spec.add_runtime_dependency 'json', '>= 2.6.3', '< 2.20.0'
|
|
36
36
|
spec.add_development_dependency 'rake', '~> 13.0'
|
|
37
37
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
|
38
38
|
spec.add_development_dependency 'rubocop'
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
|
|
3
|
+
"packages": {
|
|
4
|
+
".": {
|
|
5
|
+
"release-type": "ruby",
|
|
6
|
+
"package-name": "microsoft_kiota_serialization_json",
|
|
7
|
+
"changelog-path": "CHANGELOG.md",
|
|
8
|
+
"include-v-in-tag": true,
|
|
9
|
+
"include-component-in-tag": false,
|
|
10
|
+
"bump-minor-pre-major": true,
|
|
11
|
+
"version-file": "lib/microsoft_kiota_serialization_json/version.rb"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"bootstrap-sha": "c9cbd9c12db5e683983b0089c5d2654eb78f02ca"
|
|
15
|
+
}
|
metadata
CHANGED
|
@@ -1,57 +1,74 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: microsoft_kiota_serialization_json
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.10.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Microsoft Corporation
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: microsoft_kiota_abstractions
|
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
|
16
15
|
requirements:
|
|
17
|
-
- - "
|
|
16
|
+
- - ">="
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '0.14'
|
|
19
|
+
- - "<"
|
|
18
20
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.
|
|
21
|
+
version: '0.16'
|
|
20
22
|
type: :runtime
|
|
21
23
|
prerelease: false
|
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
25
|
requirements:
|
|
24
|
-
- - "
|
|
26
|
+
- - ">="
|
|
25
27
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 0.14
|
|
28
|
+
version: '0.14'
|
|
29
|
+
- - "<"
|
|
30
|
+
- !ruby/object:Gem::Version
|
|
31
|
+
version: '0.16'
|
|
27
32
|
- !ruby/object:Gem::Dependency
|
|
28
33
|
name: uuidtools
|
|
29
34
|
requirement: !ruby/object:Gem::Requirement
|
|
30
35
|
requirements:
|
|
31
|
-
- - "
|
|
36
|
+
- - ">="
|
|
37
|
+
- !ruby/object:Gem::Version
|
|
38
|
+
version: '2.2'
|
|
39
|
+
- - "<"
|
|
32
40
|
- !ruby/object:Gem::Version
|
|
33
|
-
version:
|
|
41
|
+
version: '3.1'
|
|
34
42
|
type: :runtime
|
|
35
43
|
prerelease: false
|
|
36
44
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
45
|
requirements:
|
|
38
|
-
- - "
|
|
46
|
+
- - ">="
|
|
47
|
+
- !ruby/object:Gem::Version
|
|
48
|
+
version: '2.2'
|
|
49
|
+
- - "<"
|
|
39
50
|
- !ruby/object:Gem::Version
|
|
40
|
-
version:
|
|
51
|
+
version: '3.1'
|
|
41
52
|
- !ruby/object:Gem::Dependency
|
|
42
53
|
name: json
|
|
43
54
|
requirement: !ruby/object:Gem::Requirement
|
|
44
55
|
requirements:
|
|
45
|
-
- - "
|
|
56
|
+
- - ">="
|
|
46
57
|
- !ruby/object:Gem::Version
|
|
47
58
|
version: 2.6.3
|
|
59
|
+
- - "<"
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: 2.20.0
|
|
48
62
|
type: :runtime
|
|
49
63
|
prerelease: false
|
|
50
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
65
|
requirements:
|
|
52
|
-
- - "
|
|
66
|
+
- - ">="
|
|
53
67
|
- !ruby/object:Gem::Version
|
|
54
68
|
version: 2.6.3
|
|
69
|
+
- - "<"
|
|
70
|
+
- !ruby/object:Gem::Version
|
|
71
|
+
version: 2.20.0
|
|
55
72
|
- !ruby/object:Gem::Dependency
|
|
56
73
|
name: rake
|
|
57
74
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -101,16 +118,22 @@ extensions: []
|
|
|
101
118
|
extra_rdoc_files: []
|
|
102
119
|
files:
|
|
103
120
|
- ".github/CODEOWNERS"
|
|
121
|
+
- ".github/copilot-instructions.md"
|
|
104
122
|
- ".github/dependabot.yml"
|
|
123
|
+
- ".github/policies/kiota-serialization-json-ruby-branch-protection.yml"
|
|
124
|
+
- ".github/policies/resourceManagement.yml"
|
|
125
|
+
- ".github/release-please.yml"
|
|
105
126
|
- ".github/workflows/auto-merge-dependabot.yml"
|
|
106
127
|
- ".github/workflows/code-ql.yml"
|
|
107
128
|
- ".github/workflows/conflicting-pr-label.yml"
|
|
108
|
-
- ".github/workflows/
|
|
129
|
+
- ".github/workflows/release-please-gha.yml"
|
|
109
130
|
- ".github/workflows/release.yml"
|
|
110
131
|
- ".github/workflows/ruby.yml"
|
|
111
132
|
- ".gitignore"
|
|
133
|
+
- ".release-please-manifest.json"
|
|
112
134
|
- CHANGELOG.md
|
|
113
135
|
- CODE_OF_CONDUCT.md
|
|
136
|
+
- CONTRIBUTING.md
|
|
114
137
|
- Gemfile
|
|
115
138
|
- LICENSE
|
|
116
139
|
- README.md
|
|
@@ -124,6 +147,7 @@ files:
|
|
|
124
147
|
- lib/microsoft_kiota_serialization_json/json_serialization_writer_factory.rb
|
|
125
148
|
- lib/microsoft_kiota_serialization_json/version.rb
|
|
126
149
|
- microsoft_kiota_serialization_json.gemspec
|
|
150
|
+
- release-please-config.json
|
|
127
151
|
homepage: https://microsoft.github.io/kiota/
|
|
128
152
|
licenses:
|
|
129
153
|
- MIT
|
|
@@ -133,7 +157,6 @@ metadata:
|
|
|
133
157
|
homepage_uri: https://microsoft.github.io/kiota/
|
|
134
158
|
source_code_uri: https://github.com/microsoft/kiota-serialization-json-ruby
|
|
135
159
|
github_repo: ssh://github.com/microsoft/kiota-serialization-json-ruby
|
|
136
|
-
post_install_message:
|
|
137
160
|
rdoc_options: []
|
|
138
161
|
require_paths:
|
|
139
162
|
- lib
|
|
@@ -141,15 +164,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
141
164
|
requirements:
|
|
142
165
|
- - ">="
|
|
143
166
|
- !ruby/object:Gem::Version
|
|
144
|
-
version: 3.
|
|
167
|
+
version: 3.3.0
|
|
145
168
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
169
|
requirements:
|
|
147
170
|
- - ">="
|
|
148
171
|
- !ruby/object:Gem::Version
|
|
149
172
|
version: '0'
|
|
150
173
|
requirements: []
|
|
151
|
-
rubygems_version: 3.
|
|
152
|
-
signing_key:
|
|
174
|
+
rubygems_version: 3.6.9
|
|
153
175
|
specification_version: 4
|
|
154
176
|
summary: Microsoft Kiota Serialization - Ruby serialization for building library agnostic
|
|
155
177
|
http client
|
|
@@ -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@b62528385c34dbc9f38e5f4225ac829252d1ea92
|
|
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
|