acts_as_list 0.9.6 → 0.9.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/lib/acts_as_list/active_record/acts/callback_definer.rb +1 -1
- data/lib/acts_as_list/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: 5b35b94ee2481d5aa7769ad28c831a22b32f52f1
|
4
|
+
data.tar.gz: 4225a9120de7b64301c02253360ea83c0c708e95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71ebdaf48b8d0074786a683e0022864c6750231f27b113d81830d3c902075fa4615c0c246d179657167817c82a9da4de062070b5b525a7c51eca3ba46b7db74f
|
7
|
+
data.tar.gz: ac65c86c906b4001a44641fc78806445598ab76386bcc0ee89469633b9f2fc8fb2a964eb1b7e7828fb1a5834f2b965ceaed08b9ef579757523b2f93b1943388e
|
data/CHANGELOG.md
CHANGED
@@ -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 :
|
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?
|
data/lib/acts_as_list/version.rb
CHANGED
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.
|
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-
|
13
|
+
date: 2017-07-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activerecord
|