Skip to content

Commit

Permalink
built the first gem -- works just fine
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Dec 17, 2009
1 parent 290aa25 commit c6f11fb
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 40 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1 +1,2 @@
parser.output
parser.output
*.gem
Empty file added README
Empty file.
22 changes: 13 additions & 9 deletions Rakefile
Expand Up @@ -3,13 +3,17 @@ task :build, :extra_args do |t, args|
sh "racc #{args[:extra_args]} -o lib/coffee_script/parser.rb lib/coffee_script/grammar.y"
end

namespace :gem do

# # Pipe compiled JS through JSLint.
# puts "\n\n"
# require 'open3'
# stdin, stdout, stderr = Open3.popen3('jsl -nologo -stdin')
# stdin.write(js)
# stdin.close
# puts stdout.read
# stdout.close
# stderr.close
desc 'Build and install the coffee-script gem'
task :install do
sh "gem build coffee-script.gemspec"
sh "sudo gem install #{Dir['*.gem'].join(' ')} --local --no-ri --no-rdoc"
end

desc 'Uninstall the coffee-script gem'
task :uninstall do
sh "sudo gem uninstall -x coffee-script"
end

end
30 changes: 0 additions & 30 deletions SYNTAX

This file was deleted.

2 changes: 2 additions & 0 deletions TODO
@@ -1,5 +1,7 @@
TODO:

* Need *way* better syntax errors.

* Is it possible to close blocks (functions, ifs, trys) without an explicit
block delimiter or significant whitespace?

Expand Down
21 changes: 21 additions & 0 deletions coffee-script.gemspec
@@ -0,0 +1,21 @@
Gem::Specification.new do |s|
s.name = 'coffee-script'
s.version = '0.1.0' # Keep version in sync with coffee-script.rb
s.date = '2009-12-16'

s.homepage = "http://jashkenas.github.com/coffee-script/"
s.summary = "The CoffeeScript Compiler"
s.description = <<-EOS
...
EOS

s.authors = ['Jeremy Ashkenas']
s.email = 'jashkenas@gmail.com'
s.rubyforge_project = 'coffee-script'
s.has_rdoc = false

s.require_paths = ['lib']
s.executables = ['coffee-script']

s.files = Dir['bin/*', 'examples/*', 'lib/**/*', 'coffee-script.gemspec', 'LICENSE', 'README']
end

0 comments on commit c6f11fb

Please sign in to comment.