algoliasearch-jekyll 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +54 -0
- data/algoliasearch-jekyll.gemspec +3 -2
- data/lib/push.rb +5 -1
- data/lib/version.rb +2 -2
- data/spec/push_spec.rb +5 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 988cac4f048353fd0b0b65f9598025a6a485a10e
|
4
|
+
data.tar.gz: 3294a5aa8c00fbd16ba894d37164046ef785b594
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abf5b3df4f3eaa6dba8773179887b0e261a0bd3ee2eed293861efc3d005ccc88566fedbef124e4b859000dab67439021d1b73a075dc505cc2e4c689e11ee59a7
|
7
|
+
data.tar.gz: d7f1b31dfcb09e4510f4c36d68f65989e62b5c45f51a301ee18745196bc83fc2802db287e8b434d66f4c7d5b8cade3ac266715027f30553d4865347f50b9a8a0
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
Hi collaborator!
|
2
|
+
|
3
|
+
If you have a fix or a new feature, please start by checking in the
|
4
|
+
[issues](https://github.com/algolia/algoliasearch-jekyll/issues) if it is
|
5
|
+
already referenced. If not, feel free to open one.
|
6
|
+
|
7
|
+
We use [pull requests](https://github.com/algolia/algoliasearch-jekyll/pulls)
|
8
|
+
for collaboration. The workflow is as follow:
|
9
|
+
|
10
|
+
- Create a local branch, starting from `master`
|
11
|
+
- Submit the PR on `master`
|
12
|
+
- Wait for review
|
13
|
+
- Do the changes requested (if any)
|
14
|
+
- We may ask you to rebase the branch to latest master if it gets out of sync
|
15
|
+
with `master`
|
16
|
+
- Receive the thanks of the Algolia team :)
|
17
|
+
|
18
|
+
# Development workflow
|
19
|
+
|
20
|
+
After the necessary `bundle install`, you can simply launch `guard` to start the
|
21
|
+
test suite in watch mode (perfect for TDD).
|
22
|
+
|
23
|
+
If you want to test the plugin on an existing Jekyll website while developping,
|
24
|
+
I suggest updating the website `Gemfile` to point to the correct local directory
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
gem "algoliasearch-jekyll", :path => "/path/to/local/gem/folder"
|
28
|
+
```
|
29
|
+
|
30
|
+
If you plan on submitting a PR, I suggest you install the git hooks. This will
|
31
|
+
run pre-commit and pre-push checks. Those checks will also be run by TravisCI,
|
32
|
+
but running them locally gives faster feedback.
|
33
|
+
|
34
|
+
# Tagging and releasing
|
35
|
+
|
36
|
+
This part is for main contributors:
|
37
|
+
|
38
|
+
```
|
39
|
+
# Bump the version manually
|
40
|
+
vim ./lib/version.rb
|
41
|
+
|
42
|
+
# Commit it
|
43
|
+
git add ./lib/version.rb
|
44
|
+
git commit -m 'chore(bump): Version bump to X.Y.Z'
|
45
|
+
|
46
|
+
# Tag and release
|
47
|
+
rake release
|
48
|
+
|
49
|
+
# Install the gem locally
|
50
|
+
rake install
|
51
|
+
```
|
52
|
+
|
53
|
+
|
54
|
+
|
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: algoliasearch-jekyll 0.5.
|
5
|
+
# stub: algoliasearch-jekyll 0.5.1 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "algoliasearch-jekyll"
|
9
|
-
s.version = "0.5.
|
9
|
+
s.version = "0.5.1"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
@@ -23,6 +23,7 @@ Gem::Specification.new do |s|
|
|
23
23
|
".rspec",
|
24
24
|
".rubocop.yml",
|
25
25
|
".travis.yml",
|
26
|
+
"CONTRIBUTING.md",
|
26
27
|
"Gemfile",
|
27
28
|
"Guardfile",
|
28
29
|
"LICENSE.txt",
|
data/lib/push.rb
CHANGED
@@ -110,7 +110,11 @@ class AlgoliaSearchJekyllPush < Jekyll::Command
|
|
110
110
|
unordered(tags)
|
111
111
|
),
|
112
112
|
attributesToRetrieve: nil,
|
113
|
-
customRanking: [
|
113
|
+
customRanking: [
|
114
|
+
'desc(posted_at)',
|
115
|
+
'desc(weight.tag_name)',
|
116
|
+
'asc(weight.position)'
|
117
|
+
],
|
114
118
|
highlightPreTag: '<span class="algolia__result-highlight">',
|
115
119
|
highlightPostTag: '</span>'
|
116
120
|
}
|
data/lib/version.rb
CHANGED
data/spec/push_spec.rb
CHANGED
@@ -107,7 +107,11 @@ describe(AlgoliaSearchJekyllPush) do
|
|
107
107
|
expected = {
|
108
108
|
attributeForDistinct: 'url',
|
109
109
|
distinct: true,
|
110
|
-
customRanking: [
|
110
|
+
customRanking: [
|
111
|
+
'desc(posted_at)',
|
112
|
+
'desc(weight.tag_name)',
|
113
|
+
'asc(weight.position)'
|
114
|
+
]
|
111
115
|
}
|
112
116
|
expect(index).to receive(:set_settings).with(hash_including(expected))
|
113
117
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: algoliasearch-jekyll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Carry
|
@@ -205,6 +205,7 @@ files:
|
|
205
205
|
- ".rspec"
|
206
206
|
- ".rubocop.yml"
|
207
207
|
- ".travis.yml"
|
208
|
+
- CONTRIBUTING.md
|
208
209
|
- Gemfile
|
209
210
|
- Guardfile
|
210
211
|
- LICENSE.txt
|