algoliasearch-jekyll 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be7a946ef88f83e9dd443b3bb1cf0192b9809366
4
- data.tar.gz: 613b7ae7df5b1ea5d23393225c9bf9953cddcfd7
3
+ metadata.gz: 988cac4f048353fd0b0b65f9598025a6a485a10e
4
+ data.tar.gz: 3294a5aa8c00fbd16ba894d37164046ef785b594
5
5
  SHA512:
6
- metadata.gz: 94285229cd205e237c10562c8c15060f69d7986d2074e6267192099aba31d033d31459f36a35f1b699d6b2c6504f7be74474af5ed387106975d9ad17fa6d1a9e
7
- data.tar.gz: 4aefd0b4d45a2d28b4e7ed4b8f56af28c2296cc3ce423894b854b4f97a1ef05e05db11f951c6e23384eac8e149693d60936ae244fa7bc4f42717a024e4a53e77
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.0 ruby lib
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.0"
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: ['desc(posted_at)', 'desc(weight)'],
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
@@ -1,8 +1,8 @@
1
1
  # Expose gem version
2
2
  class AlgoliaSearchJekyllVersion
3
3
  MAJOR = 0
4
- MINOR = 4
5
- PATCH = 3
4
+ MINOR = 5
5
+ PATCH = 1
6
6
  BUILD = nil
7
7
 
8
8
  def self.to_s
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: ['desc(posted_at)', 'desc(weight)']
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.0
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