emmy-machine 0.1.7 → 0.1.8

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: 1ac1a7469db5e1704cb1ac1bbd4e4971ada9abde
4
- data.tar.gz: 0cab85d909e4241c9ef3e93b88bfd45432303559
3
+ metadata.gz: 926dfa86e59c6cdeb60e4b99e533c063b569582e
4
+ data.tar.gz: 5d07972b608d18564d5084a6238ef1a18b369c57
5
5
  SHA512:
6
- metadata.gz: e4fcab47a28f350382020c3c024f893499db256eed7967f9cc36a7a8d11202e3fa98ddcdcdcf94e58602ae203f21d52089d96e97b4e4ead10df4365366af3308
7
- data.tar.gz: 38860468514604b091f7125a1a563b903e6239e52cc5800f449a19a1dee54eaa03cf60a9261191297e554503ad9297e5b0821582786b74d5565b131ebcf2a052
6
+ metadata.gz: bf106896979df55854cd7c6a67c38afdd82864244329009ec48d7b86f702e16947a22f4cb463668f92b7506af52092b399324da4d90a5fb0859daf8d86950822
7
+ data.tar.gz: 56034a3bba324e8f58e86367cd638255b124b9d09e7bcded97c1ac11430569c5c6f742c9c3151204e092dbcc263dc3414e306abeba02c272d5a3abaf36f7d8a2
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014 Che
1
+ Copyright (c) 2015 Inre Storm
2
2
 
3
3
  MIT License
4
4
 
data/emmy_machine.gemspec CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_dependency "eventmachine-le"#, "~> 1.0.3"
22
- spec.add_dependency "fibre", "~> 0.9"
22
+ spec.add_dependency "fibre", "~> 0.9.9"
23
23
  #spec.add_dependency "emmy-engine", "~> 0.1.0"
24
24
 
25
25
  spec.add_development_dependency "bundler", "~> 1.6"
@@ -18,12 +18,12 @@ module EmmyMachine
18
18
 
19
19
  def run_block &b
20
20
  EventMachine.run do
21
- fiber_block do
22
- begin
21
+ begin
22
+ fiber_block do
23
23
  yield
24
- ensure
25
- stop
26
24
  end
25
+ ensure
26
+ stop
27
27
  end
28
28
  end
29
29
  end
@@ -1,3 +1,3 @@
1
1
  module EmmyMachine
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
data/lib/emmy_machine.rb CHANGED
@@ -6,5 +6,6 @@ require "emmy_machine/connection"
6
6
  require "emmy_machine/class_methods"
7
7
 
8
8
  module EmmyMachine
9
+ include ClassMethods
9
10
  extend ClassMethods
10
11
  end
@@ -9,6 +9,14 @@ describe EmmyMachine do
9
9
  }.to yield_control
10
10
  end
11
11
 
12
+ it "test run_block with raise" do
13
+ expect {
14
+ EmmyMachine.run_block do
15
+ raise "error"
16
+ end
17
+ }.to raise_error FiberError
18
+ end
19
+
12
20
  it "test connect" do
13
21
  expect { |block|
14
22
  EventMachine.run do
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.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - inre
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-18 00:00:00.000000000 Z
11
+ date: 2015-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eventmachine-le
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.9'
33
+ version: 0.9.9
34
34
  type: :runtime
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: '0.9'
40
+ version: 0.9.9
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -88,7 +88,6 @@ extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
90
  - Gemfile
91
- - Gemfile.lock
92
91
  - LICENSE.txt
93
92
  - README.md
94
93
  - Rakefile
@@ -100,12 +99,6 @@ files:
100
99
  - lib/emmy_machine/engine.rb
101
100
  - lib/emmy_machine/version.rb
102
101
  - 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
109
102
  - spec/emmy_machine_spec.rb
110
103
  - spec/spec_helper.rb
111
104
  homepage: ''
data/Gemfile.lock DELETED
@@ -1,37 +0,0 @@
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)
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file