cyrax 0.5.1.beta3 → 0.5.1.beta4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/cyrax/extensions/has_response.rb +6 -1
- data/lib/cyrax/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZjZiMTcyNTZiNGQwMTlmOTVjZjc3YjkxZTU4YzRkN2NkMGEyMTA2Ng==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OGVkZmYzZmFjOTY4YjgyMjMwM2Y5MzhkNDkxZWVhYTA2MjVhM2ViNw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OWJjNzJlODk1Y2FlOWViN2E5ZGM5NmU3N2UzZTlhMjc0MzVhODc5NDZlZDA0
|
10
|
+
NDUwNmFjMWU1ODJlN2M1ZDg3OTQxZDY1Y2UzNTZjOWJlNmQzNTU2YmE5YWMx
|
11
|
+
MzIwYmEzMjRiZTcxZWFlODBjYTIyMTk5ZmRiOTY2MzA2ZWZjN2Q=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YmQ4YjJjNzU2ODY3Yzg1ZjNkN2ViMDg4M2MyY2RhODkxMjkxMWM3N2RiMzA2
|
14
|
+
NDNiODQzMGU0MmU5NmMzYTJhOTcyMTFmMDhhMDUzMmNhNzc5YjcyNTgzZGI5
|
15
|
+
MTU2YzQxM2RlMWE0YTViNDYwZDdkMGI1OTBlNTBlN2UzODlmZGY=
|
@@ -24,6 +24,11 @@ module Cyrax::Extensions
|
|
24
24
|
@_assignments[resource_name.to_sym] = resource
|
25
25
|
end
|
26
26
|
|
27
|
+
def assignment(resource_name)
|
28
|
+
@_assignments ||= {}
|
29
|
+
@_assignments[resource_name]
|
30
|
+
end
|
31
|
+
|
27
32
|
def add_error_unless(key, value, condition)
|
28
33
|
add_error(key, value) unless condition
|
29
34
|
end
|
@@ -38,7 +43,7 @@ module Cyrax::Extensions
|
|
38
43
|
|
39
44
|
def add_errors_from?(model)
|
40
45
|
model = model.to_model if model.respond_to?(:to_model)
|
41
|
-
model && model.respond_to?(:errors) &&
|
46
|
+
model && model.respond_to?(:errors) &&
|
42
47
|
model.errors.respond_to?(:messages)
|
43
48
|
end
|
44
49
|
|
data/lib/cyrax/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cyrax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.1.
|
4
|
+
version: 0.5.1.beta4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Droidlabs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|