Ruby5 #427
Ruby5 - Episode #427 - December 17th, 2013
- rails-assets.org
- automatically converts packaged bower components into ruby gems
gem 'rails-assets-BOWER_PACKAGE_NAME'
- Rails Database Info
http://localhost:3000/rails/info/db
gem 'rails_db_info'
- Callbacks Extraction
- how to refactor your app away from callbacks to small easy to understand ruby objects
- Shutterbug
- A rack utility using phantomjs that will create and save images
- These images become available as public '.png' resources in the rack application
- shutterbug supports HTML, SVG and Canvas elements
- Ruby’s Enumerable
- Methods like any?, all?, none? and each_cons
each_cons
each_cons (Enumerable) - Rubyリファレンス# get only the values where the distance is greater than 10
numbers.each_cons(2).select {|a,b| b-a>10 } #=> [[10, 54], [54, 99]]
- Prawn 0.13.0
- got it’s first official release in 2 years
- Prawn PDF Toolkit Prawn | Fast, Nimble PDF Writer for Ruby
♫ Shrimp
by 耳+Google