Rakefile in brighter_planet_layout-0.4.5 vs Rakefile in brighter_planet_layout-0.5.1

- old
+ new

@@ -7,30 +7,17 @@ test.libs << 'lib' << 'test' test.pattern = 'test/**/test_*.rb' test.verbose = true end -begin - require 'rake/rdoctask' - Rake::RDocTask.new do |rdoc| - rdoc.rdoc_dir = 'rdoc' - rdoc.title = 'brighter_planet_layout' - rdoc.options << '--line-numbers' << '--inline-source' - rdoc.rdoc_files.include('README*') - rdoc.rdoc_files.include('lib/**/*.rb') - end -rescue LoadError - puts "Rdoc is not available" -end - # sabshere 11/17/10 not worth it --cache-control=\"public, max-age=7776000\" task :update_s3 do missing = %w{ AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY SSL_CERT_DIR S3SYNC_DIR }.select { |i| ENV[i].to_s.empty? } raise "get #{missing.join(', ')} from Seamus" unless missing.empty? $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'lib')) require 'brighter_planet_layout' ENV['S3SYNC_NATIVE_CHARSET'] = 'UTF-8' - cmd = %{ruby #{ENV['S3SYNC_DIR']}/s3sync.rb #{'--dryrun ' unless ENV['REAL'] == 'true'}--exclude="\\.psd|\\.ai|DejaVu|Kievit|html|xml|json|\\.ico" -v -r --ssl --public-read #{BrighterPlanet.layout.public_path}/ #{BrighterPlanet::Layout::S3_BUCKET}:#{BrighterPlanet::Layout::VERSION}/} + cmd = %{ruby #{ENV['S3SYNC_DIR']}/s3sync.rb #{'--dryrun ' unless ENV['REAL'] == 'true'}--exclude="\\.psd|\\.ai|DejaVu|Kievit|html|xml|json" -v -r --ssl --public-read #{BrighterPlanet.layout.public_path}/ #{BrighterPlanet::Layout::S3_BUCKET}:#{BrighterPlanet::Layout::VERSION}/} if ENV['REAL'] == 'true' $stderr.puts "Really updating" else $stderr.puts "Dry run... set REAL=true if you want to update for real" end