hector 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/hector/connection.rb +7 -1
- data/lib/hector/server.rb +2 -1
- data/lib/hector/version.rb +1 -1
- data/lib/hector/yaml_identity_adapter.rb +3 -1
- metadata +17 -7
data/lib/hector/connection.rb
CHANGED
@@ -79,7 +79,13 @@ module Hector
|
|
79
79
|
class SSLConnection < Connection
|
80
80
|
def post_init
|
81
81
|
log(:info, "opened SSL connection")
|
82
|
-
start_tls
|
82
|
+
start_tls(ssl_options)
|
83
83
|
end
|
84
|
+
|
85
|
+
private
|
86
|
+
def ssl_options
|
87
|
+
{ :cert_chain_file => Hector.ssl_certificate_path.to_s,
|
88
|
+
:private_key_file => Hector.ssl_certificate_key_path.to_s }
|
89
|
+
end
|
84
90
|
end
|
85
91
|
end
|
data/lib/hector/server.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
module Hector
|
2
2
|
class << self
|
3
|
-
attr_accessor :server_name, :address, :port, :ssl_port
|
3
|
+
attr_accessor :server_name, :address, :port, :ssl_port, :ssl_certificate_path,
|
4
|
+
:ssl_certificate_key_path
|
4
5
|
|
5
6
|
def start_server
|
6
7
|
EventMachine.start_server(@address, @port, Connection)
|
data/lib/hector/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2013-03-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: eventmachine
|
17
|
-
requirement:
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,15 @@ dependencies:
|
|
22
22
|
version: 0.12.10
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements:
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ! '>='
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: 0.12.10
|
26
31
|
- !ruby/object:Gem::Dependency
|
27
32
|
name: mocha
|
28
|
-
requirement:
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
29
34
|
none: false
|
30
35
|
requirements:
|
31
36
|
- - ! '>='
|
@@ -33,7 +38,12 @@ dependencies:
|
|
33
38
|
version: 0.9.9
|
34
39
|
type: :development
|
35
40
|
prerelease: false
|
36
|
-
version_requirements:
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ! '>='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 0.9.9
|
37
47
|
description: A private group chat server for people you trust. Implements a limited
|
38
48
|
subset of the IRC protocol.
|
39
49
|
email:
|
@@ -107,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
117
|
version: '0'
|
108
118
|
requirements: []
|
109
119
|
rubyforge_project:
|
110
|
-
rubygems_version: 1.8.
|
120
|
+
rubygems_version: 1.8.23
|
111
121
|
signing_key:
|
112
122
|
specification_version: 3
|
113
123
|
summary: Private group chat server
|