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: a385c606282392cbefea1eaa045dc6a023bd05f56044013bc3835ef06a630b87
4
- data.tar.gz: 261e21a2eb02ac1b199c831e1bba5eeec3add7b5faf0b2567fbb94a3252d817f
3
+ metadata.gz: 8387796a98b0bcf24586c6b31f091cfdc4cca1b45b73d02de3bdba17430625f7
4
+ data.tar.gz: 1c7509e21a1a9a6c8c52f3015b0a7e34222ff944433e028be314f8525ee948b8
5
5
  SHA512:
6
- metadata.gz: 686a6ad73671511c36c6871e86fd6d02f7b8b48b2e1bacb033ec5348a85cedfc1c6848c92293e4144c0ca95ab79888c5993dcdbb7f440d93265a6c65b5c74a6b
7
- data.tar.gz: 04e0cb25404beb9fead5d07ff3c76066bc23d097fb2a01c53b689737e1a5d70cfef94b432b89f45f61497074171bb171fae0064aef970c2c025f3ce05de23557
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
- tblSelect.value = changeout(location.href)[schemaSelect ? 1 : 0];
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) != pathParts.length - 1) pathParts.pop();
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
- revert.style.display = \"none\";
776
- if (!inp._flatpickr) inp.focus();
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();
@@ -5,7 +5,7 @@ module Brick
5
5
  module VERSION
6
6
  MAJOR = 1
7
7
  MINOR = 0
8
- TINY = 42
8
+ TINY = 43
9
9
 
10
10
  # PRE is nil unless it's a pre-release (beta, RC, etc.)
11
11
  PRE = nil
@@ -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][:schema_to_analyse].inspect}" :
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.42
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-10 00:00:00.000000000 Z
11
+ date: 2022-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord