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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c4796542e2fa16c3955cdb2cf580d0de5c164dc
4
- data.tar.gz: 72e9a38ceed8772602b595d275cb513c482f846b
3
+ metadata.gz: 8e253f1e56792978fb0a62a879cb4e664e541cbf
4
+ data.tar.gz: 194bf0bd46984a0412dc698016ae3193912fe68e
5
5
  SHA512:
6
- metadata.gz: 37693a3312b1b70d68c71ab028f626a5e9a7ad00c72496737745ac6f650eed94a33719098c0edf2a0438fbacd1c2255736b0e86c80dd6d778201f382f0bd81f0
7
- data.tar.gz: 0ee132129868b0e1a9a18b60999f0145dfc78b0946c0b92c2e9d5d18da3b3aed8088b95020c913d0108d2072f2232c54c5e3d687c4b2111d156fb5987e1b7eda
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
- if save
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
- if update(attrs)
35
- true
36
- else
37
- fail NotPersisted
38
- end
30
+ update(attrs) || fail(NotPersisted)
39
31
  end
40
32
 
41
33
  def reload
@@ -1,4 +1,4 @@
1
1
  # Amorail version
2
2
  module Amorail
3
- VERSION = "0.3.2".freeze
3
+ VERSION = "0.3.3".freeze
4
4
  end
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.2
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-06-28 00:00:00.000000000 Z
12
+ date: 2017-07-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler