test(travis): Limit compatibility to Ruby 2.0+

This commit is contained in:
Pixelastic 2015-07-16 14:48:46 +02:00
parent 114f551ec6
commit 3a61d06dda
5 changed files with 19 additions and 8 deletions

View File

@ -1,7 +1,4 @@
language: ruby
rvm:
- '1.8.7'
- '1.9.2'
- '1.9.3'
- '2.2.1'
- rbx
- 2.1
- 2.0

View File

@ -1,7 +1,5 @@
source 'http://rubygems.org'
ruby '2.2.1'
gem 'algoliasearch', '~> 1.4'
gem 'awesome_print', '~> 1.6'
gem 'json', '~> 1.8'
@ -9,7 +7,7 @@ gem 'nokogiri', '~> 1.6'
group :development do
gem 'guard-rspec', '~> 4.6'
gem 'jekyll', '~> 2.5'
gem 'jekyll', '~> 2.5' # Jekyll custom commands only available from 2.5
gem 'jeweler', '~> 2.0'
gem 'rspec', '~> 3.0'
gem 'rubocop', '~> 0.31'

View File

@ -131,6 +131,11 @@ class AlgoliaSearchRecordExtractor
end
```
## Dependencies
The `algoliasearch-jekyll` plugin works form versions of Jekyll starting from
2.5, with a version of Ruby of at least 2.0.
## Searching
This plugin will only index your data in your Algolia index. Adding search

View File

@ -23,6 +23,9 @@ Jeweler::Tasks.new do |gem|
'`jekyll algolia push`'
gem.email = 'tim@pixelastic.com'
gem.authors = ['Tim Carry']
gem.required_ruby_version = '2.0'
# dependencies defined in Gemfile
end
Jeweler::RubygemsDotOrgTasks.new

8
scripts/test_full Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
source ~/.rvm/scripts/rvm
(rvm use 2.0 || rvm install ruby-2.0) && \
rake && \
(rvm use 2.1 || rvm install ruby-2.1) && \
rake