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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 710b54063e97c0088cb335bbf2c4719154f0e991
4
- data.tar.gz: 0753fd460e35cc8c19e04b6c2ccb561e54d0db69
3
+ metadata.gz: 3415432144a8013572c0f6c05701d6c0da1eeb45
4
+ data.tar.gz: 8a3e85c8ce0b50b092e4c69d1d3201925dadba53
5
5
  SHA512:
6
- metadata.gz: a2190c4be4ba8bf93f23d89cb9efb5ed49d5886351689be6bdf2fa0d174d026fad10a13970fcc2a931ff2eb9a384b115615f6f3b2146dbfbb468281f0884f3e9
7
- data.tar.gz: a5fa0332c7a506523700728b1970ef32fec0ed9b31c7d8f86d489734fdffcad4499a58ab591247d686769683f97d8d302e255cab8213265988c5f7416b900b56
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
 
@@ -1,5 +1,5 @@
1
1
  # Midori Module
2
2
  module Midori
3
3
  # Current Version Code
4
- VERSION = '0.4.3'.freeze
4
+ VERSION = '0.4.4'.freeze
5
5
  end
@@ -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/heckpsi-lab/em-midori/issues), and we are glad to discuss it.
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.3
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-14 00:00:00.000000000 Z
11
+ date: 2017-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: murasaki