Skip to content

Instantly share code, notes, and snippets.

require 'json'
require 'rest_client'
patten = /gem ['"]rails-assets-([^'"]+)['"]/
RAILS_ASSETS_API = 'https://rails-assets.org/components.json'
assets = File.readlines('Gemfile')
.select { |line| line.match(patten) }
.map { |line| line.match(patten)[1] }
assets.each do |asset|
@aptx4869
aptx4869 / gist:6111839
Created July 30, 2013 10:23
AB测试……
This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking ruby-china.org (be patient).....done
Server Software: nginx/1.4.2
Server Hostname: ruby-china.org
Server Port: 80