vj-sdk 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/videojuicer/resource/collection.rb +1 -1
- data/spec/collection_spec.rb +5 -0
- data/vj-sdk.gemspec +1 -1
- metadata +2 -2
data/VERSION.yml
CHANGED
data/spec/collection_spec.rb
CHANGED
@@ -27,6 +27,11 @@ describe Videojuicer::Resource::Collection do
|
|
27
27
|
c.page_number.should == 1
|
28
28
|
end
|
29
29
|
|
30
|
+
it "reports page 1 when there are zero items" do
|
31
|
+
c = Videojuicer::Resource::Collection.new(@objects[0..9], 0, 0, 10)
|
32
|
+
c.page_number.should == 1
|
33
|
+
end
|
34
|
+
|
30
35
|
it "pagination copes with a nil limit" do
|
31
36
|
collection = Videojuicer::Resource::Collection.new(@objects[0..9], 155, 17, nil)
|
32
37
|
collection.page_count.should == 1
|
data/vj-sdk.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{vj-sdk}
|
8
|
-
s.version = "0.5.
|
8
|
+
s.version = "0.5.4"
|
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"]
|