emmy-machine 0.1.12 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/emmy_machine.gemspec +6 -6
- data/lib/emmy_machine/class_methods.rb +1 -13
- data/lib/emmy_machine/version.rb +1 -1
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f34511c1efaef1f267dbc64abc55b03e4b8f4721
|
4
|
+
data.tar.gz: b3f74e3a47baa4fb505660d1252d472493a01517
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b517ae82b2ab6b6a90cba51e53e075bf0e12b5a7fd17885757864e86341a0079055a9c7f7cb1cfe48005cc6b2177ee6ee17ef39bfc8de88c7d4bde3e8ceabbd
|
7
|
+
data.tar.gz: d23017e58ef02d5fe54ece007f7120ced0ba93ea54395d80be88cd85eb2532e69abf95d46d55b97c3ac80528749f7caff087fdd7099bd93110709bbc05460871
|
data/emmy_machine.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = EmmyMachine::VERSION
|
9
9
|
spec.authors = ["inre"]
|
10
10
|
spec.email = ["inre.storm@gmail.com"]
|
11
|
-
spec.summary = %q{
|
11
|
+
spec.summary = %q{EventMachine with fibers}
|
12
12
|
#spec.description = %q{TODO: Write a longer description. Optional.}
|
13
13
|
spec.homepage = ""
|
14
14
|
spec.license = "MIT"
|
@@ -18,10 +18,10 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency "fibre", "~> 0.9
|
21
|
+
spec.add_dependency "fibre", "~> 0.9"
|
22
22
|
|
23
|
-
spec.add_development_dependency "eventmachine", "
|
24
|
-
spec.add_development_dependency "bundler",
|
25
|
-
spec.add_development_dependency "rspec",
|
26
|
-
spec.add_development_dependency "rake"
|
23
|
+
spec.add_development_dependency "eventmachine", "~> 1.0"
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.6"
|
25
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
26
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
27
27
|
end
|
@@ -36,26 +36,17 @@ module EmmyMachine
|
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
|
-
#
|
40
39
|
# One run timer
|
41
|
-
#
|
42
|
-
# timeout 5 do
|
43
|
-
# puts "This message shows after 5 seconds"
|
44
|
-
# end
|
45
|
-
#
|
46
40
|
def timeout(interval=1, &b)
|
47
41
|
EventMachine::Timer.new(interval) do
|
48
42
|
fiber_block &b
|
49
43
|
end
|
50
44
|
end
|
51
45
|
|
52
|
-
#
|
53
46
|
# Connect to remote server
|
54
47
|
#
|
55
|
-
# EmmyMachine.connect("tcp://localhost:5555")
|
56
|
-
# EmmyMachine.connect("ipc://mypoint")
|
57
48
|
# EmmyMachine.connect("tcp://localhost:5555", handler, *args)
|
58
|
-
# EmmyMachine.connect(
|
49
|
+
# EmmyMachine.connect("ipc://mypoint")
|
59
50
|
def connect(url, *a, &b)
|
60
51
|
url = URI(url.to_s)
|
61
52
|
handler = a.empty? ? Connection : a.shift
|
@@ -71,12 +62,10 @@ module EmmyMachine
|
|
71
62
|
end
|
72
63
|
end
|
73
64
|
|
74
|
-
#
|
75
65
|
# Bind server
|
76
66
|
#
|
77
67
|
# EmmyMachine.bind("tcp://localhost:5555", ServerConnection)
|
78
68
|
# EmmyMachine.bind("ipc://mypoint", ServerConnection)
|
79
|
-
# emmy.bind(*emmy.server.thin("tcp://localhost:4780", app))
|
80
69
|
def bind(url, *a, &b)
|
81
70
|
url = URI(url.to_s)
|
82
71
|
handler = a.empty? ? Connection : a.shift
|
@@ -92,7 +81,6 @@ module EmmyMachine
|
|
92
81
|
end
|
93
82
|
end
|
94
83
|
|
95
|
-
#
|
96
84
|
# Watch socket
|
97
85
|
#
|
98
86
|
# EmmyMachine.watch(socket, ClientConnection) - notify read by default
|
data/lib/emmy_machine/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emmy-machine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: '0.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- inre
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fibre
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.9
|
19
|
+
version: '0.9'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.9
|
26
|
+
version: '0.9'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: eventmachine
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.0
|
33
|
+
version: '1.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.0
|
40
|
+
version: '1.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,28 +58,28 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '3'
|
61
|
+
version: '3.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '3'
|
68
|
+
version: '3.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
75
|
+
version: '10.0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
82
|
+
version: '10.0'
|
83
83
|
description:
|
84
84
|
email:
|
85
85
|
- inre.storm@gmail.com
|
@@ -123,7 +123,7 @@ rubyforge_project:
|
|
123
123
|
rubygems_version: 2.4.6
|
124
124
|
signing_key:
|
125
125
|
specification_version: 4
|
126
|
-
summary:
|
126
|
+
summary: EventMachine with fibers
|
127
127
|
test_files:
|
128
128
|
- spec/emmy_machine_spec.rb
|
129
129
|
- spec/spec_helper.rb
|