test(travis): Limit compatibility to Ruby 2.0+
This commit is contained in:
parent
114f551ec6
commit
3a61d06dda
@ -1,7 +1,4 @@
|
|||||||
language: ruby
|
language: ruby
|
||||||
rvm:
|
rvm:
|
||||||
- '1.8.7'
|
- 2.1
|
||||||
- '1.9.2'
|
- 2.0
|
||||||
- '1.9.3'
|
|
||||||
- '2.2.1'
|
|
||||||
- rbx
|
|
||||||
|
|||||||
4
Gemfile
4
Gemfile
@ -1,7 +1,5 @@
|
|||||||
source 'http://rubygems.org'
|
source 'http://rubygems.org'
|
||||||
|
|
||||||
ruby '2.2.1'
|
|
||||||
|
|
||||||
gem 'algoliasearch', '~> 1.4'
|
gem 'algoliasearch', '~> 1.4'
|
||||||
gem 'awesome_print', '~> 1.6'
|
gem 'awesome_print', '~> 1.6'
|
||||||
gem 'json', '~> 1.8'
|
gem 'json', '~> 1.8'
|
||||||
@ -9,7 +7,7 @@ gem 'nokogiri', '~> 1.6'
|
|||||||
|
|
||||||
group :development do
|
group :development do
|
||||||
gem 'guard-rspec', '~> 4.6'
|
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 'jeweler', '~> 2.0'
|
||||||
gem 'rspec', '~> 3.0'
|
gem 'rspec', '~> 3.0'
|
||||||
gem 'rubocop', '~> 0.31'
|
gem 'rubocop', '~> 0.31'
|
||||||
|
|||||||
@ -131,6 +131,11 @@ class AlgoliaSearchRecordExtractor
|
|||||||
end
|
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
|
## Searching
|
||||||
|
|
||||||
This plugin will only index your data in your Algolia index. Adding search
|
This plugin will only index your data in your Algolia index. Adding search
|
||||||
|
|||||||
3
Rakefile
3
Rakefile
@ -23,6 +23,9 @@ Jeweler::Tasks.new do |gem|
|
|||||||
'`jekyll algolia push`'
|
'`jekyll algolia push`'
|
||||||
gem.email = 'tim@pixelastic.com'
|
gem.email = 'tim@pixelastic.com'
|
||||||
gem.authors = ['Tim Carry']
|
gem.authors = ['Tim Carry']
|
||||||
|
|
||||||
|
gem.required_ruby_version = '2.0'
|
||||||
|
|
||||||
# dependencies defined in Gemfile
|
# dependencies defined in Gemfile
|
||||||
end
|
end
|
||||||
Jeweler::RubygemsDotOrgTasks.new
|
Jeweler::RubygemsDotOrgTasks.new
|
||||||
|
|||||||
8
scripts/test_full
Executable file
8
scripts/test_full
Executable 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
|
||||||
Loading…
x
Reference in New Issue
Block a user