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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ecdeb71724f0d1efe13027d3acee86a7575b1f4
4
- data.tar.gz: 4523b9a2b5ebb11f93002b3190d360bc8ac667e3
3
+ metadata.gz: 23fed947b6df870405250d679abc7ddad4e621aa
4
+ data.tar.gz: 3a2c0e0a1bb6030e6cdf65a8ab2253df0c9756a3
5
5
  SHA512:
6
- metadata.gz: ed8ca771ea23774b154477690d892ae658861fe929c42511357249468a562a5a598f005ae90f0b6798dc88d292ee6c948e815c2d52a0154b74cb05079bead52a
7
- data.tar.gz: 81e4529da54237d5fe8dbe536c86eaca74c99055c60f781fe9aac6247728babeed2ac8ce19dedca4653db62390e59d7ecd88340b5cde2adf3dd4ee4bdb4d20e4
6
+ metadata.gz: faec2ae885b618eca239e55324e239a56c746997b8fa127343d109ab603c7f6ebea89f2276b85ba83fcca77ce23768aa0b2af43bdba90319a4430116930b98fe
7
+ data.tar.gz: 7163f7dc780b5bcab599e0517992bde5b8b7898d9bac549134edced469a6708fd9d12fd01e5bb10e8c99693903641805fc0fb8d0eeaf92f16e3241353d004da1
@@ -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
@@ -16,6 +16,8 @@ class Promise
16
16
  end
17
17
  end
18
18
 
19
+ ##
20
+ # Meta-programming Kernel for Syntactic Sugars
19
21
  module Kernel
20
22
  # Make fiber as async chain
21
23
  # @param [Fiber] fiber root of async chain
@@ -1,5 +1,5 @@
1
1
  # Murasaki Module
2
2
  module Murasaki
3
3
  # Current Version Code
4
- VERSION = '0.1.0'.freeze
4
+ VERSION = '0.2.0'.freeze
5
5
  end
@@ -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.1.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-06-13 00:00:00.000000000 Z
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.10
63
+ rubygems_version: 2.6.14
63
64
  signing_key:
64
65
  specification_version: 4
65
66
  summary: Event Kernel for Ruby