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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ac5d05486b05d706aea79214b576027e6a774493
4
- data.tar.gz: 15435bf320a6a58550e8906ef1ea55710c8317c7
3
+ metadata.gz: 0a40f6ebeedd66cf7abab6370b690e055fd550a7
4
+ data.tar.gz: fab42d343664436ffcdcb74034f6d99052f1577a
5
5
  SHA512:
6
- metadata.gz: 14cc853af1e53f0ec122b035492484648e10478653de692fca837102540361677752dda7a9b1d7c11ecefb8620443fcacf674f27cfd221f67c12c3dad0508bf9
7
- data.tar.gz: 58c9c81acf943d8c36182436df7c3f3b1a132fa00e41132a3c319ec68770f2551085b4db890d8735a1c4f140878908df3f30fdfc8d1baa66c8e15ae49913aef6
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 to do my bidding. Thanks to the open-ness
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
- Pre-requisites: Ruby, Bundler
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
- `rake run` starts a new game, which means starting a Pry session bound to an `Irbthbound::Player` instance.
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
 
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'irbthbound'
3
+ require 'irbthbound/cli'
4
4
 
5
5
  Irbthbound::CLI.main(ARGV)
@@ -1,2 +1,3 @@
1
- require 'irbthbound/cli'
2
-
1
+ # This file is only here because bundler wants it to be.
2
+ #
3
+ # It's totally useless otherwise.
@@ -1,3 +1,3 @@
1
1
  module Irbthbound
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: irbthbound
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Yarwood