brick 1.0.42 → 1.0.43
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8387796a98b0bcf24586c6b31f091cfdc4cca1b45b73d02de3bdba17430625f7
|
4
|
+
data.tar.gz: 1c7509e21a1a9a6c8c52f3015b0a7e34222ff944433e028be314f8525ee948b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75222971d2407d8ffb3b8412694da3fe6ad0d3f27f147159f6d75aa712d1dfe8a9d54627cb2c816fdfc8cb7c44de4407f180fbc559b9c811719c22a016c913f5
|
7
|
+
data.tar.gz: 44e03a9d2ddec85969d5b1aca67a9426a4b3dd33f196c058d57b380fa77e78424768dd3e97a40227b2372bec4ccd81dfd1b7760b65e2c5b292c8b47c0d27e2c7
|
@@ -259,8 +259,7 @@ input[type=submit] {
|
|
259
259
|
text-align: right;
|
260
260
|
}
|
261
261
|
</style>
|
262
|
-
<%
|
263
|
-
is_includes_dates = nil
|
262
|
+
<% is_includes_dates = nil
|
264
263
|
|
265
264
|
def is_bcrypt?(val)
|
266
265
|
val.is_a?(String) && val.length == 60 && val.start_with?('$2a$')
|
@@ -334,7 +333,13 @@ window.addEventListener(\"pageshow\", function() {
|
|
334
333
|
});
|
335
334
|
|
336
335
|
if (tblSelect) { // Always present
|
337
|
-
|
336
|
+
var i = schemaSelect ? 1 : 0,
|
337
|
+
changeoutList = changeout(location.href);
|
338
|
+
for (; i < changeoutList.length; ++i) {
|
339
|
+
tblSelect.value = changeoutList[i];
|
340
|
+
if (tblSelect.value !== \"\") break;
|
341
|
+
}
|
342
|
+
|
338
343
|
tblSelect.addEventListener(\"change\", function () {
|
339
344
|
var lhr = changeout(location.href, null, this.value);
|
340
345
|
if (brickSchema)
|
@@ -357,7 +362,7 @@ function changeout(href, param, value, trimAfter) {
|
|
357
362
|
}
|
358
363
|
if (trimAfter) {
|
359
364
|
var pathParts = hrefParts[0].split(\"/\");
|
360
|
-
while (pathParts.lastIndexOf(trimAfter)
|
365
|
+
while (pathParts.lastIndexOf(trimAfter) !== pathParts.length - 1) pathParts.pop();
|
361
366
|
hrefParts[0] = pathParts.join(\"/\");
|
362
367
|
}
|
363
368
|
var params = hrefParts.length > 1 ? hrefParts[1].split(\"&\") : [];
|
@@ -757,6 +762,7 @@ end
|
|
757
762
|
<script>
|
758
763
|
flatpickr(\".datepicker\");
|
759
764
|
flatpickr(\".datetimepicker\", {enableTime: true});
|
765
|
+
flatpickr(\".timepicker\", {enableTime: true, noCalendar: true});
|
760
766
|
</script>
|
761
767
|
<% end %>
|
762
768
|
<script>
|
@@ -772,8 +778,11 @@ document.querySelectorAll(\"input, select\").forEach(function (inp) {
|
|
772
778
|
inp.checked = origVal;
|
773
779
|
else
|
774
780
|
inp.value = origVal;
|
775
|
-
|
776
|
-
|
781
|
+
revert.style.display = \"none\";
|
782
|
+
if (inp._flatpickr)
|
783
|
+
inp._flatpickr.setDate(origVal);
|
784
|
+
else
|
785
|
+
inp.focus();
|
777
786
|
});
|
778
787
|
inp.addEventListener(inp.type === \"checkbox\" ? \"change\" : \"input\", function (e) {
|
779
788
|
if(inp.className.split(\" \").indexOf(\"check-validity\") > 0) {
|
@@ -787,7 +796,8 @@ document.querySelectorAll(\"input, select\").forEach(function (inp) {
|
|
787
796
|
// And if it was the result of selecting a date, the calendar can now close.
|
788
797
|
if (inp._flatpickr &&
|
789
798
|
// Test only for changes in the date portion of a date or datetime
|
790
|
-
((giv = getInpVal()) && giv.split(' ')[0]) !== (prevVal && prevVal.split(' ')[0])
|
799
|
+
((giv = getInpVal()) && (giv1 = giv.split(' ')[0])) !== (prevVal && prevVal.split(' ')[0]) &&
|
800
|
+
giv1.indexOf(\":\") < 0 // (definitely not any part of a time thing)
|
791
801
|
)
|
792
802
|
inp._flatpickr.close();
|
793
803
|
prevVal = getInpVal();
|
data/lib/brick/version_number.rb
CHANGED
@@ -225,7 +225,7 @@ module Brick
|
|
225
225
|
# # it wasn't originally specified.
|
226
226
|
# Brick.schema_behavior = :namespaced
|
227
227
|
#{Brick.config.schema_behavior ? "Brick.schema_behavior = { multitenant: { schema_to_analyse: #{
|
228
|
-
Brick.config.schema_behavior[:multitenant]
|
228
|
+
Brick.config.schema_behavior[:multitenant]&.fetch(:schema_to_analyse, nil).inspect}" :
|
229
229
|
"# Brick.schema_behavior = { multitenant: { schema_to_analyse: 'engineering'"
|
230
230
|
} } }
|
231
231
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brick
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.43
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lorin Thwaits
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-07-
|
11
|
+
date: 2022-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|