135 Commits

Author SHA1 Message Date
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
098a8428fc Update Gemfile to use gemspec and not the other way around 2017-11-07 17:10:19 +01:00
Pixelastic
b981c6563e Rename files from algoliasearch-jekyll to jekyll-algolia 2017-11-07 16:46:46 +01:00
Pixelastic
fc4ef88434 Remove version-specific branching. Jekyll v3.6 is the default 2017-11-07 12:31:34 +01:00
Pixelastic
04a348e4cb Moving to AlgoliaHTMLExtractor 2017-11-07 12:06:42 +01:00
Pixelastic
22c3608292 feat(user-agent): Update UA to new convention 2016-09-01 13:45:25 +02:00
Pixelastic
39f1d2569c chore(release): Update version to 1.0.0.beta-1 2016-07-20 18:17:47 +02:00
Pixelastic
16e7b74b9e feat(lazy): Adding lazy update feature 2016-07-13 11:24:58 +02:00
Pixelastic
769c3e406e refactor(config): Refactor copy-pasted methods into one abstraction
Flay is awesome.
2016-07-12 11:56:14 +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
989a96105d WIP 2016-07-08 14:49:21 +02:00
Pixelastic
826b0ffe3f WIP 2016-07-08 13:48:27 +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
41fbeff4a8 chore(bump): Version bump to 0.7.0 2016-03-08 14:35:11 +01:00
Pixelastic
e4daad6762 fix(dependencies): Improve TDD watchers on various jekyll versions 2016-03-08 14:24:44 +01:00
Pixelastic
1304511754 chore(bump): Version bump to 0.6.1 2016-01-13 14:06:46 +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
1d6c731985 chore(bump): Version bump to 0.6.0 2016-01-11 09:51:01 +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
a49a9eaac3 chore(bump): Version bump to 0.5.3 2015-11-03 16:45:46 +01:00
Pixelastic
3dc03af347 chore(bump): Version bump to 0.5.2 2015-11-03 16:37:13 +01:00
Pixelastic
ffca1b9952 feat(version): Use simpler version.rb file 2015-11-03 16:36:38 +01:00
Pixelastic
10622d4d9e docs(contributing): Stop the develop branching strategy 2015-11-03 15:54:50 +01:00
Pixelastic
aafa64fb25 chore(bump): Version bump to 0.5.0 2015-11-03 15:27:35 +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
ebc1a0cafd feat(hook): Add custom_hook_excluded_file? 2015-07-28 15:48:42 +02:00
Pixelastic
887c751c81 feat(verbose): Display list of record for each page if verbose 2015-07-27 15:48:16 +02:00
Pixelastic
c640262685 feat(settings): Do not hardcode the list of attributesToRetrieve
We will retrieve them all by default, as this is the expected behavior
for a new user. This make it possible to retrieve any data set in the
front-matter. Advanced users can still overwrite it.
2015-07-27 15:28:34 +02:00
Pixelastic
bd960807fd refactor(push): Split push logic in several methods 2015-07-21 22:08:48 +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
f2d57d6902 feat(verbose): Add --verbose flag 2015-07-21 19:19:15 +02:00
Pixelastic
7b491e23af feat(dry-run): Add -n flag to do a dry run 2015-07-21 19:03:12 +02:00
Pixelastic
81227c0207 feat(errors): Moved error messages to txt files 2015-07-20 11:45:28 +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