cased-rails 0.6.0 → 0.8.1

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: 0ac813e954f77f140af1bd3134fb4452008e807e42aa28eadc36ec9cb0466393
4
- data.tar.gz: 2e05ad602523cb8d85bb0f015ef0322729f8b3a0372ab1d94a50d08882235d79
3
+ metadata.gz: 7365da6bb8d95fee1b38b4e135424ff6a64a6ac9a34bc07fa76f988b96e26a42
4
+ data.tar.gz: ae649c687296e03f899025f55a2b82c899b49557a2c09fd93bdad479c21f5003
5
5
  SHA512:
6
- metadata.gz: 7720462c3af78d86a2c331d75b62578d049cc04a33a4c246faabed779083237e02afe05780a496e09b25f746ab136ac20eb0f19f3ff943e032c385a1b82ca6e1
7
- data.tar.gz: 5fe323c945bfb912929d7c8a777763fc0071bd3f1a8f13326eca84d512f195f881be6dba40820bebb1c16cc23b4b21eb72cdb3128439000fdc2046a6f0ab6627
6
+ metadata.gz: d3f5519dd2521af0a3717aeb72f2be5ed4c3826d40809169eed02e43c597e97b822aa4e6626bd59b50f9acad38679a2451f535ad46254f608786da46946379c3
7
+ data.tar.gz: 31017529fd31a94fd919956ea11294402204bd26fcb63e7d205e3346c463e34a7a7ad1190d67eb7f75950d287d679c7dbbf3517c68d01a84b289eeb065225488
@@ -72,4 +72,15 @@ window.addEventListener("DOMContentLoaded", (event) => {
72
72
  casedLoggedOutContainer.classList.remove("hidden");
73
73
  });
74
74
  }
75
+
76
+ const casedReasonFormContainer = document.getElementById("guard-reason-required-form");
77
+ if (casedReasonFormContainer) {
78
+ casedReasonFormContainer.addEventListener("submit", (event) => {
79
+ const submitButton = event.currentTarget.querySelector("button[type='submit']");
80
+ // Container will change after submission; no need to re-enable the button
81
+ if (submitButton) {
82
+ submitButton.disabled = true;
83
+ }
84
+ });
85
+ }
75
86
  });
@@ -15,6 +15,7 @@ module Cased
15
15
  end
16
16
 
17
17
  initializer 'cased.assets.precompile' do |app|
18
+ require 'sprockets/railtie'
18
19
  app.config.assets.precompile << 'cased/manifest.js'
19
20
  end
20
21
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cased
4
4
  module Rails
5
- VERSION = '0.6.0'
5
+ VERSION = '0.8.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cased-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garrett Bjerkhoel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-05 00:00:00.000000000 Z
11
+ date: 2022-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cased-ruby
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.5.1
19
+ version: 0.7.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.5.1
26
+ version: 0.7.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: jbuilder
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +44,20 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '6.0'
47
+ version: 6.0.0
48
+ - - "<="
49
+ - !ruby/object:Gem::Version
50
+ version: '7.1'
48
51
  type: :runtime
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
51
54
  requirements:
52
55
  - - ">="
53
56
  - !ruby/object:Gem::Version
54
- version: '6.0'
57
+ version: 6.0.0
58
+ - - "<="
59
+ - !ruby/object:Gem::Version
60
+ version: '7.1'
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: rexml
57
63
  requirement: !ruby/object:Gem::Requirement
@@ -66,6 +72,20 @@ dependencies:
66
72
  - - "~>"
67
73
  - !ruby/object:Gem::Version
68
74
  version: 3.2.5
75
+ - !ruby/object:Gem::Dependency
76
+ name: sprockets-rails
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: 3.4.2
82
+ type: :runtime
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: 3.4.2
69
89
  - !ruby/object:Gem::Dependency
70
90
  name: mocha
71
91
  requirement: !ruby/object:Gem::Requirement