16 April 2014

The Ruby Reflector

Topic

Jammit

  Source Favicon
Email

Kumade now works with more stuff: Jammit 0.6.5 ( ec63310 ) thanks to Vesa Vänskä ( vesan ), and Ruby 1.9.3 ( 8e73b90 ) thanks to Gabe Berke-Williams ( gabebw ).

Gabe also fiddled with some source code ( 7e0e11e , bb695b9 and 92aa8f4 ).

copycopter_client

A small documentation update occured in copycopter_client by Joe Ferris ( jferris ), reminding us that you can leave the name of the controller …

robots.thoughtbot.com Read
  Source Favicon
Email

Josh Clayton introduced the Packager class, which knows how to handle Jammit, Less, and no-op packagers ( d854184 ). Then Gabe Berke-Williams ( gabebw ) went off on his own to introduce a CommandLine class, wrapping Cocaine with some Thor ( 0c3840d and 72424c0 ). Meanwhile Joshua Clayton ( joshuaclayton ) changed should_not have_received to should have_received.never ( 6652197 ).

suspenders

Our app making …

robots.thoughtbot.com Read
  Source Favicon
On Viget.com Blogs 3 years ago.
Email

Jammit has several compression options, but all of them require Java support, which we don't have on Heroku. You have the option of compressing your assets and checking them into your repository by hand, but I for one can't stand putting build artifacts in the repo.

I've seen a lot of questions about how to do static asset packaging on Heroku and just as many bad answers (which I'll avoid linking to here). The best solution we've found uses AssetPackager along …

viget.com Read
  Source Favicon
By Mike Gunderloy of A Fresh Cup 4 years ago.
Email

…you'll need to make sure it doesn't try to escape the HTML generated by the Jammit helpers. You do this by wrapping all calls to those helpers in the raw helper:

<%= raw include_stylesheets(:common, :media => 'all') %> <%= raw include_javascripts(:common) %> 2) For deployment, I'm using this chunk of code in my Capistrano recipe (hat-tip to kpumuk whose gist I started from):

namespace :deploy do desc 'Bundle and minify the …

afreshcup.com Read
  Source Favicon
By Ruby on Rails of Rails Envy » Home over 4 years ago.
Email

Jammit is an industrial strength asset packaging library for Rails, providing both the CSS and JavaScript concatenation and compression that you'd expect, as well as ahead-of-time gzipping, built-in JavaScript template support, and optional Data-URI / MHTML image embedding.

Deep in Action Mailer#deliver, part 1

Part 1 in a series that will delve deep into several commonly used methods of Rails.

Shard The Love

ShardTheLove is a horizontal scaling …

railsenvy.com Read
  Source Favicon
Email

…deploy branch for committing assets ( 2e11258 ), which means that those ugly Jammit compilation commits for Heroku don't show up in your github repo. It no longer requires the deploy subcommand, so you can just do kumade staging instead of kumade deploy staging . It no longer detects the Cedar stack by default ( bce4682 ), since heroku stacks requires permissions that you may not have, even if you can push to it. Instead, use the "-c" flag to indicate that …

robots.thoughtbot.com Read