murasaki 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/murasaki/event_loop.rb +7 -0
- data/lib/murasaki/promise.rb +2 -0
- data/lib/murasaki/version.rb +1 -1
- data/murasaki.sublime-project +16 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23fed947b6df870405250d679abc7ddad4e621aa
|
4
|
+
data.tar.gz: 3a2c0e0a1bb6030e6cdf65a8ab2253df0c9756a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: faec2ae885b618eca239e55324e239a56c746997b8fa127343d109ab603c7f6ebea89f2276b85ba83fcca77ce23768aa0b2af43bdba90319a4430116930b98fe
|
7
|
+
data.tar.gz: 7163f7dc780b5bcab599e0517992bde5b8b7898d9bac549134edced469a6708fd9d12fd01e5bb10e8c99693903641805fc0fb8d0eeaf92f16e3241353d004da1
|
data/lib/murasaki/event_loop.rb
CHANGED
@@ -13,6 +13,8 @@ module EventLoop
|
|
13
13
|
@ios = Hash.new
|
14
14
|
# IO queue
|
15
15
|
@queue = Hash.new
|
16
|
+
# Root fiber
|
17
|
+
@root_fiber = Fiber.current
|
16
18
|
end
|
17
19
|
|
18
20
|
# Add timer in event loop
|
@@ -114,5 +116,10 @@ module EventLoop
|
|
114
116
|
@stop = true if @stop.nil?
|
115
117
|
!@stop
|
116
118
|
end
|
119
|
+
|
120
|
+
def root_fiber
|
121
|
+
config if @selector.nil?
|
122
|
+
@root_fiber
|
123
|
+
end
|
117
124
|
end
|
118
125
|
end
|
data/lib/murasaki/promise.rb
CHANGED
data/lib/murasaki/version.rb
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
{
|
2
|
+
"folders":
|
3
|
+
[
|
4
|
+
{
|
5
|
+
"path": ".",
|
6
|
+
"folder_exclude_patterns": [".resources", "coverage"],
|
7
|
+
"file_exclude_patterns": ["em-midori-*.gem","*.sublime-workspace","logo.png",".DS_Store","CONTRIBUTOR_COVENANT_CODE_OF_CONDUCT.md"]
|
8
|
+
}
|
9
|
+
],
|
10
|
+
"settings":
|
11
|
+
{
|
12
|
+
"tab_size": 2,
|
13
|
+
"translate_tabs_to_spaces": true,
|
14
|
+
"trim_trailing_white_space_on_save": true
|
15
|
+
}
|
16
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: murasaki
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
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-
|
11
|
+
date: 2017-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nio4r
|
@@ -38,6 +38,7 @@ files:
|
|
38
38
|
- lib/murasaki/timer.rb
|
39
39
|
- lib/murasaki/version.rb
|
40
40
|
- murasaki.gemspec
|
41
|
+
- murasaki.sublime-project
|
41
42
|
homepage: https://github.com/heckpsi-lab/murasaki
|
42
43
|
licenses:
|
43
44
|
- MIT
|
@@ -59,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
59
60
|
version: '0'
|
60
61
|
requirements: []
|
61
62
|
rubyforge_project:
|
62
|
-
rubygems_version: 2.6.
|
63
|
+
rubygems_version: 2.6.14
|
63
64
|
signing_key:
|
64
65
|
specification_version: 4
|
65
66
|
summary: Event Kernel for Ruby
|