em-promise 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,16 @@
1
1
  h1. EM-Promise
2
2
 
3
- A promise/deferred implementation inspired by "AngularJS":http://docs.angularjs.org/api/ng.$q see this documentation for use cases.
3
+ !https://secure.travis-ci.org/cotag/em-promise.png!
4
+
5
+ A promise / deferred implementation for EventMachine inspired by "AngularJS":http://docs.angularjs.org/api/ng.$q / "Kris Kowal's Q.":https://github.com/kriskowal/q
4
6
 
5
7
  From the perspective of dealing with error handling, deferred and promise apis are to asynchronous programing what try, catch and throw keywords are to synchronous programming.
6
8
 
7
9
  <pre><code class="ruby">
10
+ require 'rubygems'
11
+ require 'eventmachine'
12
+ require 'em-promise'
13
+
8
14
  def asyncGreet(name)
9
15
  deferred = EM::Defer.new
10
16
 
@@ -30,3 +36,8 @@ EventMachine.run do
30
36
  end
31
37
 
32
38
  </code></pre>
39
+
40
+
41
+ h2. Start using it now
42
+
43
+ @gem install em-promise@
@@ -1,5 +1,5 @@
1
1
  module EventMachine
2
2
  class Defer
3
- VERSION = "1.0.2"
3
+ VERSION = "1.0.3"
4
4
  end
5
5
  end
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: em-promise
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-30 00:00:00.000000000 Z
12
+ date: 2012-11-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine
@@ -56,7 +56,7 @@ files:
56
56
  - MIT-LICENSE
57
57
  - Rakefile
58
58
  - README.textile
59
- - spec/defer.rb
59
+ - spec/defer_spec.rb
60
60
  homepage: https://github.com/cotag/em-promise
61
61
  licenses: []
62
62
  post_install_message:
@@ -82,4 +82,4 @@ signing_key:
82
82
  specification_version: 3
83
83
  summary: EventMachine based, promise/deferred implementation
84
84
  test_files:
85
- - spec/defer.rb
85
+ - spec/defer_spec.rb