Skip to content

Instantly share code, notes, and snippets.

View segfault's full-sized avatar
🏠
Working from home

Mark Guzman segfault

🏠
Working from home
View GitHub Profile
@segfault
segfault / country-code-to-currency-code-mapping.csv
Created January 26, 2016 22:29 — forked from HarishChaudhari/country-code-to-currency-code-mapping.csv
Country, Country Code, Currency code mapping in CSV format Taken from https://gist.github.com/304261 Contains 249 countries.
Country CountryCode Currency Code
New Zealand NZ New Zealand Dollars NZD
Cook Islands CK New Zealand Dollars NZD
Niue NU New Zealand Dollars NZD
Pitcairn PN New Zealand Dollars NZD
Tokelau TK New Zealand Dollars NZD
Australian AU Australian Dollars AUD
Christmas Island CX Australian Dollars AUD
Cocos (Keeling) Islands CC Australian Dollars AUD
Heard and Mc Donald Islands HM Australian Dollars AUD
set :sync_directories, ["assets", "galleries"]
set :sync_backups, 3

Cross compile instructions:

$ rake-compiler cross-ruby VERSION=1.8.6-p383
$ rake-compiler cross-ruby VERSION=1.9.1-p243
$ rake cross compile RUBY_CC_VERSION=1.8.6:1.9.1
$ rake cross native gem RUBY_CC_VERSION=1.8.6:1.9.1

Then you should have the cross compiling gem under pkg. You can check that the gem has the correct .so, .dll, and the windows nokogiri/nokogiri.rb stub by doing:

Shoes.setup do
gem "mime-types"
gem "open4"
source "http://gems.github.com/"
gem "mojombo-grit"
end
require 'mojombo-grit'
repo = Grit::Repo.new(Dir.pwd)