rest_framework 1.0.1 → 1.0.2
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/VERSION +1 -1
- data/app/views/rest_framework/_head.html.erb +1 -6
- data/lib/rest_framework/filters/search_filter.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fa4f1c8277a69cc73b8683ac06a9a31c0706fa144d1e1d030eb0f97987da2429
|
|
4
|
+
data.tar.gz: 7f275441694689003a4f25df054c040a238a55ea63f331a77ff0fb370bff102b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 373581c9bb9eb2887bb0a66ed8013cbe2f595fa2f0ddb0e9e7180b89b9d81d02991556c14ade1dd2a9ac86844a76a3080daa41fb4d5debba8357959d2fe7ec52
|
|
7
|
+
data.tar.gz: f26c82b74d3cb344e65bc863a3718e152e4f107d7d709c64a7c47779c9ed60024e26c00709fd934177099b71cbdfdda37719f43e864a4aed907ca2676f31897f
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.2
|
|
@@ -291,14 +291,9 @@
|
|
|
291
291
|
|
|
292
292
|
// Replace the document when doing form submission (mainly to support PUT/PATCH/DELETE).
|
|
293
293
|
function rrfReplaceDocument(content) {
|
|
294
|
-
// Replace the document with provided content.
|
|
295
294
|
document.open()
|
|
296
295
|
document.write(content)
|
|
297
|
-
document.close()
|
|
298
|
-
|
|
299
|
-
// It seems that `DOMContentLoaded` is already triggered on `document.close()`.
|
|
300
|
-
// // Trigger `DOMContentLoaded` manually so our custom JavaScript works.
|
|
301
|
-
// // document.dispatchEvent(new Event("DOMContentLoaded", {bubbles: true, cancelable: true}))
|
|
296
|
+
document.close() // This also triggers `DOMContentLoaded`.
|
|
302
297
|
}
|
|
303
298
|
|
|
304
299
|
// Refresh the window as a `GET` request.
|
|
@@ -18,7 +18,7 @@ class RESTFramework::Filters::SearchFilter < RESTFramework::Filters::BaseFilter
|
|
|
18
18
|
if search.present?
|
|
19
19
|
if fields = self._get_fields.presence
|
|
20
20
|
# MySQL doesn't support casting to VARCHAR, so we need to use CHAR instead.
|
|
21
|
-
data_type = if data.connection.adapter_name =~ /mysql/i
|
|
21
|
+
data_type = if data.connection.adapter_name =~ /mysql|trilogy/i
|
|
22
22
|
"CHAR"
|
|
23
23
|
else
|
|
24
24
|
# Sufficient for both PostgreSQL and SQLite.
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rest_framework
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gregory N. Schmit
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-04-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|