modbus-cli 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +4 -0
- data/lib/modbus-cli/commands_common.rb +4 -4
- data/lib/modbus-cli/version.rb +1 -1
- data/modbus-cli.gemspec +4 -3
- metadata +26 -14
data/.travis.yml
ADDED
@@ -14,16 +14,16 @@ module Modbus
|
|
14
14
|
|
15
15
|
|
16
16
|
def address_parameter
|
17
|
-
parameter 'ADDRESS', 'Start address
|
17
|
+
parameter 'ADDRESS', 'Start address (eg %M100, %MW100, 101, 400101)', :attribute_name => :address do |a|
|
18
18
|
schneider_match(a) || modicon_match(a) || raise(ArgumentError, "Illegal address #{a}")
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
22
|
def datatype_options
|
23
|
-
option ["-w", "--word"], :flag, "use
|
23
|
+
option ["-w", "--word"], :flag, "use unsigned 16 bit integers"
|
24
24
|
option ["-i", "--int"], :flag, "use signed 16 bit integers"
|
25
|
-
option ["-d", "--dword"], :flag, "use
|
26
|
-
option ["-f", "--float"], :flag, "use signed
|
25
|
+
option ["-d", "--dword"], :flag, "use unsigned 32 bit integers"
|
26
|
+
option ["-f", "--float"], :flag, "use signed 32 bit floating point values"
|
27
27
|
end
|
28
28
|
|
29
29
|
def format_options
|
data/lib/modbus-cli/version.rb
CHANGED
data/modbus-cli.gemspec
CHANGED
@@ -20,7 +20,8 @@ Gem::Specification.new do |s|
|
|
20
20
|
|
21
21
|
# specify any dependencies here; for example:
|
22
22
|
# s.add_development_dependency "rspec"
|
23
|
-
s.add_runtime_dependency "rmodbus", '
|
24
|
-
s.add_runtime_dependency "clamp", '
|
25
|
-
s.add_development_dependency "rspec", '
|
23
|
+
s.add_runtime_dependency "rmodbus", '~> 1.1'
|
24
|
+
s.add_runtime_dependency "clamp", '~> 0.3'
|
25
|
+
s.add_development_dependency "rspec", '~> 2.7'
|
26
|
+
s.add_development_dependency "rake", '~> 0.9'
|
26
27
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: modbus-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,41 +9,52 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-12-01 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rmodbus
|
16
|
-
requirement: &
|
16
|
+
requirement: &78118570 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.1
|
21
|
+
version: '1.1'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *78118570
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: clamp
|
27
|
-
requirement: &
|
27
|
+
requirement: &78118290 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
|
-
- -
|
30
|
+
- - ~>
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0.3
|
32
|
+
version: '0.3'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *78118290
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rspec
|
38
|
-
requirement: &
|
38
|
+
requirement: &78118060 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
|
-
- -
|
41
|
+
- - ~>
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: 2.7
|
43
|
+
version: '2.7'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *78118060
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rake
|
49
|
+
requirement: &78117830 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.9'
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *78117830
|
47
58
|
description: Command line interface to communicate over Modbus TCP
|
48
59
|
email:
|
49
60
|
- tallak@tveide.net
|
@@ -53,6 +64,7 @@ extensions: []
|
|
53
64
|
extra_rdoc_files: []
|
54
65
|
files:
|
55
66
|
- .gitignore
|
67
|
+
- .travis.yml
|
56
68
|
- Gemfile
|
57
69
|
- README.markdown
|
58
70
|
- Rakefile
|