lean-microsoft-graph 0.2.4 → 0.3.4

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: c6189cc60193debd23995cc2a2c72e720e792808383a1a9f14b451ae944369fc
4
- data.tar.gz: e3667f0644c7caf5b1e28d894c159f5a9113f595d573dbaf27cde2773a6bb999
3
+ metadata.gz: 3f088b4cc86b80443bf94dc5045b676cbecaa485d3fc893c544942f55ec8f6f8
4
+ data.tar.gz: 459f4f51f07da3eca5668c142ce513464b78b809763b9f06348fe797ec5040e1
5
5
  SHA512:
6
- metadata.gz: 88b4659cbb15f3335d0db5682c284d24240f04e18f19e257b1b2a7618338af0093d26e5f14592fd34b4f97f008e2e5b21577d5619e27e55472556f340720903d
7
- data.tar.gz: 267c2c365aa603ad323a3c12b538b808da205612b292d8f967c898e8b8782be9622c7463a61f4d0b5ba7d5ac4ebf55ac2479663ac65a74cc940fd486b62d0757
6
+ metadata.gz: 8c57fbfb13aecb8e6d46fb4a77031e6798fb5aaaa86f9d569c5bd4135f9619ca9f07e3ef15a72fad531cdb60014db7988ca85c4a06f6c40209a99c2fed5cba40
7
+ data.tar.gz: 55109146b709de115b203734143c1d32af702af0f935adee43b47e457ceb200742b4e4194452e4a65558e3ba9153be90004de0b41c75097c47e60410cc82810a
data/CHANGELOG.md CHANGED
@@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6
6
 
7
+ ## [0.3.4] - 2024-08-30
8
+
9
+ ### Added
10
+
11
+ - Ability to retrieve users by id with `client.users.get_by_id('id')`.
12
+
13
+ ### Changed
14
+
15
+ - Upgrade dependencies: faraday, mocha and minitest.
16
+
7
17
  ## [0.2.4] - 2024-05-23
8
18
 
9
19
  ### Changed
@@ -60,6 +70,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
60
70
 
61
71
  - Initial release
62
72
 
73
+ [0.3.4]: https://github.com/betogrun/lean_microsoft_graph/releases/tag/v0.3.4
63
74
  [0.2.4]: https://github.com/betogrun/lean_microsoft_graph/releases/tag/v0.2.4
64
75
  [0.2.3]: https://github.com/betogrun/lean_microsoft_graph/releases/tag/v0.2.3
65
76
  [0.2.2]: https://github.com/betogrun/lean_microsoft_graph/releases/tag/v0.2.2
data/Gemfile CHANGED
@@ -7,6 +7,6 @@ gemspec
7
7
 
8
8
  gem "rake", "~> 13.2"
9
9
 
10
- gem "minitest", "~> 5.23"
10
+ gem "minitest", "~> 5.25"
11
11
 
12
- gem 'mocha', '~> 2.3'
12
+ gem 'mocha', '~> 2.4'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lean-microsoft-graph (0.2.4)
4
+ lean-microsoft-graph (0.3.4)
5
5
  faraday (~> 1.10)
6
6
  faraday_middleware (~> 1.0)
7
7
 
@@ -26,15 +26,15 @@ GEM
26
26
  faraday-httpclient (1.0.1)
27
27
  faraday-multipart (1.0.4)
28
28
  multipart-post (~> 2)
29
- faraday-net_http (1.0.1)
29
+ faraday-net_http (1.0.2)
30
30
  faraday-net_http_persistent (1.2.0)
31
31
  faraday-patron (1.0.0)
32
32
  faraday-rack (1.0.0)
33
33
  faraday-retry (1.0.3)
34
34
  faraday_middleware (1.2.0)
35
35
  faraday (~> 1.0)
36
- minitest (5.23.1)
37
- mocha (2.3.0)
36
+ minitest (5.25.1)
37
+ mocha (2.4.5)
38
38
  ruby2_keywords (>= 0.0.5)
39
39
  multipart-post (2.4.1)
40
40
  rake (13.2.1)
@@ -46,8 +46,8 @@ PLATFORMS
46
46
 
47
47
  DEPENDENCIES
48
48
  lean-microsoft-graph!
49
- minitest (~> 5.23)
50
- mocha (~> 2.3)
49
+ minitest (~> 5.25)
50
+ mocha (~> 2.4)
51
51
  rake (~> 13.2)
52
52
 
53
53
  BUNDLED WITH
data/README.md CHANGED
@@ -52,6 +52,16 @@ users.each do |user|
52
52
  end
53
53
  ```
54
54
 
55
+ ### Retrieving a user by id
56
+
57
+ ```ruby
58
+ user_id = 'your_user_id' # Replace 'your_user_id' with the actual user id
59
+ user = client.users.get_by_id(user_id)
60
+
61
+ puts "User ID: #{user.id}"
62
+ puts "User Display Name: #{user.display_name}"
63
+ ```
64
+
55
65
  ## Development
56
66
 
57
67
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -22,6 +22,12 @@ module LeanMicrosoftGraph
22
22
 
23
23
  Users.new(response)
24
24
  end
25
+
26
+ def get_user_by_id(user_id)
27
+ response = get_request("users/#{user_id}")
28
+
29
+ User.new(response)
30
+ end
25
31
  end
26
32
  end
27
33
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LeanMicrosoftGraph
4
- VERSION = "0.2.4"
4
+ VERSION = "0.3.4"
5
5
  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.2.4
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alberto Rocha
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-23 00:00:00.000000000 Z
11
+ date: 2024-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday