sunspot_stats 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/lib/sunspot_stats.rb CHANGED
@@ -9,7 +9,7 @@ end
9
9
  require File.join(File.dirname(__FILE__), "search", file)
10
10
  end
11
11
 
12
- %w(stat_query field_stat edismax).each do |file|
12
+ %w(stat_query field_stat).each do |file|
13
13
  require(File.join(File.dirname(__FILE__), 'query', file))
14
14
  end
15
15
 
@@ -1,4 +1,4 @@
1
1
  module SunspotStats
2
- VERSION = "0.0.4
2
+ VERSION = "0.0.5
3
3
  "
4
4
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sunspot_stats
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 21
5
+ prerelease:
5
6
  segments:
6
7
  - 0
7
8
  - 0
8
- - 4
9
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
10
11
  platform: ruby
11
12
  authors:
12
13
  - duccio giovannelli
@@ -14,16 +15,18 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2012-07-21 00:00:00 +02:00
18
+ date: 2012-07-23 00:00:00 +02:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: sunspot
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ~>
26
28
  - !ruby/object:Gem::Version
29
+ hash: 1923675179
27
30
  segments:
28
31
  - 2
29
32
  - 0
@@ -37,9 +40,11 @@ dependencies:
37
40
  name: rspec
38
41
  prerelease: false
39
42
  requirement: &id002 !ruby/object:Gem::Requirement
43
+ none: false
40
44
  requirements:
41
45
  - - ">="
42
46
  - !ruby/object:Gem::Version
47
+ hash: 3
43
48
  segments:
44
49
  - 0
45
50
  version: "0"
@@ -61,7 +66,6 @@ files:
61
66
  - README.md
62
67
  - Rakefile
63
68
  - lib/dsl/field_query.rb
64
- - lib/query/edismax.rb
65
69
  - lib/query/field_stat.rb
66
70
  - lib/query/stat_query.rb
67
71
  - lib/search/stat_facet.rb
@@ -102,23 +106,27 @@ rdoc_options:
102
106
  require_paths:
103
107
  - lib
104
108
  required_ruby_version: !ruby/object:Gem::Requirement
109
+ none: false
105
110
  requirements:
106
111
  - - ">="
107
112
  - !ruby/object:Gem::Version
113
+ hash: 3
108
114
  segments:
109
115
  - 0
110
116
  version: "0"
111
117
  required_rubygems_version: !ruby/object:Gem::Requirement
118
+ none: false
112
119
  requirements:
113
120
  - - ">="
114
121
  - !ruby/object:Gem::Version
122
+ hash: 3
115
123
  segments:
116
124
  - 0
117
125
  version: "0"
118
126
  requirements: []
119
127
 
120
128
  rubyforge_project:
121
- rubygems_version: 1.3.6
129
+ rubygems_version: 1.4.2
122
130
  signing_key:
123
131
  specification_version: 3
124
132
  summary: Added the statsComponent to sunspot
data/lib/query/edismax.rb DELETED
@@ -1,20 +0,0 @@
1
- OriginalDismax = Sunspot::Query::Dismax
2
-
3
- class PatchedDismax < OriginalDismax
4
-
5
- def to_params
6
- params = super
7
- params[:defType] = 'edismax'
8
- params
9
- end
10
-
11
- def to_subquery
12
- query = super
13
- query = query.sub '{!dismax', '{!edismax'
14
- query
15
- end
16
-
17
- end
18
-
19
- Sunspot::Query.send :remove_const, :Dismax
20
- Sunspot::Query::Dismax = PatchedDismax