zquickblox 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -0
- data/lib/generators/templates/zquickblox.rb +2 -2
- data/lib/zquickblox/version.rb +1 -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: e32eabb77c69c0a2975f9bba70a3334f3863dd1e
|
4
|
+
data.tar.gz: 4d36f08c338b3efac343ff58c1bc5b9aa3c96f66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07ac40644c86a58cb914718b2d9a60c9ce8fbd447453c1e57ca830d916c82213f0fc2abc11563a642f8198ffccaecb4f4bda07e10aa951007093d3432f7a47f9
|
7
|
+
data.tar.gz: 5d14ef46076d89b94ffcbfb20f886090e5e10ed1581caaa08fe5da49098ae65686c4db12883aa531a3525ec608f7e65f94b51873ba4aa3efa98c4c006061e209
|
data/README.md
CHANGED
@@ -22,12 +22,26 @@ Or install it yourself as:
|
|
22
22
|
|
23
23
|
## Usage
|
24
24
|
|
25
|
+
### Rails
|
26
|
+
|
25
27
|
You need to generate an initializer for ZQuickblox in order to config your Quickblox app:
|
26
28
|
|
27
29
|
```ruby
|
28
30
|
rails generate zquickblox
|
29
31
|
```
|
30
32
|
|
33
|
+
### Others
|
34
|
+
|
35
|
+
You need to config your Quickblox as below:
|
36
|
+
|
37
|
+
```ruby
|
38
|
+
ZQuickblox.configure do |config|
|
39
|
+
config.app_id = ENV['QB_APP_ID'],
|
40
|
+
config.auth_key = ENV['QB_AUTH_KEY'],
|
41
|
+
config.auth_secret = ENV['QB_AUTH_SECRET']
|
42
|
+
end
|
43
|
+
```
|
44
|
+
|
31
45
|
To create a new user, just call:
|
32
46
|
|
33
47
|
```ruby
|
data/lib/zquickblox/version.rb
CHANGED