quby-compiler 0.4.0 → 0.4.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: feb162904faed7446d9fae791dcf0a03872121a4a0e4ddb5bcb01de6d936e44c
4
- data.tar.gz: 04ca9df119e3f7aca8a6724d762f59edc2da56b95649aaef4642c3dc4e72d45a
3
+ metadata.gz: 35f6d497ab4582a277697ec47f369e4fddbf40a0b778cd7b7761a884b1bb6d3b
4
+ data.tar.gz: 28908d63291dc2515ac6564f29d461e482ab088cdc92d1c60e5b87fc199aaf96
5
5
  SHA512:
6
- metadata.gz: ef6516baf27276cdc608583257f48a26c171e4930d8cb4dca035d1c35faf9ef35584f0fcabb4845807901e0f47e2fa81d49e5df280c99acdd13bdad5b63b4040
7
- data.tar.gz: 4b1cd0e9fa3eeacff0e2e6684ce3d3a74460cd7db9723d176bd3c471efb441f509b36d7fe35310479139af7de31346dca1fc807ff7ac1199a83973e39a951792
6
+ metadata.gz: 7eb0710c37e9d7cac15c96e001559a1149b7c04c2bf7443f85fd4fa6ff7d8cdabbf2bd65c017cf85444ef632ab3075b010f6615856880bb1e8c0aac82bd7311b
7
+ data.tar.gz: 310c0691e5488ffb6d3b1b5ae925f8d0603e2e22ad1bc06f8d491980b265585d65f29f4dce03979b1d743a9183507f229576013542cfa1561961f7936625da79
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.4.1
2
+
3
+ * seeds output: Fix depends: :present rule being overridden.
4
+
1
5
  # 0.4.0
2
6
 
3
7
  * rename flag visibilty rule value to trigger_on
@@ -30,9 +30,6 @@ module Quby
30
30
  @hidden_questions = {} # hash containing questions hidden by other questions
31
31
 
32
32
  for question in questions_flat
33
- if question.hidden && question.type != :check_box
34
- d_qtypes[question.key.to_s] = { depends: :present } unless options[:without_depends]
35
- end
36
33
  unless question.hidden && (question.type == :check_box || question.type == :hidden)
37
34
  vars << question.key.to_s
38
35
  end
@@ -184,6 +181,9 @@ module Quby
184
181
  if hidden = @hidden_questions[question.key.to_s]
185
182
  d_qtypes[question.key.to_s][:depends] ||= hidden unless options[:without_depends]
186
183
  end
184
+ if question.hidden && question.type != :check_box
185
+ d_qtypes[question.key.to_s][:depends] = :present unless options[:without_depends]
186
+ end
187
187
  end
188
188
 
189
189
  def generate_question_titles
@@ -1,5 +1,5 @@
1
1
  module Quby
2
2
  module Compiler
3
- VERSION = "0.4.0"
3
+ VERSION = "0.4.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quby-compiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marten Veldthuis
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-10 00:00:00.000000000 Z
11
+ date: 2021-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel