cooperator 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cooperator/version.rb +1 -1
- data/lib/cooperator.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd639f42458a575db4b58329a67b20c989540f1f
|
4
|
+
data.tar.gz: bbdaebba6ac71a33832956b1d84c4044abe2c643
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d9e7ca38cfe217b3364ac460ffa61fb70905cfd108af51e7e45ed176f556e14f6c9057fd3283419fb52541716e74024dbc94e9978d35b849f8c2854b418118e
|
7
|
+
data.tar.gz: ad07830f21a26cee8ccdce29ea79ad478378e4164640ebc5e493d163f4f8eb28185d695c2fccf6675b13c8b9c825a7dab9c5cce600ecf8153e57efcc88c2195f
|
data/lib/cooperator/version.rb
CHANGED
data/lib/cooperator.rb
CHANGED
@@ -47,7 +47,7 @@ module Cooperator
|
|
47
47
|
|
48
48
|
def perform(context = {})
|
49
49
|
expected.each do |property|
|
50
|
-
raise Exception, "missing expected property: #{
|
50
|
+
raise Exception, "missing expected property: #{property}" unless context.include? property
|
51
51
|
end
|
52
52
|
|
53
53
|
action = new context
|
@@ -57,7 +57,7 @@ module Cooperator
|
|
57
57
|
end
|
58
58
|
|
59
59
|
committed.each do |property|
|
60
|
-
raise Exception, "missing committed property: #{
|
60
|
+
raise Exception, "missing committed property: #{property}" unless context.include? property
|
61
61
|
end
|
62
62
|
|
63
63
|
action.context
|