Skip to content

Instantly share code, notes, and snippets.

@jeffweiss
Last active December 20, 2015 02:39
Show Gist options
  • Save jeffweiss/6057646 to your computer and use it in GitHub Desktop.
Save jeffweiss/6057646 to your computer and use it in GitHub Desktop.
Recently updated gems that don't specify a license
require 'gems'
require 'pp'
pp Gems.latest.map {|g| g["name"]}.
sort.
map {|n| {n => Gems.versions(n) } }.
reject {|elem| elem.has_value? "This rubygem could not be found."}.
map {|elem| {elem.keys.first => elem.values.first.all? {|h| h["licenses"].empty?}}}.
reject {|h| h.has_value? false}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment