acts_as_list 0.9.0 → 0.9.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98f6fd7ba59d678e9515fb6df58506d12ac6c867
|
4
|
+
data.tar.gz: 75c8faf4b37f45f8e9141dd689fef822e5ab015f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e4b58ebd54bfe29269d18f185cc7c1976c94d6b08bac50488ad6fae17405f51dbb4850949c265548d754badb555d11eaabe2833c517119093e12ba424c5aded
|
7
|
+
data.tar.gz: f42fbba52c1da889010233b2d5df4005bb7d0f15e2b8222253a800af2c4ca882c344f8d36b4bf5df6ac875fb64ec40453f195fc9c4bbbaa996c8e6db75d15b5a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,43 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [Unreleased](https://github.com/swanandp/acts_as_list/tree/HEAD)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/swanandp/acts_as_list/compare/v0.9.0...HEAD)
|
6
|
+
|
7
|
+
**Closed issues:**
|
8
|
+
|
9
|
+
- highter\_items returns items with the same position value [\#247](https://github.com/swanandp/acts_as_list/issues/247)
|
10
|
+
- Broken with unique constraint on position [\#245](https://github.com/swanandp/acts_as_list/issues/245)
|
11
|
+
|
12
|
+
## [v0.9.0](https://github.com/swanandp/acts_as_list/tree/v0.9.0) (2017-01-23)
|
13
|
+
[Full Changelog](https://github.com/swanandp/acts_as_list/compare/v0.8.2...v0.9.0)
|
14
|
+
|
15
|
+
**Closed issues:**
|
16
|
+
|
17
|
+
- warning: too many arguments for format string [\#239](https://github.com/swanandp/acts_as_list/issues/239)
|
18
|
+
- Broken tests related to time comparison [\#238](https://github.com/swanandp/acts_as_list/issues/238)
|
19
|
+
- Shuffling positions is halting the callback chain [\#234](https://github.com/swanandp/acts_as_list/issues/234)
|
20
|
+
- Reorder positions [\#233](https://github.com/swanandp/acts_as_list/issues/233)
|
21
|
+
- Tests break when upgrading from 0.7.2 to 0.7.4 [\#228](https://github.com/swanandp/acts_as_list/issues/228)
|
22
|
+
- RE \#221 needing a test [\#226](https://github.com/swanandp/acts_as_list/issues/226)
|
23
|
+
- Adding to existing model with data and methods don't work [\#209](https://github.com/swanandp/acts_as_list/issues/209)
|
24
|
+
- Position is set incorrectly when circular dependencies exist [\#153](https://github.com/swanandp/acts_as_list/issues/153)
|
25
|
+
|
26
|
+
**Merged pull requests:**
|
27
|
+
|
28
|
+
- Revert "Updates documentation with valid string interpolation syntax" [\#250](https://github.com/swanandp/acts_as_list/pull/250) ([brendon](https://github.com/brendon))
|
29
|
+
- Updates documentation with valid string interpolation syntax [\#249](https://github.com/swanandp/acts_as_list/pull/249) ([naveedkakal](https://github.com/naveedkakal))
|
30
|
+
- Comply to tests warnings [\#248](https://github.com/swanandp/acts_as_list/pull/248) ([randoum](https://github.com/randoum))
|
31
|
+
- insert\_at respects unique not null check \(\>= 0\) db constraints [\#246](https://github.com/swanandp/acts_as_list/pull/246) ([zharikovpro](https://github.com/zharikovpro))
|
32
|
+
- acts\_as\_list\_no\_update [\#244](https://github.com/swanandp/acts_as_list/pull/244) ([randoum](https://github.com/randoum))
|
33
|
+
- Update README.md [\#243](https://github.com/swanandp/acts_as_list/pull/243) ([rahuldstiwari](https://github.com/rahuldstiwari))
|
34
|
+
- Fixed tests to prevent warning: too many arguments for format string [\#242](https://github.com/swanandp/acts_as_list/pull/242) ([brendon](https://github.com/brendon))
|
35
|
+
- Be explicit about ordering when mapping :pos [\#241](https://github.com/swanandp/acts_as_list/pull/241) ([brendon](https://github.com/brendon))
|
36
|
+
- Improve load method [\#240](https://github.com/swanandp/acts_as_list/pull/240) ([brendon](https://github.com/brendon))
|
37
|
+
- Fix non regular sequence movement [\#237](https://github.com/swanandp/acts_as_list/pull/237) ([tiagotex](https://github.com/tiagotex))
|
38
|
+
- Add travis config for testing against multiple databases [\#236](https://github.com/swanandp/acts_as_list/pull/236) ([fschwahn](https://github.com/fschwahn))
|
39
|
+
- Extract modules [\#229](https://github.com/swanandp/acts_as_list/pull/229) ([ledestin](https://github.com/ledestin))
|
40
|
+
|
3
41
|
## [v0.8.2](https://github.com/swanandp/acts_as_list/tree/v0.8.2) (2016-09-23)
|
4
42
|
[Full Changelog](https://github.com/swanandp/acts_as_list/compare/v0.8.1...v0.8.2)
|
5
43
|
|
@@ -4,7 +4,12 @@ module ActiveRecord::Acts::List::SequentialUpdatesMethodDefiner #:nodoc:
|
|
4
4
|
define_method :sequential_updates? do
|
5
5
|
if !defined?(@sequential_updates)
|
6
6
|
if sequential_updates_option.nil?
|
7
|
-
table_exists =
|
7
|
+
table_exists =
|
8
|
+
if ActiveRecord::VERSION::MAJOR >= 5
|
9
|
+
caller_class.connection.data_source_exists?(caller_class.table_name)
|
10
|
+
else
|
11
|
+
caller_class.connection.table_exists?(caller_class.table_name)
|
12
|
+
end
|
8
13
|
index_exists = caller_class.connection.index_exists?(caller_class.table_name, column, unique: true)
|
9
14
|
@sequential_updates = table_exists && index_exists
|
10
15
|
else
|
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.1
|
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-01-
|
13
|
+
date: 2017-01-26 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activerecord
|