Updated for Rails 4.0.0+
-
Set up the
bowergem. -
Follow the Bower instructions and list your dependencies in your
bower.json, e.g.// bower.json
{
Updated for Rails 4.0.0+
Set up the bower gem.
Follow the Bower instructions and list your dependencies in your bower.json, e.g.
// bower.json{
| { | |
| "app/models/*.rb": { | |
| "command": "model", | |
| "affinity": "model", | |
| "alternate": ["unit/models/%s_spec.rb", "spec/models/%s_spec.rb"], | |
| "related": "db/schema.rb#%p", | |
| "template": "class %S\nend" | |
| }, | |
| "spec/factories/*_factory.rb": { |
| let g:rails_projections = { | |
| \ "config/projections.json": { | |
| \ "command": "projections" | |
| \ }, | |
| \ "spec/features/*_spec.rb": { | |
| \ "command": "feature", | |
| \ "template": "require 'spec_helper'\n\nfeature '%h' do\n\nend", | |
| \ }} | |
| let g:rails_gem_projections = { |
| // installed Clojure packages: | |
| // | |
| // * BracketHighlighter | |
| // * lispindent | |
| // * SublimeREPL | |
| // * sublime-paredit | |
| { | |
| "word_separators": "/\\()\"',;!@$%^&|+=[]{}`~?", | |
| "paredit_enabled": true, |
| function readFile(file) { | |
| var reader = new FileReader(); | |
| var deferred = $.Deferred(); | |
| reader.onload = function(event) { | |
| deferred.resolve(event.target.result); | |
| }; | |
| reader.onerror = function() { | |
| deferred.reject(this); |
| $stack, $draws = [], {} | |
| def method_missing *args | |
| return if args[0][/^to_/] | |
| $stack << args.map { |a| a or $stack.pop } | |
| $draws[$stack.pop(2)[0][0]] = args[1] if args[0] == :< | |
| end | |
| class Array | |
| def +@ |
| // clang main.cpp | |
| #include <tchar.h> | |
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <windows.h> | |
| #include <D3D11.h> | |
| #include <D3Dcompiler.h> |
| !!! 5 | |
| //if lt IE 7 | |
| html(class="no-js ie6 oldie", lang="en") | |
| //if IE 7 | |
| html(class="no-js ie7 oldie", lang="en") | |
| //if IE 8 | |
| html(class="no-js ie8 oldie", lang="en") | |
| // [if gt IE 8] <! | |
| html(class="no-js", lang="en") | |
| // <![endif] |
| /*! | |
| * quantize.js Copyright 2008 Nick Rabinowitz. | |
| * Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php | |
| */ | |
| // fill out a couple protovis dependencies | |
| /*! | |
| * Block below copied from Protovis: http://mbostock.github.com/protovis/ | |
| * Copyright 2010 Stanford Visualization Group | |
| * Licensed under the BSD License: http://www.opensource.org/licenses/bsd-license.php |