anyt 1.2.3 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -2
- metadata +13 -119
- data/bin/console +0 -7
- data/bin/setup +0 -8
- data/lib/anyt/cli.rb +0 -194
- data/lib/anyt/client.rb +0 -112
- data/lib/anyt/command.rb +0 -63
- data/lib/anyt/config.rb +0 -41
- data/lib/anyt/dummy/application.rb +0 -83
- data/lib/anyt/dummy/config.ru +0 -16
- data/lib/anyt/dummy/routes.rb +0 -4
- data/lib/anyt/dummy/tmp/development_secret.txt +0 -1
- data/lib/anyt/ext/minitest.rb +0 -150
- data/lib/anyt/remote_control.rb +0 -33
- data/lib/anyt/rpc.rb +0 -46
- data/lib/anyt/tests/core/ping_test.rb +0 -23
- data/lib/anyt/tests/core/welcome_test.rb +0 -10
- data/lib/anyt/tests/features/channel_state_test.rb +0 -81
- data/lib/anyt/tests/features/remote_disconnect_test.rb +0 -35
- data/lib/anyt/tests/features/server_restart_test.rb +0 -30
- data/lib/anyt/tests/request/channel_test.rb +0 -28
- data/lib/anyt/tests/request/connection_test.rb +0 -54
- data/lib/anyt/tests/request/disconnect_reasons_test.rb +0 -25
- data/lib/anyt/tests/request/disconnection_test.rb +0 -148
- data/lib/anyt/tests/streams/broadcast_test.rb +0 -65
- data/lib/anyt/tests/streams/multiple_clients_test.rb +0 -61
- data/lib/anyt/tests/streams/multiple_test.rb +0 -60
- data/lib/anyt/tests/streams/single_test.rb +0 -83
- data/lib/anyt/tests/streams/stop_test.rb +0 -57
- data/lib/anyt/tests/subscriptions/ack_test.rb +0 -39
- data/lib/anyt/tests/subscriptions/params_test.rb +0 -29
- data/lib/anyt/tests/subscriptions/perform_test.rb +0 -60
- data/lib/anyt/tests/subscriptions/transmissions_test.rb +0 -32
- data/lib/anyt/tests.rb +0 -62
- data/lib/anyt/utils/async_helpers.rb +0 -16
- data/lib/anyt/utils.rb +0 -3
- data/lib/anyt/version.rb +0 -5
- data/lib/anyt.rb +0 -14
@@ -1,16 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Anyt
|
4
|
-
module AsyncHelpers # :nodoc:
|
5
|
-
refine Object do
|
6
|
-
# Wait for block to return true of raise error
|
7
|
-
def wait(timeout = 1)
|
8
|
-
until yield
|
9
|
-
sleep 0.1
|
10
|
-
timeout -= 0.1
|
11
|
-
raise "Timeout error" unless timeout.positive?
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
data/lib/anyt/utils.rb
DELETED
data/lib/anyt/version.rb
DELETED
data/lib/anyt.rb
DELETED