Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/Homebrew/brew.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer or owner.
Last successful update .
  1. Sep 25, 2009
    • Max Howell's avatar
      Return non-zero error code on errors · a03d1308
      Max Howell authored
      Stupidly I figured Ruby did this for us, but why would it?
      a03d1308
    • Clinton R. Nixon's avatar
      DRYed up "@foo=self.class.foo unless @foo" statements · 2668e2ae
      Clinton R. Nixon authored
      Using the example from the existing code:
      
        CHECKSUM_TYPES.each do |type|
          if !instance_variable_defined?("@#{type}")
            class_value = self.class.send(type)
            instance_variable_set("@#{type}", class_value) if class_value
          end
        end
      
      I extracted that block into a method 'set_instance_variable' which I
      then used in all places where this behavior was being used.
      2668e2ae
  2. Sep 24, 2009
  3. Sep 23, 2009
  4. Sep 22, 2009
  5. Sep 18, 2009
  6. Sep 17, 2009
Loading