acfs 0.49.1 → 0.50.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +4 -0
- data/lib/acfs/resource/attributes.rb +1 -1
- data/lib/acfs/resource/dirty.rb +3 -15
- data/lib/acfs/version.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5f6205aca10d63d37898eecce39e239605fc0a4165d17a9ad994ead94e0037dd
|
4
|
+
data.tar.gz: e1dac804253b61cabd8d5e9410784268c689771fedb9bdcad8c99a67e0b946ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 150fd36e55507f600437fe65dc3d853379799b6f5afc30c0aaa9644e36d4e025fa3ced557569f6af9e8cbbb8e484ede41281cefac7ceaecda3d6957647e5b76b
|
7
|
+
data.tar.gz: 206228583c974b3ef735d1cfb524938595856bd8741e481c80b331da1779839c4ab31073f34d615561d68f53955ea5f58c501c2d5208039522e5296233d002aa
|
data/CHANGELOG.md
CHANGED
data/lib/acfs/resource/dirty.rb
CHANGED
@@ -8,26 +8,14 @@ class Acfs::Resource
|
|
8
8
|
|
9
9
|
# @api private
|
10
10
|
#
|
11
|
-
# Resets all changes. Does not touch previous changes.
|
12
|
-
#
|
13
11
|
def reset_changes
|
14
|
-
|
15
|
-
end
|
16
|
-
|
17
|
-
# @api private
|
18
|
-
#
|
19
|
-
# Save current changes as previous changes and reset
|
20
|
-
# current one.
|
21
|
-
#
|
22
|
-
def swap_changes
|
23
|
-
@previously_changed = changes
|
24
|
-
reset_changes
|
12
|
+
clear_changes_information
|
25
13
|
end
|
26
14
|
|
27
15
|
# @api private
|
28
16
|
#
|
29
17
|
def save!(*)
|
30
|
-
super.tap {|_|
|
18
|
+
super.tap {|_| changes_applied }
|
31
19
|
end
|
32
20
|
|
33
21
|
# @api private
|
@@ -40,7 +28,7 @@ class Acfs::Resource
|
|
40
28
|
# @api private
|
41
29
|
#
|
42
30
|
def write_raw_attribute(name, value, opts = {})
|
43
|
-
attribute_will_change!
|
31
|
+
attribute_will_change!(name) if opts[:change].nil? || opts[:change]
|
44
32
|
super
|
45
33
|
end
|
46
34
|
end
|
data/lib/acfs/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acfs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.50.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Graichen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -228,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
228
228
|
version: '0'
|
229
229
|
requirements: []
|
230
230
|
rubyforge_project:
|
231
|
-
rubygems_version: 2.
|
231
|
+
rubygems_version: 2.7.3
|
232
232
|
signing_key:
|
233
233
|
specification_version: 4
|
234
234
|
summary: An abstract API base client for service oriented application.
|