meshchat 0.6.7 → 0.6.8
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 +4 -4
- data/lib/meshchat/cli.rb +7 -3
- data/lib/meshchat/command/base.rb +3 -0
- data/lib/meshchat/command/config.rb +4 -0
- data/lib/meshchat/command/exit.rb +4 -0
- data/lib/meshchat/command/help.rb +15 -0
- data/lib/meshchat/command/identity.rb +4 -0
- data/lib/meshchat/command/import.rb +4 -0
- data/lib/meshchat/command/irb.rb +4 -0
- data/lib/meshchat/command/listen.rb +4 -0
- data/lib/meshchat/command/offline.rb +20 -0
- data/lib/meshchat/command/online.rb +20 -0
- data/lib/meshchat/command/ping.rb +4 -0
- data/lib/meshchat/command/ping_all.rb +4 -0
- data/lib/meshchat/command/server.rb +4 -0
- data/lib/meshchat/command/share.rb +4 -0
- data/lib/meshchat/command/stop_listening.rb +4 -0
- data/lib/meshchat/command/whisper.rb +4 -0
- data/lib/meshchat/net/client.rb +1 -1
- data/lib/meshchat/version.rb +1 -1
- metadata +6 -4
- data/lib/meshchat/command/who.rb +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ceaf7ddcf414efc04b3a345133c273dc444c9448
|
4
|
+
data.tar.gz: f09b11286a5b9cf649da3f550b3c1449a33dbba3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0f60f33e20677a01decb769243b9f74d7eb485f97ff87c1eeb091e1f743f675f6a111042bb63f9eeafb624336cb476c155515d397933c015bf1248b03629cd8
|
7
|
+
data.tar.gz: d75beae12aba45a0b2680f61b35d43d9ab2b4518759fd274533e474359474196c3001bbeaf5ea05b229c5b22e3ed43ef8bdde4050b94e64537add2edb63d109c
|
data/lib/meshchat/cli.rb
CHANGED
@@ -11,7 +11,9 @@ require 'meshchat/command/whisper'
|
|
11
11
|
require 'meshchat/command/exit'
|
12
12
|
require 'meshchat/command/listen'
|
13
13
|
require 'meshchat/command/stop_listening'
|
14
|
-
require 'meshchat/command/
|
14
|
+
require 'meshchat/command/help'
|
15
|
+
require 'meshchat/command/online'
|
16
|
+
require 'meshchat/command/offline'
|
15
17
|
require 'meshchat/command/init'
|
16
18
|
require 'meshchat/command/share'
|
17
19
|
require 'meshchat/command/import'
|
@@ -31,13 +33,15 @@ module MeshChat
|
|
31
33
|
MeshChat::Command::Base::EXIT => MeshChat::Command::Exit,
|
32
34
|
MeshChat::Command::Base::QUIT => MeshChat::Command::Exit,
|
33
35
|
MeshChat::Command::Base::LISTEN => MeshChat::Command::Listen,
|
34
|
-
MeshChat::Command::Base::WHO => MeshChat::Command::Who,
|
35
36
|
MeshChat::Command::Base::IDENTITY => MeshChat::Command::Identity,
|
36
37
|
MeshChat::Command::Base::IRB => MeshChat::Command::IRB,
|
37
38
|
MeshChat::Command::Base::INIT => MeshChat::Command::Init,
|
38
39
|
MeshChat::Command::Base::SHARE => MeshChat::Command::Share,
|
39
40
|
MeshChat::Command::Base::IMPORT => MeshChat::Command::Import,
|
40
|
-
MeshChat::Command::Base::EXPORT => MeshChat::Command::Share
|
41
|
+
MeshChat::Command::Base::EXPORT => MeshChat::Command::Share,
|
42
|
+
MeshChat::Command::Base::ONLINE => MeshChat::Command::Offline,
|
43
|
+
MeshChat::Command::Base::OFFLINE => MeshChat::Command::Online,
|
44
|
+
MeshChat::Command::Base::HELP => MeshChat::Command::Help
|
41
45
|
}
|
42
46
|
|
43
47
|
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module MeshChat
|
2
|
+
class Command
|
3
|
+
class Help < Command::Base
|
4
|
+
def self.description
|
5
|
+
'displays this help message'
|
6
|
+
end
|
7
|
+
|
8
|
+
def handle
|
9
|
+
MeshChat::CLI::COMMAND_MAP.each do |key, klass|
|
10
|
+
Display.info "/#{key}\t\t" + klass.description
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/meshchat/command/irb.rb
CHANGED
@@ -0,0 +1,20 @@
|
|
1
|
+
module MeshChat
|
2
|
+
class Command
|
3
|
+
class Offline < Command::Base
|
4
|
+
def self.description
|
5
|
+
'shows offline users'
|
6
|
+
end
|
7
|
+
|
8
|
+
def handle
|
9
|
+
list = Node.offline.map(&:as_info)
|
10
|
+
msg = if list.present?
|
11
|
+
list.join(", ")
|
12
|
+
else
|
13
|
+
'no one is offline'
|
14
|
+
end
|
15
|
+
|
16
|
+
Display.info msg
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module MeshChat
|
2
|
+
class Command
|
3
|
+
class Online < Command::Base
|
4
|
+
def self.description
|
5
|
+
'shows online users'
|
6
|
+
end
|
7
|
+
|
8
|
+
def handle
|
9
|
+
list = Node.online.map(&:as_info)
|
10
|
+
msg = if list.present?
|
11
|
+
list.join(", ")
|
12
|
+
else
|
13
|
+
'no one is offline'
|
14
|
+
end
|
15
|
+
|
16
|
+
Display.info msg
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/meshchat/net/client.rb
CHANGED
data/lib/meshchat/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: meshchat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- L. Preston Sego III
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sqlite3
|
@@ -193,18 +193,20 @@ files:
|
|
193
193
|
- lib/meshchat/command/base.rb
|
194
194
|
- lib/meshchat/command/config.rb
|
195
195
|
- lib/meshchat/command/exit.rb
|
196
|
+
- lib/meshchat/command/help.rb
|
196
197
|
- lib/meshchat/command/identity.rb
|
197
198
|
- lib/meshchat/command/import.rb
|
198
199
|
- lib/meshchat/command/init.rb
|
199
200
|
- lib/meshchat/command/irb.rb
|
200
201
|
- lib/meshchat/command/listen.rb
|
202
|
+
- lib/meshchat/command/offline.rb
|
203
|
+
- lib/meshchat/command/online.rb
|
201
204
|
- lib/meshchat/command/ping.rb
|
202
205
|
- lib/meshchat/command/ping_all.rb
|
203
206
|
- lib/meshchat/command/server.rb
|
204
207
|
- lib/meshchat/command/share.rb
|
205
208
|
- lib/meshchat/command/stop_listening.rb
|
206
209
|
- lib/meshchat/command/whisper.rb
|
207
|
-
- lib/meshchat/command/who.rb
|
208
210
|
- lib/meshchat/config/hash_file.rb
|
209
211
|
- lib/meshchat/config/settings.rb
|
210
212
|
- lib/meshchat/database.rb
|
@@ -258,5 +260,5 @@ rubyforge_project:
|
|
258
260
|
rubygems_version: 2.4.8
|
259
261
|
signing_key:
|
260
262
|
specification_version: 4
|
261
|
-
summary: MeshChat-0.6.
|
263
|
+
summary: MeshChat-0.6.8
|
262
264
|
test_files: []
|