Ruby 1.9.3-p0 requires a minor patch to make ruby-debug19 work. If you have
ruby-build
and rbenv
installed, these scripts will install ruby-1.9.3-p0.
curl https://raw.github.com/gist/1270704/install-ruby-1.9.3-p0.sh | sh
module SuperRPC | |
class SuperRPCError < StandardError; end | |
class UnknownKlass < SuperRPCError; end | |
class UnknownMethod < SuperRPCError; end | |
class Unauthorized < SuperRPCError; end | |
def klasses | |
@klasses ||= [] | |
end | |
module_function :klasses |
# creates a global JST object containing all the templates | |
# 1. install Tilt in your Gemspec | |
# 2. Paste this in a file at app/assets/javascripts/templates.js.coffee.erb | |
# 3. `require` the templates file from your main js include file. | |
# 4. Put your templates at app/views/whatever/my_template.html.jst | |
window.JST = | |
<% Dir[Rails.root.join('app/views/**/*.jst')].each do |path| %> | |
<%= path.match(%r{/([^/]+)\.html\.jst$})[1] %>: _.template(<%= File.read(path).inspect.gsub(/\r?\n/, '') %>) | |
<% end %> |
# curl -u "user:password" https://api.github.com/orgs/:org/repos | |
require 'httparty' | |
require 'pp' | |
class GitHub | |
include HTTParty | |
base_uri 'https://api.github.com' | |
def initialize(u, p) |
gem 'browserify-rails', '1.5.0' # until fix: https://github.com/browserify-rails/browserify-rails/issues/101
gem 'react-rails'
Browserify-rails allows to use browserify within assets pipeline. React-rails is here only to allow to use #react_component
(and thus, prerendering).
Note that jquery-rails
can be removed from Gemfile, the npm version of jquery
and jquery-ujs
will be used instead.