emmy-machine 0.1.6 → 0.1.7

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: c935e927a2b72deb8190de5514804dd5eb66ab5c
4
- data.tar.gz: 4102fb64a3909e5d280a1a19f7cceb34b263ad47
3
+ metadata.gz: 1ac1a7469db5e1704cb1ac1bbd4e4971ada9abde
4
+ data.tar.gz: 0cab85d909e4241c9ef3e93b88bfd45432303559
5
5
  SHA512:
6
- metadata.gz: 0f534f05d2aa42acb020c94266e521cb8b767f2ae096595fba03740d3da9a511179f1484e1547a91cc421b7377e35099f6ceddcb54d48360898b5dbf6991ed08
7
- data.tar.gz: 7491d8e178c96091c466fc8d960665df2e695eda9f3bac1132469c2aa43458912f56ce36ceb71ece4ff0dde32928b6add37716c99e46406a173eb56dfd09d503
6
+ metadata.gz: e4fcab47a28f350382020c3c024f893499db256eed7967f9cc36a7a8d11202e3fa98ddcdcdcf94e58602ae203f21d52089d96e97b4e4ead10df4365366af3308
7
+ data.tar.gz: 38860468514604b091f7125a1a563b903e6239e52cc5800f449a19a1dee54eaa03cf60a9261191297e554503ad9297e5b0821582786b74d5565b131ebcf2a052
data/Gemfile.lock ADDED
@@ -0,0 +1,37 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ emmy-machine (0.1.7)
5
+ eventmachine-le
6
+ fibre (~> 0.9)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ diff-lcs (1.2.5)
12
+ event_object (0.9.0)
13
+ eventmachine-le (1.1.7)
14
+ fibre (0.9.7)
15
+ event_object (~> 0.9)
16
+ rake (10.3.2)
17
+ rspec (3.1.0)
18
+ rspec-core (~> 3.1.0)
19
+ rspec-expectations (~> 3.1.0)
20
+ rspec-mocks (~> 3.1.0)
21
+ rspec-core (3.1.3)
22
+ rspec-support (~> 3.1.0)
23
+ rspec-expectations (3.1.1)
24
+ diff-lcs (>= 1.2.0, < 2.0)
25
+ rspec-support (~> 3.1.0)
26
+ rspec-mocks (3.1.0)
27
+ rspec-support (~> 3.1.0)
28
+ rspec-support (3.1.0)
29
+
30
+ PLATFORMS
31
+ ruby
32
+
33
+ DEPENDENCIES
34
+ bundler (~> 1.6)
35
+ emmy-machine!
36
+ rake
37
+ rspec (~> 3)
data/emmy_machine.gemspec CHANGED
@@ -6,8 +6,8 @@ require 'emmy_machine/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "emmy-machine"
8
8
  spec.version = EmmyMachine::VERSION
9
- spec.authors = ["Che"]
10
- spec.email = ["chelovekov@gmail.com"]
9
+ spec.authors = ["inre"]
10
+ spec.email = ["inre.storm@gmail.com"]
11
11
  spec.summary = %q{Fibered methods for Emmy}
12
12
  #spec.description = %q{TODO: Write a longer description. Optional.}
13
13
  spec.homepage = ""
@@ -18,7 +18,7 @@ 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 "eventmachine", "~> 1.0.3"
21
+ spec.add_dependency "eventmachine-le"#, "~> 1.0.3"
22
22
  spec.add_dependency "fibre", "~> 0.9"
23
23
  #spec.add_dependency "emmy-engine", "~> 0.1.0"
24
24
 
@@ -102,12 +102,17 @@ module EmmyMachine
102
102
  # EmmyMachine.watch(socket, ClientConnection, notify_readable: false, notify_writable: true) - notify write only
103
103
  def watch(socket, handler, *a, notify_readable: true, notify_writable: false, &b)
104
104
  b ||= a.shift if a.first.is_a?(Proc) || a.first.is_a?(Method)
105
- EventMachine::attach_io(socket, true, handler, *a, &b).tap do |conn|
105
+ EventMachine.attach_io(socket, true, handler, *a, &b).tap do |conn|
106
106
  conn.notify_readable = true if notify_readable
107
107
  conn.notify_writable = true if notify_writable
108
108
  end
109
109
  end
110
110
 
111
+ def reconnect(url, connection, *a, &b)
112
+ url = URI(url.to_s)
113
+ EventMachine.reconnect(url.host, url.port, connection, &b)
114
+ end
115
+
111
116
  def next_tick
112
117
  fiber = Fiber.current
113
118
  EventMachine.next_tick { fiber.resume }
@@ -0,0 +1,11 @@
1
+ module EmmyMachine
2
+ class Engine
3
+ include Emmy::Engine
4
+
5
+ # initializer do |app|
6
+ # end
7
+
8
+ # rake_tasks do
9
+ # end
10
+ end
11
+ end
@@ -1,3 +1,3 @@
1
1
  module EmmyMachine
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emmy-machine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
- - Che
7
+ - inre
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-20 00:00:00.000000000 Z
11
+ date: 2015-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: eventmachine
14
+ name: eventmachine-le
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 1.0.3
19
+ version: '0'
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: 1.0.3
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: fibre
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -82,13 +82,13 @@ dependencies:
82
82
  version: '0'
83
83
  description:
84
84
  email:
85
- - chelovekov@gmail.com
85
+ - inre.storm@gmail.com
86
86
  executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
- - ".gitignore"
91
90
  - Gemfile
91
+ - Gemfile.lock
92
92
  - LICENSE.txt
93
93
  - README.md
94
94
  - Rakefile
@@ -97,8 +97,15 @@ files:
97
97
  - lib/emmy_machine/class_methods.rb
98
98
  - lib/emmy_machine/connection.rb
99
99
  - lib/emmy_machine/deferred.rb
100
+ - lib/emmy_machine/engine.rb
100
101
  - lib/emmy_machine/version.rb
101
102
  - lib/emmy_machine/watcher.rb
103
+ - pkg/emmy-machine-0.1.0.gem
104
+ - pkg/emmy-machine-0.1.1.gem
105
+ - pkg/emmy-machine-0.1.2.gem
106
+ - pkg/emmy-machine-0.1.3.gem
107
+ - pkg/emmy-machine-0.1.5.gem
108
+ - pkg/emmy-machine-0.1.6.gem
102
109
  - spec/emmy_machine_spec.rb
103
110
  - spec/spec_helper.rb
104
111
  homepage: ''
@@ -121,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
128
  version: '0'
122
129
  requirements: []
123
130
  rubyforge_project:
124
- rubygems_version: 2.4.1
131
+ rubygems_version: 2.4.3
125
132
  signing_key:
126
133
  specification_version: 4
127
134
  summary: Fibered methods for Emmy
data/.gitignore DELETED
@@ -1,22 +0,0 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- Gemfile.lock
7
- InstalledFiles
8
- _yardoc
9
- coverage
10
- doc/
11
- lib/bundler/man
12
- pkg
13
- rdoc
14
- spec/reports
15
- test/tmp
16
- test/version_tmp
17
- tmp
18
- *.bundle
19
- *.so
20
- *.o
21
- *.a
22
- mkmf.log