cooperator 0.2.1 → 0.2.2
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.
- checksums.yaml +4 -4
- data/lib/cooperator/version.rb +1 -1
- data/lib/cooperator.rb +6 -0
- data/spec/commit.rb +18 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f341b90eda31286aff66b4d4211f86046672463
|
4
|
+
data.tar.gz: 7c3f956e40d77c7b976a815746f1230537fc9730
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: daeb2d49595dc715886ddc67ce64fa6d2d93c2d05c2f07e5ac6ece45fecf1708cbf33f5e1716959c4219ebec01dcc2bb153d4841a69145bd186b4e38993cfc4e
|
7
|
+
data.tar.gz: 0c5732021951f7483fadd2a3f488d4c082662867d0da41887a0ed5eb9ee238a1743c2f1f081b4843ef8f1147bcda416c65a65359f7ef21f437545555e2b61361
|
data/lib/cooperator/version.rb
CHANGED
data/lib/cooperator.rb
CHANGED
data/spec/commit.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'cooperator'
|
2
|
+
|
3
|
+
class Interactor
|
4
|
+
prepend Cooperator
|
5
|
+
|
6
|
+
def perform
|
7
|
+
commit apple: 'Apple'
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
scope '#commit' do
|
12
|
+
spec 'set given properties to the current context' do
|
13
|
+
context = Interactor.perform
|
14
|
+
|
15
|
+
assert context.apple, :==, 'Apple'
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cooperator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erol Fornoles
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -54,6 +54,7 @@ files:
|
|
54
54
|
- lib/cooperator.rb
|
55
55
|
- lib/cooperator/context.rb
|
56
56
|
- lib/cooperator/version.rb
|
57
|
+
- spec/commit.rb
|
57
58
|
- spec/context.rb
|
58
59
|
- spec/cooperate.rb
|
59
60
|
- spec/failure.rb
|
@@ -87,6 +88,7 @@ signing_key:
|
|
87
88
|
specification_version: 4
|
88
89
|
summary: Simple cooperative interactors for Ruby
|
89
90
|
test_files:
|
91
|
+
- spec/commit.rb
|
90
92
|
- spec/context.rb
|
91
93
|
- spec/cooperate.rb
|
92
94
|
- spec/failure.rb
|