surrounded 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -149,7 +149,7 @@ This way you can swap between implementations:
149
149
  end
150
150
 
151
151
  # this uses SimpleDelegator and Surrounded
152
- role :source do
152
+ role :source, :wrap do
153
153
  def transfer
154
154
  self.balance -= amount
155
155
  destination.balance += amount
@@ -1,3 +1,3 @@
1
1
  module Surrounded
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
data/lib/surrounded.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require "surrounded/version"
2
+ require "surrounded/context"
2
3
 
3
4
  module Surrounded
4
5
  def self.included(klass)
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: surrounded
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - '''Jim Gay'''
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-08-20 00:00:00.000000000 Z
12
+ date: 2013-10-02 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: triad
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ~>
18
20
  - !ruby/object:Gem::Version
@@ -20,6 +22,7 @@ dependencies:
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - ~>
25
28
  - !ruby/object:Gem::Version
@@ -27,6 +30,7 @@ dependencies:
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: bundler
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - ~>
32
36
  - !ruby/object:Gem::Version
@@ -34,6 +38,7 @@ dependencies:
34
38
  type: :development
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - ~>
39
44
  - !ruby/object:Gem::Version
@@ -41,6 +46,7 @@ dependencies:
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: rake
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
51
  - - '>='
46
52
  - !ruby/object:Gem::Version
@@ -48,6 +54,7 @@ dependencies:
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
59
  - - '>='
53
60
  - !ruby/object:Gem::Version
@@ -85,26 +92,27 @@ files:
85
92
  homepage: http://github.com/saturnflyer/surrounded
86
93
  licenses:
87
94
  - MIT
88
- metadata: {}
89
95
  post_install_message:
90
96
  rdoc_options: []
91
97
  require_paths:
92
98
  - lib
93
99
  required_ruby_version: !ruby/object:Gem::Requirement
100
+ none: false
94
101
  requirements:
95
102
  - - '>='
96
103
  - !ruby/object:Gem::Version
97
104
  version: '0'
98
105
  required_rubygems_version: !ruby/object:Gem::Requirement
106
+ none: false
99
107
  requirements:
100
108
  - - '>='
101
109
  - !ruby/object:Gem::Version
102
110
  version: '0'
103
111
  requirements: []
104
112
  rubyforge_project:
105
- rubygems_version: 2.0.3
113
+ rubygems_version: 1.8.26
106
114
  signing_key:
107
- specification_version: 4
115
+ specification_version: 3
108
116
  summary: Create encapsulated environments for your objects.
109
117
  test_files:
110
118
  - test/example_proxy_test.rb
@@ -114,3 +122,4 @@ test_files:
114
122
  - test/surrounded_context_test.rb
115
123
  - test/surrounded_test.rb
116
124
  - test/test_helper.rb
125
+ has_rdoc:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 36e7bbdfc696cc211fbf80ab3f1c63f60b9d36ee
4
- data.tar.gz: a43d73f2915efb6a66dd4cb027a5f9bab34c058f
5
- SHA512:
6
- metadata.gz: a3b5072dac15714ce52bfa92d6bff0ccf3756f80ec9cf3ca9c722e50220f27658f58ede2c89f36f2fa29e2e0c0a0524a13021e301c68064a13b50742590de4b6
7
- data.tar.gz: 1e52f4a952f68aa1ca5773647115752237ea362c485859ab80964f1e5ea44f9a0bd4737072203fd346fc22b8607874fbb4852ec25d4619f677ef9b4cbc4dbe18