futuroscope 0.1.4 → 0.1.5

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: 3c5bfc96787c383b381813d3545f8376c4b8be62
4
- data.tar.gz: 0340a235f63a724fe4a8c99482f343511549fbf9
3
+ metadata.gz: daf750e4a6aa1a63d92cdee1044a691509e66a5b
4
+ data.tar.gz: 10fba900462e7d30740a187942e8e21795479325
5
5
  SHA512:
6
- metadata.gz: fbae70b4f11a755a907142918eef1722b0635f177f21c4e2c4221cc17436f325106d948d039f2d4d516b8b15e0b6ffa83547432b34f0bcc7ab8e14e9c4445158
7
- data.tar.gz: 8db0c3be748aee7e2e4a79e8b40f4085748fcf6e5af95ed5f0a8d799bd60a8fe1ba4b6e9a4b6840513ae9560e0c1a80b44cefec48cf44d487d146f53e19dfb27
6
+ metadata.gz: 318c21b3179feb0f053da879342c9e36957cf44ddae43de4a96265ef602cddaf60db0187b74e449f72302c6d005f5da86b40faccdeeccd32ee1f4590cda2678a
7
+ data.tar.gz: c103d17e6394815b9603d5a54765ad357c49862f33536a59c392c9f5bfdc4d119e139bb33c903cc4baf59b48d650277dce1029ed668670750537796bb3d56b68
@@ -53,6 +53,8 @@ module Futuroscope
53
53
 
54
54
  def_delegators :__getobj__, :class, :kind_of?, :is_a?, :clone
55
55
 
56
+ alias_method :future_value, :__getobj__
57
+
56
58
  private
57
59
 
58
60
  def resolved_future_value
@@ -1,3 +1,3 @@
1
1
  module Futuroscope
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
@@ -44,5 +44,12 @@ module Futuroscope
44
44
  future.inspect
45
45
  }).to raise_error(Exception)
46
46
  end
47
+
48
+ it "returns the original object when future_value gets called" do
49
+ object = mock()
50
+ future = Future.new{ object }
51
+
52
+ expect(future.future_value.object_id === object.object_id).to eq(true)
53
+ end
47
54
  end
48
55
  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.4
4
+ version: 0.1.5
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-08-15 00:00:00.000000000 Z
11
+ date: 2013-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler