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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b7f08aee5d888f6ec728aaf1ca42e67a28465db2
4
- data.tar.gz: 9ce7ae3230a279c09a718fc3385168c87411f5d9
2
+ SHA256:
3
+ metadata.gz: 5f6205aca10d63d37898eecce39e239605fc0a4165d17a9ad994ead94e0037dd
4
+ data.tar.gz: e1dac804253b61cabd8d5e9410784268c689771fedb9bdcad8c99a67e0b946ef
5
5
  SHA512:
6
- metadata.gz: 458283362a08bedb6e63e2465211a705aa0818ebe020eeab5de2c30341008587653637ce2dcfed0cba5646733636c6e917526a1730ddd920cc0d40ee43e91e5f
7
- data.tar.gz: ad04e635dd0e1712b4f359a77573e537bc779cc19e8bc3e827026c3bab700155f486974360d89fd451806fc2d022b3bc3cd9de6d900289c40d314cda813d1f8e
6
+ metadata.gz: 150fd36e55507f600437fe65dc3d853379799b6f5afc30c0aaa9644e36d4e025fa3ced557569f6af9e8cbbb8e484ede41281cefac7ceaecda3d6957647e5b76b
7
+ data.tar.gz: 206228583c974b3ef735d1cfb524938595856bd8741e481c80b331da1779839c4ab31073f34d615561d68f53955ea5f58c501c2d5208039522e5296233d002aa
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.2.0
4
+
5
+ * Add Rails 5.2 compatibility
6
+
3
7
  ## 1.1.1
4
8
 
5
9
  * `each_item`: Pass collection to provided block (#40)
@@ -47,7 +47,7 @@ class Acfs::Resource
47
47
  # Attributes and their values.
48
48
  #
49
49
  def attributes
50
- @attributes ||= HashWithIndifferentAccess.new
50
+ @_attrs ||= HashWithIndifferentAccess.new
51
51
  end
52
52
 
53
53
  # @api public
@@ -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
- changed_attributes.clear
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 {|_| swap_changes }
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! name if opts[:change].nil? || opts[: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
@@ -1,8 +1,8 @@
1
1
  module Acfs
2
2
  module VERSION
3
3
  MAJOR = 0
4
- MINOR = 49
5
- PATCH = 1
4
+ MINOR = 50
5
+ PATCH = 0
6
6
  STAGE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, STAGE].reject(&:nil?).join('.')
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.49.1
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: 2017-06-15 00:00:00.000000000 Z
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.5.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.