mattermost-api4-ruby 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -1
- data/README.md +1 -1
- data/lib/mattermost/client.rb +1 -1
- data/lib/mattermost/endpoint/users.rb +9 -1
- data/mattermost-api4-ruby.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88d7eb11e81456747fcdae1d2cc013fb5a0728be
|
4
|
+
data.tar.gz: 376a4989e7b6f3f4fab96bf14d3bb8c5776e2de3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 912398e8e45ceb95f831da8400be1de14419d6a888ccecc0a0c53bcaf4d1d3f1166c10e463cd24e2e49de2de9217d1e1fa08920f4cffd89dff826be3d6d38276
|
7
|
+
data.tar.gz: 7e083616c22bea8f7758cd8485dc46f2b1b0d9e0c9300847589ef83544446c60ea7ea31a8818d88221f653acf77372734952055fa54c987634487dc49688bf74
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,17 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
## [v0.0.
|
3
|
+
## [v0.0.6](https://github.com/maruTA-bis5/mattermost-api4-ruby/tree/v0.0.6) (2018-01-22)
|
4
|
+
[Full Changelog](https://github.com/maruTA-bis5/mattermost-api4-ruby/compare/v0.0.5...v0.0.6)
|
5
|
+
|
6
|
+
**Implemented enhancements:**
|
7
|
+
|
8
|
+
- add PUT /users/{user\_id}/auth [\#10](https://github.com/maruTA-bis5/mattermost-api4-ruby/issues/10)
|
9
|
+
|
10
|
+
**Closed issues:**
|
11
|
+
|
12
|
+
- Mattermost::Endpoint::User\#getMe is not like ruby [\#4](https://github.com/maruTA-bis5/mattermost-api4-ruby/issues/4)
|
13
|
+
|
14
|
+
## [v0.0.5](https://github.com/maruTA-bis5/mattermost-api4-ruby/tree/v0.0.5) (2018-01-16)
|
4
15
|
[Full Changelog](https://github.com/maruTA-bis5/mattermost-api4-ruby/compare/v0.0.4...v0.0.5)
|
5
16
|
|
6
17
|
**Fixed bugs:**
|
data/README.md
CHANGED
@@ -26,7 +26,7 @@ TODO: Write usage instructions here
|
|
26
26
|
|
27
27
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
28
28
|
|
29
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update CHANGELOG.md by `bundle exec github_changelog_generator --future-release=<new version>
|
29
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update CHANGELOG.md by `bundle exec github_changelog_generator --future-release=<new version> maruTA-bis5/mattermost-api4-ruby`, update the version number in gemspec, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
30
30
|
|
31
31
|
## Contributing
|
32
32
|
|
data/lib/mattermost/client.rb
CHANGED
@@ -3,7 +3,7 @@ require 'json'
|
|
3
3
|
module Mattermost
|
4
4
|
module Endpoint
|
5
5
|
module Users
|
6
|
-
def
|
6
|
+
def get_me
|
7
7
|
get_user("me")
|
8
8
|
end
|
9
9
|
|
@@ -188,6 +188,14 @@ module Mattermost
|
|
188
188
|
def enable_personal_access_token(token)
|
189
189
|
post("/users/tokens/enable", :body => {:token => token}.to_json)
|
190
190
|
end
|
191
|
+
|
192
|
+
def update_user_authentication_method(user_id, auth_service, password = "", auth_data = "")
|
193
|
+
put("/users/#{user_id}/auth", :body => {
|
194
|
+
:auth_data => auth_data,
|
195
|
+
:auth_service => auth_service,
|
196
|
+
:password => password
|
197
|
+
}.to_json)
|
198
|
+
end
|
191
199
|
end
|
192
200
|
end
|
193
201
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mattermost-api4-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takayuki Maruyama
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|