This repository has been archived by the owner on Mar 21, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
20bbba9
commit 94f182c
Showing
5 changed files
with
265 additions
and
283 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,27 @@ | ||
# 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' | ||
warn e.message | ||
warn 'Run `bundle install` to install missing gems' | ||
exit e.status_code | ||
end | ||
require 'rake' | ||
|
||
require 'jeweler' | ||
require_relative 'lib/version' | ||
Jeweler::Tasks.new do |gem| | ||
# gem is a Gem::Specification... see | ||
# http://guides.rubygems.org/specification-reference/ for more options | ||
gem.name = 'algoliasearch-jekyll' | ||
gem.version = AlgoliaSearchJekyllVersion.to_s | ||
gem.homepage = 'https://github.com/algolia/algoliasearch-jekyll' | ||
gem.license = 'MIT' | ||
gem.summary = 'AlgoliaSearch for Jekyll' | ||
gem.description = 'Index all your pages and posts to an Algolia index with ' \ | ||
'`jekyll algolia push`' | ||
gem.email = 'tim@pixelastic.com' | ||
gem.authors = ['Tim Carry'] | ||
|
||
# dependencies defined in Gemfile | ||
end | ||
Jeweler::RubygemsDotOrgTasks.new | ||
|
||
# TEST | ||
require 'rspec/core' | ||
require 'rspec/core/rake_task' | ||
RSpec::Core::RakeTask.new(:spec) do |spec| | ||
desc 'Run tests (with simple progress)' | ||
RSpec::Core::RakeTask.new(:test) do |spec| | ||
spec.rspec_opts = '--color --format progress' | ||
spec.pattern = FileList['spec/credential_checker_spec.rb'] | ||
end | ||
desc 'Run tests (with full details)' | ||
RSpec::Core::RakeTask.new(:test_details) do |spec| | ||
spec.rspec_opts = '--color --format documentation' | ||
spec.pattern = FileList['spec/**/*_spec.rb'] | ||
end | ||
task test: :spec | ||
|
||
desc 'Code coverage detail' | ||
task :coverage do | ||
ENV['COVERAGE'] = 'true' | ||
Rake::Task['spec'].execute | ||
end | ||
task spec: :test | ||
|
||
task default: :test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.