Skip to content

Instantly share code, notes, and snippets.

@0x0dea
Created September 20, 2015 22:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0x0dea/0dfbcb4379651aa2a44b to your computer and use it in GitHub Desktop.
Save 0x0dea/0dfbcb4379651aa2a44b to your computer and use it in GitHub Desktop.
diff --git a/bin/skynet b/bin/skynet
index d4e9742..e06d7d6 100755
--- a/bin/skynet
+++ b/bin/skynet
@@ -2,8 +2,9 @@
require 'optparse'
require 'methadone'
-CHARACTERS_DATA = YAML.load_file("lib/yml/characters.yml")
-WORDS_DATA = YAML.load_file("lib/yml/words.yml")
+DIR = Gem.datadir 'skynet'
+CHARACTERS_DATA = YAML.load_file File.join(DIR, 'characters.yml')
+WORDS_DATA = YAML.load_file File.join(DIR, 'words.yml')
require 'skynet'
diff --git a/skynet-0.1.0.gem b/skynet-0.1.0.gem
index 31e4579..6c3f059 100644
Binary files a/skynet-0.1.0.gem and b/skynet-0.1.0.gem differ
diff --git a/skynet.gemspec b/skynet.gemspec
index 491ea7d..5bb6190 100644
--- a/skynet.gemspec
+++ b/skynet.gemspec
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
spec.description = %q{Skynet was originally developed for generating a novel for NaNoWriMo. However, it can be used for other creative writing projects as well (provided you write a .Sky template beforehand)! You may run Skynet in the command line simply by typing "skynet example_file.sky".}
spec.homepage = "TODO: Put your gem's website or public repo URL here."
- spec.files = Dir.glob("{bin,lib}/**/*") + %w(LICENSE.txt README.md)
+ spec.files = Dir.glob("{bin,lib,data}/**/*") + %w(LICENSE.txt README.md)
spec.bindir = "bin"
spec.executables << 'skynet'
spec.require_paths = ["lib"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment