rakie 0.0.2 → 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/rakie.rb +15 -1
- data/lib/rakie/channel.rb +57 -12
- data/lib/rakie/event.rb +70 -35
- data/lib/rakie/http.rb +5 -0
- data/lib/rakie/http_proto.rb +197 -0
- data/lib/rakie/http_server.rb +134 -0
- data/lib/rakie/log.rb +96 -0
- data/lib/rakie/proto.rb +63 -0
- data/lib/rakie/simple_server.rb +7 -11
- data/lib/rakie/tcp_channel.rb +19 -3
- data/lib/rakie/tcp_server_channel.rb +32 -16
- data/lib/rakie/version.rb +11 -0
- data/lib/rakie/websocket.rb +138 -0
- data/lib/rakie/websocket_proto.rb +286 -0
- data/lib/rakie/websocket_server.rb +89 -0
- data/test/test_rakie.rb +8 -3
- metadata +13 -4
data/test/test_rakie.rb
CHANGED
@@ -1,5 +1,10 @@
|
|
1
|
-
require '
|
1
|
+
require 'minitest/autorun'
|
2
|
+
require "rakie"
|
2
3
|
|
3
|
-
class RakieTest < Test
|
4
|
-
|
4
|
+
class RakieTest < Minitest::Test
|
5
|
+
def test_log
|
6
|
+
Rakie::Log.info('test message')
|
7
|
+
Rakie::Log.error('test message')
|
8
|
+
Rakie::Log.debug('test message')
|
9
|
+
end
|
5
10
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rakie
|
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
|
- Jakit Liang
|
@@ -20,9 +20,18 @@ files:
|
|
20
20
|
- lib/rakie.rb
|
21
21
|
- lib/rakie/channel.rb
|
22
22
|
- lib/rakie/event.rb
|
23
|
+
- lib/rakie/http.rb
|
24
|
+
- lib/rakie/http_proto.rb
|
25
|
+
- lib/rakie/http_server.rb
|
26
|
+
- lib/rakie/log.rb
|
27
|
+
- lib/rakie/proto.rb
|
23
28
|
- lib/rakie/simple_server.rb
|
24
29
|
- lib/rakie/tcp_channel.rb
|
25
30
|
- lib/rakie/tcp_server_channel.rb
|
31
|
+
- lib/rakie/version.rb
|
32
|
+
- lib/rakie/websocket.rb
|
33
|
+
- lib/rakie/websocket_proto.rb
|
34
|
+
- lib/rakie/websocket_server.rb
|
26
35
|
- test/test_rakie.rb
|
27
36
|
homepage: https://github.com/Jakitto/rakie
|
28
37
|
licenses:
|
@@ -34,16 +43,16 @@ require_paths:
|
|
34
43
|
- lib
|
35
44
|
required_ruby_version: !ruby/object:Gem::Requirement
|
36
45
|
requirements:
|
37
|
-
- - "
|
46
|
+
- - ">"
|
38
47
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
48
|
+
version: '2.5'
|
40
49
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
41
50
|
requirements:
|
42
51
|
- - ">="
|
43
52
|
- !ruby/object:Gem::Version
|
44
53
|
version: '0'
|
45
54
|
requirements: []
|
46
|
-
rubygems_version: 3.
|
55
|
+
rubygems_version: 3.1.2
|
47
56
|
signing_key:
|
48
57
|
specification_version: 4
|
49
58
|
summary: Rakie!
|