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 +4 -4
- data/app/assets/javascripts/cased/index.js +11 -0
- data/lib/cased/rails/railtie.rb +1 -0
- data/lib/cased/rails/version.rb +1 -1
- metadata +26 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7365da6bb8d95fee1b38b4e135424ff6a64a6ac9a34bc07fa76f988b96e26a42
|
4
|
+
data.tar.gz: ae649c687296e03f899025f55a2b82c899b49557a2c09fd93bdad479c21f5003
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
});
|
data/lib/cased/rails/railtie.rb
CHANGED
data/lib/cased/rails/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|
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:
|
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:
|
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
|