planga 0.7.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/README.md +2 -0
- data/lib/planga.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1587bd4b879380b973528d203961f34ffc5db05f
|
4
|
+
data.tar.gz: 9743afb466c4b59bcade5d4ba3bd1818a33bf660
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c722d4b2eb76a8bcce5a6e28c5fdfa323e69aef865bd6103caf1bcc04f7ab583bc4c25117a93f70d6323a6d6058127c70f0eb1e4c5d2e8766fa2acdf15149b6e
|
7
|
+
data.tar.gz: 44c9540d06ed955b513ba0de5f52c1461a7a2ed5ce3b17943aed5283d055226b6ff69733be1a40951fc9f216ad713ba2705a99cfd08415019a0e347a5c271a49
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -4,6 +4,7 @@ Planga Ruby Wrapper:
|
|
4
4
|
[![Planga](https://img.shields.io/badge/%F0%9F%98%8E%20planga-chat-ff00ff.svg)](http://www.planga.io/)
|
5
5
|
[![Planga Docs](https://img.shields.io/badge/planga-docs-lightgrey.svg)](http://www.planga.io/docs)
|
6
6
|
[![Gem](https://img.shields.io/gem/v/planga.svg)](https://rubygems.org/gems/planga)
|
7
|
+
[![Build Status](https://travis-ci.org/ResiliaDev/planga-ruby.svg?branch=master)](https://travis-ci.org/ResiliaDev/planga-ruby)
|
7
8
|
[RubyDoc](https://www.rubydoc.info/github/ResiliaDev/planga-ruby/master)
|
8
9
|
|
9
10
|
**Installation**
|
@@ -50,6 +51,7 @@ For a guide that goes into a little bit more details, see [Building Live Chat Be
|
|
50
51
|
|
51
52
|
_(This is only interesting if you want to make a fork of this Gem)_
|
52
53
|
|
54
|
+
**NOTE:** We've set up Travis-CI to build a new version of the official gem whenever a tagged commit is made
|
53
55
|
|
54
56
|
* run `gem build planga.gemspec`
|
55
57
|
* run `gem push planga-n.n.n.gem`
|
data/lib/planga.rb
CHANGED
@@ -38,6 +38,7 @@ class Planga
|
|
38
38
|
@conversation_id = conf[:conversation_id]
|
39
39
|
@current_user_id = conf[:current_user_id]
|
40
40
|
@current_user_name = conf[:current_user_name]
|
41
|
+
@current_user_role = conf[:current_user_role]
|
41
42
|
|
42
43
|
@remote_host = conf[:remote_host]
|
43
44
|
@remote_host ||= "//chat.planga.io"
|
@@ -93,7 +94,8 @@ class Planga
|
|
93
94
|
{
|
94
95
|
"conversation_id": @conversation_id,
|
95
96
|
"current_user_id": @current_user_id,
|
96
|
-
"current_user_name": @current_user_name
|
97
|
+
"current_user_name": @current_user_name,
|
98
|
+
"current_user_role": @current_user_role,
|
97
99
|
}.to_json
|
98
100
|
end
|
99
101
|
|