<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
| select.form-control + .chosen-container.chosen-container-single .chosen-single { | |
| display: block; | |
| width: 100%; | |
| height: 34px; | |
| padding: 6px 12px; | |
| font-size: 14px; | |
| line-height: 1.428571429; | |
| color: #555; | |
| vertical-align: middle; | |
| background-color: #fff; |
To run this, you can try:
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
| ~/Code/ember.js ‹ruby-1.9.3› ‹master*› $ bundle && echo "fuck you giles" | |
| Using rake (0.9.2.2) | |
| Using confparser (0.0.2.1) | |
| Using multi_json (1.0.4) | |
| Using execjs (1.2.13) | |
| Using libxml-ruby (2.2.2) | |
| Using faster_xml_simple (0.5.0) | |
| Using httpclient (2.2.4) | |
| Using json (1.6.5) | |
| Using nokogiri (1.5.0) |
| class AvatarUploader < CarrierWave::Uploader::Base | |
| include CarrierWave::MiniMagick | |
| def extension_white_list | |
| model.skip_avatar_extension_check ? nil : %w(jpg jpeg gif png bmp) | |
| end | |
| end |
In my previous post I described how to securely acquire the Mozilla list of root certificates and convert them to a form usable by curl and various libraries which don't ship with them.
Next, I want to point Net:HTTP at this file library-wide, so that it is used by all invocations of methods accessing https resources (in particular, Kernel#open, which in ruby 1.8.7 does not have a ca_file option and is therefore unusable with https). I hunted around the ruby standard library for a couple hours and came up with this:
require 'open-uri'
require 'net/https'
module Net
class HTTP