Skip to content

Commit 6941075

Browse files
author
Encore Shao
committed
feat: update README for refresh_token! and bump a new version
1 parent 44558fa commit 6941075

7 files changed

Lines changed: 14 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,11 @@
2121

2222
- Integrate REST API to get contacts
2323
- get profile `client.contacts`
24-
- get contacts data with next link `client.contacts({next_link: 'xxx'})`
24+
- get contacts data with next link `client.contacts({next_link: 'xxx'})`
25+
26+
## [0.1.4] - (2022-10-26)
27+
28+
- Generate URLs for token and able to refresh token
29+
- get authorize URL `client.authorize_url`
30+
- get token URL `client.token_url`
31+
- be able to refresh token `client.refresh_token!`

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
ruby-office365 (0.1.3)
4+
ruby-office365 (0.1.4)
55
faraday
66
faraday_middleware
77

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ irb(main):018:0> response[:results][0].as_json
135135
**Refresh User Token**
136136

137137
```ruby
138-
irb(main):005:0> client.refresh_token
138+
irb(main):005:0> client.refresh_token!
139139
```
140140

141141
## Copyright

lib/office365/rest/token.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def token_url
2222
[LOGIN_HOST, "/#{tenant_id}/oauth2/v2.0/token"].join
2323
end
2424

25-
def token_refresh
25+
def refresh_token!
2626
post(token_url, {
2727
refresh_token: refresh_token,
2828
client_id: client_id,

lib/office365/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module Office365
4-
VERSION = "0.1.3"
4+
VERSION = "0.1.4"
55
end

spec/office365/client_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,6 @@
7878
end
7979

8080
xit "be able to refresh token by refresh_token" do
81-
expect(client.token_refresh).to eq({})
81+
expect(client.refresh_token!).to eq({})
8282
end
8383
end

spec/office365_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
RSpec.describe Office365 do
44
it "has a version number" do
5-
expect(Office365::VERSION).to eq("0.1.3")
5+
expect(Office365::VERSION).to eq("0.1.4")
66
end
77
end

0 commit comments

Comments
 (0)