Skip to content

Instantly share code, notes, and snippets.

@joshbuddy
Created July 23, 2010 15:52
Show Gist options
  • Save joshbuddy/487619 to your computer and use it in GitHub Desktop.
Save joshbuddy/487619 to your computer and use it in GitHub Desktop.
p gems.map{|g|g[/_on_(.*)/,1]}.compact.inject({}){|h,g|(h[g]||=0);h[g]+=1;h}
p gems.map{|g|g[/_for_(.*)/,1]}.compact.inject({}){|h,g|(h[g]||=0);h[g]+=1;h}
p gems.map{|g|g[/_with_(.*)/,1]}.compact.inject({}){|h,g|(h[g]||=0);h[g]+=1;h}
p gems.map{|g|g[/_in_(.*)/,1]}.compact.inject({}){|h,g|(h[g]||=0);h[g]+=1;h}
p gems.map{|g|g[/_as_(.*)/,1]}.compact.inject({}){|h,g|(h[g]||=0);h[g]+=1;h}
{"pg"=>1, "rails"=>11, "skis"=>1, "steroids"=>3, "destroy"=>1, "heroku"=>1, "the_fly"=>1, "ruby"=>1}
{"rails"=>1, "china"=>1, "data_integrity"=>1, "time_attr"=>1, "nested_set"=>1, "i18n"=>1, "dm"=>1}
{"gaps"=>1, "deferred_save"=>1, "author"=>1, "sti_support"=>1, "awesome"=>1, "lcs"=>1, "include"=>1, "links"=>1, "versions"=>1, "backport"=>1, "context"=>1, "remote_cache"=>2}
{"transit"=>1, "words"=>1, "peace"=>1, "migrations"=>1, "gems"=>1, "a_tunnel"=>1, "the_water"=>1}
{"table"=>1}
{"xapian"=>1, "configurable"=>1, "fu"=>1, "protocolable"=>1, "shellable"=>1, "arter_flow_object"=>1, "constant"=>1, "messenger"=>1, "paginable"=>1, "cached"=>1, "eventable"=>1, "time_frame"=>1, "scribe"=>1, "publishable"=>1, "vat_number"=>1, "trashable"=>1, "oqgraph"=>1, "list_mongoid"=>1, "label"=>1, "email"=>3, "hostname_label"=>1, "privilege"=>1, "ferret"=>1, "encrypted"=>1, "gem"=>1, "uri"=>1, "amazon_product"=>1, "owner"=>1, "postal_code"=>1, "magic_model"=>1, "tokenizable"=>1, "mail"=>1, "tree_rails3"=>1, "dropdown"=>1, "scaffold"=>1, "audited_on_steroids"=>1, "list"=>1, "textcaptcha"=>1, "rateable"=>1, "static_controller"=>1, "flux_capacitor"=>1, "comparable"=>1, "tree"=>4, "date_time"=>1, "geocodable"=>1, "revisionable"=>1, "video_fu"=>2, "favorite"=>1, "reportable"=>1, "content_node"=>1, "rateable_by_ip"=>1, "markup"=>2, "rated"=>1, "singleton"=>1, "partitionable"=>1, "decimal"=>1, "attribute"=>1, "sanitiled"=>1, "filterable"=>1, "restful_list"=>1, "dated_detail"=>1, "statused"=>1, "paranoid"=>1, "historical"=>1, "sortable"=>1, "versioned"=>2, "acts_as"=>1, "inquirable"=>1, "permission"=>1, "concatenation"=>1, "mongo_taggable"=>1, "stripped"=>1, "bits"=>1, "secure"=>2, "serializable"=>1, "inheritance_root"=>1, "nested_by"=>1, "nice_url"=>1, "background_solr"=>1, "searchable"=>1, "runnable_code"=>1, "archive"=>2, "api"=>1, "cpf"=>1, "readonlyable"=>1, "state_machine"=>1, "cnpj"=>1, "oauth_accessible"=>1, "linkable"=>1, "revisable"=>2, "current"=>1, "phone_number"=>1, "taggable"=>1, "icontact"=>1, "audited"=>3, "commentable"=>1, "wrapped_class"=>1, "list_ar"=>1, "extjs"=>1, "solr"=>3, "email_address"=>1, "solr_reloaded"=>1, "lookup"=>1, "taggable_on_steroids"=>1, "indexed"=>1, "markdown"=>1, "pack_rat"=>1, "muschable"=>1, "list_with_sti_support"=>1, "sdata"=>1, "viewable"=>1, "service"=>1, "blamable"=>1, "mongo_rateable"=>1, "abusable"=>1}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment