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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 453726be51caf53eb629876117442a8c82554ded
4
- data.tar.gz: 4ef64f428543c919563490ea52991d5aee0fc677
3
+ metadata.gz: 88d7eb11e81456747fcdae1d2cc013fb5a0728be
4
+ data.tar.gz: 376a4989e7b6f3f4fab96bf14d3bb8c5776e2de3
5
5
  SHA512:
6
- metadata.gz: a8989c285bfd95deaf758499d8e1ac23204ee9e4904cab4aba8d4a8d57347888695706a8205a9ef75023e13c2292f9748a4ba1241011fc9788131d0901164fe9
7
- data.tar.gz: ac82028d997ede72781cc152baa4de928ab1c1e0099506e6c9295f6ecf551bcf704a0595711d452e43f6a4f5664bf30e8e283b411a5168e5b16649be31a1badb
6
+ metadata.gz: 912398e8e45ceb95f831da8400be1de14419d6a888ccecc0a0c53bcaf4d1d3f1166c10e463cd24e2e49de2de9217d1e1fa08920f4cffd89dff826be3d6d38276
7
+ data.tar.gz: 7e083616c22bea8f7758cd8485dc46f2b1b0d9e0c9300847589ef83544446c60ea7ea31a8818d88221f653acf77372734952055fa54c987634487dc49688bf74
@@ -1,6 +1,17 @@
1
1
  # Change Log
2
2
 
3
- ## [v0.0.5](https://github.com/maruTA-bis5/mattermost-api4-ruby/tree/v0.0.5) (2018-01-17)
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> --since-tag=<latest 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).
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
 
@@ -34,7 +34,7 @@ module Mattermost
34
34
  end
35
35
 
36
36
  def connected?
37
- getMe().success?
37
+ get_me.success?
38
38
  end
39
39
 
40
40
  def connect_websocket
@@ -3,7 +3,7 @@ require 'json'
3
3
  module Mattermost
4
4
  module Endpoint
5
5
  module Users
6
- def getMe
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "mattermost-api4-ruby"
5
- spec.version = "0.0.5"
5
+ spec.version = "0.0.6"
6
6
  spec.authors = ["Takayuki Maruyama"]
7
7
  spec.email = ["bis5.wsys@gmail.com"]
8
8
 
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.5
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-16 00:00:00.000000000 Z
11
+ date: 2018-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler