13 Commits

Author SHA1 Message Date
Pixelastic
3e37f9bdec Consider focused tests as linting errors 2017-11-14 17:08:32 +01:00
Pixelastic
680e09f135 Add tests for logging custom errors 2017-11-13 17:14:51 +01:00
Pixelastic
e4daad6762 fix(dependencies): Improve TDD watchers on various jekyll versions 2016-03-08 14:24:44 +01:00
Pixelastic
bee8926d1e fix(v3): Stop throwing deprecation warning when using Jekyll v3
This should fix the deprecation warnings the plugin is throwing with Jekyll 3.0.

```
Deprecation: Document#slug is now a key in the #data hash.
    Called by /home/tim/.rvm/gems/ruby-2.2.3/gems/algoliasearch-jekyll-0.5.3/lib/record_extractor.rb:35:in `metadata'.
Deprecation: Document#tags is now a key in the #data hash.
    Called by /home/tim/.rvm/gems/ruby-2.2.3/gems/algoliasearch-jekyll-0.5.3/lib/record_extractor.rb:53:in `tags'.
```

I've fighted hard, but we can now launch the tests for both Jekyll 2.5 and Jekyll 3.0 (everything is in `./scripts`), and write tests conditionnaly for one version or the other.

The tool to do that is [appraisal](https://github.com/thoughtbot/appraisal) that lets you define several Gemfiles, and you then have to prefix all your `bundle` commands with `appraisal` (so, yeah, you end up with silly `appraisal bundle exec rake stuff`).

I had to duplicate the fixtures, for each version, which explain the large number of file changed, but this is just a copy paste (except the `_config.yml` that is different for each jekyll version)
2016-01-11 09:47:58 +01:00
Pixelastic
c0db6f4908 fix(scripts): Fix before-push that was always succeeding 2015-07-28 17:23:26 +02:00
Pixelastic
e6ac7f17a3 style(hooks): Only trigger hooks when ruby files have been changed 2015-07-21 22:28:38 +02:00
Pixelastic
7b491e23af feat(dry-run): Add -n flag to do a dry run 2015-07-21 19:03:12 +02:00
Pixelastic
dfd3a0c44b style(hooks): Add flay pre-commit hook 2015-07-20 12:12:59 +02:00
Pixelastic
acf01fc2c3 feat(flog): Add flog pre-commit hook 2015-07-17 18:46:14 +02:00
Pixelastic
fca9dc9602 fix(scripts): Move scripts to rake 2015-07-16 13:34:59 +02:00
Pixelastic
704815e39a feat(hooks): Check for focused or skipped tests before commiting 2015-07-10 12:22:11 +02:00
Pixelastic
faa86d0cd9 feat(hooks): Remove unused hook script 2015-07-08 18:12:40 +02:00
Pixelastic
d2bb1341ee style(rubocop): Follow rubocop rules and add git hooks 2015-07-07 18:50:59 +02:00