em-nodes 0.2.1 → 0.2.2

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: f44eb8bcb0b4df5e9385488600479df50211defa
4
- data.tar.gz: 970f5b67eeec07cab11bbd92c1b721aaa5da8b4e
3
+ metadata.gz: 2a95a56a414282e8e364694da3c4c6047a0aabac
4
+ data.tar.gz: 8b48fd301eb081c7d35346f07aac1e30581a5a26
5
5
  SHA512:
6
- metadata.gz: 57aef1af5d9b0b1e80cf94f91c44b8a1a5b49a114a3503845ef09ee1e4c40ce06d52497f6886e413c6b4933c03ad67d279743e444576fc34afccfbe73ca29d41
7
- data.tar.gz: 5dd5839b494bd6c450bd6abb0af71fcbe208bf6b88cd109ffa863fee8cee56eafb436c9751c84df4eacaced9d01e47f6e2bfee95bbb103eb6848aaa7da98c9c6
6
+ metadata.gz: 60ed94305f6d7009fe10130dc252e740e896f472719300c660b8cf01c9b93a6b39dfb8178f3ee15c76206c8eb2b5a2f55ba0c715153ec75c24e9eff324c3a9be
7
+ data.tar.gz: af1caadc1bace8f2a75dc7d59fb09262456810fa711ff13637208d7d248d51e542db3c7cf91621ce41a97cbba0e33a98c72a3c1167eb5995672e0ba835b7643a
@@ -0,0 +1,9 @@
1
+ class EM::Nodes::DefaultClient < EM::Nodes::Client
2
+ include HelloFeature
3
+ include TaskFeature
4
+
5
+ def unbind
6
+ super
7
+ EM.next_tick { EM.stop }
8
+ end
9
+ end
@@ -0,0 +1,4 @@
1
+ class EM::Nodes::DefaultServer < EM::Nodes::Server
2
+ include HelloFeature
3
+ include TaskFeature
4
+ end
@@ -2,5 +2,5 @@ module EventMachine
2
2
  end
3
3
 
4
4
  module EventMachine::Nodes
5
- VERSION = "0.2.1"
5
+ VERSION = "0.2.2"
6
6
  end
data/lib/em-nodes.rb CHANGED
@@ -21,6 +21,9 @@ module EM::Nodes
21
21
  autoload :Server, 'em-nodes/server'
22
22
  autoload :Commands, 'em-nodes/commands'
23
23
  autoload :AbstractCommand, 'em-nodes/abstract_command'
24
+
25
+ autoload :DefaultClient, 'em-nodes/default_client'
26
+ autoload :DefaultServer, 'em-nodes/default_server'
24
27
  end
25
28
 
26
29
  require 'em-nodes/adapter'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: em-nodes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - '''Konstantin Makarchev'''
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-24 00:00:00.000000000 Z
11
+ date: 2014-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eventmachine
@@ -91,6 +91,8 @@ files:
91
91
  - lib/em-nodes/client/hello.rb
92
92
  - lib/em-nodes/client/task.rb
93
93
  - lib/em-nodes/commands.rb
94
+ - lib/em-nodes/default_client.rb
95
+ - lib/em-nodes/default_server.rb
94
96
  - lib/em-nodes/em_hacks.rb
95
97
  - lib/em-nodes/server.rb
96
98
  - lib/em-nodes/server/hello.rb