ambidexter 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/client.rb +4 -5
- data/lib/server.rb +1 -2
- metadata +1 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdbb61c2bfbd666b093e3e43ed38b0ce212e6798
|
4
|
+
data.tar.gz: 0e45606a616c4e2a69c3a78882e1bdd87d83bac9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f1b5d7e4da6eabc40968c387b902abab6df634fa44ecddbc5608979ba12402ea5870723d0738a282c74c0f8f2a513e1beb35bb2827ea13c3b72ee6eeebd7c7e
|
7
|
+
data.tar.gz: 333067314a1f8a8515976118a10907a9ef36fc828324cb72f9eb4e26a8a109bbe13aec5d0e1b4c29fecd4daa8f40c6b8d740035ce4447e358ce05ce56bfcea28
|
data/lib/client.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
require "application"
|
2
2
|
require "curb"
|
3
3
|
require "colorize"
|
4
|
-
require "pry"
|
5
4
|
|
6
5
|
class Client < Application
|
7
6
|
def initialize
|
@@ -15,8 +14,8 @@ class Client < Application
|
|
15
14
|
@port = $stdin.gets.chomp
|
16
15
|
@port = '5899' if blank? @port
|
17
16
|
|
18
|
-
# Setting
|
19
|
-
print "Input
|
17
|
+
# Setting iterations count
|
18
|
+
print "Input iterations count: ".green
|
20
19
|
@each_count = $stdin.gets.chomp.to_i
|
21
20
|
@each_count = 1 if @each_count.zero?
|
22
21
|
|
@@ -25,7 +24,7 @@ class Client < Application
|
|
25
24
|
@threads_count = $stdin.gets.chomp.to_i
|
26
25
|
@threads_count = 1 if @threads_count.zero?
|
27
26
|
|
28
|
-
# Setting
|
27
|
+
# Setting timeout
|
29
28
|
print "Input timeout: ".green
|
30
29
|
@http_timeout = $stdin.gets.chomp.to_f
|
31
30
|
@http_timeout = 10 if @http_timeout.zero?
|
@@ -33,7 +32,7 @@ class Client < Application
|
|
33
32
|
# Building link
|
34
33
|
@uri = "http://#{@ip}:#{@port}"
|
35
34
|
|
36
|
-
#
|
35
|
+
# Variables
|
37
36
|
@req_times = []
|
38
37
|
@threads = []
|
39
38
|
@package_loss = 0
|
data/lib/server.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
require "pry"
|
2
1
|
require "application"
|
3
2
|
require "webrick"
|
4
3
|
include WEBrick
|
@@ -138,7 +137,7 @@ class Server < Application
|
|
138
137
|
end
|
139
138
|
puts "#{package_rec} Packages received".yellow
|
140
139
|
puts
|
141
|
-
|
140
|
+
puts "Made by Oleg Cherednichenko 2017, KNURE".rjust 66
|
142
141
|
puts '------------------------------------------------------------------'.green
|
143
142
|
end
|
144
143
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ambidexter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oleg Cherednichenko
|
@@ -52,20 +52,6 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 0.0.7
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: pry
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 0.10.4
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 0.10.4
|
69
55
|
description: Ambidexter hands two hands and will give bouth to help you in testing
|
70
56
|
your network for HTTP stuff
|
71
57
|
email: olegh.cherednichenko@gmail.com
|