Pivotal Labs

Main menu

Skip to primary content
Skip to secondary content
  • About
  • Case Studies
  • Team
    • Executives
    • Locations
      • San Francisco (HQ)
      • Boston
      • Boulder
      • Denver
      • London
      • Los Angeles
      • New York
  • Community
    • Blogs
    • Tech Talks
    • Events
  • Careers
    • Lifestyle
    • Principles & Practices
    • Benefits
    • FAQ
    • Apply
  • Contact
    • Press Room
    • Press Releases
    • In The News
    • Press Kit
  • All
  • Labs
  • Standup
  • Tracker

Standup 9/29/2009: "Half The Battle" edition

Davis W. Frank
Tuesday, September 29, 2009

Ask for Help

“Has anyone run into issues moving their SVN project to git, where externals move to submodules, and multiple team members’ check-ins keep screwing up merges & pulls?”

Why, yes. Many folks have. And Pivot Sam has written up a nice how-to over here.

Interesting Things

  • Ruby eql? vs. == vs. equal in Ruby

Plenty of discussion of this in other places, so I won’t recap.

However, note that Numeric classes cast when calling ==, but not when calling #eql. Which means (he says, pretending to fire up irb):

>> 1.0 == 1
=> true
>> 1.0.eql?(1)
=> false
  • The latest Github Rackspace move status is posted on their blog.

It looks like the gems are still not building yet, which meant that you’ll need a gem server in the meantime. Say, one at Rubyforge, which is where you should be releasing your gems anyway.

  • Public Service Announcement: your named_scope‘s get evaluated when the class is loaded, not when an instance is created.

So, for example, if you’re building a named_scope for “articles posted in the future” and want to use Time.now, do it in a lambda. Now you know.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter

2 Comments

  1. Ethan Vizitei says:

    Your PSA just solved a problem I’ve been trying to figure out for a while. Thanks so much!

    September 30, 2009 at 9:59 am

  2. Ethan Vizitei says:

    Just wanted you guys to know that I linked you up, thanks again for the named_scope heads up.

    http://codeclimber.blogspot.com/2009/09/why-your-namedscope-isnt-behaving-way.html

    September 30, 2009 at 10:22 am

Add New Comment Cancel reply

Your email address will not be published.

Davis W. Frank

Davis W. Frank
San Francisco

Recent Posts

  • An Entirely Late Movember Wrap-Up
  • Mid-ish Movember
  • Getting Involved with Movember
Subscribe to Davis W.'s Feed

Author Topics

movember (2)
rails (16)
palm (6)
agile (14)
  • About
  • Case Studies
  • Team
  • Community
  • Careers
  • Contact
  • Labs
  • Events

Contact Us

contact@pivotallabs.com
+1 415-77-PIVOT
TwitterLinkedInFacebook

Pivotal Tracker

Tracker is the award-winning agile project management tool that enables real-time collaboration around a shared, prioritized backlog.
Visit pivotaltracker.com >