56 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			56 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Ruby
		
	
	
	
	
	
# encoding: utf-8
 | 
						|
 | 
						|
require 'rubygems'
 | 
						|
require 'bundler'
 | 
						|
begin
 | 
						|
  Bundler.setup(:default, :development)
 | 
						|
rescue Bundler::BundlerError => e
 | 
						|
  $stderr.puts e.message
 | 
						|
  $stderr.puts "Run `bundle install` to install missing gems"
 | 
						|
  exit e.status_code
 | 
						|
end
 | 
						|
require 'rake'
 | 
						|
require 'juwelier'
 | 
						|
Juwelier::Tasks.new do |gem|
 | 
						|
  # gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
 | 
						|
  gem.name = "fast_jsonapi"
 | 
						|
  gem.homepage = "http://github.com/Netflix/fast_jsonapi"
 | 
						|
  gem.license = "Apache-2.0"
 | 
						|
  gem.summary = %Q{fast JSON API(jsonapi.org) serializer}
 | 
						|
  gem.description = %Q{JSON API(jsonapi.org) serializer that works with rails and can be used to serialize any kind of ruby objects}
 | 
						|
  gem.email = ""
 | 
						|
  gem.authors = ["Shishir Kakaraddi", "Srinivas Raghunathan", "Adam Gross"]
 | 
						|
 | 
						|
 | 
						|
  if gem.respond_to?(:metadata)
 | 
						|
    gem.metadata['allowed_push_host'] = 'https://rubygems.org'
 | 
						|
  else
 | 
						|
    raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
 | 
						|
  end
 | 
						|
  # dependencies defined in Gemfile
 | 
						|
end
 | 
						|
Juwelier::RubygemsDotOrgTasks.new
 | 
						|
require 'rspec/core'
 | 
						|
require 'rspec/core/rake_task'
 | 
						|
RSpec::Core::RakeTask.new(:spec) do |spec|
 | 
						|
  spec.pattern = FileList['spec/**/*_spec.rb']
 | 
						|
end
 | 
						|
 | 
						|
desc "Code coverage detail"
 | 
						|
task :simplecov do
 | 
						|
  ENV['COVERAGE'] = "true"
 | 
						|
  Rake::Task['spec'].execute
 | 
						|
end
 | 
						|
 | 
						|
task :default => :spec
 | 
						|
 | 
						|
require 'rdoc/task'
 | 
						|
Rake::RDocTask.new do |rdoc|
 | 
						|
  version = File.exist?('VERSION') ? File.read('VERSION') : ""
 | 
						|
 | 
						|
  rdoc.rdoc_dir = 'rdoc'
 | 
						|
  rdoc.title = "fast_jsonapi #{version}"
 | 
						|
  rdoc.rdoc_files.include('README*')
 | 
						|
  rdoc.rdoc_files.include('lib/**/*.rb')
 | 
						|
end
 |