Naseweis 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +80 -0
- data/WEISHEIT.md +0 -0
- metadata +99 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ba21648ac300ae3282685dd78622cd657aa643be
|
4
|
+
data.tar.gz: 3b7416d60d3a9e9ab28777b0e5bf69c73b714814
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 334a84249548f107b84dbdd691200ecbb3827ea064c2531292189015316655e02b7bfc465439940f8a9ccee03971739ae73a1d7f3a6407bb673e48ca8648791a
|
7
|
+
data.tar.gz: 6cf1c4adc993f537db46927d9f01ea06c72674da182822c3a7a874274ae0549538c6df227b92201c68d0dc357a1ddd0876b98ac4b1bf04ee889f6a9cd7dd803a
|
data/README.md
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
# Naseweis
|
2
|
+
|
3
|
+
`Naseweis` is a Ruby library if you have a lot of user input to gather. It lets
|
4
|
+
you define your "questions" in a so called `Weisheits`-file, which is then read
|
5
|
+
by `Naseweis` and user input is gathered.
|
6
|
+
|
7
|
+
## Example
|
8
|
+
|
9
|
+
`Weisheits`-file `questions.yaml`:
|
10
|
+
|
11
|
+
```yaml
|
12
|
+
- q: "What's your name?"
|
13
|
+
target: name
|
14
|
+
|
15
|
+
- q: "How many times should I greet you?"
|
16
|
+
target: times
|
17
|
+
type: int
|
18
|
+
```
|
19
|
+
|
20
|
+
Ruby source `main.rb`:
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
require "Naseweis"
|
24
|
+
nase = Naseweis::Nase.new "questions.yaml"
|
25
|
+
nase.read
|
26
|
+
result = nase.interrogate
|
27
|
+
name = result["name"]
|
28
|
+
result["times"].times { puts "Hello, #{name}" }
|
29
|
+
```
|
30
|
+
|
31
|
+
## Weisheit
|
32
|
+
|
33
|
+
The `Weisheits` format is a normal YAML file, which defines questions, their
|
34
|
+
target name, their type, and some more information.
|
35
|
+
|
36
|
+
The full description can be found in WEISHEIT.md.
|
37
|
+
|
38
|
+
## Installation
|
39
|
+
|
40
|
+
Add this line to your application's Gemfile:
|
41
|
+
|
42
|
+
```ruby
|
43
|
+
gem 'Naseweis'
|
44
|
+
```
|
45
|
+
|
46
|
+
And then execute:
|
47
|
+
|
48
|
+
$ bundle
|
49
|
+
|
50
|
+
Or install it yourself as:
|
51
|
+
|
52
|
+
$ gem install Naseweis
|
53
|
+
|
54
|
+
## Documentation
|
55
|
+
|
56
|
+
Documentation is available at http://kingdread.github.io/Naseweis
|
57
|
+
|
58
|
+
## License
|
59
|
+
|
60
|
+
The MIT License (MIT)
|
61
|
+
|
62
|
+
Copyright (c) 2016 Daniel Schadt
|
63
|
+
|
64
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
65
|
+
this software and associated documentation files (the "Software"), to deal in
|
66
|
+
the Software without restriction, including without limitation the rights to
|
67
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
68
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
69
|
+
so, subject to the following conditions:
|
70
|
+
|
71
|
+
The above copyright notice and this permission notice shall be included in all
|
72
|
+
copies or substantial portions of the Software.
|
73
|
+
|
74
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
75
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
76
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
77
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
78
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
79
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
80
|
+
SOFTWARE.
|
data/WEISHEIT.md
ADDED
File without changes
|
metadata
ADDED
@@ -0,0 +1,99 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: Naseweis
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Daniel Schadt
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-02-26 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.11'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.11'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: highline
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.7'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.7'
|
55
|
+
description: |2
|
56
|
+
Naseweis is a library that allows you to gather information based on
|
57
|
+
questions which are defined in yaml files. This lets you keep your data and
|
58
|
+
logic separated and avoids cluttering your code with many calls to
|
59
|
+
puts/gets. It also allows you to keep your questions organized, centralized
|
60
|
+
and language-agnostic.
|
61
|
+
email:
|
62
|
+
- kingdread@gmx.de
|
63
|
+
executables: []
|
64
|
+
extensions: []
|
65
|
+
extra_rdoc_files:
|
66
|
+
- README.md
|
67
|
+
- WEISHEIT.md
|
68
|
+
files:
|
69
|
+
- README.md
|
70
|
+
- WEISHEIT.md
|
71
|
+
homepage: https://github.com/Kingdread/Naseweis
|
72
|
+
licenses:
|
73
|
+
- MIT
|
74
|
+
metadata: {}
|
75
|
+
post_install_message:
|
76
|
+
rdoc_options:
|
77
|
+
- "--title"
|
78
|
+
- Naseweis Documentation
|
79
|
+
- "--main"
|
80
|
+
- README.md
|
81
|
+
require_paths:
|
82
|
+
- lib
|
83
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - ">="
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
88
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
|
+
requirements:
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '0'
|
93
|
+
requirements: []
|
94
|
+
rubyforge_project:
|
95
|
+
rubygems_version: 2.5.1
|
96
|
+
signing_key:
|
97
|
+
specification_version: 4
|
98
|
+
summary: Gather lots of information based on questionnaire files.
|
99
|
+
test_files: []
|