gemwarrior 0.15.18 → 0.15.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +14 -13
- data/.markdownlint.json +5 -0
- data/README.md +33 -8
- data/bin/gemwarrior +3 -1
- data/gemwarrior.gemspec +1 -1
- data/lib/gemwarrior/version.rb +1 -1
- data/spec/gemwarrior_spec.rb +8 -5
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5934d01c0bada38330d6c664d8e877213fc905912d98819fdf597fc4d34ff83
|
4
|
+
data.tar.gz: 17858b5c7c035cd9ce85523599c1578928605b0de3ca9d98f278a29250f1cc25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46b056f10a0d666e9b78781a6b9e52065ed27b9287a0413cc0efa4e51754fc4f5f3598460cf22674b0a6a2fa9f3eb942dd54c460217d9e136c7fd883c8c43e78
|
7
|
+
data.tar.gz: c0e1698df2a32328e0684329a70916a359f07fbe26c380239dac86794ac53d57e5be449508cc65198184f96fe41818bd7b3013c140bdacd0f8020f8b1e462ed7
|
data/.gitignore
CHANGED
@@ -1,14 +1,15 @@
|
|
1
|
-
/.bundle/
|
2
|
-
/.yardoc
|
3
|
-
/Gemfile.lock
|
4
|
-
/_yardoc/
|
5
|
-
/coverage/
|
6
|
-
/doc/
|
7
|
-
/pkg/
|
8
|
-
/spec/reports/
|
9
|
-
/tmp/
|
10
|
-
*.gct
|
11
|
-
/img/
|
12
|
-
/assets/
|
13
1
|
.gemwarrior
|
14
|
-
|
2
|
+
.bundle/
|
3
|
+
.yardoc
|
4
|
+
Gemfile.lock
|
5
|
+
*.gct
|
6
|
+
*.gem
|
7
|
+
!bin/gemwarrior
|
8
|
+
_yardoc/
|
9
|
+
assets/
|
10
|
+
coverage/*
|
11
|
+
doc/
|
12
|
+
img/
|
13
|
+
pkg/
|
14
|
+
spec/reports/
|
15
|
+
tmp/
|
data/.markdownlint.json
ADDED
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
|
[![Gem Version](https://badge.fury.io/rb/gemwarrior.svg)](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'
|
@@ -16,7 +17,7 @@ GW_SAVE_FILE_BIN_PATH = "#{GW_HOME_PATH}/gw_sav.dat"
|
|
16
17
|
GW_SAVE_FILE_MODE_DEFAULT = 'Y' # YAML
|
17
18
|
GW_OPTS_FILE_PATH = "#{GW_HOME_PATH}/gw_opts"
|
18
19
|
GW_LOG_FILE_PATH = "#{GW_HOME_PATH}/gw_log"
|
19
|
-
GW_WRAP_WIDTH_DEFAULT
|
20
|
+
GW_WRAP_WIDTH_DEFAULT = 80
|
20
21
|
|
21
22
|
def print_error(error)
|
22
23
|
case error
|
@@ -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/gemwarrior.gemspec
CHANGED
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
"homepage_uri" => source_uri,
|
29
29
|
"source_code_uri" => source_uri
|
30
30
|
}
|
31
|
-
spec.required_ruby_version = '
|
31
|
+
spec.required_ruby_version = '>= 2.0'
|
32
32
|
spec.post_install_message = "Type 'gemwarrior' to start adventuring!"
|
33
33
|
|
34
34
|
## required deps
|
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.20
|
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-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clocker
|
@@ -277,6 +277,7 @@ extensions: []
|
|
277
277
|
extra_rdoc_files: []
|
278
278
|
files:
|
279
279
|
- ".gitignore"
|
280
|
+
- ".markdownlint.json"
|
280
281
|
- ".rspec"
|
281
282
|
- ".travis.yml"
|
282
283
|
- Gemfile
|
@@ -414,7 +415,7 @@ require_paths:
|
|
414
415
|
- lib
|
415
416
|
required_ruby_version: !ruby/object:Gem::Requirement
|
416
417
|
requirements:
|
417
|
-
- - "
|
418
|
+
- - ">="
|
418
419
|
- !ruby/object:Gem::Version
|
419
420
|
version: '2.0'
|
420
421
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
@@ -423,7 +424,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
423
424
|
- !ruby/object:Gem::Version
|
424
425
|
version: '0'
|
425
426
|
requirements: []
|
426
|
-
rubygems_version: 3.
|
427
|
+
rubygems_version: 3.5.11
|
427
428
|
signing_key:
|
428
429
|
specification_version: 4
|
429
430
|
summary: RubyGem text adventure
|