midori.rb 0.4.3 → 0.4.4
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/midori/api.rb +1 -1
- data/lib/midori/runner.rb +1 -1
- data/lib/midori/version.rb +1 -1
- data/lib/midori/websocket.rb +2 -2
- data/tutorial/essentials/installation.md +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3415432144a8013572c0f6c05701d6c0da1eeb45
|
4
|
+
data.tar.gz: 8a3e85c8ce0b50b092e4c69d1d3201925dadba53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fbc15decf23e5badf3cec1e4e99d959294252aeb018345d58fa0ccaf5bf9be3624bd2c4be909b6bf35eb6f26b1446eb916cb994c43899bba60836ef8cae0229
|
7
|
+
data.tar.gz: 16d01e43872f0464c81f82c9347750be7e2eec37073299046b4e25ca0fe4588142bc8153cdcb8f28562b8c0692ab0b86270aab05a1567801aa8948572853795b
|
data/lib/midori/api.rb
CHANGED
@@ -341,7 +341,7 @@ class Midori::API
|
|
341
341
|
# @return [nil] nil
|
342
342
|
private def add_route(method, path, block)
|
343
343
|
# Argument check
|
344
|
-
raise ArgumentError unless path.is_a?String
|
344
|
+
raise ArgumentError unless path.is_a? String
|
345
345
|
|
346
346
|
# Insert route to routes
|
347
347
|
route = Midori::Route.new(method, path, block)
|
data/lib/midori/runner.rb
CHANGED
@@ -14,7 +14,7 @@ class Midori::Runner
|
|
14
14
|
Midori.logger = configure.logger
|
15
15
|
@bind = configure.bind
|
16
16
|
@port = configure.port
|
17
|
-
@api = (api.is_a?Midori::APIEngine) ? api : Midori::APIEngine.new(api, configure.route_type)
|
17
|
+
@api = (api.is_a? Midori::APIEngine) ? api : Midori::APIEngine.new(api, configure.route_type)
|
18
18
|
@before = configure.before
|
19
19
|
end
|
20
20
|
|
data/lib/midori/version.rb
CHANGED
data/lib/midori/websocket.rb
CHANGED
@@ -43,7 +43,7 @@ class Midori::WebSocket
|
|
43
43
|
# Message
|
44
44
|
masked_msg = Array.new(payload) { data.getbyte }
|
45
45
|
@msg = self.mask(masked_msg, mask)
|
46
|
-
@msg = @msg.pack('C*').force_encoding('utf-8') if [0x1, 0x9, 0xA].include?opcode
|
46
|
+
@msg = @msg.pack('C*').force_encoding('utf-8') if [0x1, 0x9, 0xA].include? opcode
|
47
47
|
# For debug
|
48
48
|
# data.rewind
|
49
49
|
# data.bytes {|byte| puts byte.to_s(16)}
|
@@ -69,7 +69,7 @@ class Midori::WebSocket
|
|
69
69
|
if msg.is_a?String
|
70
70
|
output << 0b10000001 << msg.size << msg
|
71
71
|
@connection.send_data(output.pack("CCA#{msg.size}"))
|
72
|
-
elsif msg.is_a?Array
|
72
|
+
elsif msg.is_a? Array
|
73
73
|
output << 0b10000010 << msg.size
|
74
74
|
output.concat msg
|
75
75
|
@connection.send_data(output.pack('C*'))
|
@@ -25,7 +25,7 @@ Generally, midori supports the following ruby interpreters:
|
|
25
25
|
- **For JRuby users, due to some C extensions used in midori, it is still unable to run on the current version of JRuby.**
|
26
26
|
- **For macOS users, you may meet performance problem due to the issue of [nio4r](https://github.com/socketry/nio4r/issues/125). Very few people would use macOS in production, so this issue may not affect much. We would still be working hard on fixing it, but the issue wouldn't be a high priority one.**
|
27
27
|
|
28
|
-
It's hard to say that if it is possible for running on other ruby implementations like Rubinius or RubyMotion, if you're in favor of supporting more ruby implementations, you could open a ticket [here](https://github.com/
|
28
|
+
It's hard to say that if it is possible for running on other ruby implementations like Rubinius or RubyMotion, if you're in favor of supporting more ruby implementations, you could open a ticket [here](https://github.com/midori-rb/midori.rb/issues), and we are glad to discuss it.
|
29
29
|
|
30
30
|
## Install with RubyGems
|
31
31
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: midori.rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- HeckPsi Lab
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: murasaki
|