Code Monkey home page Code Monkey logo

gem-popularis's Issues

Super simple example

Not sure if you can use this, but I just put this together. Fun!

require 'gems'
names = ->(g){ g.map {|(hash,_)| hash['full_name'].sub("-#{hash['number']}", "") }.uniq }
most_downloaded = [Gems.most_downloaded_today, Gems.most_downloaded].flat_map(&names).sort.uniq

["activesupport", "addressable", "arel", "bcrypt-ruby", "builder", "bundler", "coderay", "coffee-rails", "coffee-script", "coffee-script-source", "daemons", "diff-lcs", "erubis", "eventmachine", "execjs", "faraday", "ffi", "formatador", "gem-wrappers", "highline", "hike", "i18n", "ipaddress", "journey", "json", "mail", "method_source", "mime-types", "mini_portile", "minitest", "multi_json", "multi_xml", "multipart-post", "net-scp", "net-ssh", "nokogiri", "polyglot", "rack", "rack-cache", "rack-ssl", "rack-test", "rails", "rake", "rdoc", "rest-client", "rspec-expectations", "rspec-support", "rubyzip", "sinatra", "slop", "sprockets", "thor", "thread_safe", "tilt", "treetop", "tzinfo", "yajl-ruby"]

most_downloaded_and_dependencies = Gems.dependencies(most_downloaded).flat_map{|g| g[:dependencies].map(&:first) }.concat(most_downloaded).sort.uniq

["abstract", "actionmailer", "actionpack", "actionview", "actionwebservice", "activejob", "activemodel", "activerecord", "activeresource", "activesupport", "addressable", "archive-tar-minitar", "arel", "atomic", "backports", "bcrypt", "bcrypt-ruby", "bones", "builder", "bundler", "camping", "coderay", "coffee-rails", "coffee-script", "coffee-script-source", "daemons", "diff-lcs", "echoe", "erubis", "eventmachine", "execjs", "facets", "faraday", "fcgi", "ffi", "formatador", "gem-wrappers", "highline", "hike", "hoe", "i18n", "ipaddress", "journey", "jruby-pageant", "json", "launchy", "mail", "memcache-client", "method_source", "mime-types", "mini_portile", "minitest", "mongrel", "multi_json", "multi_xml", "multipart-post", "needle", "net-scp", "net-ssh", "netrc", "nokogiri", "polyglot", "racc", "rack", "rack-cache", "rack-protection", "rack-ssl", "rack-test", "rails", "railties", "rake", "rake-compiler", "rcov", "rdoc", "rest-client", "rexical", "rspec", "rspec-expectations", "rspec-support", "ruby-openid", "ruby_parser", "rubyzip", "shotgun", "sinatra", "slop", "sprockets", "sprockets-rails", "tenderlove-frex", "termios", "test-spec", "thin", "thor", "thread_safe", "tilt", "tlsmail", "treetop", "tzinfo", "weakling", "yajl-ruby"]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.