feat(jeweler): Add Jeweler
This commit is contained in:
parent
b3201986d7
commit
0df637965c
12
.gitignore
vendored
12
.gitignore
vendored
@ -1,18 +1,12 @@
|
||||
Gemfile.lock
|
||||
algoliasearch-jekyll-*.gem
|
||||
pkg/
|
||||
|
||||
|
||||
.DS_Store
|
||||
.hg
|
||||
.hgignore
|
||||
.sass-cache
|
||||
.svn
|
||||
.*.sw[a-z]
|
||||
Thumbs.db
|
||||
bower_components
|
||||
node_modules
|
||||
nohup.out
|
||||
npm-debug.log
|
||||
tmp
|
||||
*~
|
||||
*.crcdownload
|
||||
*.orig
|
||||
__pycache__
|
||||
|
16
Gemfile
16
Gemfile
@ -1,2 +1,14 @@
|
||||
source 'https://rubygems.org'
|
||||
gemspec
|
||||
source 'http://rubygems.org'
|
||||
|
||||
gem 'algoliasearch', '~> 1.4'
|
||||
gem 'awesome_print', '~> 1.6'
|
||||
gem 'json', '~> 1.8'
|
||||
gem 'nokogiri', '~> 1.6'
|
||||
|
||||
group :development do
|
||||
gem 'guard-rspec', '~> 4.6'
|
||||
gem 'jekyll', '~> 2.5'
|
||||
gem 'jeweler', '~> 2.0.1'
|
||||
gem 'rubocop', '~> 0.31'
|
||||
gem 'rspec', '~> 3.0'
|
||||
end
|
||||
|
20
LICENSE.txt
Normal file
20
LICENSE.txt
Normal file
@ -0,0 +1,20 @@
|
||||
Copyright (c) 2015 Algolia
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
54
Rakefile
Normal file
54
Rakefile
Normal file
@ -0,0 +1,54 @@
|
||||
# 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 'jeweler'
|
||||
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.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
|
||||
|
||||
require 'rspec/core'
|
||||
require 'rspec/core/rake_task'
|
||||
RSpec::Core::RakeTask.new(:spec) do |spec|
|
||||
spec.rspec_opts = '--color --format documentation'
|
||||
spec.pattern = FileList['spec/**/*_spec.rb']
|
||||
end
|
||||
task test: :spec
|
||||
|
||||
desc 'Code coverage detail'
|
||||
task :simplecov do
|
||||
ENV['COVERAGE'] = 'true'
|
||||
Rake::Task['test'].execute
|
||||
end
|
||||
|
||||
task default: :test
|
||||
|
||||
require 'rdoc/task'
|
||||
Rake::RDocTask.new do |rdoc|
|
||||
version = File.exist?('VERSION') ? File.read('VERSION') : ''
|
||||
|
||||
rdoc.rdoc_dir = 'rdoc'
|
||||
rdoc.title = "algoliasearch-jekyll #{version}"
|
||||
rdoc.rdoc_files.include('README*')
|
||||
rdoc.rdoc_files.include('lib/**/*.rb')
|
||||
end
|
@ -1,22 +0,0 @@
|
||||
Gem::Specification.new do |s|
|
||||
s.name = 'algoliasearch-jekyll'
|
||||
s.version = '0.2.2'
|
||||
s.date = '2015-07-03'
|
||||
s.summary = 'AlgoliaSearch for Jekyll'
|
||||
s.description = 'Index all your pages and posts to an Algolia index with ' \
|
||||
'`jekyll algolia push`'
|
||||
s.authors = ['Tim Carry']
|
||||
s.email = 'tim@pixelastic.com'
|
||||
s.files = Dir['lib/*.rb']
|
||||
|
||||
s.add_development_dependency('jekyll', ['~> 2.5'])
|
||||
s.add_development_dependency('rspec', ['~> 3.0'])
|
||||
s.add_development_dependency('guard-rspec', ['~> 4.6'])
|
||||
|
||||
s.add_runtime_dependency('nokogiri', ['~> 1.6'])
|
||||
s.add_runtime_dependency('json', ['~> 1.8'])
|
||||
s.add_runtime_dependency('awesome_print', ['~> 1.6'])
|
||||
s.add_runtime_dependency('algoliasearch', ['~> 1.4'])
|
||||
s.homepage = 'https://github.com/algolia/algoliasearch-jekyll'
|
||||
s.license = 'MIT'
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user