em-midori 0.1.5.4 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/em-midori +1 -0
- data/lib/em-midori.rb +1 -33
- data/lib/midori.rb +33 -0
- data/lib/{em-midori → midori}/api.rb +0 -0
- data/lib/{em-midori → midori}/api_engine.rb +0 -0
- data/lib/{em-midori → midori}/clean_room.rb +0 -0
- data/lib/{em-midori → midori}/configure.rb +0 -0
- data/lib/{em-midori → midori}/const.rb +0 -0
- data/lib/{em-midori → midori}/core_ext/configurable.rb +0 -0
- data/lib/{em-midori → midori}/core_ext/define_class.rb +0 -0
- data/lib/{em-midori → midori}/core_ext/proc.rb +0 -0
- data/lib/{em-midori → midori}/core_ext/promise.rb +0 -0
- data/lib/{em-midori → midori}/core_ext/promise_exception.rb +0 -0
- data/lib/{em-midori → midori}/core_ext/safe_require.rb +0 -0
- data/lib/{em-midori → midori}/core_ext/string.rb +0 -0
- data/lib/{em-midori → midori}/eventsource.rb +0 -0
- data/lib/{em-midori → midori}/exception.rb +0 -0
- data/lib/{em-midori → midori}/extension/file.rb +0 -0
- data/lib/{em-midori → midori}/extension/postgres.rb +0 -0
- data/lib/midori/extension/redis.rb +19 -0
- data/lib/{em-midori → midori}/extension/sequel.rb +0 -0
- data/lib/{em-midori → midori}/middleware.rb +0 -0
- data/lib/{em-midori → midori}/request.rb +0 -0
- data/lib/{em-midori → midori}/response.rb +0 -0
- data/lib/{em-midori → midori}/route.rb +0 -0
- data/lib/{em-midori → midori}/runner.rb +0 -0
- data/lib/{em-midori → midori}/sandbox.rb +0 -0
- data/lib/{em-midori → midori}/server.rb +0 -0
- data/lib/{em-midori → midori}/version.rb +1 -1
- data/lib/{em-midori → midori}/websocket.rb +0 -0
- metadata +33 -30
- data/lib/em-midori/test.rb +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ff598335d9a1ea573d3ceb547a224bdc9215c82
|
4
|
+
data.tar.gz: 372cfefe1819ae33895311310da8906ba7bdcedd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5c2d2791acebb558f5813488ae9dc91b530dab340c08dffeb6bcb1302e589b4414fc0bc708380ae5bebac40c520da04a3b6f37d1bc6389c3740592ba86caf47
|
7
|
+
data.tar.gz: 2c6d9c67b2c55c85a220ee4996fe748b488b58b1189e3d6de73c503c5d7d0d8b423e049c6d2a214d39ea367f4d6e6aa062372c71758be846ca50c2a25162a982
|
data/lib/em-midori
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
midori
|
data/lib/em-midori.rb
CHANGED
@@ -1,33 +1 @@
|
|
1
|
-
require '
|
2
|
-
require 'stringio'
|
3
|
-
require 'eventmachine'
|
4
|
-
require 'fiber'
|
5
|
-
require 'logger'
|
6
|
-
require 'http/parser'
|
7
|
-
require 'mustermann'
|
8
|
-
require 'socket'
|
9
|
-
|
10
|
-
require_relative 'em-midori/core_ext/configurable'
|
11
|
-
require_relative 'em-midori/core_ext/string'
|
12
|
-
require_relative 'em-midori/core_ext/promise'
|
13
|
-
require_relative 'em-midori/core_ext/promise_exception'
|
14
|
-
require_relative 'em-midori/core_ext/define_class'
|
15
|
-
require_relative 'em-midori/core_ext/proc'
|
16
|
-
require_relative 'em-midori/core_ext/safe_require'
|
17
|
-
|
18
|
-
require_relative 'em-midori/version'
|
19
|
-
require_relative 'em-midori/const'
|
20
|
-
require_relative 'em-midori/exception'
|
21
|
-
require_relative 'em-midori/clean_room'
|
22
|
-
require_relative 'em-midori/request'
|
23
|
-
require_relative 'em-midori/response'
|
24
|
-
require_relative 'em-midori/api'
|
25
|
-
require_relative 'em-midori/api_engine'
|
26
|
-
require_relative 'em-midori/route'
|
27
|
-
require_relative 'em-midori/sandbox'
|
28
|
-
require_relative 'em-midori/server'
|
29
|
-
require_relative 'em-midori/websocket'
|
30
|
-
require_relative 'em-midori/eventsource'
|
31
|
-
require_relative 'em-midori/middleware'
|
32
|
-
require_relative 'em-midori/configure'
|
33
|
-
require_relative 'em-midori/runner'
|
1
|
+
require 'midori'
|
data/lib/midori.rb
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'digest/sha1'
|
2
|
+
require 'stringio'
|
3
|
+
require 'eventmachine'
|
4
|
+
require 'fiber'
|
5
|
+
require 'logger'
|
6
|
+
require 'http/parser'
|
7
|
+
require 'mustermann'
|
8
|
+
require 'socket'
|
9
|
+
|
10
|
+
require_relative 'midori/core_ext/configurable'
|
11
|
+
require_relative 'midori/core_ext/string'
|
12
|
+
require_relative 'midori/core_ext/promise'
|
13
|
+
require_relative 'midori/core_ext/promise_exception'
|
14
|
+
require_relative 'midori/core_ext/define_class'
|
15
|
+
require_relative 'midori/core_ext/proc'
|
16
|
+
require_relative 'midori/core_ext/safe_require'
|
17
|
+
|
18
|
+
require_relative 'midori/version'
|
19
|
+
require_relative 'midori/const'
|
20
|
+
require_relative 'midori/exception'
|
21
|
+
require_relative 'midori/clean_room'
|
22
|
+
require_relative 'midori/request'
|
23
|
+
require_relative 'midori/response'
|
24
|
+
require_relative 'midori/api'
|
25
|
+
require_relative 'midori/api_engine'
|
26
|
+
require_relative 'midori/route'
|
27
|
+
require_relative 'midori/sandbox'
|
28
|
+
require_relative 'midori/server'
|
29
|
+
require_relative 'midori/websocket'
|
30
|
+
require_relative 'midori/eventsource'
|
31
|
+
require_relative 'midori/middleware'
|
32
|
+
require_relative 'midori/configure'
|
33
|
+
require_relative 'midori/runner'
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,19 @@
|
|
1
|
+
safe_require 'em-hiredis', 'gem install em-hiredis'
|
2
|
+
class Midori::Redis
|
3
|
+
def initialize(*args)
|
4
|
+
@connection = EM::Hiredis.connect(*args)
|
5
|
+
@connection
|
6
|
+
end
|
7
|
+
|
8
|
+
def method_missing(sys, *args)
|
9
|
+
await(Promise.new(->(resolve, _reject) {
|
10
|
+
@connection.send(sys, *args).callback do |*ret_args|
|
11
|
+
resolve.call(*ret_args)
|
12
|
+
end
|
13
|
+
}))
|
14
|
+
end
|
15
|
+
|
16
|
+
def pubsub
|
17
|
+
@connection.pubsub
|
18
|
+
end
|
19
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: em-midori
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- HeckPsi Lab
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eventmachine
|
@@ -60,38 +60,41 @@ extensions: []
|
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
62
|
- LICENSE
|
63
|
+
- lib/em-midori
|
63
64
|
- lib/em-midori.rb
|
64
|
-
- lib/
|
65
|
-
- lib/
|
66
|
-
- lib/
|
67
|
-
- lib/
|
68
|
-
- lib/
|
69
|
-
- lib/
|
70
|
-
- lib/
|
71
|
-
- lib/
|
72
|
-
- lib/
|
73
|
-
- lib/
|
74
|
-
- lib/
|
75
|
-
- lib/
|
76
|
-
- lib/
|
77
|
-
- lib/
|
78
|
-
- lib/
|
79
|
-
- lib/
|
80
|
-
- lib/
|
81
|
-
- lib/
|
82
|
-
- lib/
|
83
|
-
- lib/
|
84
|
-
- lib/
|
85
|
-
- lib/
|
86
|
-
- lib/
|
87
|
-
- lib/
|
88
|
-
- lib/
|
89
|
-
- lib/
|
90
|
-
- lib/
|
65
|
+
- lib/midori.rb
|
66
|
+
- lib/midori/api.rb
|
67
|
+
- lib/midori/api_engine.rb
|
68
|
+
- lib/midori/clean_room.rb
|
69
|
+
- lib/midori/configure.rb
|
70
|
+
- lib/midori/const.rb
|
71
|
+
- lib/midori/core_ext/configurable.rb
|
72
|
+
- lib/midori/core_ext/define_class.rb
|
73
|
+
- lib/midori/core_ext/proc.rb
|
74
|
+
- lib/midori/core_ext/promise.rb
|
75
|
+
- lib/midori/core_ext/promise_exception.rb
|
76
|
+
- lib/midori/core_ext/safe_require.rb
|
77
|
+
- lib/midori/core_ext/string.rb
|
78
|
+
- lib/midori/eventsource.rb
|
79
|
+
- lib/midori/exception.rb
|
80
|
+
- lib/midori/extension/file.rb
|
81
|
+
- lib/midori/extension/postgres.rb
|
82
|
+
- lib/midori/extension/redis.rb
|
83
|
+
- lib/midori/extension/sequel.rb
|
84
|
+
- lib/midori/middleware.rb
|
85
|
+
- lib/midori/request.rb
|
86
|
+
- lib/midori/response.rb
|
87
|
+
- lib/midori/route.rb
|
88
|
+
- lib/midori/runner.rb
|
89
|
+
- lib/midori/sandbox.rb
|
90
|
+
- lib/midori/server.rb
|
91
|
+
- lib/midori/version.rb
|
92
|
+
- lib/midori/websocket.rb
|
91
93
|
homepage: https://github.com/heckpsi-lab/em-midori
|
92
94
|
licenses:
|
93
95
|
- MIT
|
94
|
-
metadata:
|
96
|
+
metadata:
|
97
|
+
issue_tracker: https://github.com/heckpsi-lab/em-midori/issues
|
95
98
|
post_install_message:
|
96
99
|
rdoc_options: []
|
97
100
|
require_paths:
|