amorail 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/amorail/entity/persistance.rb +2 -10
- data/lib/amorail/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e253f1e56792978fb0a62a879cb4e664e541cbf
|
4
|
+
data.tar.gz: 194bf0bd46984a0412dc698016ae3193912fe68e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ebd35962ff10305089e74387e24647064f65915de5b4f91dbf69df02fabe110f64ad982a9c47d39b88ee5762ac0534282ea9d8341e217035daf38b00a433bb4
|
7
|
+
data.tar.gz: 1f3d42de192b1e09dfc8aa6515da4a2476907b6ed776820b9d1d079050b153f96923512660745f03112fe6a8f1c63dedbc80401cd2ca0b44ee7e83b805a6dc7c
|
@@ -17,11 +17,7 @@ module Amorail # :nodoc: all
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def save!
|
20
|
-
|
21
|
-
true
|
22
|
-
else
|
23
|
-
fail InvalidRecord
|
24
|
-
end
|
20
|
+
save || fail(InvalidRecord)
|
25
21
|
end
|
26
22
|
|
27
23
|
def update(attrs = {})
|
@@ -31,11 +27,7 @@ module Amorail # :nodoc: all
|
|
31
27
|
end
|
32
28
|
|
33
29
|
def update!(attrs = {})
|
34
|
-
|
35
|
-
true
|
36
|
-
else
|
37
|
-
fail NotPersisted
|
38
|
-
end
|
30
|
+
update(attrs) || fail(NotPersisted)
|
39
31
|
end
|
40
32
|
|
41
33
|
def reload
|
data/lib/amorail/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amorail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- alekseenkoss
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-07-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|