flickrmocks 0.8.10 → 0.8.11

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 CHANGED
@@ -1 +1 @@
1
- 0.8.10
1
+ 0.8.11
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{flickrmocks}
8
- s.version = "0.8.10"
8
+ s.version = "0.8.11"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Takaltoo"]
@@ -68,7 +68,8 @@ module FlickrMocks
68
68
 
69
69
  def collection
70
70
  ::WillPaginate::Collection.create(current_page, per_page, total_entries) do |obj|
71
- obj.replace(institutions)
71
+ start = (current_page-1)*per_page
72
+ obj.replace(institutions[start, per_page])
72
73
  end
73
74
  end
74
75
 
@@ -149,7 +149,7 @@ describe APP::CommonsInstitutions do
149
149
  OpenStruct.new :current_page => 1,
150
150
  :per_page => 20,
151
151
  :total_entries => fixture.size,
152
- :collection => subject.institutions
152
+ :collection => subject.institutions[0,20]
153
153
  }
154
154
  it_behaves_like "object that responds to collection"
155
155
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 8
8
- - 10
9
- version: 0.8.10
8
+ - 11
9
+ version: 0.8.11
10
10
  platform: ruby
11
11
  authors:
12
12
  - Takaltoo