has_searcher 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
data/has_searcher.gemspec CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  s.description = %q{This gem adds ability to construct search objects for indexed models.
14
14
  It works with sunspot, inherited_resources and formtastic}
15
15
 
16
- s.add_dependency "rails", ["> 3.0.0", "< 3.2.0"]
16
+ s.add_dependency "rails"
17
17
  s.rubyforge_project = "has_searcher"
18
18
 
19
19
  s.files = `git ls-files`.split("\n")
@@ -28,6 +28,7 @@ class Search < ActiveRecord::Base
28
28
  end
29
29
 
30
30
  delegate :results, :to => :search
31
+ delegate :total, :to => :search
31
32
 
32
33
  def result_ids
33
34
  search.hits.map(&:primary_key)
@@ -1,3 +1,3 @@
1
1
  module HasSearcher
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
metadata CHANGED
@@ -1,59 +1,35 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: has_searcher
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 0
8
- - 10
9
- segments_generated: true
10
- version: 0.0.10
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.11
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Dmitry Lihachev
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-10-21 00:00:00 +07:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2012-01-24 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: rails
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &13557660 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">"
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 3
30
- - 0
31
- - 0
32
- segments_generated: true
33
- version: 3.0.0
34
- - - <
35
- - !ruby/object:Gem::Version
36
- segments:
37
- - 3
38
- - 2
39
- - 0
40
- segments_generated: true
41
- version: 3.2.0
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
42
22
  type: :runtime
43
23
  prerelease: false
44
- version_requirements: *id001
45
- description: |-
46
- This gem adds ability to construct search objects for indexed models.
47
- It works with sunspot, inherited_resources and formtastic
48
- email:
24
+ version_requirements: *13557660
25
+ description: ! "This gem adds ability to construct search objects for indexed models.\n
26
+ \ It works with sunspot, inherited_resources and formtastic"
27
+ email:
49
28
  - lda@openteam.ru
50
29
  executables: []
51
-
52
30
  extensions: []
53
-
54
31
  extra_rdoc_files: []
55
-
56
- files:
32
+ files:
57
33
  - .gitignore
58
34
  - Gemfile
59
35
  - Rakefile
@@ -66,41 +42,28 @@ files:
66
42
  - lib/has_searcher/formtastic.rb
67
43
  - lib/has_searcher/helpers.rb
68
44
  - lib/has_searcher/version.rb
69
- has_rdoc: true
70
45
  homepage: http://github.com/openteam/has_searcher
71
46
  licenses: []
72
-
73
47
  post_install_message:
74
48
  rdoc_options: []
75
-
76
- require_paths:
49
+ require_paths:
77
50
  - lib
78
- required_ruby_version: !ruby/object:Gem::Requirement
51
+ required_ruby_version: !ruby/object:Gem::Requirement
79
52
  none: false
80
- requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- hash: -260311417459962634
84
- segments:
85
- - 0
86
- segments_generated: true
87
- version: "0"
88
- required_rubygems_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ! '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
89
58
  none: false
90
- requirements:
91
- - - ">="
92
- - !ruby/object:Gem::Version
93
- hash: -260311417459962634
94
- segments:
95
- - 0
96
- segments_generated: true
97
- version: "0"
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
98
63
  requirements: []
99
-
100
64
  rubyforge_project: has_searcher
101
- rubygems_version: 1.3.7
65
+ rubygems_version: 1.8.10
102
66
  signing_key:
103
67
  specification_version: 3
104
68
  summary: Adds ability to construct search objects for indexed models
105
69
  test_files: []
106
-