48 Commits

Author SHA1 Message Date
Pixelastic
b81b29493e test(integration): Add custom site for testing plugin integration 2018-05-07 17:46:19 +02:00
Pixelastic
d844281e39 test(fix): Fix failing tests and watch script 2018-04-26 18:38:33 +02:00
Pixelastic
8a34d08dec test(link): Add unit and integration tests for the link tag 2018-04-05 12:46:28 +02:00
Pixelastic
7783b79e73 feature(settings): Detect when features are changed from outside 2018-03-08 16:00:12 +01:00
Pixelastic
d7e4103ab2 test(integration): Delete the index between each runs 2018-03-01 16:36:55 +01:00
Pixelastic
48604389a1 test(integration): Add integration scripts placeholders 2018-03-01 16:16:59 +01:00
Pixelastic
0513b15ae1 test(hooks): Lint before pushing 2017-11-29 17:50:46 +01:00
Pixelastic
34554a10e5 test(flog/flay): Removing those as they're not configurable enough 2017-11-29 17:49:41 +01:00
Pixelastic
54aa9b48b0 test(hooks): Fix pre-push commit hook 2017-11-29 17:46:23 +01:00
Pixelastic
04713474e8 chore(rubocop): Auto-fix Rubocop errors for Ruby 2.3
Original idea coming from https://github.com/algolia/jekyll-algolia/pull/18
2017-11-28 14:44:36 +01:00
Pixelastic
f19eab5e36 test(all): Make sure we install bundler in all versions 2017-11-27 15:00:12 +01:00
Pixelastic
e278d4f7cf test(travis): Enable Travis tests 2017-11-27 14:55:36 +01:00
Pixelastic
7e3340df4f Removing old unused scripts 2017-11-27 14:55:36 +01:00
Pixelastic
87a3f05af0 Upgrade minimum Ruby version to 2.3.5 2017-11-17 19:03:17 +01:00
Pixelastic
6fc74de4b8 Make tests work on all ruby versions 2017-11-15 10:00:41 +01:00
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
6a137fa850 Make tests running in all versions 2017-11-13 11:12:54 +01:00
Pixelastic
fcf67a08a6 Add string/regex matcher for all versions 2017-11-11 01:22:59 +01:00
Pixelastic
f15ac944b6 Move previous lib and spec to _old directories 2017-11-08 10:52:31 +01:00
Pixelastic
591067ce6f Add test watching 2017-11-08 10:29:55 +01:00
Pixelastic
bab32f9c3e Have tests working for all supported Ruby versions 2017-11-07 15:56:23 +01:00
Pixelastic
b5fb54d915 docs: Drafting some ideas for the website 2016-09-01 14:20:30 +02:00
Pixelastic
19c609ccdd refactor(release): Simplify script 2016-07-20 18:19:10 +02:00
Pixelastic
adfb9ce96b test(jekyll3): Make it all pass under Jekyll v3 2016-07-08 15:02:13 +02:00
Pixelastic
6a9e815603 test(jekyll3.1.6): Make tests pass for all jekyll3+ 2016-07-08 14:56:24 +02:00
Pixelastic
826b0ffe3f WIP 2016-07-08 13:48:27 +02:00
Pixelastic
34b7afdee0 test(3.1.3): Make tests pass Jekyll 3.1.3 2016-07-06 15:47:15 +02:00
Pixelastic
70cc213ee8 fix(release): Update dependencies between each step 2016-03-08 14:33:02 +01:00
Pixelastic
e4daad6762 fix(dependencies): Improve TDD watchers on various jekyll versions 2016-03-08 14:24:44 +01:00
Pixelastic
7005983727 feat(error): Display human error when API key ACL is not enough 2016-01-12 15:31:05 +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
65b4b58299 feat(release): Add release script 2015-11-03 16:45:23 +01:00
Pixelastic
482ac3cf7c fix(bump): Fix relative filepath 2015-11-03 16:35:03 +01:00
Pixelastic
a68765110b feat(bump): Add bump script 2015-11-03 16:32:23 +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
eaba4c42aa refactor(credentials): Move code to CredentialsChecker 2015-07-20 11:26:02 +02:00
Pixelastic
acf01fc2c3 feat(flog): Add flog pre-commit hook 2015-07-17 18:46:14 +02:00
Pixelastic
3a61d06dda test(travis): Limit compatibility to Ruby 2.0+ 2015-07-16 14:48:46 +02:00
Pixelastic
fca9dc9602 fix(scripts): Move scripts to rake 2015-07-16 13:34:59 +02:00
Pixelastic
63f252b20f release(v0.2.2): Fix missing dependencies 2015-07-10 12:35:08 +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
Pixelastic
aa3e865e2b test(extractor): Add tests for metadata 2015-07-02 15:47:56 +02:00