Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

41 lines (36 sloc) 1.414 kb
# -*- ruby -*-
require 'rubygems'
require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "jjp-openx"
gemspec.summary = "A Ruby interface to the OpenX XML-RPC API with more OpenX APIs used"
gemspec.description = "A Ruby interface to the OpenX XML-RPC API. Used touchlocal 1.1.2 version as base for adding more API calls to OpenX API from http://developer.openx.org/api/ . It also works with v2 of OpenX API, especially that it now can pass localTZ to the OpenX API which will give back the correct statistics for the local time zone."
gemspec.email = "jacobjp@mac.com"
gemspec.homepage = "http://github.com/DoppioJP/openx"
gemspec.authors = ["Aaron Patterson", "Andy Smith", "TouchLocal Plc", "DoppioJP"]
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
$: << "lib/"
require 'openx'
namespace :openx do
task :clean do
include OpenX::Services
ENV['OPENX_ENV'] = 'test'
Agency.find(:all) do |agency|
Advertiser.find(:all, agency.id).each do |advertiser|
Campaign.find(:all, advertiser.id).each do |campaign|
Banner.find(:all, campaign.id).each do |banner|
banner.destroy
end
campaign.destroy
end
advertiser.destroy
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.