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.
- checksums.yaml +4 -4
- data/README.md +0 -0
- data/app/views/miscellany/_slice.json.jbuilder +0 -0
- data/config/initializers/cancancan.rb +0 -0
- data/lib/miscellany/active_record/arbitrary_prefetch.rb +0 -0
- data/lib/miscellany/active_record/batch_matcher.rb +0 -0
- data/lib/miscellany/active_record/batched_destruction.rb +0 -0
- data/lib/miscellany/active_record/complex_query.rb +0 -0
- data/lib/miscellany/active_record/computed_columns.rb +0 -0
- data/lib/miscellany/active_record/custom_preloaders.rb +0 -0
- data/lib/miscellany/active_record/goldiload_value.rb +0 -0
- data/lib/miscellany/batch_processor.rb +0 -0
- data/lib/miscellany/batching_csv_processor.rb +0 -0
- data/lib/miscellany/controller/http_error_handling.rb +0 -0
- data/lib/miscellany/controller/json_uploads.rb +0 -0
- data/lib/miscellany/controller/sliced_response.rb +1 -1
- data/lib/miscellany/jbuilder_partial_block.rb +0 -0
- data/lib/miscellany/local_lru_cache.rb +0 -0
- data/lib/miscellany/param_validator.rb +0 -0
- data/lib/miscellany/sort_lang.rb +0 -0
- data/lib/miscellany/version.rb +1 -1
- data/lib/miscellany.rb +0 -0
- data/miscellany.gemspec +0 -0
- data/spec/db/database.yml +0 -0
- data/spec/miscellany/arbitrary_prefetch_spec.rb +0 -0
- data/spec/miscellany/computed_columns_spec.rb +0 -0
- data/spec/miscellany/goldiload_value_spec.rb +0 -0
- data/spec/miscellany/param_validator_spec.rb +0 -0
- data/spec/miscellany/sliced_response_spec.rb +0 -0
- data/spec/miscellany/sort_lang_spec.rb +0 -0
- data/spec/spec_helper.rb +0 -0
- metadata +6 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fc8f4d4e764e532f99f3db6e45cdf8c27a9b587a9617fe75b08f54701e5f3a2
|
4
|
+
data.tar.gz: 790a900c2124bbefa4b6d792e76fed386ea2a6ae20037045d69398b7425fe5dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
data/lib/miscellany/sort_lang.rb
CHANGED
File without changes
|
data/lib/miscellany/version.rb
CHANGED
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.
|
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:
|
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.
|
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
|