25 Commits

Author SHA1 Message Date
Pixelastic
abc54e11cc fix(collection): Add collection name
Fixes #25
2016-07-08 17:57:17 +02:00
Pixelastic
dd31b0eb9c WIP: Need to make it work for 3.1.6 and without deprecation message 2016-07-01 17:50:40 +02:00
Pixelastic
7a52a36aee fix(node): Do not push the node to the index 2016-06-28 15:42:14 +02:00
Pixelastic
b61e5016a3 feat(extractor): Extracting specific and general data 2016-06-20 18:37:38 +02:00
Pixelastic
2a4a91dd66 feat(extractor): Use external gem for extracting 2016-05-13 18:47:37 +02:00
Pixelastic
e4daad6762 fix(dependencies): Improve TDD watchers on various jekyll versions 2016-03-08 14:24:44 +01:00
Pixelastic
2a2d9bbaa3 test(coverage): Getting coverage back to 100% 2016-01-11 09:47:58 +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
f6c43c4478 feat(weight): Add more weight values in default weight 2015-11-03 14:28:26 +01:00
Pixelastic
f2d57d6902 feat(verbose): Add --verbose flag 2015-07-21 19:19:15 +02:00
Pixelastic
f2c9795719 Copy any custom front matter variables to the index 2015-07-15 14:09:29 +02:00
Pixelastic
b9b1694828 Index Jekyll::Document 2015-07-15 13:55:48 +02:00
Pixelastic
30b812d7a2 fix(heading): Escape HTML in headings. 2015-07-10 18:19:07 +02:00
Pixelastic
b0111964b4 feat(hierarchy): Include self in the heading if node is itself
a heading
2015-07-10 17:29:47 +02:00
Pixelastic
c76457bde3 fix(weight): Allow non-string values in titles 2015-07-10 11:55:54 +02:00
Pixelastic
d2bb1341ee style(rubocop): Follow rubocop rules and add git hooks 2015-07-07 18:50:59 +02:00
Pixelastic
9277ab9e9b Allow custom hook to return nil to skip a record 2015-07-07 17:07:19 +02:00
Pixelastic
0af87e346a fix(css_selector_parent): Fix selector on headings
When indexing headings, the css_selector_heading was returning the
wrong element
2015-07-03 19:06:26 +02:00
Pixelastic
e49704c83a feat(css_selector_heading): Add css selector for the closest heading 2015-07-03 17:52:10 +02:00
Pixelastic
ad87543a4d refactor(get_parent_heading): Split longer method in half to be reused 2015-07-03 17:37:17 +02:00
Pixelastic
7eacc7b5c9 feat(hooks): Add custom_hook_each and custom_hook_all 2015-07-03 16:19:48 +02:00
Pixelastic
30de69189b test(push): Add tests for credentials and extracting last content. 2015-07-03 14:17:56 +02:00
Pixelastic
d357bb82aa test(extractor): More tests on <p> extraction 2015-07-02 19:00:54 +02:00
Pixelastic
40db46325b test(tags): Add tag extraction tests 2015-07-02 16:02:59 +02:00
Pixelastic
aa3e865e2b test(extractor): Add tests for metadata 2015-07-02 15:47:56 +02:00