converse 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -5,6 +5,8 @@ require "json"
|
|
5
5
|
module Converse
|
6
6
|
class HTMLConversation < Conversation
|
7
7
|
attr_accessor :use_ssl
|
8
|
+
attr_accessor :username
|
9
|
+
attr_accessor :password
|
8
10
|
|
9
11
|
def initialize(uri)
|
10
12
|
super(uri)
|
@@ -27,7 +29,7 @@ module Converse
|
|
27
29
|
|
28
30
|
def populate_request(path, data)
|
29
31
|
@request.body = data if not data.nil?
|
30
|
-
@request.basic_auth
|
32
|
+
@request.basic_auth @username, @password if @username != nil or @password != nil
|
31
33
|
notify_subscribers_of_request(path)
|
32
34
|
end
|
33
35
|
|
data/lib/converse/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: converse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 6
|
10
|
+
version: 1.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ernst van Graan
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-09-
|
18
|
+
date: 2012-09-06 00:00:00 Z
|
19
19
|
dependencies: []
|
20
20
|
|
21
21
|
description: Converse provides Broker/Translator classes to facilitate communication across an API by means of conversations
|