Skip to content

Commit

Permalink
stitch gem is already taken :(, call it stitch-rb instead
Browse files Browse the repository at this point in the history
  • Loading branch information
maccman committed Jun 30, 2011
1 parent e695818 commit a8dceee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions README.md
Expand Up @@ -8,6 +8,10 @@ In other words, this is a [CommonJS](http://dailyjs.com/2010/10/18/modules/) Jav

##Usage

Install the gem, or add it to your Gemfile:

gem 'stitch-rb'

You can compile your application like this:

Stitch::Package.new(:paths => ["app"], :dependencies => ["lib/jquery.js"]).compile
Expand All @@ -18,9 +22,9 @@ You should give `Stitch::Package` an array of `:paths`, the relative directories

##Rails & Rack

Stitch includes a basic Rack server, for example this is how you'd use it with Rails routes:
Stitch includes a basic Rack server, for example this is how you'd use it with Rails 3 routes:

match '/application.js' => Stitch::Server.new(:paths => ["app/javascripts"])
match '/application.js' => Stitch::Server.new(:paths => ["app/assets/javascripts"])

##Adding compilers

Expand Down
2 changes: 1 addition & 1 deletion stitch.gemspec
Expand Up @@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
require "stitch/version"

Gem::Specification.new do |s|
s.name = "stitch"
s.name = "stitch-rb"
s.version = Stitch::VERSION
s.authors = ["Alex MacCaw"]
s.email = ["maccman@gmail.com"]
Expand Down

0 comments on commit a8dceee

Please sign in to comment.