acts_as_list 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_list
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swanand Pagnis
8
8
  - Brendon Muir
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-01-31 00:00:00.000000000 Z
12
+ date: 2024-06-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -17,28 +17,112 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '4.2'
20
+ version: '6.1'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: '4.2'
27
+ version: '6.1'
28
28
  - !ruby/object:Gem::Dependency
29
- name: bundler
29
+ name: activesupport
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: 1.0.0
35
- type: :development
34
+ version: '6.1'
35
+ type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: 1.0.0
41
+ version: '6.1'
42
+ - !ruby/object:Gem::Dependency
43
+ name: minitest-hooks
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: 1.5.1
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: 1.5.1
56
+ - !ruby/object:Gem::Dependency
57
+ name: mocha
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: 2.1.0
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: 2.1.0
70
+ - !ruby/object:Gem::Dependency
71
+ name: timecop
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: 0.9.8
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: 0.9.8
84
+ - !ruby/object:Gem::Dependency
85
+ name: mysql2
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - "~>"
89
+ - !ruby/object:Gem::Version
90
+ version: 0.5.6
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: 0.5.6
98
+ - !ruby/object:Gem::Dependency
99
+ name: pg
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: 1.5.5
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: 1.5.5
112
+ - !ruby/object:Gem::Dependency
113
+ name: sqlite3
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - "~>"
117
+ - !ruby/object:Gem::Version
118
+ version: 1.7.2
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - "~>"
124
+ - !ruby/object:Gem::Version
125
+ version: 1.7.2
42
126
  description: This "acts_as" extension provides the capabilities for sorting and reordering
43
127
  a number of objects in a list. The class that has this specified needs to have a
44
128
  "position" column defined as an integer on the mapped database table.
@@ -52,23 +136,14 @@ files:
52
136
  - ".gemtest"
53
137
  - ".github/FUNDING.yml"
54
138
  - ".github/dependabot.yml"
55
- - ".github/workflows/ci.yml"
139
+ - ".github/workflows/continuous_integration.yml"
56
140
  - ".gitignore"
57
- - ".travis.yml"
58
- - Appraisals
59
141
  - CHANGELOG.md
60
142
  - Gemfile
61
143
  - MIT-LICENSE
62
144
  - README.md
63
145
  - Rakefile
64
146
  - acts_as_list.gemspec
65
- - gemfiles/rails_4_2.gemfile
66
- - gemfiles/rails_5_0.gemfile
67
- - gemfiles/rails_5_1.gemfile
68
- - gemfiles/rails_5_2.gemfile
69
- - gemfiles/rails_6_0.gemfile
70
- - gemfiles/rails_6_1.gemfile
71
- - gemfiles/rails_7_0.gemfile
72
147
  - init.rb
73
148
  - lib/acts_as_list.rb
74
149
  - lib/acts_as_list/active_record/acts/active_record.rb
@@ -82,7 +157,6 @@ files:
82
157
  - lib/acts_as_list/active_record/acts/sequential_updates_method_definer.rb
83
158
  - lib/acts_as_list/active_record/acts/top_of_list_method_definer.rb
84
159
  - lib/acts_as_list/version.rb
85
- - test/database.yml
86
160
  - test/helper.rb
87
161
  - test/shared.rb
88
162
  - test/shared_array_scope_list.rb
@@ -92,6 +166,8 @@ files:
92
166
  - test/shared_quoting.rb
93
167
  - test/shared_top_addition.rb
94
168
  - test/shared_zero_based.rb
169
+ - test/support/ci_database.yml
170
+ - test/support/database.yml
95
171
  - test/test_default_scope_with_select.rb
96
172
  - test/test_joined_list.rb
97
173
  - test/test_list.rb
@@ -99,14 +175,14 @@ files:
99
175
  - test/test_no_update_for_scope_destruction.rb
100
176
  - test/test_no_update_for_subclasses.rb
101
177
  - test/test_scope_with_user_defined_foreign_key.rb
102
- homepage: http://github.com/brendon/acts_as_list
178
+ homepage: https://github.com/brendon/acts_as_list
103
179
  licenses:
104
180
  - MIT
105
181
  metadata:
106
182
  changelog_uri: https://github.com/brendon/acts_as_list/blob/master/CHANGELOG.md
107
183
  source_code_uri: https://github.com/brendon/acts_as_list
108
184
  bug_tracker_uri: https://github.com/brendon/acts_as_list/issues
109
- post_install_message:
185
+ post_install_message:
110
186
  rdoc_options: []
111
187
  require_paths:
112
188
  - lib
@@ -121,13 +197,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
197
  - !ruby/object:Gem::Version
122
198
  version: '0'
123
199
  requirements: []
124
- rubygems_version: 3.0.3.1
125
- signing_key:
200
+ rubygems_version: 3.3.7
201
+ signing_key:
126
202
  specification_version: 4
127
203
  summary: A gem adding sorting, reordering capabilities to an active_record model,
128
204
  allowing it to act as a list
129
205
  test_files:
130
- - test/database.yml
131
206
  - test/helper.rb
132
207
  - test/shared.rb
133
208
  - test/shared_array_scope_list.rb
@@ -137,6 +212,8 @@ test_files:
137
212
  - test/shared_quoting.rb
138
213
  - test/shared_top_addition.rb
139
214
  - test/shared_zero_based.rb
215
+ - test/support/ci_database.yml
216
+ - test/support/database.yml
140
217
  - test/test_default_scope_with_select.rb
141
218
  - test/test_joined_list.rb
142
219
  - test/test_list.rb
@@ -1,123 +0,0 @@
1
- ---
2
- name: CI
3
- on: [push, pull_request]
4
-
5
- jobs:
6
- tests:
7
- name: Ruby ${{ matrix.ruby }}, ${{ matrix.gemfile }}, DB ${{ matrix.db }}
8
- runs-on: ${{ matrix.os }}
9
- strategy:
10
- fail-fast: false
11
- matrix:
12
- ruby:
13
- - 2.4
14
- - 2.5
15
- - 2.6
16
- - 2.7
17
- - '3.0'
18
- - 3.1
19
- - 3.2
20
- gemfile:
21
- - gemfiles/rails_4_2.gemfile
22
- - gemfiles/rails_5_0.gemfile
23
- - gemfiles/rails_5_1.gemfile
24
- - gemfiles/rails_5_2.gemfile
25
- - gemfiles/rails_6_0.gemfile
26
- - gemfiles/rails_6_1.gemfile
27
- - gemfiles/rails_7_0.gemfile
28
- db:
29
- - sqlite
30
- - mysql
31
- - postgresql
32
- exclude:
33
- - ruby: 2.4
34
- gemfile: gemfiles/rails_6_0.gemfile
35
- - ruby: 2.4
36
- gemfile: gemfiles/rails_6_1.gemfile
37
- - ruby: 2.4
38
- gemfile: gemfiles/rails_7_0.gemfile
39
- - ruby: 2.5
40
- gemfile: gemfiles/rails_7_0.gemfile
41
- - ruby: 2.6
42
- gemfile: gemfiles/rails_7_0.gemfile
43
- - ruby: 2.7
44
- gemfile: gemfiles/rails_4_2.gemfile
45
- - ruby: 2.7
46
- gemfile: gemfiles/rails_5_0.gemfile
47
- db: sqlite
48
- - ruby: '3.0'
49
- gemfile: gemfiles/rails_4_2.gemfile
50
- - ruby: '3.0'
51
- gemfile: gemfiles/rails_5_0.gemfile
52
- - ruby: '3.0'
53
- gemfile: gemfiles/rails_5_1.gemfile
54
- - ruby: '3.0'
55
- gemfile: gemfiles/rails_5_2.gemfile
56
- - ruby: 3.1
57
- gemfile: gemfiles/rails_4_2.gemfile
58
- - ruby: 3.1
59
- gemfile: gemfiles/rails_5_0.gemfile
60
- - ruby: 3.1
61
- gemfile: gemfiles/rails_5_1.gemfile
62
- - ruby: 3.1
63
- gemfile: gemfiles/rails_5_2.gemfile
64
- - ruby: 3.1
65
- gemfile: gemfiles/rails_6_0.gemfile
66
- - ruby: 3.2
67
- gemfile: gemfiles/rails_4_2.gemfile
68
- - ruby: 3.2
69
- gemfile: gemfiles/rails_5_0.gemfile
70
- - ruby: 3.2
71
- gemfile: gemfiles/rails_5_1.gemfile
72
- - ruby: 3.2
73
- gemfile: gemfiles/rails_5_2.gemfile
74
- - ruby: 3.2
75
- gemfile: gemfiles/rails_6_0.gemfile
76
- - ruby: 3.2
77
- gemfile: gemfiles/rails_6_1.gemfile
78
- os:
79
- - ubuntu-latest
80
- services:
81
- mysql:
82
- image: mysql:5.7
83
- env:
84
- MYSQL_ALLOW_EMPTY_PASSWORD: yes
85
- ports:
86
- - 3306:3306
87
- options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
88
-
89
- postgres:
90
- # Docker Hub image
91
- image: postgres
92
- # Provide the password for postgres
93
- env:
94
- POSTGRES_USER: postgres
95
- POSTGRES_HOST_AUTH_METHOD: trust
96
- ports:
97
- - 5432:5432
98
- # Set health checks to wait until postgres has started
99
- options: >-
100
- --health-cmd pg_isready
101
- --health-interval 10s
102
- --health-timeout 5s
103
- --health-retries 5
104
- env:
105
- BUNDLE_GEMFILE: ${{ matrix.gemfile }}
106
- DB: ${{ matrix.db }}
107
- steps:
108
- - uses: actions/checkout@v3
109
- - name: Set up Ruby
110
- uses: ruby/setup-ruby@v1
111
- with:
112
- ruby-version: ${{ matrix.ruby }}
113
- bundler-cache: true
114
- - name: "Create MySQL database"
115
- if: ${{ env.DB == 'mysql' }}
116
- run: |
117
- mysql -h 127.0.0.1 -u root -e 'create database acts_as_list;'
118
- - name: "Create PostgreSQL database"
119
- if: ${{ env.DB == 'postgresql' }}
120
- run: |
121
- psql -c 'create database acts_as_list;' -h localhost -U postgres
122
- - name: Run tests
123
- run: bundle exec rake
data/.travis.yml DELETED
@@ -1,55 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
- sudo: false
4
- before_script:
5
- - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
6
- - gem install bundler -v '< 2'
7
- - mysql -e 'create database acts_as_list;'
8
- - psql -c 'create database acts_as_list;' -U postgres
9
- rvm:
10
- - 2.4
11
- - 2.5
12
- - 2.6
13
- - 2.7
14
- - 3.0
15
- services:
16
- - mysql
17
- - postgresql
18
- env:
19
- - DB=sqlite
20
- - DB=mysql
21
- - DB=postgresql
22
- gemfile:
23
- - gemfiles/rails_4_2.gemfile
24
- - gemfiles/rails_5_0.gemfile
25
- - gemfiles/rails_5_1.gemfile
26
- - gemfiles/rails_5_2.gemfile
27
- - gemfiles/rails_6_0.gemfile
28
- - gemfiles/rails_6_1.gemfile
29
- matrix:
30
- exclude:
31
- - rvm: 2.4
32
- gemfile: gemfiles/rails_6_0.gemfile
33
- - rvm: 2.4
34
- gemfile: gemfiles/rails_6_1.gemfile
35
- # Ruby 2.7 uses a `bigdecimal` version that doesn't support BigDecimal.new
36
- # that Rails 4.2 uses. See also:
37
- # https://github.com/ruby/bigdecimal#which-version-should-you-select
38
- - rvm: 2.7
39
- gemfile: gemfiles/rails_4_2.gemfile
40
- # Ruby 2.7 warning `sqlite3-1.3.13/lib/sqlite3/statement.rb:108: warning: rb_tainted_str_new is deprecated`
41
- # and job wil exceed the maximum log length
42
- # see also: https://github.com/sparklemotion/sqlite3-ruby/issues/276
43
- - rvm: 2.7
44
- gemfile: gemfiles/rails_5_0.gemfile
45
- env: DB=sqlite
46
- # Rails <6 does not support Ruby 3, see:
47
- # https://github.com/rails/rails/issues/40938#issuecomment-751898275
48
- - rvm: 3.0
49
- gemfile: gemfiles/rails_4_2.gemfile
50
- - rvm: 3.0
51
- gemfile: gemfiles/rails_5_0.gemfile
52
- - rvm: 3.0
53
- gemfile: gemfiles/rails_5_1.gemfile
54
- - rvm: 3.0
55
- gemfile: gemfiles/rails_5_2.gemfile
data/Appraisals DELETED
@@ -1,44 +0,0 @@
1
- appraise "rails-4-2" do
2
- group :mysql do
3
- gem "mysql2", "~> 0.4.0"
4
- end
5
- group :postgresql do
6
- gem "pg", "~> 0.18.4"
7
- end
8
- group :test do
9
- gem "test_after_commit", "~> 0.4.2"
10
- end
11
- group :sqlite do
12
- gem "sqlite3", "~> 1.3.13"
13
- end
14
-
15
- gem "activerecord", "~> 4.2.0"
16
- end
17
-
18
- appraise "rails-5-0" do
19
- group :sqlite do
20
- gem "sqlite3", "~> 1.3.13"
21
- end
22
-
23
- gem "activerecord", "~> 5.0.0"
24
- end
25
-
26
- appraise "rails-5-1" do
27
- gem "activerecord", "~> 5.1.0"
28
- end
29
-
30
- appraise "rails-5-2" do
31
- gem "activerecord", "~> 5.2.0"
32
- end
33
-
34
- appraise "rails-6-0" do
35
- gem "activerecord", "~> 6.0.0"
36
- end
37
-
38
- appraise "rails-6-1" do
39
- gem "activerecord", "~> 6.1.0"
40
- end
41
-
42
- appraise "rails-7-0" do
43
- gem "activerecord", "~> 7.0.0"
44
- end
@@ -1,32 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "rake"
6
- gem "appraisal"
7
- gem "activerecord", "~> 4.2.0"
8
-
9
- group :development do
10
- gem "github_changelog_generator", "1.9.0"
11
- end
12
-
13
- group :test do
14
- gem "minitest", "~> 5.0"
15
- gem "timecop"
16
- gem "mocha"
17
- gem "test_after_commit", "~> 0.4.2"
18
- end
19
-
20
- group :sqlite do
21
- gem "sqlite3", "~> 1.3.13"
22
- end
23
-
24
- group :postgresql do
25
- gem "pg", "~> 0.18.4"
26
- end
27
-
28
- group :mysql do
29
- gem "mysql2", "~> 0.4.0"
30
- end
31
-
32
- gemspec path: "../"
@@ -1,31 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "rake"
6
- gem "appraisal"
7
- gem "activerecord", "~> 5.0.0"
8
-
9
- group :development do
10
- gem "github_changelog_generator", "1.9.0"
11
- end
12
-
13
- group :test do
14
- gem "minitest", "~> 5.0"
15
- gem "timecop"
16
- gem "mocha"
17
- end
18
-
19
- group :sqlite do
20
- gem "sqlite3", "~> 1.3.13"
21
- end
22
-
23
- group :postgresql do
24
- gem "pg", "~> 1.2.0"
25
- end
26
-
27
- group :mysql do
28
- gem "mysql2", "~> 0.5.0"
29
- end
30
-
31
- gemspec path: "../"
@@ -1,31 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "rake"
6
- gem "appraisal"
7
- gem "activerecord", "~> 5.1.0"
8
-
9
- group :development do
10
- gem "github_changelog_generator", "1.9.0"
11
- end
12
-
13
- group :test do
14
- gem "minitest", "~> 5.0"
15
- gem "timecop"
16
- gem "mocha"
17
- end
18
-
19
- group :sqlite do
20
- gem "sqlite3", "~> 1.4"
21
- end
22
-
23
- group :postgresql do
24
- gem "pg", "~> 1.2.0"
25
- end
26
-
27
- group :mysql do
28
- gem "mysql2", "~> 0.5.0"
29
- end
30
-
31
- gemspec path: "../"
@@ -1,31 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "rake"
6
- gem "appraisal"
7
- gem "activerecord", "~> 5.2.0"
8
-
9
- group :development do
10
- gem "github_changelog_generator", "1.9.0"
11
- end
12
-
13
- group :test do
14
- gem "minitest", "~> 5.0"
15
- gem "timecop"
16
- gem "mocha"
17
- end
18
-
19
- group :sqlite do
20
- gem "sqlite3", "~> 1.4"
21
- end
22
-
23
- group :postgresql do
24
- gem "pg", "~> 1.2.0"
25
- end
26
-
27
- group :mysql do
28
- gem "mysql2", "~> 0.5.0"
29
- end
30
-
31
- gemspec path: "../"
@@ -1,31 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "rake"
6
- gem "appraisal"
7
- gem "activerecord", "~> 6.0.0"
8
-
9
- group :development do
10
- gem "github_changelog_generator", "1.9.0"
11
- end
12
-
13
- group :test do
14
- gem "minitest", "~> 5.0"
15
- gem "timecop"
16
- gem "mocha"
17
- end
18
-
19
- group :sqlite do
20
- gem "sqlite3", "~> 1.4"
21
- end
22
-
23
- group :postgresql do
24
- gem "pg", "~> 1.2.0"
25
- end
26
-
27
- group :mysql do
28
- gem "mysql2", "~> 0.5.0"
29
- end
30
-
31
- gemspec path: "../"
@@ -1,31 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "rake"
6
- gem "appraisal"
7
- gem "activerecord", "~> 6.1.0"
8
-
9
- group :development do
10
- gem "github_changelog_generator", "1.9.0"
11
- end
12
-
13
- group :test do
14
- gem "minitest", "~> 5.0"
15
- gem "timecop"
16
- gem "mocha"
17
- end
18
-
19
- group :sqlite do
20
- gem "sqlite3", "~> 1.4"
21
- end
22
-
23
- group :postgresql do
24
- gem "pg", "~> 1.2.0"
25
- end
26
-
27
- group :mysql do
28
- gem "mysql2", "~> 0.5.0"
29
- end
30
-
31
- gemspec path: "../"
@@ -1,31 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "rake"
6
- gem "appraisal"
7
- gem "activerecord", "~> 7.0.0"
8
-
9
- group :development do
10
- gem "github_changelog_generator", "~> 1.16.0"
11
- end
12
-
13
- group :test do
14
- gem "minitest", "~> 5.0"
15
- gem "timecop"
16
- gem "mocha"
17
- end
18
-
19
- group :sqlite do
20
- gem "sqlite3", "~> 1.4"
21
- end
22
-
23
- group :postgresql do
24
- gem "pg", "~> 1.3.0"
25
- end
26
-
27
- group :mysql do
28
- gem "mysql2", "~> 0.5.0"
29
- end
30
-
31
- gemspec path: "../"