Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
quby-compiler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
RoQua
quby-compiler
Commits
f5c9742b
Commit
f5c9742b
authored
4 years ago
by
Per 29 mei 2024 gedeeld account, daarvoor marten
Browse files
Options
Downloads
Patches
Plain Diff
Fix QubyProxy for nil titles
parent
6d961c14
Branches
master
Tags
v0.4.4
No related merge requests found
Pipeline
#81456
passed
4 years ago
Stage: test
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CHANGELOG.md
+4
-0
4 additions, 0 deletions
CHANGELOG.md
Gemfile.lock
+3
-3
3 additions, 3 deletions
Gemfile.lock
lib/quby/compiler/services/quby_proxy.rb
+6
-6
6 additions, 6 deletions
lib/quby/compiler/services/quby_proxy.rb
lib/quby/compiler/version.rb
+1
-1
1 addition, 1 deletion
lib/quby/compiler/version.rb
with
14 additions
and
10 deletions
CHANGELOG.md
+
4
−
0
View file @
f5c9742b
# 0.3.2
*
Fix slashes-after-numbers removal when question does not have a title
# 0.3.1
*
Slashes after numbers are now removed from question titles when making RoQua seeds (quests attribute).
...
...
This diff is collapsed.
Click to expand it.
Gemfile.lock
+
3
−
3
View file @
f5c9742b
PATH
remote: .
specs:
quby-compiler (0.3.
1
)
quby-compiler (0.3.
2
)
actionview (>= 5.0)
activemodel (>= 5.0)
activesupport (>= 5.0)
...
...
@@ -74,10 +74,10 @@ GEM
mini_portile2 (2.5.0)
minitest (5.14.4)
naught (1.1.0)
nokogiri (1.11.
1
)
nokogiri (1.11.
2
)
mini_portile2 (~> 2.5.0)
racc (~> 1.4)
nokogumbo (2.0.
4
)
nokogumbo (2.0.
5
)
nokogiri (~> 1.8, >= 1.8.4)
pry (0.13.1)
coderay (~> 1.1)
...
...
This diff is collapsed.
Click to expand it.
lib/quby/compiler/services/quby_proxy.rb
+
6
−
6
View file @
f5c9742b
...
...
@@ -292,19 +292,19 @@ module Quby
def
strip_question_number_slashes
(
quests
)
quests
.
transform_values!
do
|
value
|
value
.
gsub
/^(\s*\d+)\\/
,
'\1'
value
&
.
gsub
/^(\s*\d+)\\/
,
'\1'
end
end
def
process_scores
scores_from_schemas
end
def
scores_from_schemas
score_headers
=
[]
# headers outcome (humanized name for subscores)
score_keys
=
[]
# headers data-export (not all of it, just the score_subscore part, shortened)
score_labels
=
[]
# score names outcome (humanized name for score as a whole)
questionnaire
.
score_schemas
.
values
.
each
do
|
score_schema
|
score_labels
<<
score_schema
.
label
score_keys
<<
score_schema
.
subscore_schemas
.
map
do
|
subschema
|
...
...
@@ -318,18 +318,18 @@ module Quby
hash
end
end
headers
=
score_schema
.
subscore_schemas
.
map
(
&
:label
)
score_headers
+=
headers
-
score_headers
end
{
headers:
score_headers
,
keys:
score_keys
,
labels:
score_labels
}
end
class
ShortenKeysUniq
def
initialize
@seen_results
=
[]
...
...
This diff is collapsed.
Click to expand it.
lib/quby/compiler/version.rb
+
1
−
1
View file @
f5c9742b
module
Quby
module
Compiler
VERSION
=
"0.3.
1
"
VERSION
=
"0.3.
2
"
end
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment