Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 3d6d039

Browse files
committed
- ports changes from #74 for manually authored files
1 parent 8e1977d commit 3d6d039

File tree

8 files changed

+12
-11
lines changed

8 files changed

+12
-11
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Git Release
1+
name: Release
22

33
on:
44
push:
@@ -24,7 +24,6 @@ jobs:
2424
environment:
2525
name: production_feeds
2626
runs-on: ubuntu-latest
27-
needs: [build]
2827
steps:
2928
- uses: actions/checkout@v3
3029
- uses: ruby/setup-ruby@v1

lib/microsoft_graph.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
require_relative 'microsoft_graph/microsoft_graph'
12
require_relative 'microsoft_graph_service_client'
23
require_relative 'microsoft_graph_request_adapter'
34
module MicrosoftGraph

lib/microsoft_graph/microsoft_graph_service_client.rb

Lines changed: 0 additions & 7 deletions
This file was deleted.

lib/microsoft_graph/microsoft_graph_request_adapter.rb renamed to lib/microsoft_graph_request_adapter.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class MicrosoftGraphRequestAdapter < MicrosoftGraphCore::GraphRequestAdapterBase
66
def initialize(authentication_provider, client_options=MicrosoftGraphCore::GraphClientOptions.new, parse_node_factory=MicrosoftKiotaAbstractions::ParseNodeFactoryRegistry.default_instance, serialization_writer_factory=MicrosoftKiotaAbstractions::SerializationWriterFactoryRegistry.default_instance, client = nil)
77
options = MicrosoftGraphCore::GraphClientOptions.new
88
options.graph_service_library_version = "v" + MicrosoftGraph::VersionInformation::VERSION
9+
options.graph_service_version = "beta"
910
super(authentication_provider, options, parse_node_factory, serialization_writer_factory, client)
1011
end
1112
end

lib/microsoft_graph_service_client.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
require_relative 'microsoft_graph/microsoft_graph_base_service_client'
2+
module MicrosoftGraph
3+
class MicrosoftGraphServiceClient < MicrosoftGraph::MicrosoftBaseGraphServiceClient
4+
#TODO define sugar constructors acception the authentication provider
5+
#TODO shim me
6+
end
7+
end

microsoft_graph.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# coding: utf-8
22
lib = File.expand_path('../lib', __FILE__)
33
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4-
require_relative 'lib/microsoft_graph/version_information'
4+
require_relative 'lib/version_information'
55

66
Gem::Specification.new do |spec|
77
spec.name = "microsoft_graph"

scripts/incrementMinorVersion.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function Update-MinorVersionNumber([version]$currentVersion) {
3333
}
3434

3535
function Update-MinorVersion() {
36-
$telemetryFilePath = Join-Path -Path $PWD.ToString() -ChildPath "../lib/microsoft_graph/version_information.rb"
36+
$telemetryFilePath = Join-Path -Path $PWD.ToString() -ChildPath "../lib/version_information.rb"
3737
$currentVersion = Get-CurrentTelemetryVersion -telemetryFilePath $telemetryFilePath
3838
$nextVersion = Update-MinorVersionNumber -currentVersion $currentVersion
3939
Update-TelemetryVersion -version $nextVersion -telemetryFilePath $telemetryFilePath

0 commit comments

Comments
 (0)