converse 1.0.5 → 1.0.6

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.
@@ -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 "hetzner_api", "secret"
32
+ @request.basic_auth @username, @password if @username != nil or @password != nil
31
33
  notify_subscribers_of_request(path)
32
34
  end
33
35
 
@@ -1,3 +1,3 @@
1
1
  module Converse
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.6"
3
3
  end
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: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 5
10
- version: 1.0.5
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-05 00:00:00 Z
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