Guest User

Untitled

a guest
Apr 24th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. ##
  2. # Adds a development dependency named +gem+ with +requirements+ to this
  3. # Gem. For example:
  4. #
  5. # spec.add_development_dependency 'jabber4r', '> 0.1', '<= 0.5'
  6. #
  7. # Development dependencies aren't installed by default and aren't
  8. # activated when a gem is required.
  9.  
  10. def add_development_dependency(gem, *requirements)
  11. add_dependency_with_type(gem, :development, *requirements)
  12. end
  13.  
  14. ##
  15. # Adds a runtime dependency named +gem+ with +requirements+ to this Gem.
  16. # For example:
  17. #
  18. # spec.add_runtime_dependency 'jabber4r', '> 0.1', '<= 0.5'
  19.  
  20. def add_runtime_dependency(gem, *requirements)
  21. add_dependency_with_type(gem, :runtime, *requirements)
  22. end
  23.  
  24. ##
  25. # Adds a runtime dependency
  26.  
  27. alias add_dependency add_runtime_dependency
Add Comment
Please, Sign In to add comment