discourse_api 0.16.1 → 0.17.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3f92e1ed90f6df6ffb356583eedab8e43328a3c
4
- data.tar.gz: 0351cf6da95703da9b167590833a72aacb59f688
3
+ metadata.gz: 1ef911002c1690ecf2093d99c557ae50703185d6
4
+ data.tar.gz: d641e827fc1717f3a72b5db1af1e8ab9d9c8ec9f
5
5
  SHA512:
6
- metadata.gz: 27c8905ba8c68f2a06e11fa6dab834006c062676609242585ff5cc993b721247f78867b07d0ea617c56b9b4ea6a45b89d323232cadd8267b381a262b687bd56c
7
- data.tar.gz: c32b0b29622c8ccff5e48bdb427f5dab52289ee481e6f60a8d36d036821dee69e5c6a19d7bfa5fe870ea3f96aff9e007e7fedaca0b8c9625c352d64e45fa8769
6
+ metadata.gz: 677f0b8b8e7a1225936f4a9bf50c74d2dc8e0dd1a909a5e2aa4b33685e385e8aff7372510d35081e4dbca430e7533737cff3a95dbb941e889087868858d8e4b4
7
+ data.tar.gz: 443b8b0733f8294d473fa8bd35a97e5cc1050dc242ef1fcf6bcd42fa98698307c8e1485d8532b7dad6ae0e392616a93a5541ec1214c3a04d7cca6a13df99bc88
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
+ ## [0.17.0] - 2017-06-29
6
+ ### Added
7
+ - Add title to SSO sync
8
+
5
9
  ## [0.16.1] - 2017-06-23
6
10
  ### Fixed
7
11
  - `user_sso` should use `user_id` instead of `username`
@@ -10,6 +10,7 @@ module DiscourseApi
10
10
  sso.external_id = params[:external_id]
11
11
  sso.suppress_welcome_message = params[:suppress_welcome_message] === true
12
12
  sso.avatar_url = params[:avatar_url]
13
+ sso.title = params[:title]
13
14
  sso.avatar_force_update = params[:avatar_force_update] === true
14
15
  params.keys.select{|key| key.to_s.start_with?("custom") }.each do |custom_key|
15
16
  sso.custom_fields[custom_key] = params[custom_key]
@@ -5,7 +5,7 @@ require 'openssl'
5
5
  module DiscourseApi
6
6
  class SingleSignOn
7
7
  ACCESSORS = [:nonce, :name, :username, :email, :avatar_url, :avatar_force_update,
8
- :about_me, :external_id, :return_sso_url, :admin, :moderator, :suppress_welcome_message]
8
+ :about_me, :external_id, :return_sso_url, :admin, :moderator, :suppress_welcome_message, :title]
9
9
  FIXNUMS = []
10
10
  BOOLS = [:avatar_force_update, :admin, :moderator, :suppress_welcome_message]
11
11
  #NONCE_EXPIRY_TIME = 10.minutes # minutes is a rails method and is causing an error. Is this needed in the api?
@@ -1,3 +1,3 @@
1
1
  module DiscourseApi
2
- VERSION = "0.16.1"
2
+ VERSION = "0.17.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: discourse_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.1
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Saffron
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-06-23 00:00:00.000000000 Z
14
+ date: 2017-06-30 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: faraday