quby-compiler 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/.gitlab-ci.yml +5 -0
- data/.rspec +3 -0
- data/.ruby-version +1 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Dockerfile +11 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +133 -0
- data/LICENSE.txt +21 -0
- data/README.md +44 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/rspec +29 -0
- data/bin/setup +8 -0
- data/config/locales/de.yml +58 -0
- data/config/locales/en.yml +57 -0
- data/config/locales/nl.yml +57 -0
- data/config/locales/rails-i18n/README.md +4 -0
- data/config/locales/rails-i18n/de.yml +223 -0
- data/config/locales/rails-i18n/en.yml +216 -0
- data/config/locales/rails-i18n/nl.yml +214 -0
- data/exe/quby-compile +56 -0
- data/lib/quby/array_attribute_valid_validator.rb +15 -0
- data/lib/quby/attribute_valid_validator.rb +14 -0
- data/lib/quby/compiler.rb +50 -0
- data/lib/quby/compiler/dsl.rb +29 -0
- data/lib/quby/compiler/dsl/base.rb +20 -0
- data/lib/quby/compiler/dsl/calls_custom_methods.rb +29 -0
- data/lib/quby/compiler/dsl/charting/bar_chart_builder.rb +14 -0
- data/lib/quby/compiler/dsl/charting/chart_builder.rb +95 -0
- data/lib/quby/compiler/dsl/charting/line_chart_builder.rb +34 -0
- data/lib/quby/compiler/dsl/charting/overview_chart_builder.rb +31 -0
- data/lib/quby/compiler/dsl/charting/radar_chart_builder.rb +14 -0
- data/lib/quby/compiler/dsl/helpers.rb +53 -0
- data/lib/quby/compiler/dsl/panel_builder.rb +80 -0
- data/lib/quby/compiler/dsl/question_builder.rb +40 -0
- data/lib/quby/compiler/dsl/questionnaire_builder.rb +279 -0
- data/lib/quby/compiler/dsl/questions/base.rb +180 -0
- data/lib/quby/compiler/dsl/questions/checkbox_question_builder.rb +20 -0
- data/lib/quby/compiler/dsl/questions/date_question_builder.rb +18 -0
- data/lib/quby/compiler/dsl/questions/deprecated_question_builder.rb +18 -0
- data/lib/quby/compiler/dsl/questions/float_question_builder.rb +21 -0
- data/lib/quby/compiler/dsl/questions/integer_question_builder.rb +21 -0
- data/lib/quby/compiler/dsl/questions/radio_question_builder.rb +20 -0
- data/lib/quby/compiler/dsl/questions/select_question_builder.rb +18 -0
- data/lib/quby/compiler/dsl/questions/string_question_builder.rb +20 -0
- data/lib/quby/compiler/dsl/questions/text_question_builder.rb +22 -0
- data/lib/quby/compiler/dsl/score_builder.rb +22 -0
- data/lib/quby/compiler/dsl/score_schema_builder.rb +53 -0
- data/lib/quby/compiler/dsl/standardized_panel_generators.rb +33 -0
- data/lib/quby/compiler/dsl/table_builder.rb +48 -0
- data/lib/quby/compiler/entities.rb +38 -0
- data/lib/quby/compiler/entities/charting/bar_chart.rb +17 -0
- data/lib/quby/compiler/entities/charting/chart.rb +101 -0
- data/lib/quby/compiler/entities/charting/charts.rb +42 -0
- data/lib/quby/compiler/entities/charting/line_chart.rb +38 -0
- data/lib/quby/compiler/entities/charting/overview_chart.rb +20 -0
- data/lib/quby/compiler/entities/charting/plottable.rb +20 -0
- data/lib/quby/compiler/entities/charting/radar_chart.rb +17 -0
- data/lib/quby/compiler/entities/definition.rb +26 -0
- data/lib/quby/compiler/entities/fields.rb +119 -0
- data/lib/quby/compiler/entities/flag.rb +55 -0
- data/lib/quby/compiler/entities/item.rb +40 -0
- data/lib/quby/compiler/entities/lookup_tables.rb +71 -0
- data/lib/quby/compiler/entities/outcome_table.rb +31 -0
- data/lib/quby/compiler/entities/panel.rb +82 -0
- data/lib/quby/compiler/entities/question.rb +365 -0
- data/lib/quby/compiler/entities/question_option.rb +96 -0
- data/lib/quby/compiler/entities/questionnaire.rb +440 -0
- data/lib/quby/compiler/entities/questions/checkbox_question.rb +82 -0
- data/lib/quby/compiler/entities/questions/date_question.rb +84 -0
- data/lib/quby/compiler/entities/questions/deprecated_question.rb +19 -0
- data/lib/quby/compiler/entities/questions/float_question.rb +15 -0
- data/lib/quby/compiler/entities/questions/integer_question.rb +15 -0
- data/lib/quby/compiler/entities/questions/radio_question.rb +19 -0
- data/lib/quby/compiler/entities/questions/select_question.rb +19 -0
- data/lib/quby/compiler/entities/questions/string_question.rb +15 -0
- data/lib/quby/compiler/entities/questions/text_question.rb +15 -0
- data/lib/quby/compiler/entities/score_calculation.rb +35 -0
- data/lib/quby/compiler/entities/score_schema.rb +25 -0
- data/lib/quby/compiler/entities/subscore_schema.rb +23 -0
- data/lib/quby/compiler/entities/table.rb +143 -0
- data/lib/quby/compiler/entities/text.rb +71 -0
- data/lib/quby/compiler/entities/textvar.rb +23 -0
- data/lib/quby/compiler/entities/validation.rb +17 -0
- data/lib/quby/compiler/entities/version.rb +23 -0
- data/lib/quby/compiler/entities/visibility_rule.rb +71 -0
- data/lib/quby/compiler/instance.rb +72 -0
- data/lib/quby/compiler/output.rb +13 -0
- data/lib/quby/compiler/outputs.rb +4 -0
- data/lib/quby/compiler/outputs/quby_frontend_v1_serializer.rb +362 -0
- data/lib/quby/compiler/outputs/quby_frontend_v2_serializer.rb +15 -0
- data/lib/quby/compiler/outputs/roqua_serializer.rb +108 -0
- data/lib/quby/compiler/outputs/seed_serializer.rb +34 -0
- data/lib/quby/compiler/services/definition_validator.rb +330 -0
- data/lib/quby/compiler/services/quby_proxy.rb +405 -0
- data/lib/quby/compiler/services/seed_diff.rb +116 -0
- data/lib/quby/compiler/services/text_transformation.rb +30 -0
- data/lib/quby/compiler/version.rb +5 -0
- data/lib/quby/markdown_parser.rb +38 -0
- data/lib/quby/range_categories.rb +38 -0
- data/lib/quby/settings.rb +86 -0
- data/lib/quby/text_transformation.rb +26 -0
- data/lib/quby/type_validator.rb +12 -0
- data/quby-compiler.gemspec +39 -0
- metadata +277 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d38f705b91a2ad37a0babd91c08834ed37c0a0a0bfa60a3e07bebfba06c44cef
|
4
|
+
data.tar.gz: e98e8f2c06f6a0bd17fef8ee7f631cd0dae29f059266ac84a39e6b56175b886c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c8b98bea5143a6eca8b122b3b852944e07a29ce2783e6c7380f54b404c78749f4e68716f059217e765da199cf1387f1076dd1d4b1ed445b8cf934a6fbd6f1be5
|
7
|
+
data.tar.gz: 4c3590905fed76601f80c32d8646bc67c12290a89286886c652f37c6999e7d1dd1abc2540d35f06a015b075e8097d72e1e635a5cad4da30f985d705e29c345ab
|
data/.gitignore
ADDED
data/.gitlab-ci.yml
ADDED
data/.rspec
ADDED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.7.1
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at marten@veldthuis.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [https://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: https://contributor-covenant.org
|
74
|
+
[version]: https://contributor-covenant.org/version/1/4/
|
data/Dockerfile
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,133 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
quby-compiler (0.1.1)
|
5
|
+
actionview (>= 5.0)
|
6
|
+
activemodel (>= 5.0)
|
7
|
+
activesupport (>= 5.0)
|
8
|
+
dry-struct (>= 1.3.0)
|
9
|
+
method_source
|
10
|
+
nokogiri (>= 1.8)
|
11
|
+
nokogumbo
|
12
|
+
redcarpet (~> 3.5)
|
13
|
+
roqua-support
|
14
|
+
|
15
|
+
GEM
|
16
|
+
remote: https://rubygems.org/
|
17
|
+
specs:
|
18
|
+
actionview (6.0.3.4)
|
19
|
+
activesupport (= 6.0.3.4)
|
20
|
+
builder (~> 3.1)
|
21
|
+
erubi (~> 1.4)
|
22
|
+
rails-dom-testing (~> 2.0)
|
23
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
24
|
+
active_interaction (3.8.3)
|
25
|
+
activemodel (>= 4, < 7)
|
26
|
+
activemodel (6.0.3.4)
|
27
|
+
activesupport (= 6.0.3.4)
|
28
|
+
activerecord (6.0.3.4)
|
29
|
+
activemodel (= 6.0.3.4)
|
30
|
+
activesupport (= 6.0.3.4)
|
31
|
+
activesupport (6.0.3.4)
|
32
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
33
|
+
i18n (>= 0.7, < 2)
|
34
|
+
minitest (~> 5.1)
|
35
|
+
tzinfo (~> 1.1)
|
36
|
+
zeitwerk (~> 2.2, >= 2.2.2)
|
37
|
+
appsignal (2.10.12)
|
38
|
+
rack
|
39
|
+
builder (3.2.4)
|
40
|
+
coderay (1.1.3)
|
41
|
+
concurrent-ruby (1.1.7)
|
42
|
+
crass (1.0.6)
|
43
|
+
diff-lcs (1.4.4)
|
44
|
+
dry-configurable (0.11.6)
|
45
|
+
concurrent-ruby (~> 1.0)
|
46
|
+
dry-core (~> 0.4, >= 0.4.7)
|
47
|
+
dry-equalizer (~> 0.2)
|
48
|
+
dry-container (0.7.2)
|
49
|
+
concurrent-ruby (~> 1.0)
|
50
|
+
dry-configurable (~> 0.1, >= 0.1.3)
|
51
|
+
dry-core (0.4.9)
|
52
|
+
concurrent-ruby (~> 1.0)
|
53
|
+
dry-equalizer (0.3.0)
|
54
|
+
dry-inflector (0.2.0)
|
55
|
+
dry-logic (1.0.7)
|
56
|
+
concurrent-ruby (~> 1.0)
|
57
|
+
dry-core (~> 0.2)
|
58
|
+
dry-equalizer (~> 0.2)
|
59
|
+
dry-struct (1.3.0)
|
60
|
+
dry-core (~> 0.4, >= 0.4.4)
|
61
|
+
dry-equalizer (~> 0.3)
|
62
|
+
dry-types (~> 1.3)
|
63
|
+
ice_nine (~> 0.11)
|
64
|
+
dry-types (1.4.0)
|
65
|
+
concurrent-ruby (~> 1.0)
|
66
|
+
dry-container (~> 0.3)
|
67
|
+
dry-core (~> 0.4, >= 0.4.4)
|
68
|
+
dry-equalizer (~> 0.3)
|
69
|
+
dry-inflector (~> 0.1, >= 0.1.2)
|
70
|
+
dry-logic (~> 1.0, >= 1.0.2)
|
71
|
+
erubi (1.9.0)
|
72
|
+
i18n (1.8.5)
|
73
|
+
concurrent-ruby (~> 1.0)
|
74
|
+
ice_nine (0.11.2)
|
75
|
+
loofah (2.7.0)
|
76
|
+
crass (~> 1.0.2)
|
77
|
+
nokogiri (>= 1.5.9)
|
78
|
+
method_source (1.0.0)
|
79
|
+
mini_portile2 (2.4.0)
|
80
|
+
minitest (5.14.2)
|
81
|
+
naught (1.1.0)
|
82
|
+
nokogiri (1.10.10)
|
83
|
+
mini_portile2 (~> 2.4.0)
|
84
|
+
nokogumbo (2.0.2)
|
85
|
+
nokogiri (~> 1.8, >= 1.8.4)
|
86
|
+
pry (0.13.1)
|
87
|
+
coderay (~> 1.1)
|
88
|
+
method_source (~> 1.0)
|
89
|
+
rack (2.2.3)
|
90
|
+
rails-dom-testing (2.0.3)
|
91
|
+
activesupport (>= 4.2.0)
|
92
|
+
nokogiri (>= 1.6)
|
93
|
+
rails-html-sanitizer (1.3.0)
|
94
|
+
loofah (~> 2.3)
|
95
|
+
rake (12.3.3)
|
96
|
+
redcarpet (3.5.0)
|
97
|
+
roqua-support (0.3.4)
|
98
|
+
active_interaction (~> 3.0)
|
99
|
+
activesupport (>= 5.1, < 6.1)
|
100
|
+
appsignal (>= 2.9, < 2.11)
|
101
|
+
naught (~> 1.0)
|
102
|
+
with_advisory_lock (~> 3.2)
|
103
|
+
rspec (3.9.0)
|
104
|
+
rspec-core (~> 3.9.0)
|
105
|
+
rspec-expectations (~> 3.9.0)
|
106
|
+
rspec-mocks (~> 3.9.0)
|
107
|
+
rspec-core (3.9.3)
|
108
|
+
rspec-support (~> 3.9.3)
|
109
|
+
rspec-expectations (3.9.2)
|
110
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
111
|
+
rspec-support (~> 3.9.0)
|
112
|
+
rspec-mocks (3.9.1)
|
113
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
114
|
+
rspec-support (~> 3.9.0)
|
115
|
+
rspec-support (3.9.3)
|
116
|
+
thread_safe (0.3.6)
|
117
|
+
tzinfo (1.2.8)
|
118
|
+
thread_safe (~> 0.1)
|
119
|
+
with_advisory_lock (3.2.0)
|
120
|
+
activerecord (>= 3.2)
|
121
|
+
zeitwerk (2.4.1)
|
122
|
+
|
123
|
+
PLATFORMS
|
124
|
+
ruby
|
125
|
+
|
126
|
+
DEPENDENCIES
|
127
|
+
pry
|
128
|
+
quby-compiler!
|
129
|
+
rake (~> 12.0)
|
130
|
+
rspec (~> 3.0)
|
131
|
+
|
132
|
+
BUNDLED WITH
|
133
|
+
2.1.4
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020 Marten Veldthuis
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
# Quby::Compiler
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/quby/compiler`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'quby-compiler'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle install
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install quby-compiler
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/marten/quby-compiler. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/marten/quby-compiler/blob/master/CODE_OF_CONDUCT.md).
|
36
|
+
|
37
|
+
|
38
|
+
## License
|
39
|
+
|
40
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
41
|
+
|
42
|
+
## Code of Conduct
|
43
|
+
|
44
|
+
Everyone interacting in the Quby::Compiler project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/marten/quby-compiler/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "quby/compiler"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/rspec
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
#
|
5
|
+
# This file was generated by Bundler.
|
6
|
+
#
|
7
|
+
# The application 'rspec' is installed as part of a gem, and
|
8
|
+
# this file is here to facilitate running it.
|
9
|
+
#
|
10
|
+
|
11
|
+
require "pathname"
|
12
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
13
|
+
Pathname.new(__FILE__).realpath)
|
14
|
+
|
15
|
+
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
16
|
+
|
17
|
+
if File.file?(bundle_binstub)
|
18
|
+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
19
|
+
load(bundle_binstub)
|
20
|
+
else
|
21
|
+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
22
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
require "rubygems"
|
27
|
+
require "bundler/setup"
|
28
|
+
|
29
|
+
load Gem.bin_path("rspec-core", "rspec")
|
data/bin/setup
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
de:
|
2
|
+
date:
|
3
|
+
formats:
|
4
|
+
friendly_date: '%-d %B %Y (%-d-%-m-%Y)'
|
5
|
+
step_i_of_n: "Schritt %{i} von %{n}"
|
6
|
+
previous: Zurück
|
7
|
+
next: Weiter
|
8
|
+
abort: Später zu Ende ausfüllen
|
9
|
+
previous_questionnaire: Vorheriger Fragebogen
|
10
|
+
done: Fertig
|
11
|
+
print_answers: Antworten drucken
|
12
|
+
download_answers_pdf: Als PDF herunterladen
|
13
|
+
pdf_download_failed_message: Beim Vorbereiten des Downloads ist ein Fehler aufgetreten.
|
14
|
+
questionnaire_not_completed:
|
15
|
+
heading: Dieser Fragebogen ist noch nicht vollständig ausgefüllt!
|
16
|
+
explanation: Wenn Sie diesen Fragebogen dennoch speichern, können unter Umständen Dimensionen des Fragebogens nicht berechnet werden, weil zu wenig Informationen dafür zur Verfügung stehen. Sie können Ihre Antworten unten weiterhin ausfüllen. Fragen die noch unvollständig ausgefüllt sind, erscheinen rot markiert.
|
17
|
+
save_anyway: Trotzdem speichern
|
18
|
+
thanks_for_filling_out: Vielen Dank für das Ausfüllen dieses Fragebogens. Ihre Antworten sind gespeichert.
|
19
|
+
ios_download_instruction: "Eine neue Browser-Tab wird geöffnet, in der der Download gestartet wird.\n\nSpeichern Sie die Datei in Books/iBooks. Kehren Sie dann mit der Knopf '< Safari' oben links zum Browser zurück.
|
20
|
+
\n\nDenn, im Browser gehen Sie mit dem Zurück-Knopf '<' zurück und drücken Sie auf 'Fertig' um die Fragebogen zu speichern."
|
21
|
+
validations:
|
22
|
+
maximum:
|
23
|
+
date: "Das Datum muss an oder vor dem %{friendly_date} liegen."
|
24
|
+
number: "Ihre Antwort muss kleiner oder gleich %{value} sein."
|
25
|
+
minimum:
|
26
|
+
date: "Das Datum muss an oder nach dem %{friendly_date} liegen."
|
27
|
+
number: "Ihre Antwort muss größer oder gleich %{value} sein."
|
28
|
+
requires_answer: "Diese Frage muss beantwortet werden."
|
29
|
+
regexp: "Ihre Antwort muss dem Format %{matcher} entsprechen."
|
30
|
+
valid_integer: "Ihre Antwort muss eine runde (oder auch ganze) Zahl sein."
|
31
|
+
valid_float: "Ihre Antwort muss eine Zahl sein (benutzen Sie bitte einen Punkt für Dezimalzahlen, kein Komma)."
|
32
|
+
valid_date:
|
33
|
+
valid_date_year: "Geben Sie ein gültiges Jahr nach dem Format JJJJ an, zum Beispiel 2015."
|
34
|
+
valid_date_month_year: "Geben Sie ein gültiges Datum nach dem Format MM-JJJJ an, zum Beispiel 08-2015."
|
35
|
+
valid_date_day_hour_minute_month_year: "Geben Sie ein gültiges Datum nach dem Format TT-MM-JJJJ ss:mm an, zum Beispiel 13-08-2015 13:05."
|
36
|
+
valid_date_day_month_year: "Geben Sie ein gültiges Datum nach dem Format TT-MM-JJJJ an, zum Beispiel 13-08-2015."
|
37
|
+
valid_date_hour_minute: "Geben Sie eine gültige Tageszeit nach dem Format ss:mm an, zum Beispiel 13:05"
|
38
|
+
too_many_checked: "Sie haben zu viele Möglichkeiten ausgewählt."
|
39
|
+
not_all_checked: "Sie haben zu wenige Möglichkeiten ausgewählt."
|
40
|
+
maximum_checked_allowed:
|
41
|
+
one: "Sie können maximal %{maximum_checked_value} Möglichkeit auswählen."
|
42
|
+
other: "Sie können maximal %{maximum_checked_value} Möglichkeiten auswählen."
|
43
|
+
minimum_checked_required:
|
44
|
+
one: "Sie müssen mindestens %{minimum_checked_value} Möglichkeit auswählen."
|
45
|
+
other: "Sie müssen mindestens %{minimum_checked_value} Möglichkeiten auswählen."
|
46
|
+
answer_group_minimum: "Beantworten Sie mindestens %{value} von diesen Fragen"
|
47
|
+
answer_group_maximum: "Beantworten Sie höchstens %{value} von diesen Fragen"
|
48
|
+
video_not_supported: Ihr Browser unterstützt die Wiedergabe dieses Videos nicht. Bitte versuchen Sie es mit einem anderen Browser.
|
49
|
+
DD: TT
|
50
|
+
MM: MM
|
51
|
+
YYYY: JJJJ
|
52
|
+
hh: ss
|
53
|
+
mm: mm
|
54
|
+
day: Tag
|
55
|
+
month: Monat
|
56
|
+
year: Jahr
|
57
|
+
hour: Stunde
|
58
|
+
minute: Minute
|