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 +4 -4
- data/config/initializers/i18n_available_locales.rb +1 -1
- data/config/locales/tr.yml +56 -0
- data/lib/quby/answers/services/build_answer.rb +11 -1
- data/lib/quby/version.rb +1 -1
- data/spec/internal/log/test-events.log +744 -0
- data/spec/internal/log/test.log +32100 -0
- data/spec/quby/answers/services/build_answer_spec.rb +14 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16b8fb297b6d6ffc5cca5c95bd5320608261a724a0357b5322e16f0eac719b0a
|
4
|
+
data.tar.gz: 3d75132f09f687e272910143a187332ce7deb2c4c85f9952c08397d84d630157
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e49694e21207bf216932560c5ed6953111f3d0e531a03263bad64d01cc76fe477bca41baee0e036990478177f09ed74670b395ed531cf0b28b2ecb33c529b73
|
7
|
+
data.tar.gz: dbac2a1481f9040285818817a41a518e59ee79c2bb59935d28e44d27c2712e5a065ad5cf3abf868f27d766eeaed5994217ffd9a28fbc6e5c2b04885dab00a073
|
@@ -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
|
-
|
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