xify-rocket_chat 0.0.1 → 0.1.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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/xify/base/rocket_chat.rb +10 -4
  3. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 557292d4b7cf3ed6a1f8e3fa50e75daedec4dbebab058f79fdf793af355f87eb
4
- data.tar.gz: 8f1a92e1a135f8c8ca2e02eedb367975b21ed875927dd177f2ad7b98b88f5f29
3
+ metadata.gz: 44626d02ff766c14956e366dc5528744949561a6009ab48207f0ae9f966c59b0
4
+ data.tar.gz: 64f3e971a36234b11ea01f2612d6559bc0f5ebcca2eb93b44c8b558e3159742e
5
5
  SHA512:
6
- metadata.gz: 55539da4d0f7397f09b79139861ab23358787c6c984de3898eef207026265897e16982306b77303127d8f18f1a783e1576319a7855b9608f2a89db712c5d8ce4
7
- data.tar.gz: fd3a6436768f25edf1d35accfda2449a2cb85196c7d5b7aeb227b62d2330443a98f19075b599ccfe8f4742fd45acd434722a9158acadd1ef89c6c3171321fe01
6
+ metadata.gz: 5f03026f3b03bf40935264d326a913a484805821d2bdda4a57cdd1a6a5fb4635aac61a65b13c02c9e8c6ae82eebaf249c85e78a6902404d6ca86ad5bb32fc598
7
+ data.tar.gz: ea48c6833d8aaf312e648fe891101b1b6b5f772afd2ae0b6e16e7ea520230b2e355c971af2c049996c595aacf7e8d7b8452d1eb69f104c9900a766f509676c4d
@@ -52,10 +52,16 @@ module Xify
52
52
 
53
53
  req = Net::HTTP::Post.new '/api/v1/login',
54
54
  'Content-Type' => 'application/json'
55
- req.body = {
56
- username: @config['user'],
57
- password: @config['pass']
58
- }.to_json
55
+
56
+
57
+ req.body = if @config.has_key? 'auth'
58
+ @config['auth']
59
+ else
60
+ {
61
+ username: @config['user'],
62
+ password: @config['pass']
63
+ }
64
+ end.to_json
59
65
 
60
66
  res = @http.request req
61
67
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xify-rocket_chat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Finn Glöe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-22 00:00:00.000000000 Z
11
+ date: 2018-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metybur
@@ -28,14 +28,14 @@ dependencies:
28
28
  name: xify
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0.4'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.4'
41
41
  description: |2
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  version: '0'
70
70
  requirements: []
71
71
  rubyforge_project:
72
- rubygems_version: 2.7.6
72
+ rubygems_version: 2.7.7
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Rocket.Chat extension for Xify gem.