rmodbus 1.0.1-java → 1.0.2-java

Sign up to get free protection for your applications and to get access to all the features.
data/NEWS.md CHANGED
@@ -1,4 +1,10 @@
1
+ 2011-07-1 Release 1.0.2
2
+ ====================================
3
+
4
+ 1. Fixed issue #9
5
+
1
6
  2011-06-30 Release 1.0.1
7
+ ====================================
2
8
 
3
9
  1. Fixed issue #8
4
10
 
data/lib/rmodbus/tcp.rb CHANGED
@@ -16,6 +16,7 @@ require 'timeout'
16
16
 
17
17
  module ModBus
18
18
  module TCP
19
+ include Errors
19
20
  include Timeout
20
21
  attr_reader :ipaddr, :port
21
22
  # Open TCP socket
@@ -20,8 +20,8 @@ module ModBus
20
20
  # end
21
21
  # end
22
22
  #
23
- # @see TCPClient#open_connection
24
- # @see TCP::open_connection
23
+ # @see TCP#open_tcp_connection
24
+ # @see Client#initialize
25
25
  class TCPClient < Client
26
26
  include TCP
27
27
 
@@ -13,5 +13,5 @@
13
13
  # GNU General Public License for more details.
14
14
  module ModBus
15
15
  # Package version
16
- VERSION = '1.0.1'
16
+ VERSION = '1.0.2'
17
17
  end
@@ -75,7 +75,7 @@ describe TCPClient do
75
75
 
76
76
  it "should tune connection timeout" do
77
77
  timeout(0.5) do
78
- lambda { ModBus::TCPClient.new('81.123.231.11', 1999, :connect_timeout => 0.1) }.should raise_error(ModBusTimeout)
78
+ lambda { ModBus::TCPClient.new('81.123.231.11', 1999, :connect_timeout => 0.1) }.should raise_error(ModBus::Errors::ModBusTimeout)
79
79
  end
80
80
  end
81
81
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rmodbus
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.1
5
+ version: 1.0.2
6
6
  platform: java
7
7
  authors:
8
8
  - A.Timin, J. Sanders, K. Reynolds