Sha256: 4a1363b2b412e4b4bf415514a4961b5e177169ceab090626eb40e7d0870ec8cf
Contents?: true
Size: 1.4 KB
Versions: 2
Compression:
Stored size: 1.4 KB
Contents
require 'bundler' Bundler::GemHelper.install_tasks require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) task :test => :spec task :default => :spec require 'yard' YARD::Rake::YardocTask.new(:yard) do |t| t.options = ['--title', 'Sphinx Client API Documentation'] if ENV['PRIVATE'] t.options.concat ['--protected', '--private'] else t.options.concat ['--protected', '--no-private'] end end require 'bundler' Bundler::GemHelper.install_tasks namespace :fixtures do FIXTURES_DIR = File.expand_path('../spec/fixtures', __FILE__) desc 'Update textures for sphinx requests' task :requests do rm Dir.glob("#{FIXTURES_DIR}/requests/*.dat") Dir["#{FIXTURES_DIR}/requests/php/*.php"].each do |file| puts name = File.basename(file, '.php') File.open(File.join(File.dirname(file), '..', "#{name}.dat"), 'w') do |f| f.write `env SPHINX_MOCK_REQUEST=1 php "#{file}"` end end end desc 'Update textures for sphinx responses' task :responses do rm Dir.glob("#{FIXTURES_DIR}/responses/*.dat") Dir["#{FIXTURES_DIR}/responses/php/*.php"].each do |file| puts name = File.basename(file, '.php') File.open(File.join(File.dirname(file), '..', "#{name}.dat"), 'w') do |f| f.write `env SPHINX_MOCK_RESPONSE=1 php "#{file}"` end end end end desc 'Update binary fixtures' task :fixtures => %w[ fixtures:requests fixtures:responses]
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sphinx-2.1.1.3712 | Rakefile |
sphinx-2.1.1.3711 | Rakefile |