-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
95 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,15 @@ | |||
# Barista | |||
|
|||
Barista is very, very similar to [bistro\_car](http://github.com/jnicklas/bistro_car) (infact, credit where credit is due - it shares similar | |||
code / is almost a fork). | |||
|
|||
The main difference being, it lets you use coffee as you would javascript. Simply put, Write coffee | |||
and place it in `app/scripts` and Barista will automatically serve it as if it was placed in `public/javascripts` | |||
|
|||
That is, `app/scripts/demo.coffee` will work for `/javascripts/demo.js`. Even better (and more importantly | |||
for me), it provides `Barista.compile_all!` which takes all coffee files and compiles them into `public/javascripts`. | |||
|
|||
If you're using Jammit, this means you can simple run a rake task (`rake barista:brew` before running jammit) and | |||
your coffeescripts will be automatically provided, ready for bundling. | |||
|
|||
Barista require rails 3+ (but patches for Rails 2 will be accepted.) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,46 @@ | |||
# Generated by jeweler | |||
# DO NOT EDIT THIS FILE DIRECTLY | |||
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command | |||
# -*- encoding: utf-8 -*- | |||
|
|||
Gem::Specification.new do |s| | |||
s.name = %q{barista} | |||
s.version = "0.1.0" | |||
|
|||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= | |||
s.authors = ["Darcy Laycock"] | |||
s.date = %q{2010-04-24} | |||
s.description = %q{TODO: longer description of your gem} | |||
s.email = %q{sutto@sutto.net} | |||
s.extra_rdoc_files = [ | |||
"LICENSE", | |||
"README.rdoc" | |||
] | |||
s.files = [ | |||
".document", | |||
".gitignore", | |||
"LICENSE", | |||
"README.rdoc", | |||
"Rakefile", | |||
"app/controllers/barista_controller.rb", | |||
"config/routes.rb", | |||
"lib/barista.rb", | |||
"lib/barista/compiler.rb" | |||
] | |||
s.homepage = %q{http://github.com/Sutto/barista} | |||
s.rdoc_options = ["--charset=UTF-8"] | |||
s.require_paths = ["lib"] | |||
s.rubygems_version = %q{1.3.6} | |||
s.summary = %q{TODO: one-line summary of your gem} | |||
|
|||
if s.respond_to? :specification_version then | |||
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION | |||
s.specification_version = 3 | |||
|
|||
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then | |||
else | |||
end | |||
else | |||
end | |||
end | |||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,3 +1,3 @@ | |||
Rails.application.routes.draw do | Rails.application.routes.draw do | ||
match 'javascripts/*path.js', :to => 'barista#show' | match 'javascripts/*js_path.js', :to => 'barista#show' | ||
end | end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,8 @@ | |||
namespace :barista do | |||
|
|||
desc "Compiles coffeescripts from app/scripts into public/javascripts" | |||
task :brew => :environment do | |||
Barista.compile_all!(true) | |||
end | |||
|
|||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,8 @@ | |||
module Barista | |||
module Version | |||
MAJOR = 0 | |||
MINOR = 1 | |||
PATCH = 0 | |||
STRING = [MAJOR, MINOR, PATCH].join(".") | |||
end | |||
end |