rmodbus 1.0.1 → 1.0.2

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
@@ -1,8 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rmodbus
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 19
4
5
  prerelease:
5
- version: 1.0.1
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 2
10
+ version: 1.0.2
6
11
  platform: ruby
7
12
  authors:
8
13
  - A.Timin, J. Sanders, K. Reynolds
@@ -20,6 +25,9 @@ dependencies:
20
25
  requirements:
21
26
  - - ">="
22
27
  - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
23
31
  version: "0"
24
32
  type: :runtime
25
33
  version_requirements: *id001
@@ -31,6 +39,9 @@ dependencies:
31
39
  requirements:
32
40
  - - ">="
33
41
  - !ruby/object:Gem::Version
42
+ hash: 3
43
+ segments:
44
+ - 0
34
45
  version: "0"
35
46
  type: :development
36
47
  version_requirements: *id002
@@ -42,6 +53,9 @@ dependencies:
42
53
  requirements:
43
54
  - - ">="
44
55
  - !ruby/object:Gem::Version
56
+ hash: 3
57
+ segments:
58
+ - 0
45
59
  version: "0"
46
60
  type: :development
47
61
  version_requirements: *id003
@@ -53,6 +67,9 @@ dependencies:
53
67
  requirements:
54
68
  - - ">="
55
69
  - !ruby/object:Gem::Version
70
+ hash: 3
71
+ segments:
72
+ - 0
56
73
  version: "0"
57
74
  type: :development
58
75
  version_requirements: *id004
@@ -64,6 +81,9 @@ dependencies:
64
81
  requirements:
65
82
  - - ">="
66
83
  - !ruby/object:Gem::Version
84
+ hash: 3
85
+ segments:
86
+ - 0
67
87
  version: "0"
68
88
  type: :development
69
89
  version_requirements: *id005
@@ -75,6 +95,9 @@ dependencies:
75
95
  requirements:
76
96
  - - ">="
77
97
  - !ruby/object:Gem::Version
98
+ hash: 3
99
+ segments:
100
+ - 0
78
101
  version: "0"
79
102
  type: :development
80
103
  version_requirements: *id006
@@ -86,6 +109,9 @@ dependencies:
86
109
  requirements:
87
110
  - - ">="
88
111
  - !ruby/object:Gem::Version
112
+ hash: 3
113
+ segments:
114
+ - 0
89
115
  version: "0"
90
116
  type: :development
91
117
  version_requirements: *id007
@@ -156,19 +182,26 @@ required_ruby_version: !ruby/object:Gem::Requirement
156
182
  requirements:
157
183
  - - ">="
158
184
  - !ruby/object:Gem::Version
185
+ hash: 3
186
+ segments:
187
+ - 0
159
188
  version: "0"
160
189
  required_rubygems_version: !ruby/object:Gem::Requirement
161
190
  none: false
162
191
  requirements:
163
192
  - - ">="
164
193
  - !ruby/object:Gem::Version
194
+ hash: 3
195
+ segments:
196
+ - 0
165
197
  version: "0"
166
198
  requirements: []
167
199
 
168
200
  rubyforge_project:
169
- rubygems_version: 1.8.5
201
+ rubygems_version: 1.7.2
170
202
  signing_key:
171
203
  specification_version: 3
172
204
  summary: RModBus - free implementation of protocol ModBus
173
205
  test_files: []
174
206
 
207
+ has_rdoc: