lunr 1.0.0 → 1.0.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.
- data/CHANGELOG.rdoc +4 -0
- data/lib/lunr.rb +2 -2
- metadata +3 -3
data/CHANGELOG.rdoc
CHANGED
data/lib/lunr.rb
CHANGED
|
@@ -7,7 +7,7 @@ module Lunr
|
|
|
7
7
|
extend Configlet
|
|
8
8
|
|
|
9
9
|
# Duh.
|
|
10
|
-
VERSION = "1.0.
|
|
10
|
+
VERSION = "1.0.1"
|
|
11
11
|
|
|
12
12
|
config :lunr do
|
|
13
13
|
default :pp => "25"
|
|
@@ -15,7 +15,7 @@ module Lunr
|
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
def self.search query, options = {}, &block
|
|
18
|
-
page = [1, Integer(options[:p])].max
|
|
18
|
+
page = [1, Integer(options[:p] || 0)].max
|
|
19
19
|
per = Integer options[:pp] || self[:pp]
|
|
20
20
|
|
|
21
21
|
params = {
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lunr
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 21
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 1.0.
|
|
9
|
+
- 1
|
|
10
|
+
version: 1.0.1
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- John Barnette
|