mark_facets 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,11 @@
1
+ if defined?(WillPaginate)
2
+
3
+ def stub_will_paginate(array, options = {})
4
+ options.reverse_merge!({:page => 1, :per_page => array.size, :total => array.size})
5
+ results = WillPaginate::Collection.create(options[:page], options[:per_page], options[:total]) do |pager|
6
+ pager.replace(array)
7
+ end
8
+ return results
9
+ end
10
+
11
+ end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 4
9
- version: 0.1.4
8
+ - 5
9
+ version: 0.1.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - markbates
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-11 00:00:00 -05:00
17
+ date: 2010-12-24 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -48,6 +48,7 @@ files:
48
48
  - lib/mark_facets/rails/test/rspec/all.rb
49
49
  - lib/mark_facets/rails/test/rspec/should/have_same_elements.rb
50
50
  - lib/mark_facets/rails/test/rspec/should/render_404.rb
51
+ - lib/mark_facets/rails/test/will_paginate.rb
51
52
  - lib/mark_facets/rails/test.rb
52
53
  - lib/mark_facets/rails/time_zones.rb
53
54
  - lib/mark_facets/ruby/big_decimal.rb
@@ -74,7 +75,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
74
75
  requirements:
75
76
  - - ">="
76
77
  - !ruby/object:Gem::Version
77
- hash: 3231506291172207564
78
+ hash: 3406247377279307392
78
79
  segments:
79
80
  - 0
80
81
  version: "0"