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: ecc91145c614872965f172c8e74a2e0baff6865c2f75ee2fb20e0e2d7d295da6
4
- data.tar.gz: c1ed7caba4454b79b1ff553ba67f0e828be061e92a9c8c9a2dce343f87c531be
3
+ metadata.gz: 931643b6dc1be5388f7beb875b145be8c56ddc1a734b4007d704c8e1d8c83bcd
4
+ data.tar.gz: c5f1a14d6770f25e6c88da122912d4437b75900326cd3f1c30f8cb1b30cef97b
5
5
  SHA512:
6
- metadata.gz: a4d113fc95187a036697aec4d8e075536a2728815db5852c55b63ccf66c321b2b07700003033d3d86b028fdcedb45c61b679c8ca32e64fb78cc43d3cf46fe7fe
7
- data.tar.gz: 65a63a6f80f7ba3fabea54424c45f09a4630f6e5bcb4614687b3f46e050cbbe1c304f862dc3d607220f01e6c5130f56bbd10b2ae6d8d0c151f2cffe0cd7331c3
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 %>
@@ -1,3 +1,3 @@
1
1
  module Alembic
2
- VERSION = "0.11.0"
2
+ VERSION = "0.12.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alembic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - tylercschneider