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. Oct 10, 2020
  2. Aug 15, 2020
  3. May 01, 2019
  4. Apr 20, 2019
  5. Jan 24, 2019
  6. Jul 01, 2018
  7. Apr 08, 2018
  8. Oct 20, 2017
  9. May 15, 2017
  10. Oct 02, 2016
  11. Sep 17, 2016
  12. Nov 17, 2015
  13. Aug 03, 2015
  14. Jul 08, 2014
  15. Jul 07, 2014
  16. Apr 02, 2013
    • Jack Nagel's avatar
      Requirement: env DSL is evaluated in context of self, not ENV · 1b0f0824
      Jack Nagel authored
      This was meant to support:
      
        env do |req|
          append_path 'PATH', req.some_method
          ...
        end
      
      i.e., the block was evaluated in the context of ENV. But it turned out
      to be not so useful after all, so I'm ripping it out before something
      actually depends on it.
      1b0f0824
  17. Feb 26, 2013
  18. Jan 22, 2013
    • Jack Nagel's avatar
      Object#instance_exec for Ruby 1.8.6 · 2503cedf
      Jack Nagel authored
      Not thread safe! But I don't think we care.
      
      We want to evaluate the env DSL block in the context of ENV for asthetic
      reasons, but we also want access to methods on the requirement instance.
      We can use #instance_exec to pass the requirement itself into the block:
      
        class Foo < Requirement
          env do |req|
            append 'PATH', req.some_path
          end
      
          def some_path
            which 'something'
          end
        end
      
      Also add a simplified version of Object#instance_exec for Ruby 1.8.6.
      2503cedf
    • Jack Nagel's avatar
      Allow env DSL to take a block · c53af421
      Jack Nagel authored
      In addition to
      
        env :userpaths
        env :std
      
      requirements can now do
      
        env do
          append 'PATH', '/some/path/to/bin'
          # and more
        end
      c53af421
  19. Dec 27, 2012
  20. Sep 15, 2012
Loading