alembic 0.11.0 → 0.12.0
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 931643b6dc1be5388f7beb875b145be8c56ddc1a734b4007d704c8e1d8c83bcd
|
|
4
|
+
data.tar.gz: c5f1a14d6770f25e6c88da122912d4437b75900326cd3f1c30f8cb1b30cef97b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1d99652cf6dc68f989c00377c940c9038a2e24fc06c3e40bb1bedec02b88f9aa07c24277bfd566c88c9d630466951542b9f8e10b45ce445be1a0ad38f40bd8bc
|
|
7
|
+
data.tar.gz: 9f1e415dc29214afee236b18fac4694868808b9c238dc93884bb9895fe072b036124d054adc80e31b61c84a62e18445b0f51e2624345b92c147789daaf8cb374
|
|
@@ -21,6 +21,12 @@ module Alembic
|
|
|
21
21
|
run.nil? && params[:answers].blank? && Flow::Summaries.new(flow).asks_on_one_page?
|
|
22
22
|
end
|
|
23
23
|
|
|
24
|
+
def answer_problem(step, answer)
|
|
25
|
+
return "Pick an answer to go on." if step&.type == "question" && answer.blank?
|
|
26
|
+
|
|
27
|
+
super
|
|
28
|
+
end
|
|
29
|
+
|
|
24
30
|
def questions_in_order
|
|
25
31
|
state = {}
|
|
26
32
|
questions = []
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<% end %>
|
|
34
34
|
|
|
35
35
|
<div class="mt-8 flex items-center gap-4">
|
|
36
|
-
<%= ui_button(label: "Next", type: :submit) %>
|
|
36
|
+
<%= ui_button(label: "Next", type: :submit) unless single_choice?(@question) %>
|
|
37
37
|
<% if @answers.any? %>
|
|
38
38
|
<button type="submit" name="back" value="1" formnovalidate class="ks-tone-muted cursor-pointer text-sm underline underline-offset-2 hover:text-(color:--ks-color-text) dark:hover:text-(color:--ks-color-text-dark)">← Back</button>
|
|
39
39
|
<% end %>
|
data/lib/alembic/version.rb
CHANGED