require 'rails_zero/drivers/poltergeist'

RailsZero.configure do |c|
  c.backend.url = 'http://cocoa-tree-seeds.herokuapp.com' if Rails.env.production?
  c.deployment.git_remote_ref = 'gh-pages'
  c.deployment.url = 'git@github.com:cocoa-tree/seeds.git'

  formats = %w[ json mpac ]
  formats.each do |format|
    c.site.add_path "/pods.#{format}"
  end
  c.site.paths_builders = [->{
    chunk_size = PodsController::CHUNK_SIZE
    CocoaPod.all.each_slice(chunk_size).each_with_index.map do |pods, index|
      formats.map do |format|
        "/pods/#{index}.#{format}"
      end
    end.flatten
  }]
end

require 'rails_zero/drivers/poltergeist'

RailsZero.configure do |c|
  c.backend.url = 'http://cocoa-tree-seeds.herokuapp.com' if Rails.env.production?
  c.deployment.git_remote_ref = 'gh-pages'
  c.deployment.url = 'git@github.com:cocoa-tree/seeds.git'

  formats = %w[ json mpac ]
  formats.each do |format|
    c.site.add_path "/pods.#{format}"
    c.site.add_path "/categories.#{format}"
  end
  c.site.paths_builders = [->{
    chunk_size = PodsController::CHUNK_SIZE
    CocoaPod.all.each_slice(chunk_size).each_with_index.map do |pods, index|
      formats.map do |format|
        "/pods/#{index}.#{format}"
      end
    end.flatten
  }]
end

Add categories api to deployment url.
Add categories api to deployment url.
