sphinx 2.1.1.3711 → 2.1.1.3712

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  rvm:
2
2
  - 1.8.7
3
- - 1.9.2
3
+ - 1.9.3
4
4
  - ree
5
5
 
6
6
  notifications:
@@ -1,3 +1,9 @@
1
+ ## 2.1.1.3712 (Mar 15, 2013)
2
+
3
+ Bugixes:
4
+
5
+ - Fixed broken ranking in Ruby 1.8.7.
6
+
1
7
  ## 2.1.1.3711 (Mar 15, 2013)
2
8
 
3
9
  Features:
@@ -3,7 +3,7 @@
3
3
  # Author:: Dmytro Shteflyuk <mailto:kpumuk@kpumuk.info>.
4
4
  # Copyright:: Copyright (c) 2006 — 2013 Dmytro Shteflyuk
5
5
  # License:: Distributes under the same terms as Ruby
6
- # Version:: 0.9.10.2122
6
+ # Version:: 2.1.1.3712
7
7
  # Website:: http://kpumuk.info/projects/ror-plugins/sphinx
8
8
  # Sources:: http://github.com/kpumuk/sphinx
9
9
  #
@@ -755,12 +755,11 @@ module Sphinx
755
755
  def set_ranking_mode(ranker, rankexpr = '')
756
756
  case ranker
757
757
  when String, Symbol
758
- const_name = "SPH_RANK_#{ranker.to_s.upcase}"
759
- unless self.class.const_defined?(const_name)
758
+ begin
759
+ ranker = self.class.const_get("SPH_RANK_#{ranker.to_s.upcase}")
760
+ rescue NameError
760
761
  raise ArgumentError, "\"ranker\" argument value \"#{ranker}\" is invalid"
761
762
  end
762
-
763
- ranker = self.class.const_get(const_name)
764
763
  when Fixnum
765
764
  raise ArgumentError, "\"ranker\" argument value \"#{ranker}\" is invalid" unless (SPH_RANK_PROXIMITY_BM25..SPH_RANK_SPH04).include?(ranker)
766
765
  else
@@ -1,3 +1,3 @@
1
1
  module Sphinx
2
- VERSION = '2.1.1.3711'
2
+ VERSION = '2.1.1.3712'
3
3
  end
metadata CHANGED
@@ -1,90 +1,91 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: sphinx
3
- version: !ruby/object:Gem::Version
4
- version: 2.1.1.3711
3
+ version: !ruby/object:Gem::Version
4
+ hash: 7523
5
5
  prerelease:
6
+ segments:
7
+ - 2
8
+ - 1
9
+ - 1
10
+ - 3712
11
+ version: 2.1.1.3712
6
12
  platform: ruby
7
- authors:
13
+ authors:
8
14
  - Dmytro Shteflyuk
9
15
  autorequire:
10
16
  bindir: bin
11
17
  cert_chain: []
12
- date: 2013-03-14 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: rake
16
- requirement: !ruby/object:Gem::Requirement
18
+
19
+ date: 2013-03-14 00:00:00 -04:00
20
+ default_executable:
21
+ dependencies:
22
+ - !ruby/object:Gem::Dependency
23
+ type: :development
24
+ prerelease: false
25
+ version_requirements: &id001 !ruby/object:Gem::Requirement
17
26
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ hash: 3
31
+ segments:
32
+ - 0
33
+ version: "0"
34
+ name: rake
35
+ requirement: *id001
36
+ - !ruby/object:Gem::Dependency
22
37
  type: :development
23
38
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
39
+ version_requirements: &id002 !ruby/object:Gem::Requirement
25
40
  none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
30
- - !ruby/object:Gem::Dependency
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ hash: 3
45
+ segments:
46
+ - 0
47
+ version: "0"
31
48
  name: rspec
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
49
+ requirement: *id002
50
+ - !ruby/object:Gem::Dependency
38
51
  type: :development
39
52
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
53
+ version_requirements: &id003 !ruby/object:Gem::Requirement
41
54
  none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
- - !ruby/object:Gem::Dependency
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ hash: 3
59
+ segments:
60
+ - 0
61
+ version: "0"
47
62
  name: yard
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: '0'
63
+ requirement: *id003
64
+ - !ruby/object:Gem::Dependency
54
65
  type: :development
55
66
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
67
+ version_requirements: &id004 !ruby/object:Gem::Requirement
57
68
  none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- - !ruby/object:Gem::Dependency
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ hash: 3
73
+ segments:
74
+ - 0
75
+ version: "0"
63
76
  name: redcarpet
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ! '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
- type: :development
71
- prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
78
- description: An easy interface to Sphinx standalone full-text search engine. It is
79
- implemented as plugin for Ruby on Rails, but can be easily used as standalone library.
80
- email:
77
+ requirement: *id004
78
+ description: An easy interface to Sphinx standalone full-text search engine. It is implemented as plugin for Ruby on Rails, but can be easily used as standalone library.
79
+ email:
81
80
  - kpumuk@kpumuk.info
82
81
  executables: []
82
+
83
83
  extensions: []
84
- extra_rdoc_files:
84
+
85
+ extra_rdoc_files:
85
86
  - README.md
86
87
  - CHANGELOG.md
87
- files:
88
+ files:
88
89
  - .gitignore
89
90
  - .travis.yml
90
91
  - CHANGELOG.md
@@ -271,36 +272,39 @@ files:
271
272
  - spec/sphinx/sphinx.conf
272
273
  - spec/sphinx/sphinx_test.sql
273
274
  - sphinx.gemspec
275
+ has_rdoc: true
274
276
  homepage: http://github.com/kpumuk/sphinx
275
277
  licenses: []
278
+
276
279
  post_install_message:
277
- rdoc_options:
280
+ rdoc_options:
278
281
  - --charset=UTF-8
279
- require_paths:
282
+ require_paths:
280
283
  - lib
281
- required_ruby_version: !ruby/object:Gem::Requirement
284
+ required_ruby_version: !ruby/object:Gem::Requirement
282
285
  none: false
283
- requirements:
284
- - - ! '>='
285
- - !ruby/object:Gem::Version
286
- version: '0'
287
- segments:
286
+ requirements:
287
+ - - ">="
288
+ - !ruby/object:Gem::Version
289
+ hash: 3
290
+ segments:
288
291
  - 0
289
- hash: 3085923144825273519
290
- required_rubygems_version: !ruby/object:Gem::Requirement
292
+ version: "0"
293
+ required_rubygems_version: !ruby/object:Gem::Requirement
291
294
  none: false
292
- requirements:
293
- - - ! '>='
294
- - !ruby/object:Gem::Version
295
- version: '0'
296
- segments:
295
+ requirements:
296
+ - - ">="
297
+ - !ruby/object:Gem::Version
298
+ hash: 3
299
+ segments:
297
300
  - 0
298
- hash: 3085923144825273519
301
+ version: "0"
299
302
  requirements: []
303
+
300
304
  rubyforge_project:
301
- rubygems_version: 1.8.25
305
+ rubygems_version: 1.5.2
302
306
  signing_key:
303
307
  specification_version: 3
304
308
  summary: Sphinx Client API for Ruby
305
309
  test_files: []
306
- has_rdoc:
310
+