lean-microsoft-graph 0.3.4 → 0.4.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/.devcontainer/devcontainer.json +27 -0
- data/.yardopts +10 -0
- data/CHANGELOG.md +24 -9
- data/Gemfile +6 -3
- data/Gemfile.lock +31 -32
- data/README.md +14 -2
- data/lib/lean_microsoft_graph/client.rb +3 -1
- data/lib/lean_microsoft_graph/version.rb +1 -1
- data/lib/lean_microsoft_graph.rb +2 -2
- metadata +9 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0074bc3ce72d5b89cef2e4aabb64fcf431ab15497c52b21df98d4210a176e975
|
4
|
+
data.tar.gz: c5be467230e4bb288d5265ce68971c4f3608bb7352507185a4876fd617d54f62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd9961a4720711ee259dbd8250529b2d0592e9d8cc64aab689fe807ae02b934db9b0e4a806fcebd7bbcbd92767c41a2ef55ea67a3ad305a1e8a212368ed63aaa
|
7
|
+
data.tar.gz: 27c6efe1c47313c9971deb49fc780a754c57f033c0782f2c1c69e0936aa422a9b8eb39f91aa0fc11c78dce16198bea255d22a7290a4620b47507a498d7ed4e7b
|
@@ -0,0 +1,27 @@
|
|
1
|
+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
2
|
+
// README at: https://github.com/devcontainers/templates/tree/main/src/ruby
|
3
|
+
{
|
4
|
+
"name": "Ruby",
|
5
|
+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
6
|
+
"image": "mcr.microsoft.com/devcontainers/ruby:1-3.3-bullseye",
|
7
|
+
"features": {
|
8
|
+
"ghcr.io/devcontainers/features/git:1": {
|
9
|
+
"ppa": true,
|
10
|
+
"version": "latest"
|
11
|
+
},
|
12
|
+
"ghcr.io/devcontainers/features/github-cli:1": {
|
13
|
+
"installDirectlyFromGitHubRelease": true,
|
14
|
+
"version": "latest"
|
15
|
+
}
|
16
|
+
}
|
17
|
+
// Features to add to the dev container. More info: https://containers.dev/features.
|
18
|
+
// "features": {},
|
19
|
+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
20
|
+
// "forwardPorts": [],
|
21
|
+
// Use 'postCreateCommand' to run commands after the container is created.
|
22
|
+
// "postCreateCommand": "ruby --version",
|
23
|
+
// Configure tool-specific properties.
|
24
|
+
// "customizations": {},
|
25
|
+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
26
|
+
// "remoteUser": "root"
|
27
|
+
}
|
data/.yardopts
ADDED
data/CHANGELOG.md
CHANGED
@@ -2,7 +2,23 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
6
|
+
|
7
|
+
## [Unreleased]
|
8
|
+
|
9
|
+
## [0.4.0] - 2025-01-07
|
10
|
+
|
11
|
+
### Added
|
12
|
+
|
13
|
+
- Add devcontainer configuration.
|
14
|
+
- Automated gem documentation using YARD and GitHub Pages.
|
15
|
+
- Added faraday-retry gem for retry middleware support.
|
16
|
+
|
17
|
+
### Changed
|
18
|
+
|
19
|
+
- Improved CHANGELOG.md file.
|
20
|
+
- Upgraded faraday gem to version 2.12.
|
21
|
+
- Updated the README to reflect faraday changes
|
6
22
|
|
7
23
|
## [0.3.4] - 2024-08-30
|
8
24
|
|
@@ -64,15 +80,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
64
80
|
- Ability to retrieve users per page with `client.users.get_all(per_page)`.
|
65
81
|
- Ability to retrieve users by reference with `client.users.get_all_by_reference('reference')`.
|
66
82
|
|
67
|
-
## [Unreleased]
|
68
|
-
|
69
83
|
## [0.1.0] - 2023-08-28
|
70
84
|
|
71
85
|
- Initial release
|
72
86
|
|
73
|
-
[0.3.4]: https://github.com/betogrun/
|
74
|
-
[0.
|
75
|
-
[0.2.
|
76
|
-
[0.2.
|
77
|
-
[0.2.
|
78
|
-
[0.2.
|
87
|
+
[0.3.4]: https://github.com/betogrun/lean-microsoft-graph/compare/v0.3.4...v0.4.0
|
88
|
+
[0.3.4]: https://github.com/betogrun/lean-microsoft-graph/compare/v0.2.4...v0.3.4
|
89
|
+
[0.2.4]: https://github.com/betogrun/lean-microsoft-graph/compare/v0.2.3...v0.2.4
|
90
|
+
[0.2.3]: https://github.com/betogrun/lean-microsoft-graph/compare/v0.2.2...v0.2.3
|
91
|
+
[0.2.2]: https://github.com/betogrun/lean-microsoft-graph/compare/v0.2.1...v0.2.2
|
92
|
+
[0.2.1]: https://github.com/betogrun/lean-microsoft-graph/compare/v0.2.0...v0.2.1
|
93
|
+
[0.2.0]: https://github.com/betogrun/lean-microsoft-graph/releases/tag/v0.2.0
|
data/Gemfile
CHANGED
@@ -5,8 +5,11 @@ source "https://rubygems.org"
|
|
5
5
|
# Specify your gem's dependencies in lean-microsoft-graph.gemspec
|
6
6
|
gemspec
|
7
7
|
|
8
|
+
gem 'rack', '~> 3.1', '>= 3.1.8'
|
9
|
+
gem 'rackup', '~> 2.2', '>= 2.2.1'
|
8
10
|
gem "rake", "~> 13.2"
|
9
|
-
|
11
|
+
gem 'redcarpet', '~> 3.6'
|
10
12
|
gem "minitest", "~> 5.25"
|
11
|
-
|
12
|
-
gem '
|
13
|
+
gem 'mocha', '~> 2.7'
|
14
|
+
gem 'webrick', '~> 1.9', '>= 1.9.1'
|
15
|
+
gem 'yard', '~> 0.9.37'
|
data/Gemfile.lock
CHANGED
@@ -1,54 +1,53 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
lean-microsoft-graph (0.
|
5
|
-
faraday (~>
|
6
|
-
|
4
|
+
lean-microsoft-graph (0.4.0)
|
5
|
+
faraday (~> 2.12)
|
6
|
+
faraday-retry (~> 2.2)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
faraday (
|
12
|
-
faraday-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
faraday
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
faraday-em_http (1.0.0)
|
24
|
-
faraday-em_synchrony (1.0.0)
|
25
|
-
faraday-excon (1.1.0)
|
26
|
-
faraday-httpclient (1.0.1)
|
27
|
-
faraday-multipart (1.0.4)
|
28
|
-
multipart-post (~> 2)
|
29
|
-
faraday-net_http (1.0.2)
|
30
|
-
faraday-net_http_persistent (1.2.0)
|
31
|
-
faraday-patron (1.0.0)
|
32
|
-
faraday-rack (1.0.0)
|
33
|
-
faraday-retry (1.0.3)
|
34
|
-
faraday_middleware (1.2.0)
|
35
|
-
faraday (~> 1.0)
|
36
|
-
minitest (5.25.1)
|
37
|
-
mocha (2.4.5)
|
11
|
+
faraday (2.12.2)
|
12
|
+
faraday-net_http (>= 2.0, < 3.5)
|
13
|
+
json
|
14
|
+
logger
|
15
|
+
faraday-net_http (3.4.0)
|
16
|
+
net-http (>= 0.5.0)
|
17
|
+
faraday-retry (2.2.1)
|
18
|
+
faraday (~> 2.0)
|
19
|
+
json (2.9.1)
|
20
|
+
logger (1.6.4)
|
21
|
+
minitest (5.25.4)
|
22
|
+
mocha (2.7.1)
|
38
23
|
ruby2_keywords (>= 0.0.5)
|
39
|
-
|
24
|
+
net-http (0.6.0)
|
25
|
+
uri
|
26
|
+
rack (3.1.8)
|
27
|
+
rackup (2.2.1)
|
28
|
+
rack (>= 3)
|
40
29
|
rake (13.2.1)
|
30
|
+
redcarpet (3.6.0)
|
41
31
|
ruby2_keywords (0.0.5)
|
32
|
+
uri (1.0.2)
|
33
|
+
webrick (1.9.1)
|
34
|
+
yard (0.9.37)
|
42
35
|
|
43
36
|
PLATFORMS
|
37
|
+
arm64-darwin-23
|
44
38
|
x86_64-darwin-21
|
45
39
|
x86_64-linux
|
46
40
|
|
47
41
|
DEPENDENCIES
|
48
42
|
lean-microsoft-graph!
|
49
43
|
minitest (~> 5.25)
|
50
|
-
mocha (~> 2.
|
44
|
+
mocha (~> 2.7)
|
45
|
+
rack (~> 3.1, >= 3.1.8)
|
46
|
+
rackup (~> 2.2, >= 2.2.1)
|
51
47
|
rake (~> 13.2)
|
48
|
+
redcarpet (~> 3.6)
|
49
|
+
webrick (~> 1.9, >= 1.9.1)
|
50
|
+
yard (~> 0.9.37)
|
52
51
|
|
53
52
|
BUNDLED WITH
|
54
53
|
2.2.33
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# LeanMicrosoftGraph
|
2
2
|
|
3
|
-
Lean Microsoft Graph is a lightweight gem designed for Ruby developers who need to interact with the Microsoft Graph API
|
3
|
+
Lean Microsoft Graph is a lightweight gem designed for Ruby developers who need to interact with the Microsoft Graph API. This gem bridges this gap, providing an interface with Microsoft Graph API.
|
4
|
+
The gem documentation can be found at [https://betogrun.github.io/lean-microsoft-graph](https://betogrun.github.io/lean-microsoft-graph).
|
4
5
|
|
5
6
|
## Installation
|
6
7
|
|
@@ -68,9 +69,20 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
|
68
69
|
|
69
70
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
70
71
|
|
72
|
+
## Documentation
|
73
|
+
|
74
|
+
The complete documentation for this gem is available at: https://electionbuddy.github.io/electionbuddy-ruby
|
75
|
+
|
76
|
+
You can also generate the documentation locally using:
|
77
|
+
|
78
|
+
```bash
|
79
|
+
yard doc
|
80
|
+
yard server
|
81
|
+
```
|
82
|
+
|
71
83
|
## Contributing
|
72
84
|
|
73
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
85
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/betogrun/lean-microsoft-graph.
|
74
86
|
|
75
87
|
## License
|
76
88
|
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'faraday/retry'
|
4
|
+
|
3
5
|
module LeanMicrosoftGraph
|
4
6
|
class Client
|
5
7
|
def initialize(tenant_id:, client_id:, client_secret:, adapter: Faraday.default_adapter, stubs: nil)
|
@@ -36,4 +38,4 @@ module LeanMicrosoftGraph
|
|
36
38
|
Authentication::Credentials.new(@tenant_id, @client_id, @client_secret)
|
37
39
|
end
|
38
40
|
end
|
39
|
-
end
|
41
|
+
end
|
data/lib/lean_microsoft_graph.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'faraday'
|
2
|
-
require '
|
2
|
+
require 'faraday/retry'
|
3
3
|
require 'json'
|
4
4
|
|
5
5
|
module LeanMicrosoftGraph
|
@@ -14,4 +14,4 @@ module LeanMicrosoftGraph
|
|
14
14
|
require 'lean_microsoft_graph/resources/users_resource'
|
15
15
|
require 'lean_microsoft_graph/resources/users_resource/user'
|
16
16
|
require 'lean_microsoft_graph/resources/users_resource/users'
|
17
|
-
end
|
17
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lean-microsoft-graph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alberto Rocha
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.12'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.12'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: faraday-retry
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '2.2'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '2.2'
|
41
41
|
description: This gem provides a set of methods to interact with Microsoft Graph API.
|
42
42
|
email:
|
43
43
|
- betogrun@gmail.com
|
@@ -45,6 +45,8 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
+
- ".devcontainer/devcontainer.json"
|
49
|
+
- ".yardopts"
|
48
50
|
- CHANGELOG.md
|
49
51
|
- Gemfile
|
50
52
|
- Gemfile.lock
|