lib/recurly/rails3/recurly.rake in recurly-0.3.3 vs lib/recurly/rails3/recurly.rake in recurly-0.3.4
- old
+ new
@@ -36,22 +36,24 @@
login_response = e.response
end
# now lets clear site data
begin
- RestClient.post( @recurly_config["site"]+"/site/test_data",
+ RestClient.post( Recurly::Base.site+"/site/test_data",
{"_method"=>"delete"},
:cookies => login_response.cookies)
raise "Clearing Didn't work for some reason. Is your site setting correct?"
rescue RestClient::Found => e
puts "Test Data Cleared from: #{@recurly_config["site"]}"
end
end
def setup_static
@recurly_config["username"] ||= "myemail@mydomain.com"
- @recurly_config["password"] ||= "mypassword"
- @recurly_config["site"] ||= "https://my-site.recurly.com"
+ @recurly_config["password"] ||= "my_api_key"
+ @recurly_config["private_key"] ||= "my_private_key"
+ @recurly_config["subdomain"] ||= "mysite"
+ @recurly_config["site"] ||= "https://api-production.recurly.com"
end
desc "Creates a recurly.yml config file"
task :setup => :environment do
\ No newline at end of file