microsoft_kiota_serialization_json 0.8.0 → 0.9.1

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: 66569c6ff13279344f9a095de3a1601abd13bdae323672dadd5195c113081220
4
- data.tar.gz: 72560975c92824feccb6606709746ef1cba88d90e85592a1d410fbfd9871f652
3
+ metadata.gz: 72c88f393ae1289504b35c5763f3dc90ae97a1cc94f10e75bf9925e4afbac931
4
+ data.tar.gz: c1fa5f7f31c6bca7295d425b0bc40bf4e09493dba9a94b15797f827a89522275
5
5
  SHA512:
6
- metadata.gz: 686da17a42a2c1ad8b9c9bdc5d309607a45f915a0bd155f3a702b0f07e1521fcbfd568106b70dba7ae49b82aeb40d354b7be1b4f217fc49406291b1a53ad27df
7
- data.tar.gz: caccfc51628151ea95a8df418126ffb165e865c0a494a7a06580b7f2841a7f910d558a65cd7a5780b295ce2a35afe75cfe2d6ceae7ab7d3d317e16805f463830
6
+ metadata.gz: 45cbfdc4f85bd82c49031a3ccbd175b728942f3c77b375d42743b1a7860035272429fa235d4c0eafb074545710d3166226b885af121db88e242f976cb51caf2e
7
+ data.tar.gz: 891eec4406d87d30eab1337baf7d2c9d65b4be64d790e4f2e49bfaaea796ff6aa4b84eb9e93dd952f7e1054c76532d2d44b58c9194fe5132315ac2b825416128
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.6.0
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}}
@@ -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.9.1] - 2023-08-18
15
+
16
+ ### Changed
17
+
18
+ - Improve handling of null values (#13)
19
+
20
+ ## [0.9.0] - 2023-03-28
21
+
22
+ ### Changed
23
+
24
+ - Updated kiota abstractions reference
25
+ - Bumped minimum required ruby version to 3.0.
26
+
14
27
  ## [0.8.0] - 2023-01-18
15
28
 
16
29
  ### Changed
@@ -49,8 +49,10 @@ module MicrosoftKiotaSerializationJson
49
49
  end
50
50
 
51
51
  def get_collection_of_primitive_values(type)
52
- @current_node.map do |x|
53
- current_parse_node = JsonParseNode.new(x)
52
+ @current_node.map do |object|
53
+ next if object.nil?
54
+
55
+ current_parse_node = JsonParseNode.new(object)
54
56
  case type
55
57
  when String
56
58
  current_parse_node.get_string_value
@@ -64,8 +66,8 @@ module MicrosoftKiotaSerializationJson
64
66
  current_parse_node.get_date_time_value
65
67
  when Time
66
68
  current_parse_node.get_time_value
67
- when Date
68
- current_parse_node.get_date_value
69
+ when Date
70
+ current_parse_node.get_date_value
69
71
  when MicrosoftKiotaAbstractions::ISODuration
70
72
  current_parse_node.get_duration_value
71
73
  when UUIDTools::UUID
@@ -80,8 +82,10 @@ module MicrosoftKiotaSerializationJson
80
82
 
81
83
  def get_collection_of_object_values(factory)
82
84
  raise StandardError, 'Factory cannot be null' if factory.nil?
83
- @current_node.map do |x|
84
- current_parse_node = JsonParseNode.new(x)
85
+ @current_node.map do |object|
86
+ next if object.nil?
87
+
88
+ current_parse_node = JsonParseNode.new(object)
85
89
  current_parse_node.get_object_value(factory)
86
90
  end
87
91
  end
@@ -98,6 +102,8 @@ module MicrosoftKiotaSerializationJson
98
102
  def assign_field_values(item)
99
103
  fields = item.get_field_deserializers
100
104
  @current_node.each do |k, v|
105
+ next if v.nil?
106
+
101
107
  deserializer = fields[k]
102
108
  if deserializer
103
109
  deserializer.call(JsonParseNode.new(v))
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MicrosoftKiotaSerializationJson
4
- VERSION = "0.8.0"
4
+ VERSION = "0.9.1"
5
5
  end
@@ -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 = ">= 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.
@@ -30,7 +30,7 @@ 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', '~> 0.13.0', '>= 0.13.0'
33
+ spec.add_runtime_dependency 'microsoft_kiota_abstractions', '~> 0.14.0'
34
34
  spec.add_runtime_dependency 'uuidtools', '~> 2.2.0'
35
35
  spec.add_runtime_dependency 'json', '~> 2.6.3'
36
36
  spec.add_development_dependency 'rake', '~> 13.0'
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.8.0
4
+ version: 0.9.1
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-19 00:00:00.000000000 Z
11
+ date: 2023-08-21 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.13.0
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 0.13.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.13.0
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 0.13.0
26
+ version: 0.14.0
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: uuidtools
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -108,6 +102,7 @@ extra_rdoc_files: []
108
102
  files:
109
103
  - ".github/CODEOWNERS"
110
104
  - ".github/dependabot.yml"
105
+ - ".github/workflows/auto-merge-dependabot.yml"
111
106
  - ".github/workflows/code-ql.yml"
112
107
  - ".github/workflows/conflicting-pr-label.yml"
113
108
  - ".github/workflows/projectsbot.yml"
@@ -146,14 +141,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
146
141
  requirements:
147
142
  - - ">="
148
143
  - !ruby/object:Gem::Version
149
- version: 2.7.0
144
+ version: 3.0.0
150
145
  required_rubygems_version: !ruby/object:Gem::Requirement
151
146
  requirements:
152
147
  - - ">="
153
148
  - !ruby/object:Gem::Version
154
149
  version: '0'
155
150
  requirements: []
156
- rubygems_version: 3.3.26
151
+ rubygems_version: 3.4.10
157
152
  signing_key:
158
153
  specification_version: 4
159
154
  summary: Microsoft Kiota Serialization - Ruby serialization for building library agnostic