Permalink
Browse files

Fixed issue #9

  • Loading branch information...
1 parent 84176f5 commit f4f854372487b1f73c4157e94e6ace7fd922eda0 @flipback flipback committed Jun 30, 2011
Showing with 8 additions and 2 deletions.
  1. +5 −0 NEWS.md
  2. +1 −0 lib/rmodbus/tcp.rb
  3. +1 −1 lib/rmodbus/version.rb
  4. +1 −1 spec/tcp_client_spec.rb
View
@@ -1,3 +1,8 @@
+2011-07-1 Release 1.0.2
+====================================
+
+1. Fixed issue #9
+
2011-06-30 Release 1.0.1
====================================
View
@@ -16,6 +16,7 @@
module ModBus
module TCP
+ include Errors
include Timeout
attr_reader :ipaddr, :port
# Open TCP socket
View
@@ -13,5 +13,5 @@
# GNU General Public License for more details.
module ModBus
# Package version
- VERSION = '1.0.1'
+ VERSION = '1.0.2'
end
View
@@ -75,7 +75,7 @@
it "should tune connection timeout" do
timeout(0.5) do
- lambda { ModBus::TCPClient.new('81.123.231.11', 1999, :connect_timeout => 0.1) }.should raise_error(ModBusTimeout)
+ lambda { ModBus::TCPClient.new('81.123.231.11', 1999, :connect_timeout => 0.1) }.should raise_error(ModBus::Errors::ModBusTimeout)
end
end
end

0 comments on commit f4f8543

Please sign in to comment.