miscellany 0.1.24 → 0.1.25

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.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +0 -0
  3. data/app/views/miscellany/_slice.json.jbuilder +0 -0
  4. data/config/initializers/cancancan.rb +0 -0
  5. data/lib/miscellany/active_record/arbitrary_prefetch.rb +0 -0
  6. data/lib/miscellany/active_record/batch_matcher.rb +0 -0
  7. data/lib/miscellany/active_record/batched_destruction.rb +0 -0
  8. data/lib/miscellany/active_record/complex_query.rb +0 -0
  9. data/lib/miscellany/active_record/computed_columns.rb +0 -0
  10. data/lib/miscellany/active_record/custom_preloaders.rb +0 -0
  11. data/lib/miscellany/active_record/goldiload_value.rb +0 -0
  12. data/lib/miscellany/batch_processor.rb +0 -0
  13. data/lib/miscellany/batching_csv_processor.rb +0 -0
  14. data/lib/miscellany/controller/http_error_handling.rb +0 -0
  15. data/lib/miscellany/controller/json_uploads.rb +0 -0
  16. data/lib/miscellany/controller/sliced_response.rb +1 -1
  17. data/lib/miscellany/jbuilder_partial_block.rb +0 -0
  18. data/lib/miscellany/local_lru_cache.rb +0 -0
  19. data/lib/miscellany/param_validator.rb +0 -0
  20. data/lib/miscellany/sort_lang.rb +0 -0
  21. data/lib/miscellany/version.rb +1 -1
  22. data/lib/miscellany.rb +0 -0
  23. data/miscellany.gemspec +0 -0
  24. data/spec/db/database.yml +0 -0
  25. data/spec/miscellany/arbitrary_prefetch_spec.rb +0 -0
  26. data/spec/miscellany/computed_columns_spec.rb +0 -0
  27. data/spec/miscellany/goldiload_value_spec.rb +0 -0
  28. data/spec/miscellany/param_validator_spec.rb +0 -0
  29. data/spec/miscellany/sliced_response_spec.rb +0 -0
  30. data/spec/miscellany/sort_lang_spec.rb +0 -0
  31. data/spec/spec_helper.rb +0 -0
  32. metadata +6 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6de3e8ac55956c58bff00af5ffae6ce8972b142be6a5aad47096c4776658ba4e
4
- data.tar.gz: 4668195d6a891348e495fff7ecf187415eef6f2588d14e33be556f04f7358042
3
+ metadata.gz: 4fc8f4d4e764e532f99f3db6e45cdf8c27a9b587a9617fe75b08f54701e5f3a2
4
+ data.tar.gz: 790a900c2124bbefa4b6d792e76fed386ea2a6ae20037045d69398b7425fe5dd
5
5
  SHA512:
6
- metadata.gz: 2cec7d17686d2d9faf88dcfc20ac2ca5fba8f10ca7c1e021a7e0b67af4f6506b8d0a03444437ac1aae23eaa39e3a116cbb9e9ef62b649ec73faaf3b45e155772
7
- data.tar.gz: 7a0c8b98668ad66aebd4b51e3d41aa969a13e3138992021f36bf95f04be3e1db289f95fb43e95f04e8b8876c2f5e4652a9e1609b1dfbd907595f21f7d9513d4d
6
+ metadata.gz: 1c87cc64f1f2c7c41f4b56ff6097d22ad3efe57fef2979fa38951c8c444d648dc24beca35a7a8dd7c61b48956bbd993bab44f3932b5d648c8f64a5b70f4c72db
7
+ data.tar.gz: d5273475dbab7ef34b58bdc6ff43617a5ee6b722575d02f178a01047c716c6d581b25308b2016de0d4ca3d70dd0ab25a10146e22368b285af36235004694b41e
data/README.md CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -173,7 +173,7 @@ module Miscellany
173
173
  def total_item_count
174
174
  @total_item_count ||= options[:total_count] || begin
175
175
  if items.is_a?(ActiveRecord::Relation)
176
- items.except(:select).count
176
+ items.model.from(items).count
177
177
  elsif items.respond_to?(:count)
178
178
  items.count
179
179
  elsif defined?(Miscellany::ComplexQuery) && items.is_a?(Miscellany::ComplexQuery)
File without changes
File without changes
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  module Miscellany
2
- VERSION = "0.1.24".freeze
2
+ VERSION = "0.1.25".freeze
3
3
  end
data/lib/miscellany.rb CHANGED
File without changes
data/miscellany.gemspec CHANGED
File without changes
data/spec/db/database.yml CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
data/spec/spec_helper.rb CHANGED
File without changes
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miscellany
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.24
4
+ version: 0.1.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan Knapp
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-08-20 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rails
@@ -114,7 +113,6 @@ dependencies:
114
113
  - - ">="
115
114
  - !ruby/object:Gem::Version
116
115
  version: '0'
117
- description:
118
116
  email:
119
117
  - eknapp@instructure.com
120
118
  executables: []
@@ -154,7 +152,6 @@ files:
154
152
  homepage: https://instructure.com
155
153
  licenses: []
156
154
  metadata: {}
157
- post_install_message:
158
155
  rdoc_options: []
159
156
  require_paths:
160
157
  - lib
@@ -169,16 +166,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
166
  - !ruby/object:Gem::Version
170
167
  version: '0'
171
168
  requirements: []
172
- rubygems_version: 3.1.6
173
- signing_key:
169
+ rubygems_version: 3.6.7
174
170
  specification_version: 4
175
171
  summary: Gem for a bunch of random, re-usable Rails Concerns & Helpers
176
172
  test_files:
177
173
  - spec/db/database.yml
178
- - spec/miscellany/sort_lang_spec.rb
179
174
  - spec/miscellany/arbitrary_prefetch_spec.rb
180
- - spec/miscellany/sliced_response_spec.rb
181
- - spec/miscellany/param_validator_spec.rb
182
175
  - spec/miscellany/computed_columns_spec.rb
183
176
  - spec/miscellany/goldiload_value_spec.rb
177
+ - spec/miscellany/param_validator_spec.rb
178
+ - spec/miscellany/sliced_response_spec.rb
179
+ - spec/miscellany/sort_lang_spec.rb
184
180
  - spec/spec_helper.rb