hector 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Hector
2
- VERSION = "1.0.8"
2
+ VERSION = "1.0.9"
3
3
  end
@@ -35,7 +35,9 @@ module Hector
35
35
  protected
36
36
  def load_identities
37
37
  ensure_file_exists
38
- YAML.load_file(filename) || {}
38
+ File.open(filename, "r") do |io|
39
+ YAML.load(io) || {}
40
+ end
39
41
  end
40
42
 
41
43
  def store_identities(identities)
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.8
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: 2012-02-02 00:00:00.000000000 Z
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: &70191477589640 !ruby/object:Gem::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: *70191477589640
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: &70191477589160 !ruby/object:Gem::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: *70191477589160
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.13
120
+ rubygems_version: 1.8.23
111
121
  signing_key:
112
122
  specification_version: 3
113
123
  summary: Private group chat server