Permalink
Browse files

update so it's a proper gem, yo

  • Loading branch information...
1 parent 540a361 commit 00e673a805286c58d1a57f6f9d43c86850beec83 Tom Bell committed Sep 8, 2011
Showing with 35 additions and 4 deletions.
  1. +8 −0 bin/trollscript
  2. +0 −4 { → lib}/trollscript.rb
  3. +3 −0 lib/trollscript/version.rb
  4. +24 −0 trollscript.gemspec
View
@@ -0,0 +1,8 @@
+#!/usr/bin/env ruby
+
+$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
+require 'trollscript'
+
+app = TrollScript.new
+app.compile ARGF.read
+app.run
@@ -78,7 +78,3 @@ def jump_to_open
end
end
end
-
-app = TrollScript.new
-app.compile(ARGF.read)
-app.run
@@ -0,0 +1,3 @@
+module TrollScript
+ VERSION = '0.0.1'
+end
View
@@ -0,0 +1,24 @@
+$LOAD_PATH.unshift 'lib'
+require "trollscript/version"
+
+Gem::Specification.new do |s|
+ s.name = "trollscript"
+ s.version = TrollScript::VERSION
+ s.date = Time.now.strftime('%Y-%m-%d')
+ s.summary = "An alternative dialect of Brainfuck, for trolls."
+ s.homepage = "https://github.com/tombell/trollscript"
+ s.email = "tomb@tombell.org.uk"
+ s.authors = [ "Tom Bell" ]
+ s.has_rdoc = false
+
+ s.files = %w( README.md )
+ s.files += Dir.glob("lib/**/*")
+ s.files += Dir.glob("bin/**/*")
+ s.files += Dir.glob("man/**/*")
+ s.files += Dir.glob("test/**/*")
+
+ s.executables = %w( trollscript )
+ s.description = <<desc
+ TrollScript is basically an esoteric dialect of Brainfuck. Why did I make it I hear you ask? Because I had some free time.
+desc
+end

0 comments on commit 00e673a

Please sign in to comment.