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.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/lib/em-midori +1 -0
  3. data/lib/em-midori.rb +1 -33
  4. data/lib/midori.rb +33 -0
  5. data/lib/{em-midori → midori}/api.rb +0 -0
  6. data/lib/{em-midori → midori}/api_engine.rb +0 -0
  7. data/lib/{em-midori → midori}/clean_room.rb +0 -0
  8. data/lib/{em-midori → midori}/configure.rb +0 -0
  9. data/lib/{em-midori → midori}/const.rb +0 -0
  10. data/lib/{em-midori → midori}/core_ext/configurable.rb +0 -0
  11. data/lib/{em-midori → midori}/core_ext/define_class.rb +0 -0
  12. data/lib/{em-midori → midori}/core_ext/proc.rb +0 -0
  13. data/lib/{em-midori → midori}/core_ext/promise.rb +0 -0
  14. data/lib/{em-midori → midori}/core_ext/promise_exception.rb +0 -0
  15. data/lib/{em-midori → midori}/core_ext/safe_require.rb +0 -0
  16. data/lib/{em-midori → midori}/core_ext/string.rb +0 -0
  17. data/lib/{em-midori → midori}/eventsource.rb +0 -0
  18. data/lib/{em-midori → midori}/exception.rb +0 -0
  19. data/lib/{em-midori → midori}/extension/file.rb +0 -0
  20. data/lib/{em-midori → midori}/extension/postgres.rb +0 -0
  21. data/lib/midori/extension/redis.rb +19 -0
  22. data/lib/{em-midori → midori}/extension/sequel.rb +0 -0
  23. data/lib/{em-midori → midori}/middleware.rb +0 -0
  24. data/lib/{em-midori → midori}/request.rb +0 -0
  25. data/lib/{em-midori → midori}/response.rb +0 -0
  26. data/lib/{em-midori → midori}/route.rb +0 -0
  27. data/lib/{em-midori → midori}/runner.rb +0 -0
  28. data/lib/{em-midori → midori}/sandbox.rb +0 -0
  29. data/lib/{em-midori → midori}/server.rb +0 -0
  30. data/lib/{em-midori → midori}/version.rb +1 -1
  31. data/lib/{em-midori → midori}/websocket.rb +0 -0
  32. metadata +33 -30
  33. data/lib/em-midori/test.rb +0 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c594a9798ff422f392c80ce41020981237da1099
4
- data.tar.gz: 61bb0cd772ea378d1b773e94237c53bdae36ce69
3
+ metadata.gz: 5ff598335d9a1ea573d3ceb547a224bdc9215c82
4
+ data.tar.gz: 372cfefe1819ae33895311310da8906ba7bdcedd
5
5
  SHA512:
6
- metadata.gz: abbd732f0760554cd3f7abb2870638cc408d7f59af9de556a0414044310ce1d596d398fb3576c622cc3649b2ee0e7c55e761a299d35d9a543b74ccb4b3b68917
7
- data.tar.gz: 9666b131d560ea632e5df06377366685e8eef147e31d70a41e30af64dd2c1f4d0cfeba2c886e04736a1e65d0af0d97c09e9480d11350de76b1f508ff82b8f96e
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 '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 '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
@@ -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
@@ -1,5 +1,5 @@
1
1
  # Midori Module
2
2
  module Midori
3
3
  # Current Version Code
4
- VERSION = '0.1.5.4'.freeze
4
+ VERSION = '0.1.6'.freeze
5
5
  end
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.5.4
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-12 00:00:00.000000000 Z
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/em-midori/api.rb
65
- - lib/em-midori/api_engine.rb
66
- - lib/em-midori/clean_room.rb
67
- - lib/em-midori/configure.rb
68
- - lib/em-midori/const.rb
69
- - lib/em-midori/core_ext/configurable.rb
70
- - lib/em-midori/core_ext/define_class.rb
71
- - lib/em-midori/core_ext/proc.rb
72
- - lib/em-midori/core_ext/promise.rb
73
- - lib/em-midori/core_ext/promise_exception.rb
74
- - lib/em-midori/core_ext/safe_require.rb
75
- - lib/em-midori/core_ext/string.rb
76
- - lib/em-midori/eventsource.rb
77
- - lib/em-midori/exception.rb
78
- - lib/em-midori/extension/file.rb
79
- - lib/em-midori/extension/postgres.rb
80
- - lib/em-midori/extension/sequel.rb
81
- - lib/em-midori/middleware.rb
82
- - lib/em-midori/request.rb
83
- - lib/em-midori/response.rb
84
- - lib/em-midori/route.rb
85
- - lib/em-midori/runner.rb
86
- - lib/em-midori/sandbox.rb
87
- - lib/em-midori/server.rb
88
- - lib/em-midori/test.rb
89
- - lib/em-midori/version.rb
90
- - lib/em-midori/websocket.rb
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:
@@ -1,9 +0,0 @@
1
- module Midori::Test
2
- def initialize(api)
3
-
4
- end
5
-
6
- def request(method, path, header = {}, body)
7
-
8
- end
9
- end