acts_as_list 0.9.6 → 0.9.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5be2da067217f4dab82cf86a51c149578b3839ff
4
- data.tar.gz: ead2d7fc41857aa193f37d0f8cbd5bffbe052462
3
+ metadata.gz: 5b35b94ee2481d5aa7769ad28c831a22b32f52f1
4
+ data.tar.gz: 4225a9120de7b64301c02253360ea83c0c708e95
5
5
  SHA512:
6
- metadata.gz: fa9338e297f70fc50afd3d1ad6bf4d933883f0626f6f85a2ef79543255a4191df222a90e9b683edc95d3f613f27135538de0dc795086144e7d6bcbc4404c87a9
7
- data.tar.gz: 02f13a0c906e75a3fe32341bcaa6237c3ba4ba258bbf80809a7cc332dffb0e1d90e3ab1047335ad46f6f315a3daf2b46dadc44959d791009617588d849f99988
6
+ metadata.gz: 71ebdaf48b8d0074786a683e0022864c6750231f27b113d81830d3c902075fa4615c0c246d179657167817c82a9da4de062070b5b525a7c51eca3ba46b7db74f
7
+ data.tar.gz: ac65c86c906b4001a44641fc78806445598ab76386bcc0ee89469633b9f2fc8fb2a964eb1b7e7828fb1a5834f2b965ceaed08b9ef579757523b2f93b1943388e
@@ -1,5 +1,25 @@
1
1
  # Change Log
2
2
 
3
+ ## [v0.9.6](https://github.com/swanandp/acts_as_list/tree/v0.9.6) (2017-07-05)
4
+ [Full Changelog](https://github.com/swanandp/acts_as_list/compare/v0.9.5...v0.9.6)
5
+
6
+ **Closed issues:**
7
+
8
+ - undefined method `+' for nil:NilClass [\#278](https://github.com/swanandp/acts_as_list/issues/278)
9
+ - Enum does not scope correctly [\#277](https://github.com/swanandp/acts_as_list/issues/277)
10
+ - Can we don't use remove\_from\_list when destroy a lot objects? [\#276](https://github.com/swanandp/acts_as_list/issues/276)
11
+ - The NoUpdate code rely's on AS::Concern [\#273](https://github.com/swanandp/acts_as_list/issues/273)
12
+ - ActiveRecord associations are no longer required \(even though belongs\_to\_required\_by\_default == true\) [\#268](https://github.com/swanandp/acts_as_list/issues/268)
13
+ - Unique constraint violation on move\_higher, move\_lower, destroy [\#267](https://github.com/swanandp/acts_as_list/issues/267)
14
+
15
+ **Merged pull requests:**
16
+
17
+ - Fix Fixnum deprecation warnings. [\#282](https://github.com/swanandp/acts_as_list/pull/282) ([patrickdavey](https://github.com/patrickdavey))
18
+ - Fix update to scope that was defined with an enum [\#281](https://github.com/swanandp/acts_as_list/pull/281) ([scottmalone](https://github.com/scottmalone))
19
+ - Refactor update\_all\_with\_touch [\#279](https://github.com/swanandp/acts_as_list/pull/279) ([ledestin](https://github.com/ledestin))
20
+ - Remove AS::Concern from NoUpdate [\#274](https://github.com/swanandp/acts_as_list/pull/274) ([brendon](https://github.com/brendon))
21
+ - Use `ActiveSupport.on\_load` to hook into ActiveRecord [\#272](https://github.com/swanandp/acts_as_list/pull/272) ([brendon](https://github.com/brendon))
22
+
3
23
  ## [v0.9.5](https://github.com/swanandp/acts_as_list/tree/v0.9.5) (2017-04-04)
4
24
  [Full Changelog](https://github.com/swanandp/acts_as_list/compare/v0.9.4...v0.9.5)
5
25
 
@@ -3,7 +3,7 @@ module ActiveRecord::Acts::List::CallbackDefiner #:nodoc:
3
3
  caller_class.class_eval do
4
4
  before_validation :check_top_position, unless: :act_as_list_no_update?
5
5
 
6
- before_destroy :lock!, unless: Proc.new { destroyed_via_scope? || act_as_list_no_update? }
6
+ before_destroy :reload, unless: Proc.new { new_record? || destroyed_via_scope? || act_as_list_no_update? }
7
7
  after_destroy :decrement_positions_on_lower_items, unless: Proc.new { destroyed_via_scope? || act_as_list_no_update? }
8
8
 
9
9
  before_update :check_scope, unless: :act_as_list_no_update?
@@ -1,7 +1,7 @@
1
1
  module ActiveRecord
2
2
  module Acts
3
3
  module List
4
- VERSION = '0.9.6'
4
+ VERSION = '0.9.7'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_list
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: 0.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-07-05 00:00:00.000000000 Z
13
+ date: 2017-07-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activerecord