vj-sdk 0.7.2 → 0.7.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.
data/VERSION.yml CHANGED
@@ -2,4 +2,4 @@
2
2
  :major: 0
3
3
  :build:
4
4
  :minor: 7
5
- :patch: 2
5
+ :patch: 3
@@ -22,8 +22,9 @@ module Videojuicer
22
22
  end
23
23
 
24
24
  def self.limit_from_page_number page, limit
25
+ page = page.to_i
25
26
  return 0 if page == 1
26
- (page - 1) * limit
27
+ (page - 1) * limit.to_i
27
28
  end
28
29
 
29
30
  def page_count
@@ -48,5 +48,10 @@ describe Videojuicer::Resource::Collection do
48
48
  offset.should == 20
49
49
  end
50
50
 
51
+ it "should be able to take a string as a page and limit argument" do
52
+ offset = Videojuicer::Resource::Collection.limit_from_page_number "2", "20"
53
+ offset.should == 20
54
+ end
55
+
51
56
 
52
57
  end
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.7.2"
8
+ s.version = "0.7.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", "lamp"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vj-sdk
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 2
10
- version: 0.7.2
9
+ - 3
10
+ version: 0.7.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - danski