vj-sdk 0.5.2 → 0.5.3

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.
@@ -2,4 +2,4 @@
2
2
  :build:
3
3
  :major: 0
4
4
  :minor: 5
5
- :patch: 2
5
+ :patch: 3
@@ -28,7 +28,7 @@ module Videojuicer
28
28
 
29
29
  def page_number
30
30
  return 1 if limit.nil? or offset.nil? or offset < 1
31
- (offset.to_f/limit.to_f).ceil
31
+ ((offset+1).to_f/limit.to_f).ceil
32
32
  end
33
33
 
34
34
  end
@@ -4,13 +4,13 @@ describe Videojuicer::Resource::Collection do
4
4
 
5
5
  before(:all) do
6
6
  @objects = [:foo]*100
7
- @collection = Videojuicer::Resource::Collection.new(@objects[0..9], 155, 17, 10)
7
+ @collection = Videojuicer::Resource::Collection.new(@objects[0..9], 155, 10, 10)
8
8
  end
9
9
 
10
10
  it "is instantiated correctly" do
11
11
  @collection.should be_kind_of(Videojuicer::Resource::Collection)
12
12
  @collection.total.should == 155
13
- @collection.offset.should == 17
13
+ @collection.offset.should == 10
14
14
  @collection.limit.should == 10
15
15
  end
16
16
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{vj-sdk}
8
- s.version = "0.5.2"
8
+ s.version = "0.5.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["danski", "thejohnny", "knowtheory", "sixones", "btab"]
12
- s.date = %q{2010-05-10}
12
+ s.date = %q{2010-05-11}
13
13
  s.email = %q{dan@videojuicer.com}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 2
9
- version: 0.5.2
8
+ - 3
9
+ version: 0.5.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - danski
@@ -18,7 +18,7 @@ autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
20
 
21
- date: 2010-05-10 00:00:00 +01:00
21
+ date: 2010-05-11 00:00:00 +01:00
22
22
  default_executable:
23
23
  dependencies:
24
24
  - !ruby/object:Gem::Dependency