25 April 2014

The Ruby Reflector

Topic

Prem Sichanugrist

  Source Favicon
By Prem Sichanugrist of Giant Robots Smashing Into Other Giant Robots 24 days ago.
Email

In an Active Record model, usually you will have a column that can only have a set of pre-defined values (such as a status column). Normally, you would define a constant for those values as well as several helper methods like the following example: class Post < ActiveRecord::Base STATUS = %w(draft published)

def draft? status == 'draft' end

def published? status == 'published' end end

In the upcoming Rails 4.1.0, the core team has added ActiveRecord::Enum …

robots.thoughtbot.com Read
  Source Favicon
Email

Ben Orenstein, George Brocklehurst, Harlow Ward, and Prem Sichanugrist are giving talks:

Tuesday at 11:30am: TDD Workshop: Outward-in Development, Unit Tests, and Fixture Data

Tuesday at 12:20pm: TDD Workshop: Mocking, Stubbing, and Faking External Services with Harlow Ward and Adarsh Pandit :

thoughtbot are creators of the open-sourced testing tools FactoryGirl and Shoulda Matchers.

We recognize Test-Driven Development

robots.thoughtbot.com Read
  Source Favicon
By Peter Cooper of Ruby Inside over 1 year ago.
Email

Prem Sichanugrist shows off some of the new features and changes in the forthcoming new version of Rails.

Libraries and Code

minitest-reporters: Reporters for MiniTest

A new way to create customizable MiniTest output formats. I've tried it. It works. It's awesome.

oEmbed Ruby Library

oEmbed is a format for allowing an embedded representation of a URL on third party sites. The 'oembed' gem helps you lean on oEmbed's functionality in …

rubyinside.com Read
  Source Favicon
By Peter Cooper of Ruby Inside over 1 year ago.
Email

Apple's latest operating system dropped yesterday and Prem Sichanugrist of Thoughtbot shares some insights into the upgrade process for Rubyists.

Building An API for Fun With Grape

Grape is an API-oriented Rack-based microframework for building HTTP accessible APIs. It's been around a while but this post gives a quick introduction.

RubyMotion Tutorial: Make iOS Apps With Ruby

Tell, Don't Ask (with Ruby Objects)

Bad for your …

rubyinside.com Read
  Source Favicon
By spastorino of Riding Rails - home over 2 years ago.
Email

OrderedHash is now marked as extractable when using Array#extract options! [ Prem Sichanugrist]

Railties

Add jquery-rails to Gemfile of plugins, test/dummy app needs it. Closes # 3091. [ Santiago Pastorino]

rake assets:precompile loads the application but does not initialize it.

To the app developer, this means configuration add in config/initializers/* will not be executed.

Plugins developers need to special case their initializers that are meant to be run in the assets group …

weblog.rubyonrails.org Read
  Source Favicon
By spastorino of Riding Rails - home over 2 years ago.
Email

OrderedHash is now marked as extractable when using Array#extract options! [ Prem Sichanugrist]

Railties

Add jquery-rails to Gemfile of plugins, test/dummy app needs it. Closes # 3091. [ Santiago Pastorino]

rake assets:precompile loads the application but does not initialize it.

To the app developer, this means configuration add in config/initializers/* will not be executed.

Plugins developers need to special case their initializers that are meant to be run in the assets group …

weblog.rubyonrails.org Read
  Source Favicon
Email

"

Episode #14: Say goodbye to that big guy

Ben Orenstein is joined by Prem Sichanugrist, a developer at thoughtbot and the #31 top Rails contributor. Ben and Prem walk through the major changes that will be introduced in Rails 4, including strong parameters, the new built in queue, cache_digest, changes in ActiveRecord::Relation, and ActiveResource. The also discuss what people can do to ease contribution and issue submission to Rails, how can people get their first commit into Rails, and much more. "

robots.thoughtbot.com Read
  Source Favicon
Email

…saw release 3.1.4 ( 70f0f1f ) with an awesome commit message from Prem Sichanugrist ( sikachu ).

Matthew Schulkind ( mschulkindi ) added the ability to specify the format of the file and override the built in content-type detection ( 3103da5 ). Nick DeSteffen ( nick-desteffen ) and Yasith Fernando ( thekindofme ) found and fixed a few typos ( ef4725f ) ( 786a13f ). Sergio Cambra ( scambra ) …

robots.thoughtbot.com Read
  Source Favicon
Email

paperclip got a bunch of bug fixes from Prem Sichanugrist ( sikachu ).

He fixed the content_type validator to allow blanks and nils ( 5eed1dc ), ensured that code dealt with the content type, not the MimeType ( 3f1d30f ), closed ALL the files ( 4f6d482 ), and removed unused code (yay!) ( 02eb725 ).

Sebastien Guignot ( sguignot ) fixed attachment.reprocess! when using Fog or S3 ( 9d1355b ).

Kir Maximov…

robots.thoughtbot.com Read
  Source Favicon
Email

Prem Sichanugrist ( sikachu ) released version 3.0.2 ( 240147e ) of paperclip . Unfortunately, the NEWS file hasn't been updated for 3.0.2 yet. Prem removed an obsolete generator, then added a test for it ( a2a4c7a , 03700c8 ). Preston Guillory ( pguillory ) fixed a typo ( 853595a ). Typo fixes are always welcome! Michael Galero ( mikong ) pluralized the table name in the migration generator to follow Rails

robots.thoughtbot.com Read