Joined January 2013
·
Posted to
Find missing translations in your Rails app.
over 1 year
ago
This only finds the translations that are requested during the test run. To find missing keys pre-emptively with static analysis you can use i18n-tasks gem:
Posted to
Rails Email Protips
over 1 year
ago
Thanks Steve! I found MailCatcher useful but having to trigger the email delivery inconvenient. REP instead provides a UI for previewing all the emails that the application can send:
Saves the time to figure out where and how the email is sent whenever something needs changing.
Posted to
Must have development Rails gems
over 1 year
ago
If you are dealing with i18n: https://github.com/glebm/i18n-tasks
Posted to
The need for simple exercises
over 1 year
ago
This would make a good code golf:
(s) -> ((if s[i-1]==c then n++;'' else "#{x=n;n=1;x>1&&x||''}#{c}") for c,i in s+"$").join("")[..-2]
In ruby:
s.chars.inject(Hash.new 0){ |r,c| r[c] += 1; r }.map { |k,v| k + "#{v if v>1}" } * ''
Achievements
436 Karma
31,202 Total ProTip Views

24PullRequests Participant
Sent at least one pull request during the first 24 days of December 2014

Forked 20
Have an established project that's been forked at least 20 times

Kona
Have at least one original repo where CoffeeScript is the dominant language

24PullRequests Participant
Sent at least one pull request during the first 24 days of December 2013

Lemmings 100
Write something great enough to have at least 100 watchers of the project

Octopussy
Have a repo followed by a member of the GitHub team

Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos

Forked
Have a project valued enough to be forked by someone else

Charity
Fork and commit to someone's open source project in need

Mongoose 3
Have at least three original repos where Ruby is the dominant language

Mongoose
Have at least one original repo where Ruby is the dominant language
Great tips! I love that you're using the commands in a way I never imagined they could be used (especially the Create a new tree branch example!).
I've just released v0.9.8 that adds 3 new tasks:
mv
,rm
, andtree-mv
.They make mass-renaming much simpler and also allow for moving and merging the keys.
The first example in the article is now just: