buscar 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/buscar.gemspec +2 -2
  3. data/lib/buscar/index.rb +2 -1
  4. metadata +75 -75
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.3
1
+ 1.0.4
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{buscar}
8
- s.version = "1.0.3"
8
+ s.version = "1.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["jarrett"]
12
- s.date = %q{2010-12-26}
12
+ s.date = %q{2011-08-24}
13
13
  s.description = %q{Simplifies searching, sorting, and pagination of ActiveRecord models. Includes a model class and a view helper.}
14
14
  s.email = %q{jarrettcolby@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -5,7 +5,8 @@ module Buscar
5
5
  # Views can call this method to iterate over the current page's records. Uses
6
6
  # the value returned by #page, which in turn uses the value of @params[:page]
7
7
  def each
8
- records_on_page(page).each do |record|
8
+ collection = paginate? ? records_on_page(page) : records
9
+ collection.each do |record|
9
10
  yield record
10
11
  end
11
12
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buscar
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 3
10
- version: 1.0.3
9
+ - 4
10
+ version: 1.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - jarrett
@@ -15,14 +15,11 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-26 00:00:00 -05:00
18
+ date: 2011-08-24 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- type: :development
23
- prerelease: false
24
- name: bundler
25
- version_requirements: &id001 !ruby/object:Gem::Requirement
22
+ requirement: &id001 !ruby/object:Gem::Requirement
26
23
  none: false
27
24
  requirements:
28
25
  - - ~>
@@ -33,12 +30,12 @@ dependencies:
33
30
  - 0
34
31
  - 0
35
32
  version: 1.0.0
36
- requirement: *id001
37
- - !ruby/object:Gem::Dependency
38
33
  type: :development
34
+ name: bundler
39
35
  prerelease: false
40
- name: jeweler
41
- version_requirements: &id002 !ruby/object:Gem::Requirement
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ requirement: &id002 !ruby/object:Gem::Requirement
42
39
  none: false
43
40
  requirements:
44
41
  - - ~>
@@ -49,12 +46,12 @@ dependencies:
49
46
  - 5
50
47
  - 1
51
48
  version: 1.5.1
52
- requirement: *id002
53
- - !ruby/object:Gem::Dependency
54
49
  type: :development
50
+ name: jeweler
55
51
  prerelease: false
56
- name: rspec
57
- version_requirements: &id003 !ruby/object:Gem::Requirement
52
+ version_requirements: *id002
53
+ - !ruby/object:Gem::Dependency
54
+ requirement: &id003 !ruby/object:Gem::Requirement
58
55
  none: false
59
56
  requirements:
60
57
  - - ">="
@@ -65,12 +62,12 @@ dependencies:
65
62
  - 2
66
63
  - 0
67
64
  version: 2.2.0
68
- requirement: *id003
69
- - !ruby/object:Gem::Dependency
70
65
  type: :development
66
+ name: rspec
71
67
  prerelease: false
72
- name: rcov
73
- version_requirements: &id004 !ruby/object:Gem::Requirement
68
+ version_requirements: *id003
69
+ - !ruby/object:Gem::Dependency
70
+ requirement: &id004 !ruby/object:Gem::Requirement
74
71
  none: false
75
72
  requirements:
76
73
  - - ">="
@@ -79,12 +76,12 @@ dependencies:
79
76
  segments:
80
77
  - 0
81
78
  version: "0"
82
- requirement: *id004
83
- - !ruby/object:Gem::Dependency
84
79
  type: :development
80
+ name: rcov
85
81
  prerelease: false
86
- name: machinist
87
- version_requirements: &id005 !ruby/object:Gem::Requirement
82
+ version_requirements: *id004
83
+ - !ruby/object:Gem::Dependency
84
+ requirement: &id005 !ruby/object:Gem::Requirement
88
85
  none: false
89
86
  requirements:
90
87
  - - ">="
@@ -95,12 +92,12 @@ dependencies:
95
92
  - 0
96
93
  - 6
97
94
  version: 1.0.6
98
- requirement: *id005
99
- - !ruby/object:Gem::Dependency
100
95
  type: :development
96
+ name: machinist
101
97
  prerelease: false
102
- name: faker
103
- version_requirements: &id006 !ruby/object:Gem::Requirement
98
+ version_requirements: *id005
99
+ - !ruby/object:Gem::Dependency
100
+ requirement: &id006 !ruby/object:Gem::Requirement
104
101
  none: false
105
102
  requirements:
106
103
  - - ">="
@@ -111,12 +108,12 @@ dependencies:
111
108
  - 3
112
109
  - 1
113
110
  version: 0.3.1
114
- requirement: *id006
115
- - !ruby/object:Gem::Dependency
116
111
  type: :development
112
+ name: faker
117
113
  prerelease: false
118
- name: activesupport
119
- version_requirements: &id007 !ruby/object:Gem::Requirement
114
+ version_requirements: *id006
115
+ - !ruby/object:Gem::Dependency
116
+ requirement: &id007 !ruby/object:Gem::Requirement
120
117
  none: false
121
118
  requirements:
122
119
  - - ">="
@@ -127,12 +124,12 @@ dependencies:
127
124
  - 0
128
125
  - 3
129
126
  version: 3.0.3
130
- requirement: *id007
131
- - !ruby/object:Gem::Dependency
132
127
  type: :development
128
+ name: activesupport
133
129
  prerelease: false
134
- name: actionpack
135
- version_requirements: &id008 !ruby/object:Gem::Requirement
130
+ version_requirements: *id007
131
+ - !ruby/object:Gem::Dependency
132
+ requirement: &id008 !ruby/object:Gem::Requirement
136
133
  none: false
137
134
  requirements:
138
135
  - - ">="
@@ -143,12 +140,12 @@ dependencies:
143
140
  - 0
144
141
  - 3
145
142
  version: 3.0.3
146
- requirement: *id008
147
- - !ruby/object:Gem::Dependency
148
143
  type: :development
144
+ name: actionpack
149
145
  prerelease: false
150
- name: activerecord
151
- version_requirements: &id009 !ruby/object:Gem::Requirement
146
+ version_requirements: *id008
147
+ - !ruby/object:Gem::Dependency
148
+ requirement: &id009 !ruby/object:Gem::Requirement
152
149
  none: false
153
150
  requirements:
154
151
  - - ">="
@@ -159,12 +156,12 @@ dependencies:
159
156
  - 0
160
157
  - 3
161
158
  version: 3.0.3
162
- requirement: *id009
163
- - !ruby/object:Gem::Dependency
164
- type: :runtime
159
+ type: :development
160
+ name: activerecord
165
161
  prerelease: false
166
- name: activesupport
167
- version_requirements: &id010 !ruby/object:Gem::Requirement
162
+ version_requirements: *id009
163
+ - !ruby/object:Gem::Dependency
164
+ requirement: &id010 !ruby/object:Gem::Requirement
168
165
  none: false
169
166
  requirements:
170
167
  - - ">="
@@ -175,12 +172,12 @@ dependencies:
175
172
  - 0
176
173
  - 2
177
174
  version: 3.0.2
178
- requirement: *id010
179
- - !ruby/object:Gem::Dependency
180
175
  type: :runtime
176
+ name: activesupport
181
177
  prerelease: false
182
- name: activerecord
183
- version_requirements: &id011 !ruby/object:Gem::Requirement
178
+ version_requirements: *id010
179
+ - !ruby/object:Gem::Dependency
180
+ requirement: &id011 !ruby/object:Gem::Requirement
184
181
  none: false
185
182
  requirements:
186
183
  - - ">="
@@ -191,12 +188,12 @@ dependencies:
191
188
  - 0
192
189
  - 2
193
190
  version: 3.0.2
194
- requirement: *id011
195
- - !ruby/object:Gem::Dependency
196
- type: :development
191
+ type: :runtime
192
+ name: activerecord
197
193
  prerelease: false
198
- name: actionpack
199
- version_requirements: &id012 !ruby/object:Gem::Requirement
194
+ version_requirements: *id011
195
+ - !ruby/object:Gem::Dependency
196
+ requirement: &id012 !ruby/object:Gem::Requirement
200
197
  none: false
201
198
  requirements:
202
199
  - - ">="
@@ -207,12 +204,12 @@ dependencies:
207
204
  - 0
208
205
  - 2
209
206
  version: 3.0.2
210
- requirement: *id012
211
- - !ruby/object:Gem::Dependency
212
207
  type: :development
208
+ name: actionpack
213
209
  prerelease: false
214
- name: rspec
215
- version_requirements: &id013 !ruby/object:Gem::Requirement
210
+ version_requirements: *id012
211
+ - !ruby/object:Gem::Dependency
212
+ requirement: &id013 !ruby/object:Gem::Requirement
216
213
  none: false
217
214
  requirements:
218
215
  - - ">="
@@ -223,12 +220,12 @@ dependencies:
223
220
  - 1
224
221
  - 0
225
222
  version: 2.1.0
226
- requirement: *id013
227
- - !ruby/object:Gem::Dependency
228
223
  type: :development
224
+ name: rspec
229
225
  prerelease: false
230
- name: sqlite3-ruby
231
- version_requirements: &id014 !ruby/object:Gem::Requirement
226
+ version_requirements: *id013
227
+ - !ruby/object:Gem::Dependency
228
+ requirement: &id014 !ruby/object:Gem::Requirement
232
229
  none: false
233
230
  requirements:
234
231
  - - ">="
@@ -239,12 +236,12 @@ dependencies:
239
236
  - 2
240
237
  - 5
241
238
  version: 1.2.5
242
- requirement: *id014
243
- - !ruby/object:Gem::Dependency
244
239
  type: :development
240
+ name: sqlite3-ruby
245
241
  prerelease: false
246
- name: machinist
247
- version_requirements: &id015 !ruby/object:Gem::Requirement
242
+ version_requirements: *id014
243
+ - !ruby/object:Gem::Dependency
244
+ requirement: &id015 !ruby/object:Gem::Requirement
248
245
  none: false
249
246
  requirements:
250
247
  - - ">="
@@ -255,12 +252,12 @@ dependencies:
255
252
  - 0
256
253
  - 6
257
254
  version: 1.0.6
258
- requirement: *id015
259
- - !ruby/object:Gem::Dependency
260
255
  type: :development
256
+ name: machinist
261
257
  prerelease: false
262
- name: faker
263
- version_requirements: &id016 !ruby/object:Gem::Requirement
258
+ version_requirements: *id015
259
+ - !ruby/object:Gem::Dependency
260
+ requirement: &id016 !ruby/object:Gem::Requirement
264
261
  none: false
265
262
  requirements:
266
263
  - - ">="
@@ -271,12 +268,12 @@ dependencies:
271
268
  - 3
272
269
  - 1
273
270
  version: 0.3.1
274
- requirement: *id016
275
- - !ruby/object:Gem::Dependency
276
271
  type: :development
272
+ name: faker
277
273
  prerelease: false
278
- name: webrat
279
- version_requirements: &id017 !ruby/object:Gem::Requirement
274
+ version_requirements: *id016
275
+ - !ruby/object:Gem::Dependency
276
+ requirement: &id017 !ruby/object:Gem::Requirement
280
277
  none: false
281
278
  requirements:
282
279
  - - ">="
@@ -287,7 +284,10 @@ dependencies:
287
284
  - 7
288
285
  - 2
289
286
  version: 0.7.2
290
- requirement: *id017
287
+ type: :development
288
+ name: webrat
289
+ prerelease: false
290
+ version_requirements: *id017
291
291
  description: Simplifies searching, sorting, and pagination of ActiveRecord models. Includes a model class and a view helper.
292
292
  email: jarrettcolby@gmail.com
293
293
  executables: []