Initial setup of Gandi gem

This commit is contained in:
Kyle Drake 2016-02-11 19:56:37 -08:00
parent 4657a8563b
commit f026d9d5fe
3 changed files with 9 additions and 0 deletions

View file

@ -36,6 +36,7 @@ gem 'base32'
gem 'coveralls', require: false
gem 'sanitize'
gem 'will_paginate'
gem 'gandi'
platform :mri, :rbx do
gem 'magic' # sudo apt-get install file, For OSX: brew install libmagic

View file

@ -64,8 +64,11 @@ GEM
ffi (>= 1.0.0)
rake
filesize (0.1.1)
gandi (2.1.3)
hashie
geoip (1.6.1)
hashdiff (0.2.3)
hashie (3.4.3)
highline (1.7.8)
hiredis (0.6.1)
http-cookie (1.0.2)
@ -239,6 +242,7 @@ DEPENDENCIES
fabrication
faker
filesize
gandi
geoip
hiredis
io-extra

View file

@ -140,3 +140,7 @@ $country_codes = {}
CSV.foreach("./files/country_codes.csv") do |row|
$country_codes[row.last] = row.first
end
gandi_opts = {}
gandi_opts[:env] = :test unless ENV['RACK_ENV'] == 'production'
$gandi = Gandi::Session.new $config['gandi_api_key'], gandi_opts