adventure 0.17.7.pre.pre
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitattributes +43 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- data/.github/ISSUE_TEMPLATE/user_question.md +14 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +14 -0
- data/.github/config.yml +49 -0
- data/.gitignore +147 -0
- data/.rspec +3 -0
- data/.rubocop.yml +13 -0
- data/.travis.yml +22 -0
- data/CHANGELOG.md +76 -0
- data/CODE-OF-CONDUCT.md +76 -0
- data/CONTRIBUTING.md +22 -0
- data/Gemfile +10 -0
- data/Gemfile.lock +84 -0
- data/LICENSE.md +25 -0
- data/OGL.md +35 -0
- data/README.md +63 -0
- data/Rakefile +8 -0
- data/adventure.gemspec +40 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/lib/adventure.rb +18 -0
- data/lib/adventure/actor.rb +111 -0
- data/lib/adventure/building.rb +79 -0
- data/lib/adventure/dungeon.rb +25 -0
- data/lib/adventure/encounter.rb +60 -0
- data/lib/adventure/quest.rb +44 -0
- data/lib/adventure/room.rb +78 -0
- data/lib/adventure/settlement.rb +137 -0
- data/lib/adventure/version.rb +15 -0
- metadata +161 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b00205fe644c271aa55a9df429af065c9bd0a55b1e00b5d6c43bda117bc706dd
|
4
|
+
data.tar.gz: 1cd0ebf948c3d4da6bdbdba6e22cc79e9ae3c318d91a9e82b65a6eefe862de3b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e1f0c3899c0ef35dfff6d7cec56a7e2cdf4e1ccdb28a7f6ed85f9d70143e895cec1afda379d1fcff27314e7c646c8333898e43a88099321e07f2706b8a968b16
|
7
|
+
data.tar.gz: b0ca6a23e925adbee387f1c89e3b5b8d800e5ffa249bcbe7b7c143cff6db5f411bf0bc8c586d7803769e85b213697358eaa6f89ca6c525fc027f9d266fb3e609
|
data/.gitattributes
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
#common settings that generally should always be used with your language specific settings
|
2
|
+
|
3
|
+
# Auto detect text files and perform LF normalization
|
4
|
+
# http://davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/
|
5
|
+
* text=auto
|
6
|
+
|
7
|
+
#
|
8
|
+
# The above will handle all files NOT found below
|
9
|
+
#
|
10
|
+
|
11
|
+
# Documents
|
12
|
+
*.doc diff=astextplain
|
13
|
+
*.DOC diff=astextplain
|
14
|
+
*.docx diff=astextplain
|
15
|
+
*.DOCX diff=astextplain
|
16
|
+
*.dot diff=astextplain
|
17
|
+
*.DOT diff=astextplain
|
18
|
+
*.pdf diff=astextplain
|
19
|
+
*.PDF diff=astextplain
|
20
|
+
*.rtf diff=astextplain
|
21
|
+
*.RTF diff=astextplain
|
22
|
+
*.md text
|
23
|
+
*.adoc text
|
24
|
+
*.textile text
|
25
|
+
*.mustache text
|
26
|
+
*.csv text
|
27
|
+
*.tab text
|
28
|
+
*.tsv text
|
29
|
+
*.sql text
|
30
|
+
|
31
|
+
# Graphics
|
32
|
+
*.png binary
|
33
|
+
*.jpg binary
|
34
|
+
*.jpeg binary
|
35
|
+
*.gif binary
|
36
|
+
*.tif binary
|
37
|
+
*.tiff binary
|
38
|
+
*.ico binary
|
39
|
+
# SVG treated as an asset (binary) by default. If you want to treat it as text,
|
40
|
+
# comment-out the following line and uncomment the line after.
|
41
|
+
*.svg binary
|
42
|
+
#*.svg text
|
43
|
+
*.eps binary
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
name: Bug report
|
3
|
+
about: Create a report to help us improve
|
4
|
+
title: ''
|
5
|
+
labels: 'bug'
|
6
|
+
assignees: ''
|
7
|
+
|
8
|
+
---
|
9
|
+
|
10
|
+
**Describe the bug**
|
11
|
+
A clear and concise description of what the bug is.
|
12
|
+
|
13
|
+
**To Reproduce**
|
14
|
+
Steps to reproduce the behavior:
|
15
|
+
1. Go to '...'
|
16
|
+
2. Click on '....'
|
17
|
+
3. Scroll down to '....'
|
18
|
+
4. See error
|
19
|
+
|
20
|
+
**Expected behavior**
|
21
|
+
A clear and concise description of what you expected to happen.
|
22
|
+
|
23
|
+
**Screenshots**
|
24
|
+
If applicable, add screenshots to help explain your problem.
|
25
|
+
|
26
|
+
**Desktop (please complete the following information):**
|
27
|
+
- OS: [e.g. iOS]
|
28
|
+
- Browser [e.g. chrome, safari]
|
29
|
+
- Version [e.g. 22]
|
30
|
+
|
31
|
+
**Smartphone (please complete the following information):**
|
32
|
+
- Device: [e.g. iPhone6]
|
33
|
+
- OS: [e.g. iOS8.1]
|
34
|
+
- Browser [e.g. stock browser, safari]
|
35
|
+
- Version [e.g. 22]
|
36
|
+
|
37
|
+
**Additional context**
|
38
|
+
Add any other context about the problem here.
|
@@ -0,0 +1,20 @@
|
|
1
|
+
---
|
2
|
+
name: Feature request
|
3
|
+
about: Suggest an idea for this project
|
4
|
+
title: ''
|
5
|
+
labels: ''
|
6
|
+
assignees: ''
|
7
|
+
|
8
|
+
---
|
9
|
+
|
10
|
+
**Is your feature request related to a problem? Please describe.**
|
11
|
+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
12
|
+
|
13
|
+
**Describe the solution you'd like**
|
14
|
+
A clear and concise description of what you want to happen.
|
15
|
+
|
16
|
+
**Describe alternatives you've considered**
|
17
|
+
A clear and concise description of any alternative solutions or features you've considered.
|
18
|
+
|
19
|
+
**Additional context**
|
20
|
+
Add any other context or screenshots about the feature request here.
|
@@ -0,0 +1,14 @@
|
|
1
|
+
---
|
2
|
+
name: User Question
|
3
|
+
about: Ask us a question
|
4
|
+
title: ''
|
5
|
+
labels: 'question'
|
6
|
+
assignees: ''
|
7
|
+
|
8
|
+
---
|
9
|
+
|
10
|
+
**My question:**
|
11
|
+
Briefly describe your question. What are you trying to accomplish?
|
12
|
+
|
13
|
+
**I've already tried:**
|
14
|
+
Help us help you by letting us know what you have already tried in your efforts to accomplish this.
|
@@ -0,0 +1,14 @@
|
|
1
|
+
Describe concisely the changes implemented by the code on this pull request.
|
2
|
+
|
3
|
+
- **Added:**
|
4
|
+
- Added stuff on this PR.
|
5
|
+
- **Changed:**
|
6
|
+
- Changed stuff on this PR.
|
7
|
+
- **Deprecated:**
|
8
|
+
- Deprecated stuff on this PR.
|
9
|
+
- **Removed:**
|
10
|
+
- Removed stuff on this PR.
|
11
|
+
- **Fixed:**
|
12
|
+
- Fixed stuff on this PR.
|
13
|
+
- **Security:**
|
14
|
+
- Security stuff on this PR.
|
data/.github/config.yml
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
####################################################
|
2
|
+
# ToDo Bot Configuration #
|
3
|
+
####################################################
|
4
|
+
todo:
|
5
|
+
autoAssign: true
|
6
|
+
exclude: "\.gitattributes"
|
7
|
+
|
8
|
+
####################################################
|
9
|
+
# Welcome Bot Configuration #
|
10
|
+
####################################################
|
11
|
+
# new-issue-welcome #
|
12
|
+
# https://github.com/behaviorbot/new-issue-welcome #
|
13
|
+
####################################################
|
14
|
+
newIssueWelcomeComment: >
|
15
|
+
Thanks for opening your first issue here! :sparkles:
|
16
|
+
|
17
|
+
This repository has an **issue template** and we ask that you follow it.
|
18
|
+
|
19
|
+
Also, note that there is a **[Code of Conduct](CODE-OF-CONDUCT.md)**. Please take a time to read it.
|
20
|
+
|
21
|
+
The :busts_in_silhouette: humans will be here shortly to assess your issue! And thanks once again for your first issue! :tada:
|
22
|
+
####################################################
|
23
|
+
# new-pr-welcome #
|
24
|
+
# https://github.com/behaviorbot/new-pr-welcome #
|
25
|
+
####################################################
|
26
|
+
newPRWelcomeComment: >
|
27
|
+
Thanks for opening this pull request! :octocat:
|
28
|
+
|
29
|
+
Please check out our [Contributing Guidelines](CONTRIBUTING.md) and our [Code of Conduct](CODE-OF-CONDUCT.md).
|
30
|
+
####################################################
|
31
|
+
# first-pr-merge #
|
32
|
+
# https://github.com/behaviorbot/first-pr-merge #
|
33
|
+
####################################################
|
34
|
+
firstPRMergeComment: >
|
35
|
+
Congrats on merging your first pull request! :+1:
|
36
|
+
|
37
|
+
Keep on coding! :tada:
|
38
|
+
|
39
|
+
####################################################
|
40
|
+
# Sentiment Bot Configuration #
|
41
|
+
####################################################
|
42
|
+
# sentiment-bot #
|
43
|
+
# https://github.com/behaviorbot/sentiment-bot #
|
44
|
+
####################################################
|
45
|
+
sentimentBotToxicityThreshold: .7
|
46
|
+
sentimentBotReplyComment: >
|
47
|
+
Please be sure to review the [code of conduct](code-of-conduct.md) and be respectful.
|
48
|
+
|
49
|
+
The human @Nereare will be here to review this shortly.
|
data/.gitignore
ADDED
@@ -0,0 +1,147 @@
|
|
1
|
+
# Created by https://www.gitignore.io/api/osx,ruby,linux,macos,windows,dropbox
|
2
|
+
# Edit at https://www.gitignore.io/?templates=osx,ruby,linux,macos,windows,dropbox
|
3
|
+
|
4
|
+
### Dropbox ###
|
5
|
+
# Dropbox settings and caches
|
6
|
+
.dropbox
|
7
|
+
.dropbox.attr
|
8
|
+
.dropbox.cache
|
9
|
+
|
10
|
+
### Linux ###
|
11
|
+
*~
|
12
|
+
|
13
|
+
# temporary files which can be created if a process still has a handle open of a deleted file
|
14
|
+
.fuse_hidden*
|
15
|
+
|
16
|
+
# KDE directory preferences
|
17
|
+
.directory
|
18
|
+
|
19
|
+
# Linux trash folder which might appear on any partition or disk
|
20
|
+
.Trash-*
|
21
|
+
|
22
|
+
# .nfs files are created when an open file is removed but is still being accessed
|
23
|
+
.nfs*
|
24
|
+
|
25
|
+
### macOS ###
|
26
|
+
# General
|
27
|
+
.DS_Store
|
28
|
+
.AppleDouble
|
29
|
+
.LSOverride
|
30
|
+
|
31
|
+
# Icon must end with two \r
|
32
|
+
Icon
|
33
|
+
|
34
|
+
# Thumbnails
|
35
|
+
._*
|
36
|
+
|
37
|
+
# Files that might appear in the root of a volume
|
38
|
+
.DocumentRevisions-V100
|
39
|
+
.fseventsd
|
40
|
+
.Spotlight-V100
|
41
|
+
.TemporaryItems
|
42
|
+
.Trashes
|
43
|
+
.VolumeIcon.icns
|
44
|
+
.com.apple.timemachine.donotpresent
|
45
|
+
|
46
|
+
# Directories potentially created on remote AFP share
|
47
|
+
.AppleDB
|
48
|
+
.AppleDesktop
|
49
|
+
Network Trash Folder
|
50
|
+
Temporary Items
|
51
|
+
.apdisk
|
52
|
+
|
53
|
+
### OSX ###
|
54
|
+
# General
|
55
|
+
|
56
|
+
# Icon must end with two \r
|
57
|
+
|
58
|
+
# Thumbnails
|
59
|
+
|
60
|
+
# Files that might appear in the root of a volume
|
61
|
+
|
62
|
+
# Directories potentially created on remote AFP share
|
63
|
+
|
64
|
+
### Ruby ###
|
65
|
+
*.gem
|
66
|
+
*.rbc
|
67
|
+
/.config
|
68
|
+
/coverage/
|
69
|
+
/InstalledFiles
|
70
|
+
/pkg/
|
71
|
+
/spec/reports/
|
72
|
+
/spec/examples.txt
|
73
|
+
/test/tmp/
|
74
|
+
/test/version_tmp/
|
75
|
+
/tmp/
|
76
|
+
|
77
|
+
# rspec failure tracking
|
78
|
+
.rspec_status
|
79
|
+
|
80
|
+
# Used by dotenv library to load environment variables.
|
81
|
+
# .env
|
82
|
+
|
83
|
+
# Ignore Byebug command history file.
|
84
|
+
.byebug_history
|
85
|
+
|
86
|
+
## Specific to RubyMotion:
|
87
|
+
.dat*
|
88
|
+
.repl_history
|
89
|
+
build/
|
90
|
+
*.bridgesupport
|
91
|
+
build-iPhoneOS/
|
92
|
+
build-iPhoneSimulator/
|
93
|
+
|
94
|
+
## Specific to RubyMotion (use of CocoaPods):
|
95
|
+
#
|
96
|
+
# We recommend against adding the Pods directory to your .gitignore. However
|
97
|
+
# you should judge for yourself, the pros and cons are mentioned at:
|
98
|
+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
99
|
+
# vendor/Pods/
|
100
|
+
|
101
|
+
## Documentation cache and generated files:
|
102
|
+
/.yardoc/
|
103
|
+
/_yardoc/
|
104
|
+
/doc/
|
105
|
+
/rdoc/
|
106
|
+
|
107
|
+
## Environment normalization:
|
108
|
+
/.bundle/
|
109
|
+
/vendor/bundle
|
110
|
+
/lib/bundler/man/
|
111
|
+
|
112
|
+
# for a library or gem, you might want to ignore these files since the code is
|
113
|
+
# intended to run in multiple environments; otherwise, check them in:
|
114
|
+
# Gemfile.lock
|
115
|
+
# .ruby-version
|
116
|
+
# .ruby-gemset
|
117
|
+
|
118
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
119
|
+
.rvmrc
|
120
|
+
|
121
|
+
### Windows ###
|
122
|
+
# Windows thumbnail cache files
|
123
|
+
Thumbs.db
|
124
|
+
Thumbs.db:encryptable
|
125
|
+
ehthumbs.db
|
126
|
+
ehthumbs_vista.db
|
127
|
+
|
128
|
+
# Dump file
|
129
|
+
*.stackdump
|
130
|
+
|
131
|
+
# Folder config file
|
132
|
+
[Dd]esktop.ini
|
133
|
+
|
134
|
+
# Recycle Bin used on file shares
|
135
|
+
$RECYCLE.BIN/
|
136
|
+
|
137
|
+
# Windows Installer files
|
138
|
+
*.cab
|
139
|
+
*.msi
|
140
|
+
*.msix
|
141
|
+
*.msm
|
142
|
+
*.msp
|
143
|
+
|
144
|
+
# Windows shortcuts
|
145
|
+
*.lnk
|
146
|
+
|
147
|
+
# End of https://www.gitignore.io/api/osx,ruby,linux,macos,windows,dropbox
|
data/.rspec
ADDED
data/.rubocop.yml
ADDED
data/.travis.yml
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
sudo: false
|
2
|
+
|
3
|
+
language: ruby
|
4
|
+
rvm:
|
5
|
+
- 2.5.3
|
6
|
+
|
7
|
+
before_install:
|
8
|
+
- gem install bundler -v 2.0.2
|
9
|
+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
10
|
+
- chmod +x ./cc-test-reporter
|
11
|
+
- chmod +x ./bin/console
|
12
|
+
install: bundle install --retry=3
|
13
|
+
|
14
|
+
before_script:
|
15
|
+
- ./cc-test-reporter before-build
|
16
|
+
script:
|
17
|
+
- rubocop
|
18
|
+
- bundle exec rspec spec
|
19
|
+
after_script:
|
20
|
+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
21
|
+
|
22
|
+
cache: bundler
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
# [Adventure](https://github.com/Nereare/Adventure) Change Log
|
2
|
+
|
3
|
+
This is the change log to Adventure. For further info on this project, see the [ReadMe file](README.md).
|
4
|
+
|
5
|
+
All notable changes to this project will be documented in this file.
|
6
|
+
|
7
|
+
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
|
8
|
+
|
9
|
+
Principles of a change log, excerpted from [Keep a Changelog](http://keepachangelog.com/):
|
10
|
+
|
11
|
+
* It’s made for humans, not machines, so legibility is crucial.
|
12
|
+
* Easy to link to any section (hence Markdown over plain text).
|
13
|
+
* One sub-section per version.
|
14
|
+
* List releases in reverse-chronological order (newest on top).
|
15
|
+
* Write all dates in `YYYY-MM-DD` format. (Example: `2012-06-02` for `June 2nd, 2012`.) It’s international, [sensible](http://xkcd.com/1179/), and language-independent.
|
16
|
+
* Explicitly mention whether the project follows [Semantic Versioning](http://semver.org/).
|
17
|
+
* Each version should:
|
18
|
+
* `List` its release date in the above format.
|
19
|
+
* `Group` changes to describe their impact on the project, as follows:
|
20
|
+
* `Added` for new features.
|
21
|
+
* `Changed` for changes in existing functionality.
|
22
|
+
* `Deprecated` for once-stable features removed in upcoming releases.
|
23
|
+
* `Removed` for deprecated features removed in this release.
|
24
|
+
* `Fixed` for any bug fixes.
|
25
|
+
* `Security` to invite users to upgrade in case of vulnerabilities.
|
26
|
+
|
27
|
+
## [Unreleased]
|
28
|
+
|
29
|
+
## [0.17.7-pre] - `2019-09-10`
|
30
|
+
|
31
|
+
### Added
|
32
|
+
* Code of Conduct from [Contributor Covenant v1.4.1](https://www.contributor-covenant.org/).
|
33
|
+
* [License](LICENSE.md).
|
34
|
+
* Git metafiles (`.gitignore` and `.gitattributes`).
|
35
|
+
* GitHub templates:
|
36
|
+
- Issues;
|
37
|
+
- Feature request;
|
38
|
+
- User question;
|
39
|
+
- Pull request.
|
40
|
+
* ReadMe file.
|
41
|
+
* Changelog file.
|
42
|
+
* Begin gem folder structure, using [Bundler](https://bundler.io/) `v2.0.2`.
|
43
|
+
* Development dependencies:
|
44
|
+
- [Bundler](https://bundler.io/), `v2.0.2`;
|
45
|
+
- [Rake](https://github.com/ruby/rake), `v10.5.0`;
|
46
|
+
- [RSpec](https://rspec.info/), `v3.8.0`;
|
47
|
+
- [RuboCop](https://github.com/rubocop-hq/rubocop), `v0.74.0`;
|
48
|
+
- [SimpleCov](https://github.com/colszowka/simplecov), `v0.17.0`;
|
49
|
+
- [YARD](https://rubygems.org/gems/yard), `v0.9.20`.
|
50
|
+
* Dependencies:
|
51
|
+
- [Indefinite Article](https://rubygems.org/gems/indefinite_article) gem, `v0.2.4`;
|
52
|
+
- [Jekyll Slugify](https://rubygems.org/gems/jekyll_slugify) gem, `v0.4.2`;
|
53
|
+
- [Random Name Generator](https://rubygems.org/gems/random_name_generator) gem, `v1.0.3`.
|
54
|
+
* Modules:
|
55
|
+
- Base module (`Adventure`):
|
56
|
+
- `Actor` class, for creating NPC descriptions;
|
57
|
+
- `Building` class, for creating general buildings, such as houses;
|
58
|
+
- `Dungeon` class, which creates a dungeon to serve as a category to `Room`s;
|
59
|
+
- `Encounter` class, which creates the elements of a singleton encounter;
|
60
|
+
- `Quest` class, for creating quests, their goals and rewards;
|
61
|
+
- `Room` class, for creating steps of a dungeon or encounter arc;
|
62
|
+
- `Settlement` class, for creating settlements and their contents.
|
63
|
+
|
64
|
+
### Changed
|
65
|
+
* Name generator from homebrewed adaptation of `marky_markov`'s code to `random_name_generator` gem.
|
66
|
+
|
67
|
+
### Removed
|
68
|
+
* Former base module, defining some d20 system entities;
|
69
|
+
* `Armors` module, defining SRD armors;
|
70
|
+
* `Weapons` module, defining SRD armors.
|
71
|
+
|
72
|
+
### Fixed
|
73
|
+
* `Slugify` method, previously from an unlicensed gem to an [MIT-licensed one](https://rubygems.org/gems/jekyll_slugify).
|
74
|
+
|
75
|
+
[Unreleased]: https://github.com/Nereare/Grimoire/compare/v0.17.7-pre...HEAD
|
76
|
+
[0.17.7-pre]: https://github.com/Nereare/Grimoire/releases/tag/v0.17.7-pre
|