gemwarrior 0.15.18 → 0.15.19
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 +4 -4
- data/.markdownlint.json +5 -0
- data/.ruby-version +1 -0
- data/README.md +33 -8
- data/bin/gemwarrior +2 -0
- data/lib/gemwarrior/version.rb +1 -1
- data/spec/gemwarrior_spec.rb +8 -5
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53d7257c06436a3e94c184be40a19de7248620ad46ea880b14da3b69aa627d93
|
4
|
+
data.tar.gz: 2f70674f1e36bed7f833358e41ac3462da12705d2f23c308aba21a9e9f9ca044
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc1d76dbe57aaab61609ca74ae19edf05f4fe47cfdb5014805c8d4ba09adb52cd133496e6a3c50b553f9fe9001e3268769dc67790b699139cab7cabe7641aeb3
|
7
|
+
data.tar.gz: 77da83f91a5dc189c36fe87bc79aae2d9a21e4710183b245f407ae19df64586ef4993afc54190e901275f66142f8204e02328f9faadb180e87fba1ae3fd4833d
|
data/.markdownlint.json
ADDED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.7.8
|
data/README.md
CHANGED
@@ -3,17 +3,39 @@
|
|
3
3
|
|G|E|M| |W|A|R|R|I|O|R|
|
4
4
|
\-+-+-+ +-+-+-+-+-+-+-/
|
5
5
|
```
|
6
|
+
|
6
7
|
<small>logo courtesy of [ascii generator](http://www.network-science.de/ascii/)</small>
|
7
8
|
|
8
9
|
[](http://badge.fury.io/rb/gemwarrior)
|
9
10
|
|
10
|
-
**Gem Warrior** is a text adventure that takes place in the land of **Jool**,
|
11
|
+
**Gem Warrior** is a text adventure that takes place in the land of **Jool**,
|
12
|
+
where randomized fortune is just as likely as *mayhem*.
|
11
13
|
|
12
|
-
You take up the mantle of **1.upto(rand(5..10)) {print rand(65..90).chr}**,
|
14
|
+
You take up the mantle of **1.upto(rand(5..10)) {print rand(65..90).chr}**,
|
15
|
+
a gifted young acolyte who has been tasked by the queen herself, **Ruby**,
|
16
|
+
to venture off into the unknown to recapture a **Shiny Thing<sup>tm</sup>**
|
17
|
+
that holds great power within its crystallized boundaries. Unfortunately, it
|
18
|
+
was stolen recently by a crazed madperson named **Emerald**, bent on using
|
19
|
+
its frightening power for **Evil**. You are **Good**, obviously, and the
|
20
|
+
rightful caretaker of such power, but he will not give it up willingly, and
|
21
|
+
has cursed all the creatures of the land into doing his bidding, which is
|
22
|
+
largely tearing you limb from limb.
|
13
23
|
|
14
|
-
Start in your poor, super lame cottage, where you live alone, subsisting off
|
24
|
+
Start in your poor, super lame cottage, where you live alone, subsisting off
|
25
|
+
the sale of polished rocks you scavenge all day for in the neighboring caves.
|
26
|
+
Once tasked with your quest, travel throughout the land of Jool, eventually
|
27
|
+
reaching the sky tower that Emerald resides in with his stolen goods,
|
28
|
+
laughing to himself, occasionally.
|
15
29
|
|
16
|
-
As you travel you will discover sights and sounds of the land, all of which
|
30
|
+
As you travel you will discover sights and sounds of the land, all of which
|
31
|
+
are new to you because you don't really get out much. Visit towns with
|
32
|
+
merchants willing to trade coin for wares they bought off of other adventurers
|
33
|
+
who didn't last the previous attempts at thwartion. Sleep in a tent (or on the
|
34
|
+
ground, if that's all that's available) to regain your enumerated status
|
35
|
+
points, which are conveniently located in your peripheral vision (i.e. the
|
36
|
+
console window). Eventually, if you're skilled, you just might reach the place
|
37
|
+
known as **Emerald's Sky Tower**, figure out how to part him from his
|
38
|
+
**ShinyThing<sup>tm</sup>**, and then do what is "right".
|
17
39
|
|
18
40
|
## PLAY
|
19
41
|
|
@@ -21,10 +43,12 @@ As you travel you will discover sights and sounds of the land, all of which are
|
|
21
43
|
|
22
44
|
1. `ruby -v` should return `ruby 2.something`; else install [Ruby](https://www.ruby-lang.org)
|
23
45
|
2. `gem -v` should return `2.something`; else install [RubyGems](https://rubygems.org)
|
24
|
-
|
25
|
-
|
46
|
+
3. `(sudo) gem install gemwarrior`
|
47
|
+
4. `gemwarrior`
|
26
48
|
|
27
|
-
Run the commands above and you'll be whisked away to Jool, ready to start or
|
49
|
+
Run the commands above and you'll be whisked away to Jool, ready to start or
|
50
|
+
continue your quest to defeat Emerald and take back the coveted Shiny Thing(tm)
|
51
|
+
that you will bring back to Queen Ruby (or will you...?).
|
28
52
|
|
29
53
|
### Main Commands
|
30
54
|
|
@@ -37,7 +61,8 @@ Run the commands above and you'll be whisked away to Jool, ready to start or con
|
|
37
61
|
`> drop [object]` - drop an item from your inventory
|
38
62
|
`> equip [object]` - designate an item in your inventory your weapon
|
39
63
|
`> unequip [object]` - stop using an item in your inventory as your weapon
|
40
|
-
`> go [direction]` - go in a direction, if possible
|
64
|
+
`> go [direction]` - go in a direction, if possible
|
65
|
+
(north|east|south|west work as shortcuts)
|
41
66
|
`> attack [monster]` - attack a monster
|
42
67
|
`> change [attribute]` - change some things about yourself
|
43
68
|
`> help` - display available commands
|
data/bin/gemwarrior
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
require 'optparse'
|
4
4
|
require 'os'
|
5
|
+
require 'fileutils'
|
5
6
|
|
6
7
|
require_relative '../lib/gemwarrior/game'
|
7
8
|
require_relative '../lib/gemwarrior/game_options'
|
@@ -54,6 +55,7 @@ end
|
|
54
55
|
|
55
56
|
def read_options_file
|
56
57
|
if !File.exist?(GW_OPTS_FILE_PATH)
|
58
|
+
FileUtils.mkdir(GW_HOME_PATH)
|
57
59
|
File.write(GW_OPTS_FILE_PATH, "")
|
58
60
|
end
|
59
61
|
|
data/lib/gemwarrior/version.rb
CHANGED
data/spec/gemwarrior_spec.rb
CHANGED
@@ -5,7 +5,7 @@ describe Gemwarrior do
|
|
5
5
|
let(:default_load_options) do
|
6
6
|
GameOptions.add 'log_file_path', "#{Dir.home}/.gemwarrior_log"
|
7
7
|
GameOptions.add 'options_file_path', "#{Dir.home}/.gemwarrior_options"
|
8
|
-
|
8
|
+
|
9
9
|
Game.new(
|
10
10
|
beast_mode: false,
|
11
11
|
debug_mode: false,
|
@@ -23,19 +23,22 @@ describe Gemwarrior do
|
|
23
23
|
expect(VERSION).not_to be nil
|
24
24
|
end
|
25
25
|
it 'display help menu' do
|
26
|
-
|
26
|
+
skip 'not implemented yet' do
|
27
|
+
end
|
27
28
|
end
|
28
29
|
end
|
29
|
-
|
30
|
+
|
30
31
|
describe 'game load' do
|
31
32
|
context 'default options' do
|
32
33
|
it 'displays the main menu' do
|
33
|
-
|
34
|
+
skip 'not implemented yet' do
|
35
|
+
end
|
34
36
|
end
|
35
37
|
end
|
36
38
|
context 'new game option enabled' do
|
37
39
|
it 'displays the main game prompt and runs the look command' do
|
38
|
-
|
40
|
+
skip 'not implemented yet' do
|
41
|
+
end
|
39
42
|
end
|
40
43
|
end
|
41
44
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gemwarrior
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Chadwick
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clocker
|
@@ -277,7 +277,9 @@ extensions: []
|
|
277
277
|
extra_rdoc_files: []
|
278
278
|
files:
|
279
279
|
- ".gitignore"
|
280
|
+
- ".markdownlint.json"
|
280
281
|
- ".rspec"
|
282
|
+
- ".ruby-version"
|
281
283
|
- ".travis.yml"
|
282
284
|
- Gemfile
|
283
285
|
- LICENSE.txt
|
@@ -423,7 +425,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
423
425
|
- !ruby/object:Gem::Version
|
424
426
|
version: '0'
|
425
427
|
requirements: []
|
426
|
-
rubygems_version: 3.
|
428
|
+
rubygems_version: 3.1.6
|
427
429
|
signing_key:
|
428
430
|
specification_version: 4
|
429
431
|
summary: RubyGem text adventure
|