futuroscope 0.1.3 → 0.1.4

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: 1f21f63c70b6286439bdd32ef7a86ef0befb21db
4
- data.tar.gz: 85156df5f353d6873fac94ba17117ed080009f81
3
+ metadata.gz: 3c5bfc96787c383b381813d3545f8376c4b8be62
4
+ data.tar.gz: 0340a235f63a724fe4a8c99482f343511549fbf9
5
5
  SHA512:
6
- metadata.gz: 051c02d0403e134e54de14cb4470032180861e068d44967ac203ba60d545a6f0a8d4adf024c4e5fd5865855043b6861a6a022c434d0fdcf4311739a9f42598d4
7
- data.tar.gz: d5107af1e64ff8a977fdfc848d27a94fae8afa75cef84b6e8d3edc1dd2a862fdebd6f53b55eca44891c5a54ff4d6d82d9b97dc2416d310ed1e45153ddd566927
6
+ metadata.gz: fbae70b4f11a755a907142918eef1722b0635f177f21c4e2c4221cc17436f325106d948d039f2d4d516b8b15e0b6ffa83547432b34f0bcc7ab8e14e9c4445158
7
+ data.tar.gz: 8db0c3be748aee7e2e4a79e8b40f4085748fcf6e5af95ed5f0a8d799bd60a8fe1ba4b6e9a4b6840513ae9560e0c1a80b44cefec48cf44d487d146f53e19dfb27
data/README.md CHANGED
@@ -1,8 +1,9 @@
1
1
  # Futuroscope
2
2
  [![Gem Version](https://badge.fury.io/rb/futuroscope.png)](http://badge.fury.io/rb/futuroscope)
3
3
  [![Build Status](https://travis-ci.org/codegram/futuroscope.png?branch=master)](https://travis-ci.org/codegram/futuroscope)
4
- [![Dependency Status](https://gemnasium.com/codegram/futuroscope.png)](https://gemnasium.com/codegram/futuroscope)
4
+ [![Code Climate](https://codeclimate.com/github/codegram/futuroscope.png)](https://codeclimate.com/github/codegram/futuroscope)
5
5
  [![Coverage Status](https://coveralls.io/repos/codegram/futuroscope/badge.png?branch=master)](https://coveralls.io/r/codegram/futuroscope)
6
+ [![Dependency Status](https://gemnasium.com/codegram/futuroscope.png)](https://gemnasium.com/codegram/futuroscope)
6
7
 
7
8
  Futursocope is a simple library that implements futures in ruby. Futures are a
8
9
  concurrency pattern meant to help you deal with concurrency in a simple way.
@@ -16,15 +17,17 @@ You can learn more about futures here in this excellent article from @jpignata:
16
17
  [Concurrency Patterns in Ruby:
17
18
  Futures](http://tx.pignata.com/2012/11/concurrency-patterns-in-ruby-futures.html)
18
19
 
19
- In Futuroscope, futures are instanciated with a simple ruby block. The future's
20
+ In Futuroscope, futures are instantiated with a simple ruby block. The future's
20
21
  execution will immediately start in a different thread and when you call a
21
22
  method on in it will be forwarded to the block's return value.
22
23
 
23
24
  If the thread didn't finish yet, it will block the program's execution until
24
- it's finished. Otherwise, it will immediataly return its value.
25
+ it's finished. Otherwise, it will immediately return its value.
25
26
 
26
27
  Futuroscope is tested on `MRI 1.9.3`, `MRI 2.0.0`, `Rubinius (1.9)` and `JRuby (1.9)`.
27
28
 
29
+ Check out [futuroscope's post on Codegram's blog](http://blog.codegram.com/2013/5/new-gem-released-futuroscope) to get started.
30
+
28
31
  ## Installation
29
32
 
30
33
  Add this line to your application's Gemfile:
@@ -122,7 +125,7 @@ like they were a local variable, with the only outcome that they're returning a
122
125
  value.
123
126
 
124
127
  You have to take into account that they really run in a different thread, so
125
- you'll be potentially accessing code in parallel that could not be threadsafe.
128
+ you'll be potentially accessing code in parallel that could not be thread-safe.
126
129
 
127
130
  If you're looking for other ways to improve your code performance via
128
131
  concurrency, you should probably deal directly with [Ruby's
@@ -163,3 +166,7 @@ future = future(pool){ :edballs }
163
166
  3. Commit your changes (`git commit -am 'Add some feature'`)
164
167
  4. Push to the branch (`git push origin my-new-feature`)
165
168
  5. Create new Pull Request
169
+
170
+
171
+ [![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/codegram/futuroscope/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
172
+
@@ -1,5 +1,6 @@
1
1
  require 'thread'
2
2
  require 'delegate'
3
+ require 'forwardable'
3
4
 
4
5
  module Futuroscope
5
6
  # A Future is an object that gets initialized with a block and will behave
@@ -1,3 +1,3 @@
1
1
  module Futuroscope
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: futuroscope
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-17 00:00:00.000000000 Z
11
+ date: 2013-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler