middleman-lunr 0.2.1 → 0.2.2

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: fab594a7ce40c116fd6e0e7c444ea5937cb194c4
4
- data.tar.gz: 2aad28f0bae7924142f1703eee600a13ef65af2f
3
+ metadata.gz: fcd6861100b64852e5676650ecc4b7d4d6c9dae2
4
+ data.tar.gz: a6d884b8734515fe2723ddce4ddf216e68a1ee4b
5
5
  SHA512:
6
- metadata.gz: 29da568910eb8d7271206840f83d3954565b3ab9dfd5d46da45c0ee6d9b24ba60ce97ff1f697890cb5abba6585b5134a0b3923e28f8cc9c1d4bcf82fb18d1a0c
7
- data.tar.gz: a3ac800d4e0d821c8a262ab1364896cf0a6b932575afe8531b8bebf8dd79ec4a009e7b67b31f9abe75376a391742e5f90318637297c6d0650c535c10d6e91a0a
6
+ metadata.gz: d8e70815f839c59403a8d763e1e8f028a90abe4d35053b5d6a043b2c0b5432427f6c8c6c1243661e8610340a4f7930952de287bdaa6d69ce9d3124c7036a7f3f
7
+ data.tar.gz: abc834a24f967eca28748a93a09f9d7320454f78eb88e51d901590ed34d081b1a05dc573a11669122a1c2cb942b0c620bda9ed32641bcda479e9f9b06c1c648d
data/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Joël Gähwiler
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -22,13 +22,13 @@ activate :lunr
22
22
 
23
23
  Mark the files you wanna index in the [frontmatter](https://middlemanapp.com/basics/frontmatter/):
24
24
 
25
- ```
25
+ ```yml
26
26
  index: true
27
27
  ```
28
28
 
29
29
  Create a JSON template `source/search.json.erb` and generate the index and map:
30
30
 
31
- ```html
31
+ ```erb
32
32
  <%= JSON.generate(generate_search_index({data: [:title, :description]}), max_nesting: false) %>
33
33
  ```
34
34
  - The generated json will include the lunr.js index under the `index` key and a map that translates lunr.js references to your middleman pages under the `map` key.
@@ -3,7 +3,7 @@ $:.push File.expand_path('../lib', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'middleman-lunr'
6
- s.version = '0.2.1'
6
+ s.version = '0.2.2'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ['Joël Gähwiler']
9
9
  s.email = ['joel.gaehwiler@gmail.com']
@@ -15,6 +15,6 @@ Gem::Specification.new do |s|
15
15
  s.files = `git ls-files`.split("\n")
16
16
  s.require_paths = ['lib']
17
17
 
18
- s.add_runtime_dependency('middleman-core', ['~> 3.3'])
18
+ s.add_runtime_dependency('middleman-core', ['>= 3.3'])
19
19
  s.add_runtime_dependency('therubyracer', ['~> 0.8'])
20
20
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-lunr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joël Gähwiler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-30 00:00:00.000000000 Z
11
+ date: 2016-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.3'
27
27
  - !ruby/object:Gem::Dependency
@@ -47,6 +47,7 @@ extra_rdoc_files: []
47
47
  files:
48
48
  - ".gitignore"
49
49
  - Gemfile
50
+ - LICENSE.md
50
51
  - README.md
51
52
  - js/lunr.min.js
52
53
  - lib/middleman-lunr.rb