radventure 0.1.0.alpha

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 6a9c72b5ab737a9ed2c9a6264594e4d3b405a37ec1d3778fca736d9fa855c59f
4
+ data.tar.gz: 714e1ef2c9441eb0a30107a379f709297f4700e9811a107d58196df96320cf18
5
+ SHA512:
6
+ metadata.gz: cfda01c65922b4488b2cca6cd5edcf114dca673e3bd666eb297a3d43d142f72716fa794c5c06558c0bfe4dbcd9850ca5e61a1dcd02f93679187e3f0be1f4fa48
7
+ data.tar.gz: 1ffa7f600b56943b6fa5e3ec8de9008ccfc2a2924ac1c09176985d62c9ba875882a4cdc4ab740d3fc262ed6b278b9fbd71744e608486e09e22cc0f76d5d8e52a
data/.rubocop.yml ADDED
@@ -0,0 +1,8 @@
1
+ AllCops:
2
+ TargetRubyVersion: 3.3.x
3
+ Metrics/MethodLength:
4
+ Max: 25
5
+ Metrics/ParameterLists:
6
+ Max: 20
7
+ Naming/MethodParameterName:
8
+ Min: 2
data/CHANGELOG.md ADDED
@@ -0,0 +1,21 @@
1
+ # [Ruby Adventure](https://github.com/Nereare/radventure) Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ### Added
11
+ - Code of Conduct from [Contributor Covenant](https://www.contributor-covenant.org/).
12
+ - [The Unlicense](LICENSE.md).
13
+ - Git metafiles (`.gitignore` and `.gitattributes`).
14
+ - GitHub templates:
15
+ - Issues;
16
+ - Feature request;
17
+ - User question;
18
+ - Pull request.
19
+ - ReadMe file.
20
+ - Changelog file.
21
+ - ...
@@ -0,0 +1,132 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, caste, color, religion, or sexual
10
+ identity and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the overall
26
+ community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or advances of
31
+ any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email address,
35
+ without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ [Igor Padoim's email](mailto:igorpadoim@gmail.com).
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series of
86
+ actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or permanent
93
+ ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within the
113
+ community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.1, available at
119
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
120
+
121
+ Community Impact Guidelines were inspired by
122
+ [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
123
+
124
+ For answers to common questions about this code of conduct, see the FAQ at
125
+ [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
126
+ [https://www.contributor-covenant.org/translations][translations].
127
+
128
+ [homepage]: https://www.contributor-covenant.org
129
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130
+ [Mozilla CoC]: https://github.com/mozilla/diversity
131
+ [FAQ]: https://www.contributor-covenant.org/faq
132
+ [translations]: https://www.contributor-covenant.org/translations
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,33 @@
1
+ # Contributing Guidelines
2
+
3
+ When contributing to this repository, please first discuss the change you wish
4
+ to make via issue, email, or any other method with the owners of this repository
5
+ before making a change.
6
+
7
+ Please note we have a [Code of Conduct](CODE-OF-CONDUCT.md), please follow it in
8
+ all your interactions with the project.
9
+
10
+ ## Pull Request Checklist
11
+
12
+ Before sending your pull requests, make sure you followed this list.
13
+
14
+ 1. Read the [Contributing Guidelines](CONTRIBUTING.md).
15
+ 2. Read the [Code of Conduct](CODE-OF-CONDUCT.md).
16
+ 3. Increase the version numbers to the new version that this Pull Request would
17
+ represent in the files below:
18
+ - Any example files
19
+ - [`gemspect` file](radventure.gemspec)
20
+ - **Note:** the versioning scheme we use is [SemVer](http://semver.org/)!
21
+ 4. You may merge the Pull Request in once you have the approval of the project
22
+ owner.
23
+
24
+ ## Reporting a Bug & Requesting Features
25
+
26
+ For both actions, this project uses GitHub templates, please use the adequate
27
+ template when either reporting a bug or requesting a new feature.
28
+
29
+ ## Licensing and copyright
30
+
31
+ Please note that accepted contributions are included in the repository and hence
32
+ added under the same [license](LICENSE.md) as the repository to which it was
33
+ contributed.
data/LICENSE.md ADDED
@@ -0,0 +1,14 @@
1
+ # Unlicense (Public Domain)
2
+
3
+ This is free and unencumbered software released into the public domain.
4
+
5
+ Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any
6
+ means.
7
+
8
+ In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.
9
+
10
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
11
+ >
12
+ > IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
13
+
14
+ For more information, please refer to <[http://unlicense.org/](http://unlicense.org/)>
data/README.md ADDED
@@ -0,0 +1,47 @@
1
+ # Ruby Adventure
2
+
3
+ [![Dynamic YAML Version](https://img.shields.io/badge/dynamic/yaml?url=https%3A%2F%2Fraw.githubusercontent.com%2FNereare%2Fradventure%2Frefs%2Fheads%2Fmaster%2Fradventure.yml&query=%24.version&style=flat&label=Version)](https://github.com/Nereare/radventure)
4
+ [![License](https://img.shields.io/github/license/Nereare/radventure.svg)](LICENSE.md)
5
+ [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](CODE-OF-CONDUCT.md)
6
+
7
+ [![Maintainability](https://api.codeclimate.com/v1/badges/e395aca8d5d1b1026c60/maintainability)](https://codeclimate.com/github/Nereare/radventure/maintainability)
8
+ [![Libraries.io dependency status for GitHub repo](https://img.shields.io/librariesio/github/Nereare/radventure)](https://libraries.io/github/Nereare/radventure)
9
+ [![GitHub commit activity](https://img.shields.io/github/commit-activity/m/Nereare/radventure)](https://github.com/Nereare/radventure/commits/master/)
10
+ ![GitHub repo size](https://img.shields.io/github/repo-size/Nereare/radventure)
11
+
12
+ A framework to develop text-base RPG games.
13
+
14
+ ## Installing
15
+
16
+ <!--
17
+ TODO Set installation instructions
18
+ BODY If there is some installation method, define it on the [README file](README.md).
19
+ -->
20
+ To be done...
21
+
22
+ ## Contributing
23
+
24
+ 1. Fork it!
25
+ 2. Create your feature branch: `git checkout -b my-new-feature`
26
+ 3. Commit your changes: `git commit -am 'Add some feature'`
27
+ 4. Push to the branch: `git push origin my-new-feature`
28
+ 5. Submit a pull request :tada:
29
+
30
+ Please, also read our [Contributing Guidelines](CONTRIBUTING.md).
31
+
32
+ ### Code of Conduct
33
+
34
+ Please note that this project is released with a [Contributor Code of Conduct](CODE-OF-CONDUCT.md).
35
+
36
+ By participating in this project you agree to abide by its terms.
37
+
38
+ ## History & Versioning
39
+
40
+ See the [Change Log](CHANGELOG.md) for further history.
41
+
42
+ This project uses [SemVer](http://semver.org/) for versioning. For the versions
43
+ available, see the [tags on this repository](https://github.com/Nereare/radventure/tags).
44
+
45
+ ## License
46
+
47
+ This project is available under the [The Unlicense](https://unlicense.org/).
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rubocop/rake_task'
5
+
6
+ RuboCop::RakeTask.new
7
+
8
+ task default: :rubocop
data/bin/console ADDED
@@ -0,0 +1,32 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require_relative '../lib/radventure'
6
+
7
+ # Game example below
8
+
9
+ meta = Radventure::Meta.new(
10
+ 'Console Test',
11
+ 'Lorem ipsum dolor sit amet.',
12
+ '87.6.13-r9',
13
+ 'Vladimir Ilych Ulianov',
14
+ 'LGPL v3',
15
+ '1917',
16
+ prelude: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sapien felis, lobortis quis venenatis id, vehicula ' \
17
+ 'nec tellus. Donec ultrices urna sapien, eu accumsan magna finibus at. Aliquam sit amet libero vulputate, malesuada' \
18
+ ' ex a, gravida ipsum. Aliquam malesuada quam a sapien molestie pulvinar. Curabitur nec ligula eget mauris placerat' \
19
+ ' aliquet. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Duis mollis ' \
20
+ 'tempus diam, hendrerit rhoncus felis maximus in. Mauris non leo sem. Nulla lacinia urna sit amet lobortis volutpat' \
21
+ '. Integer ultricies semper diam ut cursus. Morbi tempus vehicula mauris. Morbi vulputate mi enim, sed tincidunt ' \
22
+ 'ligula iaculis id. Curabitur convallis sed nisl sit amet sollicitudin.\n\nIn vestibulum non quam eu dignissim. ' \
23
+ 'Quisque nec sem ut libero tincidunt pulvinar at id turpis. Lorem ipsum dolor sit amet, consectetur adipiscing ' \
24
+ 'elit. Cras nisi libero, scelerisque in lorem in, blandit accumsan risus. Nulla fermentum velit maximus leo ' \
25
+ 'sagittis, feugiat tempor ligula placerat. Duis fringilla vehicula mattis. Nulla vel tempus nisi.'
26
+ )
27
+ first_room = Radventure::Room.new(
28
+ 'Test Room',
29
+ 'Lorem ipsum dolor sit amet'
30
+ )
31
+
32
+ Radventure::Game.new(meta, first_room)
data/bin/go.ps1 ADDED
@@ -0,0 +1,21 @@
1
+ <#
2
+ .SYNOPSIS
3
+ Install dependencies and run console
4
+ .DESCRIPTION
5
+ This PowerShell script starts by installing any missing dependencies through Bundler, then it invokes the `console` script through Ruby.
6
+ .LINK
7
+ https://github.com/Nereare/radventure
8
+ .NOTES
9
+ Author: Igor Padoim | License: Unlicense
10
+ #>
11
+ Write-Host 'Installing dependencies...'
12
+ bundle install
13
+
14
+ Write-Host 'Now, run application...'
15
+ try {
16
+ ruby bin\console
17
+ exit 0
18
+ } catch {
19
+ Write-Error '⚠️ Could not invoke ruby.'
20
+ exit 1
21
+ }
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
metadata ADDED
@@ -0,0 +1,127 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: radventure
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0.alpha
5
+ platform: ruby
6
+ authors:
7
+ - Igor Padoim
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-11-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rainbow
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: require_all
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '13.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '13.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.21'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.21'
69
+ - !ruby/object:Gem::Dependency
70
+ name: yard
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0.9'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0.9'
83
+ description: A framework to develop text-base RPG games.
84
+ email:
85
+ - igorpadoim@gmail.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".rubocop.yml"
91
+ - CHANGELOG.md
92
+ - CODE-OF-CONDUCT.md
93
+ - CONTRIBUTING.md
94
+ - LICENSE.md
95
+ - README.md
96
+ - Rakefile
97
+ - bin/console
98
+ - bin/go.ps1
99
+ - bin/setup
100
+ homepage: https://nereare.github.io/radventure/
101
+ licenses:
102
+ - WTFPL
103
+ metadata:
104
+ homepage_uri: https://nereare.github.io/radventure/
105
+ bug_tracker_uri: https://github.com/Nereare/radventure/issues
106
+ source_code_uri: https://github.com/Nereare/radventure
107
+ changelog_uri: https://github.com/Nereare/radventure/blob/master/CHANGELOG.md
108
+ post_install_message:
109
+ rdoc_options: []
110
+ require_paths:
111
+ - lib
112
+ required_ruby_version: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: 3.3.0
117
+ required_rubygems_version: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ requirements: []
123
+ rubygems_version: 3.5.22
124
+ signing_key:
125
+ specification_version: 4
126
+ summary: A framework to develop text-base RPG games.
127
+ test_files: []