active_sort_order 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -75,7 +75,7 @@ class ActiveSortOrderTest < ActiveSupport::TestCase
75
75
 
76
76
  ### NIL & FALSE
77
77
  [nil, false].each do |v|
78
- sorted = PostWithBaseOrderA.order(a: :desc).sort_order(base_sort_order: v)
78
+ sorted = PostWithBaseOrderA.order(id: :asc).sort_order(base_sort_order: v)
79
79
 
80
80
  sorted.each_with_index do |item, i|
81
81
  assert_equal expected[i].id, item.id
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_sort_order
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Weston Ganger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-01 00:00:00.000000000 Z
11
+ date: 2021-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -97,46 +97,46 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  - !ruby/object:Gem::Version
98
98
  version: '0'
99
99
  requirements: []
100
- rubygems_version: 3.1.2
100
+ rubygems_version: 3.1.4
101
101
  signing_key:
102
102
  specification_version: 4
103
103
  summary: The "easy-peasy" dynamic sorting pattern for ActiveRecord that your Rails
104
104
  apps deserve.
105
105
  test_files:
106
- - test/test_helper.rb
107
106
  - test/unit/active_sort_order_test.rb
108
107
  - test/unit/errors_test.rb
109
- - test/dummy_app/app/models/post_with_volatile_base_order.rb
110
- - test/dummy_app/app/models/post_with_base_order_a_and_b.rb
111
- - test/dummy_app/app/models/application_record.rb
108
+ - test/test_helper.rb
112
109
  - test/dummy_app/app/models/post_with_base_order_b_and_a.rb
113
110
  - test/dummy_app/app/models/post_with_base_order_a.rb
111
+ - test/dummy_app/app/models/post_with_base_order_a_and_b.rb
112
+ - test/dummy_app/app/models/post_with_volatile_base_order.rb
114
113
  - test/dummy_app/app/models/post_with_base_order_b.rb
114
+ - test/dummy_app/app/models/application_record.rb
115
115
  - test/dummy_app/app/models/post.rb
116
+ - test/dummy_app/app/controllers/application_controller.rb
116
117
  - test/dummy_app/app/views/layouts/application.html.erb
117
- - test/dummy_app/app/assets/stylesheets/application.css
118
118
  - test/dummy_app/app/assets/config/manifest.js
119
119
  - test/dummy_app/app/assets/javascripts/application.js
120
- - test/dummy_app/app/controllers/application_controller.rb
121
- - test/dummy_app/config.ru
122
- - test/dummy_app/log/test.log
123
- - test/dummy_app/config/database.yml
120
+ - test/dummy_app/app/assets/stylesheets/application.css
121
+ - test/dummy_app/config/secrets.yml
122
+ - test/dummy_app/config/routes.rb
123
+ - test/dummy_app/config/locales/en.yml
124
124
  - test/dummy_app/config/environments/production.rb
125
- - test/dummy_app/config/environments/test.rb
126
125
  - test/dummy_app/config/environments/development.rb
127
- - test/dummy_app/config/routes.rb
126
+ - test/dummy_app/config/environments/test.rb
128
127
  - test/dummy_app/config/environment.rb
129
- - test/dummy_app/config/locales/en.yml
128
+ - test/dummy_app/config/application.rb
129
+ - test/dummy_app/config/database.yml
130
130
  - test/dummy_app/config/boot.rb
131
- - test/dummy_app/config/initializers/secret_token.rb
132
- - test/dummy_app/config/initializers/inflections.rb
131
+ - test/dummy_app/config/initializers/backtrace_silencers.rb
133
132
  - test/dummy_app/config/initializers/mime_types.rb
134
133
  - test/dummy_app/config/initializers/session_store.rb
135
134
  - test/dummy_app/config/initializers/wrap_parameters.rb
136
- - test/dummy_app/config/initializers/backtrace_silencers.rb
137
- - test/dummy_app/config/secrets.yml
138
- - test/dummy_app/config/application.rb
135
+ - test/dummy_app/config/initializers/secret_token.rb
136
+ - test/dummy_app/config/initializers/inflections.rb
137
+ - test/dummy_app/config.ru
139
138
  - test/dummy_app/Rakefile
140
139
  - test/dummy_app/db/schema.rb
141
140
  - test/dummy_app/db/test.sqlite3
142
141
  - test/dummy_app/db/migrate/20210128155312_set_up_test_tables.rb
142
+ - test/dummy_app/log/test.log