solr_collection 0.1.4 → 0.1.5

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/Gemfile CHANGED
@@ -1,6 +1,9 @@
1
1
  source :rubygems
2
2
 
3
- gem 'rake'
4
- gem 'rspec', '~>2'
5
- gem 'jeweler'
6
- gem 'will_paginate'
3
+ gem 'will_paginate'
4
+
5
+ group :dev do
6
+ gem 'rake'
7
+ gem 'rspec', '~>2'
8
+ gem 'jeweler'
9
+ end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
@@ -58,6 +58,10 @@ class SolrCollection
58
58
  def respond_to?(method)
59
59
  @solr_data.key?(method) or @subject.respond_to?(method) or super
60
60
  end
61
+
62
+ def to_a
63
+ @subject.to_a
64
+ end
61
65
 
62
66
  private
63
67
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{solr_collection}
8
- s.version = "0.1.4"
8
+ s.version = "0.1.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Michael Grosser"]
12
- s.date = %q{2010-12-24}
12
+ s.date = %q{2011-02-04}
13
13
  s.email = %q{grosser.michael@gmail.com}
14
14
  s.files = [
15
15
  "Gemfile",
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
26
26
  s.homepage = %q{http://github.com/grosser/solr_collection}
27
27
  s.rdoc_options = ["--charset=UTF-8"]
28
28
  s.require_paths = ["lib"]
29
- s.rubygems_version = %q{1.3.7}
29
+ s.rubygems_version = %q{1.4.2}
30
30
  s.summary = %q{Wrapper for solr results sets then behaves/feels like will_paginate collection}
31
31
  s.test_files = [
32
32
  "spec/solr_collection_spec.rb",
@@ -34,7 +34,6 @@ Gem::Specification.new do |s|
34
34
  ]
35
35
 
36
36
  if s.respond_to? :specification_version then
37
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
38
37
  s.specification_version = 3
39
38
 
40
39
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
@@ -22,6 +22,10 @@ describe SolrCollection do
22
22
  SolrCollection.new([1], a).current_page.should == 2
23
23
  a.should == {:per_page=>2, :offset=>2}
24
24
  end
25
+
26
+ it "returns the subject on to_a" do
27
+ SolrCollection.new([1,2,3]).to_a.should == [1,2,3]
28
+ end
25
29
 
26
30
  describe "pages" do
27
31
  it "does not know non-will-paginate methods" do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solr_collection
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
5
- prerelease: false
4
+ hash: 17
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
9
+ - 5
10
+ version: 0.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michael Grosser
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-24 00:00:00 +01:00
18
+ date: 2011-02-04 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -28,10 +28,10 @@ dependencies:
28
28
  segments:
29
29
  - 0
30
30
  version: "0"
31
- name: will_paginate
32
31
  prerelease: false
33
- type: :runtime
34
32
  version_requirements: *id001
33
+ type: :runtime
34
+ name: will_paginate
35
35
  description:
36
36
  email: grosser.michael@gmail.com
37
37
  executables: []
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  requirements: []
82
82
 
83
83
  rubyforge_project:
84
- rubygems_version: 1.3.7
84
+ rubygems_version: 1.4.2
85
85
  signing_key:
86
86
  specification_version: 3
87
87
  summary: Wrapper for solr results sets then behaves/feels like will_paginate collection