tor-control 0.0.5 → 0.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.
@@ -34,11 +34,11 @@ module TorControl
34
34
 
35
35
  def connect
36
36
  return @connection if @connection
37
- # begin
37
+ begin
38
38
  @connection = TCPSocket.new(@host, @control_port)
39
- # rescue
40
- #logger.error "TorControl: Failed to connection to tor service"
41
- # end
39
+ rescue
40
+ logger.error "TorControl: Failed to connection to tor service"
41
+ end
42
42
  end
43
43
 
44
44
  def signal_new_identity
@@ -60,7 +60,8 @@ module TorControl
60
60
  def close
61
61
  check_connection
62
62
  send_line "QUIT"
63
- not @connection = false
63
+ @connection = false
64
+ return ! @connection
64
65
  end
65
66
 
66
67
  private
@@ -1,3 +1,3 @@
1
1
  module TorControl
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tor-control
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-13 00:00:00.000000000 Z
12
+ date: 2013-06-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler