em-simple_telnet 0.1.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,3 @@
1
+ module SimpleTelnet
2
+ VERSION = "0.3.0"
3
+ end
metadata CHANGED
@@ -1,27 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: em-simple_telnet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrik Wenger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-24 00:00:00.000000000 Z
11
+ date: 2016-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.11'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.11'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.0'
13
55
  - !ruby/object:Gem::Dependency
14
56
  name: eventmachine
15
57
  requirement: !ruby/object:Gem::Requirement
16
58
  requirements:
17
- - - '>='
59
+ - - ">="
18
60
  - !ruby/object:Gem::Version
19
61
  version: 1.0.0
20
62
  type: :runtime
21
63
  prerelease: false
22
64
  version_requirements: !ruby/object:Gem::Requirement
23
65
  requirements:
24
- - - '>='
66
+ - - ">="
25
67
  - !ruby/object:Gem::Version
26
68
  version: 1.0.0
27
69
  description: This library provides a very simple way to connect to telnet servers
@@ -30,14 +72,21 @@ email:
30
72
  - paddor@gmail.com
31
73
  executables: []
32
74
  extensions: []
33
- extra_rdoc_files:
34
- - README.rdoc
75
+ extra_rdoc_files: []
35
76
  files:
77
+ - ".gitignore"
78
+ - ".travis.yml"
79
+ - Gemfile
80
+ - LICENSE
81
+ - README.md
82
+ - Rakefile
83
+ - TODO
84
+ - em-simple_telnet.gemspec
36
85
  - lib/em-simple_telnet.rb
37
- - README.rdoc
86
+ - lib/em-simple_telnet/version.rb
38
87
  homepage: http://github.com/paddor/em-simple_telnet
39
88
  licenses:
40
- - BSD
89
+ - ISC
41
90
  metadata: {}
42
91
  post_install_message:
43
92
  rdoc_options: []
@@ -45,19 +94,19 @@ require_paths:
45
94
  - lib
46
95
  required_ruby_version: !ruby/object:Gem::Requirement
47
96
  requirements:
48
- - - '>='
97
+ - - ">="
49
98
  - !ruby/object:Gem::Version
50
99
  version: '0'
51
100
  required_rubygems_version: !ruby/object:Gem::Requirement
52
101
  requirements:
53
- - - '>='
102
+ - - ">="
54
103
  - !ruby/object:Gem::Version
55
104
  version: '0'
56
105
  requirements: []
57
106
  rubyforge_project:
58
- rubygems_version: 2.0.3
107
+ rubygems_version: 2.5.1
59
108
  signing_key:
60
109
  specification_version: 4
61
110
  summary: Simple telnet client on EventMachine
62
111
  test_files: []
63
- has_rdoc: true
112
+ has_rdoc:
@@ -1,47 +0,0 @@
1
- == EventMachine::Protocols::SimpleTelnet
2
-
3
- Provides telnet client functionality.
4
-
5
- This class derived from the Net::Telnet class in Ruby's standard library.
6
- It was developed with simplicity in mind. It tries to hide the complexity
7
- that normally comes with asynchronous programming using the Fiber class
8
- found in Ruby 1.9.
9
-
10
- == Overview
11
-
12
- The telnet protocol allows a client to login remotely to a user account on a
13
- server and execute commands via a shell. The equivalent is done by creating
14
- a EventMachine::Protocols::SimpleTelnet instance with the <tt>:host</tt>
15
- option set to your host along with a block which defines the task to be done
16
- on the host. Inside the task you can issue one or more #cmd calls. After the
17
- block is executed, #close is automatically called.
18
-
19
- This class can also be used to connect to non-telnet services, such as SMTP
20
- or HTTP. In this case, you normally want to provide the <tt>:port</tt>
21
- option to specify the port to connect to, and set the <tt>:telnet_mode</tt>
22
- option to +false+ to prevent the client from attempting to interpret telnet
23
- command sequences. Generally, #login will not work with other protocols,
24
- and you have to handle authentication yourself.
25
-
26
- == Examples
27
-
28
- EventMachine.run do
29
-
30
- opts = {
31
- host: "localhost",
32
- username: "user",
33
- password: "secret",
34
- }
35
-
36
- EM::P::SimpleTelnet.new(opts) do |host|
37
- # already logged in
38
- puts host.cmd("ls -la")
39
- end
40
- end
41
-
42
- == References
43
-
44
- There are a large number of RFCs relevant to the Telnet protocol.
45
- RFCs 854-861 define the base protocol. For a complete listing
46
- of relevant RFCs, see
47
- http://www.omnifarious.org/~hopper/technical/telnet-rfc.html