73 Commits

Author SHA1 Message Date
Pixelastic
fcf67a08a6 Add string/regex matcher for all versions 2017-11-11 01:22:59 +01:00
Pixelastic
a437f15a24 Adding tests for extractor run 2017-11-10 19:31:52 +01:00
Pixelastic
45200fe8d1 Add missing tests to FileBrowser
Can now extract all data from all files
2017-11-10 16:15:29 +01:00
Pixelastic
7b9982b788 Adding FileBrowser export of file metadata 2017-11-10 14:43:40 +01:00
Pixelastic
b05916f6b1 Adding Configurator and FileBrowser + tests 2017-11-09 17:29:01 +01:00
Pixelastic
fef1e170c8 Add tests to extractor 2017-11-08 16:03:39 +01:00
Pixelastic
9f6d3f963a Adding tests for Configurator 2017-11-08 14:12:49 +01:00
Pixelastic
f15ac944b6 Move previous lib and spec to _old directories 2017-11-08 10:52:31 +01:00
Pixelastic
09f2dca507 Adding tests for Jekyll::Algolia 2017-11-07 22:57:30 +01:00
Pixelastic
374c940182 Refactoring skeleton, by splitting into specific classes 2017-11-07 22:07:46 +01:00
Pixelastic
fc4ef88434 Remove version-specific branching. Jekyll v3.6 is the default 2017-11-07 12:31:34 +01:00
Pixelastic
700b5a88d6 All tests are green 2017-11-07 12:08:58 +01:00
Pixelastic
04a348e4cb Moving to AlgoliaHTMLExtractor 2017-11-07 12:06:42 +01:00
Pixelastic
94f182cbc9 Update gemsepc 2017-11-07 12:00:55 +01:00
Pixelastic
22c3608292 feat(user-agent): Update UA to new convention 2016-09-01 13:45:25 +02:00
Pixelastic
16e7b74b9e feat(lazy): Adding lazy update feature 2016-07-13 11:24:58 +02:00
Pixelastic
70a0b4b6e8 feat(ENV): Allow passing application_id and index_name as ENV
Fixes #29

Environment variabmes ALGOLIA_APPLICATION_ID and ALGOLIA_INDEX_NAME,
if present, will now be used instead of the values defined in
_config.yml.
2016-07-12 11:47:37 +02:00
Pixelastic
abc54e11cc fix(collection): Add collection name
Fixes #25
2016-07-08 17:57:17 +02:00
Pixelastic
dcfb1529ea fix(errors): Readable error for "record too big"
Fixes #28
2016-07-08 17:06:45 +02:00
Pixelastic
6a9e815603 test(jekyll3.1.6): Make tests pass for all jekyll3+ 2016-07-08 14:56:24 +02:00
Pixelastic
989a96105d WIP 2016-07-08 14:49:21 +02:00
Pixelastic
826b0ffe3f WIP 2016-07-08 13:48:27 +02:00
Pixelastic
635994dc5d test(tags): No deprecation for tags in 3.1.3 2016-07-06 18:09:39 +02:00
Pixelastic
5b5678e8cc test(mock): Better mock of Jekyll logger 2016-07-06 18:04:26 +02:00
Pixelastic
77fcd45690 test(deprecation): No deprecation warning thrown 2016-07-06 17:47:58 +02:00
Pixelastic
34b7afdee0 test(3.1.3): Make tests pass Jekyll 3.1.3 2016-07-06 15:47:15 +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
db1f95237e feat(index): Do not index index.html page 2016-06-30 16:51:51 +02:00
Pixelastic
ce3ec4fa30 feat(404): Should not index 404.html either 2016-06-30 16:36:57 +02:00
Pixelastic
213f5081af feat(404): Do not index 404.md pages 2016-06-30 16:29:20 +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
7005983727 feat(error): Display human error when API key ACL is not enough 2016-01-12 15:31:05 +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
dc62a65332 feat(weight): Use more weight values in default weight 2015-11-03 15:25:44 +01:00
Pixelastic
f6c43c4478 feat(weight): Add more weight values in default weight 2015-11-03 14:28:26 +01:00
Pixelastic
e297d7f749 fix(version): Do not depend on Rubygem to get the version 2015-07-29 19:45:58 +02:00
Pixelastic
ecd4c67f06 feat(user-agent): Send the plugin name and version in the UA 2015-07-28 19:49:20 +02:00
Pixelastic
d60e069c91 fix(tests): Fix tests 2015-07-28 17:22:06 +02:00
Pixelastic
ebc1a0cafd feat(hook): Add custom_hook_excluded_file? 2015-07-28 15:48:42 +02:00
Pixelastic
20e75481ea refactor(excluded_file): Refactored way to check excluded regexp 2015-07-21 21:45:23 +02:00
Pixelastic
b650547c15 refactor(pagination): Refactor push tests to use real Jekyll instance 2015-07-21 20:00:36 +02:00
Pixelastic
eaba4c42aa refactor(credentials): Move code to CredentialsChecker 2015-07-20 11:26:02 +02:00
Pixelastic
a87d9ac4ea refactor(codeclimate): Split long check_credentials method 2015-07-17 18:31:26 +02:00
Pixelastic
61057c77d9 refactor(coverage): Increase to 100% code coverage 2015-07-17 14:43:46 +02:00
Pixelastic
0853e4c7fd test(coveralls): Add coverall files 2015-07-16 18:12:34 +02:00
Pixelastic
878133341e test(timezone): Check that posted_at is relative to timezone 2015-07-16 16:36:56 +02:00