flickrmocks 0.8.11 → 0.8.12

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.11
1
+ 0.8.12
data/flickrmocks.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{flickrmocks}
8
- s.version = "0.8.11"
8
+ s.version = "0.8.12"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Takaltoo"]
12
- s.date = %q{2010-11-18}
12
+ s.date = %q{2010-11-19}
13
13
  s.description = %q{FlickrMocks makes it possible to Marshal responses
14
14
  generated from the FLickRaw gem. This is useful for
15
15
  Mocking/Stubbing the Flickr interface for testing purposes.
@@ -88,7 +88,7 @@ module FlickrMocks
88
88
  end
89
89
 
90
90
  def max_page
91
- (total_entries / @per_page) == 0 ? 1 : (total_entries / @per_page)
91
+ (total_entries / @per_page.to_f).ceil == 0 ? 1 : (total_entries / @per_page.to_f).ceil
92
92
  end
93
93
 
94
94
  def sanitize_page(page)
@@ -58,7 +58,7 @@ describe APP::CommonsInstitutions do
58
58
  klass.new(fixture,:per_page => 20, :current_page => 0).current_page.should == 1
59
59
  end
60
60
  it "should return max page when current_page is greater than max_page" do
61
- max_page = (fixture.size / 20)
61
+ max_page = (fixture.size / 20.to_f).ceil
62
62
  klass.new(fixture,:per_page => 20,
63
63
  :current_page => max_page+1).current_page.should == max_page
64
64
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 8
8
- - 11
9
- version: 0.8.11
8
+ - 12
9
+ version: 0.8.12
10
10
  platform: ruby
11
11
  authors:
12
12
  - Takaltoo
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-11-18 00:00:00 -08:00
17
+ date: 2010-11-19 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency