Ruby5 #631
Ruby5 - Episode #631 - April 12th, 2016
- Gem Replacement Vulnerability
- every .gem uploaded after Feb 8, 2015, was verified
- showing no evidence of tampering
- The RubyGems team is urging maintainers of gems whose name contains a dash (e.g. ‘blank-blank’) uploaded before February 8
- presence_in
params[:sort_by].presence_in(%w(newest most_commented top)) || :newest
- load, require, extend, include
- load
load 'test_module.rb'
load
reads and parses files every time you callload
- require
- even if you change the required file when the script is running, those changes won't be applied
- Note that we say
filename
notfilename.rb
- Include vs extend
- load
- Awesome Ruby
- Awesome Ruby | LibHunt
- Popular Categories, Recently Added Gems
- Awesome Ruby | LibHunt