irbthbound 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -5
- data/bin/console +2 -4
- data/exe/irbthbound +1 -1
- data/lib/irbthbound.rb +3 -2
- data/lib/irbthbound/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a40f6ebeedd66cf7abab6370b690e055fd550a7
|
4
|
+
data.tar.gz: fab42d343664436ffcdcb74034f6d99052f1577a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7f3ad06900eccdcca8ec8f3e5452d894f285fe838c95cad7d7aa885d5f0030e61a4af3bdeba1a13120e74112a97021ff58e105fd5a645e159c51da268fd2fe2
|
7
|
+
data.tar.gz: cc45c8dfc18ffdaa78518cf55d4fdd058ba80858a5c1a74fd9d4ee9d706fa57acb49be3fbd722af1dfff147ebfa88a849efeedbe507b2c953289443572c681fc
|
data/README.md
CHANGED
@@ -4,8 +4,7 @@ For reasons I don't fully comprehend, I've always been mega-obsessed with [Earth
|
|
4
4
|
|
5
5
|
In 2012, I decided it would be fun to write a port of EarthBound as a text adventure game. I worked on it for a little bit and then promptly got bored and moved onto something else.
|
6
6
|
|
7
|
-
In 2016, I stumbled upon the code I had written and decided to play around with it a little more. In the course of refactoring the (admittedly terrible) Ruby code I had hacked up several years prior, I came upon the realization that, in lieu of writing my own interactive text adventure environment from scratch, I could hijack Ruby's interactive shell, [irb](https://en.wikipedia.org/wiki/Interactive_Ruby_Shell) and re-purpose it
|
8
|
-
and extensibility of irb and the Ruby language itself, this actually turned out to be pretty doable. Commands like `look`, `attack`, and `inventory` could be implemented as functions in the context of the shell environment. Thus, **IRBTHBOUND** was born.
|
7
|
+
In 2016, I stumbled upon the code I had written and decided to play around with it a little more. In the course of refactoring the (admittedly terrible) Ruby code I had hacked up several years prior, I came upon the realization that, in lieu of writing my own interactive text adventure environment from scratch, I could hijack Ruby's interactive shell, [irb](https://en.wikipedia.org/wiki/Interactive_Ruby_Shell) and re-purpose it as a text adventure engine. Thanks to the open-ness and extensibility of irb and the Ruby language itself, this actually turned out to be pretty doable. Commands like `look`, `attack`, and `inventory` could be implemented as functions in the context of the shell environment. Thus, **IRBTHBOUND** was born.
|
9
8
|
|
10
9
|
(I actually ended up using [Pry](http://pryrepl.org/) for the extra flexibility it provides over `irb`, like being able to redefine the prompt dynamically, etc. Perhaps it's a bit of a stretch to still call this **irb**thbound, but hey -- close enough, right!?)
|
11
10
|
|
@@ -13,7 +12,7 @@ I've tried to remain as true to the spirit of EarthBound as possible with this p
|
|
13
12
|
|
14
13
|
## Installation
|
15
14
|
|
16
|
-
|
15
|
+
Prerequisites: Ruby, Bundler
|
17
16
|
|
18
17
|
Run `gem install irbthbound` to grab the latest release.
|
19
18
|
|
@@ -29,11 +28,11 @@ Clone this repo and run `bundle install` to install dependencies.
|
|
29
28
|
|
30
29
|
### REPL
|
31
30
|
|
32
|
-
`bin/console` will get you into a development REPL.
|
31
|
+
`bundle exec bin/console` will get you into a development REPL.
|
33
32
|
|
34
33
|
### Game
|
35
34
|
|
36
|
-
|
35
|
+
You can run `irbthbound` without installing it to your system (and including any changes you've made locally) by running `bundle exec exe/irbthbound`.
|
37
36
|
|
38
37
|
### Local Build
|
39
38
|
|
data/bin/console
CHANGED
@@ -2,11 +2,9 @@
|
|
2
2
|
|
3
3
|
require 'bundler/setup'
|
4
4
|
require 'irbthbound/player'
|
5
|
-
#
|
6
|
-
# require "irb"
|
7
|
-
# IRB.start
|
8
|
-
|
9
5
|
require 'pry'
|
6
|
+
|
7
|
+
# TODO: make actual (initial) prompts
|
10
8
|
Pry.config.prompt = [ proc { "ENTER INPUT> " }, proc { "MORE INPUT REQUIRED!*" }]
|
11
9
|
Pry.start Irbthbound::Player.new
|
12
10
|
|
data/exe/irbthbound
CHANGED
data/lib/irbthbound.rb
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
# This file is only here because bundler wants it to be.
|
2
|
+
#
|
3
|
+
# It's totally useless otherwise.
|
data/lib/irbthbound/version.rb
CHANGED