DeepConnect 0.4.06.005 → 0.4.06.006

Sign up to get free protection for your applications and to get access to all the features.
@@ -127,8 +127,8 @@ end</pre>
127
127
  <li>DVAL - ディープコピー</li>
128
128
  </ul>
129
129
  <p>メソッド引数、戻り値、ブロック引数、ブロック戻り値に指定可能になっている.</p>
130
- <pre>def_method_spec(Object, "VAL to_a()")
131
- def_method_spec(Array, :method =&gt; :==, :args =&gt; "VAL")</pre>
130
+ <pre>DeepConnect.def_method_spec(Object, "VAL to_a()")
131
+ DeepConnect.def_method_spec(Array, :method =&gt; :==, :args =&gt; "VAL")</pre>
132
132
  <p>組み込みメソッドに関しては、一通り定義済みになっていて, 前述の Array#&amp;
133
133
  のような問題は解消している.</p>
134
134
  <p>実際には, クラス単位での指定も出来るが、MethodSpecを使うほうが便利だ.</p>
data/doc/deep-connect.rd CHANGED
@@ -146,8 +146,8 @@ Stringに関しては, パフォーマンスの考慮しこういう選択にな
146
146
 
147
147
  メソッド引数、戻り値、ブロック引数、ブロック戻り値に指定可能になっている.
148
148
 
149
- def_method_spec(Object, "VAL to_a()")
150
- def_method_spec(Array, :method => :==, :args => "VAL")
149
+ DeepConnect.def_method_spec(Object, "VAL to_a()")
150
+ DeepConnect.def_method_spec(Array, :method => :==, :args => "VAL")
151
151
 
152
152
  組み込みメソッドに関しては、一通り定義済みになっていて, 前述の Array#&
153
153
  のような問題は解消している.
@@ -16,7 +16,7 @@ module DeepConnect
16
16
  @MON_INTERVAL = 10
17
17
 
18
18
  # debugging attributes.
19
- @DISABLE_INFO = false
19
+ @DISABLE_INFO = true
20
20
 
21
21
  @DISPLAY_MESSAGE_TRACE = false
22
22
  @MESSAGE_DISPLAY = false
@@ -132,7 +132,9 @@ module DeepConnect
132
132
  # DC::Raise ProtocolError unless packet.size == n
133
133
  packet
134
134
  rescue Errno::ECONNRESET, EOFError
135
- puts "WARN: read中に[#{peeraddr.join(', ')}]の接続が切れました"
135
+ unless Conf.DISABLE_INFO
136
+ puts "WARN: read中に[#{peeraddr.join(', ')}]の接続が切れました"
137
+ end
136
138
  DC::Raise DisconnectClient, peeraddr
137
139
  end
138
140
  end
@@ -142,7 +144,9 @@ module DeepConnect
142
144
  @io.write(packet)
143
145
  # @io.flush
144
146
  rescue Errno::ECONNRESET
145
- puts "WARN: write中に[#{peeraddr.join(', ')}]の接続が切れました"
147
+ unless Conf.DISABLE_INFO
148
+ puts "WARN: write中に[#{peeraddr.join(', ')}]の接続が切れました"
149
+ end
146
150
  DC::Raise DisconnectClient, peeraddr
147
151
  end
148
152
  end
@@ -119,7 +119,10 @@ module DeepConnect
119
119
  waiting_events = @waiting.sort{|s1, s2| s1[0] <=> s2[0]}
120
120
  for seq, ev in waiting_events
121
121
  begin
122
- p ev
122
+ unless Conf.DISABLE_INFO
123
+ print "WARN: Remain events: "
124
+ p ev
125
+ end
123
126
  DC.Raise SessionServiceStopped
124
127
  rescue
125
128
  ev.result = ev.reply(nil, $!)
@@ -3,6 +3,6 @@
3
3
  # This file is auto generation.
4
4
  #
5
5
  module DeepConnect
6
- VERSION = "0.4.06-005"
6
+ VERSION = "0.4.06-006"
7
7
  end
8
8
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: DeepConnect
3
3
  version: !ruby/object:Gem::Version
4
- hash: 125
4
+ hash: 123
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
9
  - 6
10
- - 5
11
- version: 0.4.06.005
10
+ - 6
11
+ version: 0.4.06.006
12
12
  platform: ruby
13
13
  authors:
14
14
  - Keiju Ishitsuka
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-11-12 00:00:00 +09:00
19
+ date: 2010-11-25 00:00:00 +09:00
20
20
  default_executable:
21
21
  dependencies: []
22
22