tanker 0.5.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/tanker.rb +2 -4
  3. data/tanker.gemspec +1 -1
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.4
1
+ 0.5.5
data/lib/tanker.rb CHANGED
@@ -79,8 +79,7 @@ module Tanker
79
79
  end
80
80
 
81
81
  query = "__any:(#{query.to_s}) __type:#{self.name}"
82
- options = { :start => per_page * page, :len => per_page }.merge(options)
83
-
82
+ options = { :start => per_page * (page - 1), :len => per_page }.merge(options)
84
83
  results = index.search(query, options)
85
84
 
86
85
  ids = unless results["results"].empty?
@@ -135,5 +134,4 @@ module Tanker
135
134
  self.class.name + ' ' + self.id.to_s
136
135
  end
137
136
  end
138
- end
139
-
137
+ end
data/tanker.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{tanker}
8
- s.version = "0.5.4"
8
+ s.version = "0.5.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["@kidpollo"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 4
9
- version: 0.5.4
8
+ - 5
9
+ version: 0.5.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - "@kidpollo"