rubymas 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/rubymas.rb +19 -0
- metadata +57 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4dbb34d5c6905a57511a933c8641423c3981c846c34cb70618db628c62fffd3e
|
4
|
+
data.tar.gz: b9444b624f0bafd0552cb4533f78901995f44b6957e35633c81c3c5b5a010607
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d3e9553725dab7e80caf605ab948436fa61564c23ef40c230247a073dafa492bb2588aa1ea9485ced5fde1efd5286b84125498c6fedf0d05bce8b4da49f52a66
|
7
|
+
data.tar.gz: fc1273000b739f73ba757de3d27b55680376192473ed77a1ae99b6d581c27d032308acaa413ba0f9a2a7e06c6950189e1019ea91c19e2eecc8497491428425fd
|
data/lib/rubymas.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'net-telnet'
|
2
|
+
|
3
|
+
class RubyMas
|
4
|
+
def initialize(hash)
|
5
|
+
@connection = hash
|
6
|
+
end
|
7
|
+
|
8
|
+
def test_connect
|
9
|
+
telnet.cmd(@connection[:login]) {|c| print c}
|
10
|
+
telnet.close
|
11
|
+
end
|
12
|
+
|
13
|
+
private
|
14
|
+
def telnet
|
15
|
+
@telnet ||= Net::Telnet::new(@connection.merge({
|
16
|
+
"Timeout" => 10
|
17
|
+
}))
|
18
|
+
end
|
19
|
+
end
|
metadata
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rubymas
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Andrew Gauger
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-08-03 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: net-telnet
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
description: Your MAS90 program may vary depending on implmentation
|
28
|
+
email: andygauge@gmail.com
|
29
|
+
executables: []
|
30
|
+
extensions: []
|
31
|
+
extra_rdoc_files: []
|
32
|
+
files:
|
33
|
+
- lib/rubymas.rb
|
34
|
+
homepage: https://github.com/andygauge/rubymas
|
35
|
+
licenses:
|
36
|
+
- MIT
|
37
|
+
metadata: {}
|
38
|
+
post_install_message:
|
39
|
+
rdoc_options: []
|
40
|
+
require_paths:
|
41
|
+
- lib
|
42
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
48
|
+
requirements:
|
49
|
+
- - ">="
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: '0'
|
52
|
+
requirements: []
|
53
|
+
rubygems_version: 3.1.0.pre1
|
54
|
+
signing_key:
|
55
|
+
specification_version: 4
|
56
|
+
summary: Adapter for connecting to Mas90
|
57
|
+
test_files: []
|