lunr 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/CHANGELOG.rdoc +4 -0
  2. data/lib/lunr.rb +2 -2
  3. metadata +3 -3
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.0.1 / 2010-08-25
2
+
3
+ * Handle missing :p value correctly.
4
+
1
5
  === 1.0.0 / 2010-08-25
2
6
 
3
7
  * Birthday!
data/lib/lunr.rb CHANGED
@@ -7,7 +7,7 @@ module Lunr
7
7
  extend Configlet
8
8
 
9
9
  # Duh.
10
- VERSION = "1.0.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: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - John Barnette