Skip to content

Commit f55a9a5

Browse files
author
Robert W. Oliver II
committed
Fixed issues with gem generation.
1 parent 3a9e7c1 commit f55a9a5

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.gem

bin/lots

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#!/usr/bin/env ruby
22

3-
require_relative "../lib/lots.rb"
3+
Dir.chdir(File.expand_path(File.dirname(__FILE__).to_s + "/.."))
4+
load "lots.rb"

lots.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Gem::Specification.new do |s|
55
s.summary = "Legend of the Sourcerer is an open-source text-based adventure game written in Ruby."
66
s.authors = ["Robert W. Oliver II"]
77
s.email = "robert@cidergrove.com"
8-
s.files = ["lib/lots.rb", "lib/main.rb", "lib/character.rb", "lib/world.rb", "lib/enemy.rb", "lib/ui.rb"]
8+
s.files = ["lots.rb", "lib/main.rb", "lib/character.rb", "lib/world.rb", "lib/enemy.rb", "lib/ui.rb", "lib/story.rb"]
99
s.executables << 'lots'
1010
s.homepage = "https://github.com/rwoliver2/lots"
1111
s.license = "GPL-3.0"

lib/lots.rb renamed to lots.rb

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,11 @@
3333
end
3434

3535
# Require libraries
36-
require_relative "ui"
37-
require_relative "world"
38-
require_relative "character"
39-
require_relative "story"
40-
require_relative "enemy"
36+
load "lib/ui.rb"
37+
load "lib/world.rb"
38+
load "lib/character.rb"
39+
load "lib/story.rb"
40+
load "lib/enemy.rb"
4141

4242
# Start
43-
require_relative "main"
44-
43+
load "lib/main.rb"

0 commit comments

Comments
 (0)