alembic 0.10.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: b4d8ccc041b35716812e48190752b8e3f09896ead61f26c17d8b7b5e64d267e8
4
- data.tar.gz: 5c74978edd2eafde2aec301df9ef5fb170be77d85f96bde6b29c25d713c25cc6
3
+ metadata.gz: 931643b6dc1be5388f7beb875b145be8c56ddc1a734b4007d704c8e1d8c83bcd
4
+ data.tar.gz: c5f1a14d6770f25e6c88da122912d4437b75900326cd3f1c30f8cb1b30cef97b
5
5
  SHA512:
6
- metadata.gz: a40c070306c6c59745cebb00f14a30f0c0b30d608f540794d9ec8a8dbc05bc444299f772bfdc2a0d39e39f270c3bc516ae8387e79bea08f2d54b1c5597741896
7
- data.tar.gz: a70c7c32baa1cec0933517001f3f7112a0909ebd9ae4755ee5695c3c2cafbaf1f4e96a062fe2a8603625ad1ab916a997da7ab840c2718d0ace1bb92a029a2fc2
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 = []
@@ -2,6 +2,7 @@
2
2
  <% if category.present? %>
3
3
  <p class="text-xs font-semibold uppercase tracking-wider text-(color:--ks-color-link) dark:text-(color:--ks-color-link-dark) mb-2"><%= category %></p>
4
4
  <% end %>
5
+ <%= render "easy_flow/steps/picture", step: question %>
5
6
  <legend class="ks-heading text-xl mb-5 leading-snug"><%= question.text %></legend>
6
7
  <div class="space-y-3">
7
8
  <% question.choices.each do |choice| %>
@@ -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.10.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.10.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - tylercschneider
@@ -57,14 +57,14 @@ dependencies:
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '0.29'
60
+ version: '0.30'
61
61
  type: :runtime
62
62
  prerelease: false
63
63
  version_requirements: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '0.29'
67
+ version: '0.30'
68
68
  description: Alembic builds and runs data-driven interactive diagnostics — scored
69
69
  assessments and branching guides — that place a visitor on an outcome and capture
70
70
  the result. A runtime engine plus a UI builder.