meshchat 0.6.4 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +0 -0
- data/README.md +0 -0
- data/lib/meshchat.rb +0 -0
- data/lib/meshchat/cli.rb +10 -1
- data/lib/meshchat/cli/base.rb +0 -0
- data/lib/meshchat/cli/input.rb +9 -8
- data/lib/meshchat/command/base.rb +0 -0
- data/lib/meshchat/command/config.rb +0 -0
- data/lib/meshchat/command/exit.rb +0 -0
- data/lib/meshchat/command/identity.rb +0 -0
- data/lib/meshchat/command/import.rb +0 -0
- data/lib/meshchat/command/init.rb +1 -1
- data/lib/meshchat/command/irb.rb +0 -0
- data/lib/meshchat/command/listen.rb +0 -0
- data/lib/meshchat/command/ping.rb +0 -0
- data/lib/meshchat/command/ping_all.rb +0 -0
- data/lib/meshchat/command/server.rb +0 -0
- data/lib/meshchat/command/share.rb +0 -0
- data/lib/meshchat/command/stop_listening.rb +0 -0
- data/lib/meshchat/command/whisper.rb +0 -0
- data/lib/meshchat/command/who.rb +0 -0
- data/lib/meshchat/config/hash_file.rb +0 -0
- data/lib/meshchat/config/settings.rb +0 -0
- data/lib/meshchat/database.rb +0 -0
- data/lib/meshchat/display.rb +0 -0
- data/lib/meshchat/display/base.rb +0 -0
- data/lib/meshchat/display/manager.rb +0 -0
- data/lib/meshchat/encryption.rb +0 -0
- data/lib/meshchat/encryption/aes_rsa.rb +0 -0
- data/lib/meshchat/encryption/passthrough.rb +0 -0
- data/lib/meshchat/instance.rb +0 -0
- data/lib/meshchat/message.rb +0 -0
- data/lib/meshchat/message/base.rb +0 -0
- data/lib/meshchat/message/chat.rb +0 -0
- data/lib/meshchat/message/disconnection.rb +0 -0
- data/lib/meshchat/message/node_list.rb +0 -0
- data/lib/meshchat/message/node_list_diff.rb +0 -0
- data/lib/meshchat/message/node_list_hash.rb +0 -0
- data/lib/meshchat/message/ping.rb +0 -0
- data/lib/meshchat/message/ping_reply.rb +0 -0
- data/lib/meshchat/message/relay.rb +0 -0
- data/lib/meshchat/message/whisper.rb +0 -0
- data/lib/meshchat/models/entry.rb +0 -0
- data/lib/meshchat/net/client.rb +0 -0
- data/lib/meshchat/net/listener/errors.rb +0 -0
- data/lib/meshchat/net/listener/request.rb +0 -0
- data/lib/meshchat/net/listener/request_processor.rb +0 -0
- data/lib/meshchat/net/listener/server.rb +0 -0
- data/lib/meshchat/net/request.rb +0 -0
- data/lib/meshchat/notifier/base.rb +0 -0
- data/lib/meshchat/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27ef6f4b14b820a63c9a026876540a9ddd75a364
|
4
|
+
data.tar.gz: 9a5fe73e74cd8580d12200ff81d78350730bc9e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5497a247e9c63b15340e5685e31b983f2f33dbd25d58a37e78bc5b3c8665127767a58612e0277d8814881bd4e473cdb65c3f86d76f43bcc311fb91093abba82b
|
7
|
+
data.tar.gz: 42f734ecf56e0bdfb4a2dda287d113e54f2f20cde039e5f4950ff6cb3de8415376f7691841dec1a84100b5194a7b89f0e5d48a43a3370749aefc954315446d87
|
data/CHANGELOG.md
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/lib/meshchat.rb
CHANGED
File without changes
|
data/lib/meshchat/cli.rb
CHANGED
@@ -51,9 +51,14 @@ module MeshChat
|
|
51
51
|
to: :instance
|
52
52
|
|
53
53
|
def create(input_klass)
|
54
|
+
@input_klass = input_klass
|
54
55
|
@instance = new(input_klass)
|
55
56
|
end
|
56
57
|
|
58
|
+
def get_input
|
59
|
+
instance.get_input
|
60
|
+
end
|
61
|
+
|
57
62
|
def instance
|
58
63
|
# default input collector
|
59
64
|
@instance ||= new
|
@@ -75,7 +80,7 @@ module MeshChat
|
|
75
80
|
end
|
76
81
|
|
77
82
|
def process_input
|
78
|
-
msg =
|
83
|
+
msg = get_input
|
79
84
|
create_input(msg)
|
80
85
|
rescue SystemExit, Interrupt
|
81
86
|
close_program
|
@@ -85,6 +90,10 @@ module MeshChat
|
|
85
90
|
Display.error e.backtrace.join("\n").colorize(:red)
|
86
91
|
end
|
87
92
|
|
93
|
+
def get_input
|
94
|
+
_input_device.get_input
|
95
|
+
end
|
96
|
+
|
88
97
|
def create_input(msg)
|
89
98
|
handler = Input.create(msg)
|
90
99
|
handler.handle
|
data/lib/meshchat/cli/base.rb
CHANGED
File without changes
|
data/lib/meshchat/cli/input.rb
CHANGED
@@ -6,9 +6,17 @@ module MeshChat
|
|
6
6
|
attr_accessor :_input
|
7
7
|
|
8
8
|
class << self
|
9
|
+
def is_command?(input)
|
10
|
+
input[0, 1] == COMMAND
|
11
|
+
end
|
12
|
+
|
13
|
+
def is_whisper?(input)
|
14
|
+
input[0, 1] == WHISPER
|
15
|
+
end
|
16
|
+
|
9
17
|
def create(input)
|
10
18
|
klass =
|
11
|
-
if is_command(input)
|
19
|
+
if is_command?(input)
|
12
20
|
Command::Base
|
13
21
|
elsif is_whisper?(input)
|
14
22
|
Command::Whisper
|
@@ -20,13 +28,6 @@ module MeshChat
|
|
20
28
|
klass.new(input)
|
21
29
|
end
|
22
30
|
|
23
|
-
def is_command(input)
|
24
|
-
input[0, 1] == COMMAND
|
25
|
-
end
|
26
|
-
|
27
|
-
def is_whisper?(input)
|
28
|
-
input[0, 1] == WHISPER
|
29
|
-
end
|
30
31
|
end
|
31
32
|
|
32
33
|
def initialize(input)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/meshchat/command/irb.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/meshchat/command/who.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/lib/meshchat/database.rb
CHANGED
File without changes
|
data/lib/meshchat/display.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/lib/meshchat/encryption.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/lib/meshchat/instance.rb
CHANGED
File without changes
|
data/lib/meshchat/message.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/meshchat/net/client.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/meshchat/net/request.rb
CHANGED
File without changes
|
File without changes
|
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.5
|
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-10-
|
11
|
+
date: 2015-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sqlite3
|
@@ -255,9 +255,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
255
255
|
version: '0'
|
256
256
|
requirements: []
|
257
257
|
rubyforge_project:
|
258
|
-
rubygems_version: 2.4.
|
258
|
+
rubygems_version: 2.4.8
|
259
259
|
signing_key:
|
260
260
|
specification_version: 4
|
261
|
-
summary: MeshChat-0.6.
|
261
|
+
summary: MeshChat-0.6.5
|
262
262
|
test_files: []
|
263
263
|
has_rdoc:
|