Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add travis support, gemspec issues, proofreading, version 0.0.2

  • Loading branch information...
commit 138634b90865b1919c31b010592f37300ec836a3 1 parent 6003168
@tallakt authored
View
4 .travis.yml
@@ -0,0 +1,4 @@
+rvm:
+ - 1.8.7
+ - 1.9.3
+ - jruby
View
8 lib/modbus-cli/commands_common.rb
@@ -14,16 +14,16 @@ def host_parameter
def address_parameter
- parameter 'ADDRESS', 'Start address, in Schneider format (eg %M100, %MW100)', :attribute_name => :address do |a|
+ parameter 'ADDRESS', 'Start address (eg %M100, %MW100, 101, 400101)', :attribute_name => :address do |a|
schneider_match(a) || modicon_match(a) || raise(ArgumentError, "Illegal address #{a}")
end
end
def datatype_options
- option ["-w", "--word"], :flag, "use signed 16 bit integers"
+ option ["-w", "--word"], :flag, "use unsigned 16 bit integers"
option ["-i", "--int"], :flag, "use signed 16 bit integers"
- option ["-d", "--dword"], :flag, "use signed 16 bit integers"
- option ["-f", "--float"], :flag, "use signed 16 bit integers"
+ option ["-d", "--dword"], :flag, "use unsigned 32 bit integers"
+ option ["-f", "--float"], :flag, "use signed 32 bit floating point values"
end
def format_options
View
2  lib/modbus-cli/version.rb
@@ -1,5 +1,5 @@
module Modbus
module Cli
- VERSION = "0.0.1"
+ VERSION = "0.0.2"
end
end
View
7 modbus-cli.gemspec
@@ -20,7 +20,8 @@ Gem::Specification.new do |s|
# specify any dependencies here; for example:
# s.add_development_dependency "rspec"
- s.add_runtime_dependency "rmodbus", '= 1.1.0'
- s.add_runtime_dependency "clamp", '= 0.3.0'
- s.add_development_dependency "rspec", '= 2.7.0'
+ s.add_runtime_dependency "rmodbus", '~> 1.1'
+ s.add_runtime_dependency "clamp", '~> 0.3'
+ s.add_development_dependency "rspec", '~> 2.7'
+ s.add_development_dependency "rake", '~> 0.9'
end
Please sign in to comment.
Something went wrong with that request. Please try again.