microsoft_kiota_serialization_json 0.9.1 → 0.9.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 72c88f393ae1289504b35c5763f3dc90ae97a1cc94f10e75bf9925e4afbac931
4
- data.tar.gz: c1fa5f7f31c6bca7295d425b0bc40bf4e09493dba9a94b15797f827a89522275
3
+ metadata.gz: 0310f2d7428cd3f326471f4adb9a0a1404a77e126a460fb6d839dcd9759637ac
4
+ data.tar.gz: b3b8af49cf287804d99c4139eb51d60285759203818428ea1275a9c8dd65f69e
5
5
  SHA512:
6
- metadata.gz: 45cbfdc4f85bd82c49031a3ccbd175b728942f3c77b375d42743b1a7860035272429fa235d4c0eafb074545710d3166226b885af121db88e242f976cb51caf2e
7
- data.tar.gz: 891eec4406d87d30eab1337baf7d2c9d65b4be64d790e4f2e49bfaaea796ff6aa4b84eb9e93dd952f7e1054c76532d2d44b58c9194fe5132315ac2b825416128
6
+ metadata.gz: f5d018336f3840318d93dabda4d39e509f5bb8dddad9b21b1480ed15a266b2f028d33cdbbd300c0875862167f9fd60b3969767aa2cea533ac46649cc8cd2734f
7
+ data.tar.gz: df0a9fc7a388153caccc679774b0317879f3a6c8e186d8ba82fa535b218dee05ee2658c0e34bbbab63698388672f024803616a0b51d92cf434798af52d1a881e
data/.github/CODEOWNERS CHANGED
@@ -1 +1 @@
1
- * @andrueastman @baywet @zengin @MichaelMainer @peombwa @calebkiage @Ndiritu @rkodev
1
+ * @microsoft/kiota-write
@@ -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:
@@ -19,7 +19,7 @@ jobs:
19
19
  steps:
20
20
  - name: Dependabot metadata
21
21
  id: metadata
22
- uses: dependabot/fetch-metadata@v1.6.0
22
+ uses: dependabot/fetch-metadata@v2.3.0
23
23
  with:
24
24
  github-token: "${{ secrets.GITHUB_TOKEN }}"
25
25
 
@@ -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@v3
44
+ uses: actions/checkout@v4
44
45
 
45
46
  # Initializes the CodeQL tools for scanning.
46
47
  - name: Initialize CodeQL
47
- uses: github/codeql-action/init@v2
48
+ uses: github/codeql-action/init@v3
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@v2
62
+ uses: github/codeql-action/autobuild@v3
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@v2
75
+ uses: github/codeql-action/analyze@v3
75
76
  with:
76
77
  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
- - uses: actions/checkout@v3
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"
@@ -25,7 +28,7 @@ jobs:
25
28
  name: production_feeds
26
29
  runs-on: ubuntu-latest
27
30
  steps:
28
- - uses: actions/checkout@v3
31
+ - uses: actions/checkout@v4
29
32
  - uses: ruby/setup-ruby@v1
30
33
  with:
31
34
  ruby-version: '3.2'
@@ -15,7 +15,7 @@ jobs:
15
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
- - uses: actions/checkout@v3
18
+ - uses: actions/checkout@v4
19
19
  - uses: ruby/setup-ruby@v1
20
20
  with:
21
21
  ruby-version: ${{ matrix.ruby-version }}
@@ -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,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
 
12
12
  ### Changed
13
13
 
14
+ ## [0.9.2] - 2025-03-11
15
+
16
+ ### Changed
17
+
18
+ - Updated dependencies including JSON.
19
+
14
20
  ## [0.9.1] - 2023-08-18
15
21
 
16
22
  ### 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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MicrosoftKiotaSerializationJson
4
- VERSION = "0.9.1"
4
+ VERSION = "0.9.2"
5
5
  end
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
32
32
 
33
33
  spec.add_runtime_dependency 'microsoft_kiota_abstractions', '~> 0.14.0'
34
34
  spec.add_runtime_dependency 'uuidtools', '~> 2.2.0'
35
- spec.add_runtime_dependency 'json', '~> 2.6.3'
35
+ spec.add_runtime_dependency 'json', '>= 2.6.3', '< 2.10.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'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: microsoft_kiota_serialization_json
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-21 00:00:00.000000000 Z
11
+ date: 2025-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: microsoft_kiota_abstractions
@@ -42,16 +42,22 @@ dependencies:
42
42
  name: json
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: 2.6.3
48
+ - - "<"
49
+ - !ruby/object:Gem::Version
50
+ version: 2.10.0
48
51
  type: :runtime
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
51
54
  requirements:
52
- - - "~>"
55
+ - - ">="
53
56
  - !ruby/object:Gem::Version
54
57
  version: 2.6.3
58
+ - - "<"
59
+ - !ruby/object:Gem::Version
60
+ version: 2.10.0
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: rake
57
63
  requirement: !ruby/object:Gem::Requirement
@@ -102,10 +108,10 @@ extra_rdoc_files: []
102
108
  files:
103
109
  - ".github/CODEOWNERS"
104
110
  - ".github/dependabot.yml"
111
+ - ".github/policies/resourceManagement.yml"
105
112
  - ".github/workflows/auto-merge-dependabot.yml"
106
113
  - ".github/workflows/code-ql.yml"
107
114
  - ".github/workflows/conflicting-pr-label.yml"
108
- - ".github/workflows/projectsbot.yml"
109
115
  - ".github/workflows/release.yml"
110
116
  - ".github/workflows/ruby.yml"
111
117
  - ".gitignore"
@@ -133,7 +139,7 @@ metadata:
133
139
  homepage_uri: https://microsoft.github.io/kiota/
134
140
  source_code_uri: https://github.com/microsoft/kiota-serialization-json-ruby
135
141
  github_repo: ssh://github.com/microsoft/kiota-serialization-json-ruby
136
- post_install_message:
142
+ post_install_message:
137
143
  rdoc_options: []
138
144
  require_paths:
139
145
  - lib
@@ -148,8 +154,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
154
  - !ruby/object:Gem::Version
149
155
  version: '0'
150
156
  requirements: []
151
- rubygems_version: 3.4.10
152
- signing_key:
157
+ rubygems_version: 3.4.19
158
+ signing_key:
153
159
  specification_version: 4
154
160
  summary: Microsoft Kiota Serialization - Ruby serialization for building library agnostic
155
161
  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