quby 5.6.4 → 5.6.5

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: 5158773d14f2ffb5938eb27c8227527c11246ce12c2c0d3377d24e8c44b82eb2
4
- data.tar.gz: 60f29f152cd868a0a3ed47111cb04b0ca47e9f99611770f90527a32f40e5addc
3
+ metadata.gz: 16b8fb297b6d6ffc5cca5c95bd5320608261a724a0357b5322e16f0eac719b0a
4
+ data.tar.gz: 3d75132f09f687e272910143a187332ce7deb2c4c85f9952c08397d84d630157
5
5
  SHA512:
6
- metadata.gz: 24183a5faec729d91f16cdc151d0c45685d794f148dc494e77d03ed94d77aa1483afc1c3f9999a700a42b0054d5b0f782f0a9d41b12c2b722011c1568990c413
7
- data.tar.gz: 149a96a512180a5d5214fec08911c0a2454fd302d6c38aedf9ac1db9dc0f65f399d96f5d00ef59efe7cfb3120cbd16b221237e3a2470273fecfac51af62fc047
6
+ metadata.gz: 7e49694e21207bf216932560c5ed6953111f3d0e531a03263bad64d01cc76fe477bca41baee0e036990478177f09ed74670b395ed531cf0b28b2ecb33c529b73
7
+ data.tar.gz: dbac2a1481f9040285818817a41a518e59ee79c2bb59935d28e44d27c2712e5a065ad5cf3abf868f27d766eeaed5994217ffd9a28fbc6e5c2b04885dab00a073
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- I18n.available_locales = %i( nl en de fr sr )
3
+ I18n.available_locales = %i( nl en de fr sr tr )
4
4
  I18n.default_locale = :nl
5
5
  I18n.config.enforce_available_locales = true
@@ -0,0 +1,56 @@
1
+ tr:
2
+ date:
3
+ formats:
4
+ friendly_date: "%-d %B %Y (%-d-%-m-%Y)"
5
+ step_i_of_n: "Step %{i} of %{n}"
6
+ previous: Previous
7
+ next: Next
8
+ abort: Save for later
9
+ previous_questionnaire: Previous questionnaire
10
+ done: Done
11
+ download_answers_pdf: Download as PDF was moved to the end of the session
12
+ questionnaire_not_completed:
13
+ heading: "This questionnaire hasn't been filled out completely!"
14
+ explanation: "If you decide to save the questionnaire anyway, it could be that scale scores can't be calculated because we don't have all the required answers. You may complete the questionnaire below."
15
+ save_anyway: Save anyway
16
+ thanks_for_filling_out: Thank you for filling out the questionnaire.
17
+ ios_download_instruction: "Your download will open in a new tab.\n\nSave the file in Books/iBooks. Return to the browser using the '< Safari' button in the top left.\n\nBack in the browser, press the back '<' button and press 'Done' to complete your questionnaire."
18
+ validations:
19
+ maximum:
20
+ date: "Entered date must be on or before %{friendly_date}."
21
+ number: "Enter a number of at most %{value}."
22
+ minimum:
23
+ date: "Entered date must be on or after %{friendly_date}."
24
+ number: "Enter a number of at least %{value}."
25
+ requires_answer: "Please fill out this question."
26
+ regexp: "Please enter an answer in the format %{matcher}."
27
+ valid_integer: "Enter a valid integer number"
28
+ valid_float: "Enter a number. Use a period (.) for decimals."
29
+ valid_date:
30
+ valid_date_year: "Enter a valid year in the format YYYY, for example 2015."
31
+ valid_date_month_year: "Enter a valid date in the format MM-YYYY, for example 08-2015."
32
+ valid_date_day_hour_minute_month_year: "Enter a valid date in the format DD-MM-YYYY hh:mm, for example 12-08-2015 13:05."
33
+ valid_date_day_month_year: "Enter a valid date in the format DD-MM-YYYY, for example 12-08-2015."
34
+ valid_date_hour_minute: "Enter a valid time in the format hh:mm, for example 13:05."
35
+ too_many_checked: "You chose too many options"
36
+ not_all_checked: "You chose too few options"
37
+ maximum_checked_allowed:
38
+ one: "Choose up to %{maximum_checked_value} options."
39
+ other: "Choose up to %{maximum_checked_value} options."
40
+ minimum_checked_required:
41
+ one: "Choose at least %{minimum_checked_value} options."
42
+ other: "Choose at least %{minimum_checked_value} options."
43
+ answer_group_minimum: "Answer at least %{value} of these questions"
44
+ answer_group_maximum: "Answer up to %{value} of these questions"
45
+ valid_option: "Nonexistent option chosen."
46
+ video_not_supported: Your browser does not support playing this video. Try using a different browser.
47
+ DD: DD
48
+ MM: MM
49
+ YYYY: YYYY
50
+ hh: hh
51
+ mm: mm
52
+ day: day
53
+ month: month
54
+ year: year
55
+ hour: hour
56
+ minute: minute
@@ -50,7 +50,17 @@ module Quby
50
50
  def calculate_flags
51
51
  given = questionnaire.filter_flags(given_attributes.fetch(:flags, {}))
52
52
  defaults = questionnaire.default_flags
53
- defaults.merge(given)
53
+
54
+ flag_values = defaults.merge(given)
55
+
56
+ flag_values.each do |key, value|
57
+ questionnaire.flags[key].depends_on.each do |depend_key|
58
+ next if questionnaire.flags[depend_key].trigger_on == flag_values[depend_key]
59
+
60
+ flag_values.delete(key)
61
+ end
62
+ end
63
+ flag_values
54
64
  end
55
65
 
56
66
  def calculate_textvars
data/lib/quby/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Quby
4
- VERSION = "5.6.4"
4
+ VERSION = "5.6.5"
5
5
  end