has_searcher 0.0.90 → 0.0.91

Sign up to get free protection for your applications and to get access to all the features.
@@ -73,4 +73,10 @@ class Searcher::Configuration
73
73
  scopes[name] << block if block
74
74
  searcher
75
75
  end
76
+
77
+ def group(name)
78
+ scope do
79
+ group(name)
80
+ end
81
+ end
76
82
  end
@@ -4,6 +4,9 @@ class Searcher
4
4
  attr_accessor :scope_chain
5
5
 
6
6
  delegate :current_page, :num_pages, :limit_value, :to => :results
7
+ delegate :results, :total, :facet, :group, :to => :executed_sunspot
8
+ alias_method :all, :results
9
+
7
10
 
8
11
  def initialize(&block)
9
12
  self.scope_chain = [:default, :runtime]
@@ -19,9 +22,6 @@ class Searcher
19
22
  results.each(&block)
20
23
  end
21
24
 
22
- delegate :results, :total, :facet, :to => :executed_sunspot
23
- alias_method :all, :results
24
-
25
25
  def result_ids
26
26
  executed_sunspot.hits.map(&:primary_key)
27
27
  end
@@ -1,3 +1,3 @@
1
1
  module HasSearcher
2
- VERSION = "0.0.90"
2
+ VERSION = "0.0.91"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_searcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.90
4
+ version: 0.0.91
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-06 00:00:00.000000000 Z
12
+ date: 2012-08-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &6913540 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: 3.2.3
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *6913540
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 3.2.3
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: sqlite3
27
- requirement: &6913100 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: '0'
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *6913100
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: rspec-rails
38
- requirement: &7006040 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ! '>='
@@ -43,10 +53,15 @@ dependencies:
43
53
  version: '0'
44
54
  type: :development
45
55
  prerelease: false
46
- version_requirements: *7006040
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: sunspot_matchers
49
- requirement: &7005240 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ! '>='
@@ -54,10 +69,15 @@ dependencies:
54
69
  version: '0'
55
70
  type: :development
56
71
  prerelease: false
57
- version_requirements: *7005240
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
58
78
  - !ruby/object:Gem::Dependency
59
79
  name: sunspot_rails
60
- requirement: &7004020 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
61
81
  none: false
62
82
  requirements:
63
83
  - - ! '>='
@@ -65,10 +85,15 @@ dependencies:
65
85
  version: 2.0.0.pre
66
86
  type: :development
67
87
  prerelease: false
68
- version_requirements: *7004020
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: 2.0.0.pre
69
94
  - !ruby/object:Gem::Dependency
70
95
  name: sunspot_solr
71
- requirement: &7003340 !ruby/object:Gem::Requirement
96
+ requirement: !ruby/object:Gem::Requirement
72
97
  none: false
73
98
  requirements:
74
99
  - - ! '>='
@@ -76,7 +101,12 @@ dependencies:
76
101
  version: 2.0.0.pre
77
102
  type: :development
78
103
  prerelease: false
79
- version_requirements: *7003340
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: 2.0.0.pre
80
110
  description: ! "This gem adds ability to construct search objects for indexed models,
81
111
  build search forms and execute searches.\n It works with sunspot,
82
112
  inherited_resources and simple_form/formtastic"
@@ -86,19 +116,19 @@ executables: []
86
116
  extensions: []
87
117
  extra_rdoc_files: []
88
118
  files:
89
- - app/views/layouts/has_searcher/application.html.erb
90
119
  - app/assets/stylesheets/has_searcher/application.css
91
120
  - app/controllers/has_searcher/application_controller.rb
121
+ - app/helpers/has_searcher/application_helper.rb
122
+ - app/models/searcher/boostificator.rb
92
123
  - app/models/searcher/configuration.rb
93
124
  - app/models/searcher/model.rb
94
- - app/models/searcher/boostificator.rb
95
125
  - app/models/searcher.rb
96
- - app/helpers/has_searcher/application_helper.rb
126
+ - app/views/layouts/has_searcher/application.html.erb
97
127
  - config/routes.rb
98
- - lib/tasks/has_searcher_tasks.rake
99
128
  - lib/has_searcher/engine.rb
100
129
  - lib/has_searcher/version.rb
101
130
  - lib/has_searcher.rb
131
+ - lib/tasks/has_searcher_tasks.rake
102
132
  - MIT-LICENSE
103
133
  - Rakefile
104
134
  - README.rdoc
@@ -116,7 +146,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
116
146
  version: '0'
117
147
  segments:
118
148
  - 0
119
- hash: -759190286511194393
149
+ hash: -292320068447473491
120
150
  required_rubygems_version: !ruby/object:Gem::Requirement
121
151
  none: false
122
152
  requirements:
@@ -125,10 +155,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
155
  version: '0'
126
156
  segments:
127
157
  - 0
128
- hash: -759190286511194393
158
+ hash: -292320068447473491
129
159
  requirements: []
130
160
  rubyforge_project:
131
- rubygems_version: 1.8.15
161
+ rubygems_version: 1.8.24
132
162
  signing_key:
133
163
  specification_version: 3
134
164
  summary: Adds ability to construct search objects for indexed models