sphinx 0.9.10.2122 → 2.1.1.3711

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. data/.gitignore +5 -2
  2. data/.travis.yml +8 -0
  3. data/CHANGELOG.md +71 -0
  4. data/Gemfile +4 -0
  5. data/README.md +221 -0
  6. data/Rakefile +40 -35
  7. data/lib/sphinx.rb +3 -8
  8. data/lib/sphinx/client.rb +223 -70
  9. data/lib/sphinx/constants.rb +23 -8
  10. data/lib/sphinx/response.rb +6 -6
  11. data/lib/sphinx/timeout.rb +1 -2
  12. data/lib/sphinx/version.rb +3 -0
  13. data/spec/client_response_spec.rb +77 -64
  14. data/spec/client_spec.rb +68 -31
  15. data/spec/client_validations_spec.rb +61 -7
  16. data/spec/fixtures/requests/default_search.dat +0 -0
  17. data/spec/fixtures/requests/default_search_index.dat +0 -0
  18. data/spec/fixtures/requests/excerpt_custom.dat +0 -0
  19. data/spec/fixtures/requests/excerpt_default.dat +0 -0
  20. data/spec/fixtures/requests/excerpt_flags.dat +0 -0
  21. data/spec/fixtures/requests/field_weights.dat +0 -0
  22. data/spec/fixtures/requests/filter.dat +0 -0
  23. data/spec/fixtures/requests/filter_exclude.dat +0 -0
  24. data/spec/fixtures/requests/filter_float_range.dat +0 -0
  25. data/spec/fixtures/requests/filter_float_range_exclude.dat +0 -0
  26. data/spec/fixtures/requests/filter_range.dat +0 -0
  27. data/spec/fixtures/requests/filter_range_exclude.dat +0 -0
  28. data/spec/fixtures/requests/filter_range_int64.dat +0 -0
  29. data/spec/fixtures/requests/filter_ranges.dat +0 -0
  30. data/spec/fixtures/requests/filters.dat +0 -0
  31. data/spec/fixtures/requests/filters_different.dat +0 -0
  32. data/spec/fixtures/requests/geo_anchor.dat +0 -0
  33. data/spec/fixtures/requests/group_by_attr.dat +0 -0
  34. data/spec/fixtures/requests/group_by_attrpair.dat +0 -0
  35. data/spec/fixtures/requests/group_by_day.dat +0 -0
  36. data/spec/fixtures/requests/group_by_day_sort.dat +0 -0
  37. data/spec/fixtures/requests/group_by_month.dat +0 -0
  38. data/spec/fixtures/requests/group_by_week.dat +0 -0
  39. data/spec/fixtures/requests/group_by_year.dat +0 -0
  40. data/spec/fixtures/requests/group_distinct.dat +0 -0
  41. data/spec/fixtures/requests/id_range.dat +0 -0
  42. data/spec/fixtures/requests/id_range64.dat +0 -0
  43. data/spec/fixtures/requests/index_weights.dat +0 -0
  44. data/spec/fixtures/requests/keywords.dat +0 -0
  45. data/spec/fixtures/requests/limits.dat +0 -0
  46. data/spec/fixtures/requests/limits_cutoff.dat +0 -0
  47. data/spec/fixtures/requests/limits_max.dat +0 -0
  48. data/spec/fixtures/requests/limits_max_cutoff.dat +0 -0
  49. data/spec/fixtures/requests/match_all.dat +0 -0
  50. data/spec/fixtures/requests/match_any.dat +0 -0
  51. data/spec/fixtures/requests/match_boolean.dat +0 -0
  52. data/spec/fixtures/requests/match_extended.dat +0 -0
  53. data/spec/fixtures/requests/match_extended2.dat +0 -0
  54. data/spec/fixtures/requests/match_fullscan.dat +0 -0
  55. data/spec/fixtures/requests/match_phrase.dat +0 -0
  56. data/spec/fixtures/requests/max_query_time.dat +0 -0
  57. data/spec/fixtures/requests/miltiple_queries.dat +0 -0
  58. data/spec/fixtures/requests/outer_select.dat +0 -0
  59. data/spec/fixtures/requests/override.dat +0 -0
  60. data/spec/fixtures/{default_search.php → requests/php/default_search.php} +1 -1
  61. data/spec/fixtures/{default_search_index.php → requests/php/default_search_index.php} +1 -1
  62. data/spec/fixtures/{excerpt_custom.php → requests/php/excerpt_custom.php} +1 -1
  63. data/spec/fixtures/{excerpt_default.php → requests/php/excerpt_default.php} +1 -1
  64. data/spec/fixtures/{excerpt_flags.php → requests/php/excerpt_flags.php} +1 -1
  65. data/spec/fixtures/{field_weights.php → requests/php/field_weights.php} +1 -1
  66. data/spec/fixtures/{filter.php → requests/php/filter.php} +1 -1
  67. data/spec/fixtures/{filter_exclude.php → requests/php/filter_exclude.php} +1 -1
  68. data/spec/fixtures/{filter_float_range.php → requests/php/filter_float_range.php} +1 -1
  69. data/spec/fixtures/{filter_float_range_exclude.php → requests/php/filter_float_range_exclude.php} +1 -1
  70. data/spec/fixtures/{filter_range.php → requests/php/filter_range.php} +1 -1
  71. data/spec/fixtures/{filter_range_exclude.php → requests/php/filter_range_exclude.php} +1 -1
  72. data/spec/fixtures/{filter_range_int64.php → requests/php/filter_range_int64.php} +1 -1
  73. data/spec/fixtures/{filter_ranges.php → requests/php/filter_ranges.php} +1 -1
  74. data/spec/fixtures/{filters.php → requests/php/filters.php} +1 -1
  75. data/spec/fixtures/{filters_different.php → requests/php/filters_different.php} +1 -1
  76. data/spec/fixtures/{geo_anchor.php → requests/php/geo_anchor.php} +1 -1
  77. data/spec/fixtures/{group_by_attr.php → requests/php/group_by_attr.php} +1 -1
  78. data/spec/fixtures/{group_by_attrpair.php → requests/php/group_by_attrpair.php} +1 -1
  79. data/spec/fixtures/{group_by_day.php → requests/php/group_by_day.php} +1 -1
  80. data/spec/fixtures/{group_by_day_sort.php → requests/php/group_by_day_sort.php} +1 -1
  81. data/spec/fixtures/{group_by_month.php → requests/php/group_by_month.php} +1 -1
  82. data/spec/fixtures/{group_by_week.php → requests/php/group_by_week.php} +1 -1
  83. data/spec/fixtures/{group_by_year.php → requests/php/group_by_year.php} +1 -1
  84. data/spec/fixtures/{group_distinct.php → requests/php/group_distinct.php} +1 -1
  85. data/spec/fixtures/{id_range.php → requests/php/id_range.php} +1 -1
  86. data/spec/fixtures/{id_range64.php → requests/php/id_range64.php} +1 -1
  87. data/spec/fixtures/{index_weights.php → requests/php/index_weights.php} +1 -1
  88. data/spec/fixtures/{keywords.php → requests/php/keywords.php} +1 -1
  89. data/spec/fixtures/{limits.php → requests/php/limits.php} +1 -1
  90. data/spec/fixtures/{limits_cutoff.php → requests/php/limits_cutoff.php} +1 -1
  91. data/spec/fixtures/{limits_max.php → requests/php/limits_max.php} +1 -1
  92. data/spec/fixtures/{limits_max_cutoff.php → requests/php/limits_max_cutoff.php} +1 -1
  93. data/spec/fixtures/{match_all.php → requests/php/match_all.php} +1 -1
  94. data/spec/fixtures/{match_any.php → requests/php/match_any.php} +1 -1
  95. data/spec/fixtures/{match_boolean.php → requests/php/match_boolean.php} +1 -1
  96. data/spec/fixtures/{match_extended.php → requests/php/match_extended.php} +1 -1
  97. data/spec/fixtures/{match_extended2.php → requests/php/match_extended2.php} +1 -1
  98. data/spec/fixtures/{match_fullscan.php → requests/php/match_fullscan.php} +1 -1
  99. data/spec/fixtures/{match_phrase.php → requests/php/match_phrase.php} +1 -1
  100. data/spec/fixtures/{max_query_time.php → requests/php/max_query_time.php} +1 -1
  101. data/spec/fixtures/{miltiple_queries.php → requests/php/miltiple_queries.php} +1 -1
  102. data/spec/fixtures/requests/php/outer_select.php +9 -0
  103. data/spec/fixtures/{set_override.php → requests/php/override.php} +1 -1
  104. data/spec/fixtures/requests/php/query_flag.php +13 -0
  105. data/spec/fixtures/requests/php/query_flag_after_reset.php +19 -0
  106. data/spec/fixtures/{ranking_bm25.php → requests/php/ranking_bm25.php} +1 -1
  107. data/spec/fixtures/requests/php/ranking_expr.php +9 -0
  108. data/spec/fixtures/{ranking_fieldmask.php → requests/php/ranking_fieldmask.php} +1 -1
  109. data/spec/fixtures/{ranking_matchany.php → requests/php/ranking_matchany.php} +1 -1
  110. data/spec/fixtures/{ranking_none.php → requests/php/ranking_none.php} +1 -1
  111. data/spec/fixtures/{ranking_proximity.php → requests/php/ranking_proximity.php} +1 -1
  112. data/spec/fixtures/{ranking_proximity_bm25.php → requests/php/ranking_proximity_bm25.php} +1 -1
  113. data/spec/fixtures/{ranking_sph04.php → requests/php/ranking_sph04.php} +1 -1
  114. data/spec/fixtures/{ranking_wordcount.php → requests/php/ranking_wordcount.php} +1 -1
  115. data/spec/fixtures/{retries.php → requests/php/retries.php} +1 -1
  116. data/spec/fixtures/{retries_delay.php → requests/php/retries_delay.php} +1 -1
  117. data/spec/fixtures/{select.php → requests/php/select.php} +1 -1
  118. data/spec/fixtures/{sort_attr_asc.php → requests/php/sort_attr_asc.php} +1 -1
  119. data/spec/fixtures/{sort_attr_desc.php → requests/php/sort_attr_desc.php} +1 -1
  120. data/spec/fixtures/{sort_expr.php → requests/php/sort_expr.php} +1 -1
  121. data/spec/fixtures/{sort_extended.php → requests/php/sort_extended.php} +1 -1
  122. data/spec/fixtures/{sort_relevance.php → requests/php/sort_relevance.php} +1 -1
  123. data/spec/fixtures/{sort_time_segments.php → requests/php/sort_time_segments.php} +1 -1
  124. data/spec/fixtures/{update_attributes.php → requests/php/update_attributes.php} +1 -1
  125. data/spec/fixtures/{update_attributes_mva.php → requests/php/update_attributes_mva.php} +1 -1
  126. data/spec/fixtures/{weights.php → requests/php/weights.php} +1 -1
  127. data/spec/fixtures/requests/query_flag.dat +0 -0
  128. data/spec/fixtures/requests/query_flag_after_reset.dat +0 -0
  129. data/spec/fixtures/requests/ranking_bm25.dat +0 -0
  130. data/spec/fixtures/requests/ranking_expr.dat +0 -0
  131. data/spec/fixtures/requests/ranking_fieldmask.dat +0 -0
  132. data/spec/fixtures/requests/ranking_matchany.dat +0 -0
  133. data/spec/fixtures/requests/ranking_none.dat +0 -0
  134. data/spec/fixtures/requests/ranking_proximity.dat +0 -0
  135. data/spec/fixtures/requests/ranking_proximity_bm25.dat +0 -0
  136. data/spec/fixtures/requests/ranking_sph04.dat +0 -0
  137. data/spec/fixtures/requests/ranking_wordcount.dat +0 -0
  138. data/spec/fixtures/requests/retries.dat +0 -0
  139. data/spec/fixtures/requests/retries_delay.dat +0 -0
  140. data/spec/fixtures/requests/select.dat +0 -0
  141. data/spec/fixtures/requests/sort_attr_asc.dat +0 -0
  142. data/spec/fixtures/requests/sort_attr_desc.dat +0 -0
  143. data/spec/fixtures/requests/sort_expr.dat +0 -0
  144. data/spec/fixtures/requests/sort_extended.dat +0 -0
  145. data/spec/fixtures/requests/sort_relevance.dat +0 -0
  146. data/spec/fixtures/requests/sort_time_segments.dat +0 -0
  147. data/spec/fixtures/requests/update_attributes.dat +0 -0
  148. data/spec/fixtures/requests/update_attributes_mva.dat +0 -0
  149. data/spec/fixtures/requests/weights.dat +0 -0
  150. data/spec/fixtures/responses/build_excerpts.dat +0 -0
  151. data/spec/fixtures/responses/build_keywords.dat +0 -0
  152. data/spec/fixtures/responses/flush_attributes.dat +0 -0
  153. data/spec/fixtures/responses/flush_attrs.dat +2 -0
  154. data/spec/fixtures/responses/open.dat +0 -0
  155. data/spec/fixtures/responses/open_twice.dat +0 -0
  156. data/spec/fixtures/responses/php/build_excerpts.php +8 -0
  157. data/spec/fixtures/responses/php/build_keywords.php +8 -0
  158. data/spec/fixtures/responses/php/flush_attributes.php +8 -0
  159. data/spec/fixtures/responses/php/open.php +8 -0
  160. data/spec/fixtures/responses/php/open_twice.php +9 -0
  161. data/spec/fixtures/responses/php/query.php +8 -0
  162. data/spec/fixtures/responses/php/query_error.php +8 -0
  163. data/spec/fixtures/responses/php/query_id64.php +8 -0
  164. data/spec/fixtures/responses/php/run_queries.php +10 -0
  165. data/spec/fixtures/responses/php/run_queries_error.php +9 -0
  166. data/spec/fixtures/responses/php/status.php +8 -0
  167. data/spec/fixtures/responses/php/update_attributes.php +8 -0
  168. data/spec/fixtures/responses/php/update_attributes_mva.php +8 -0
  169. data/spec/fixtures/responses/query.dat +0 -0
  170. data/spec/fixtures/responses/query_error.dat +0 -0
  171. data/spec/fixtures/responses/query_id64.dat +0 -0
  172. data/spec/fixtures/responses/run_queries.dat +0 -0
  173. data/spec/fixtures/responses/run_queries_error.dat +0 -0
  174. data/spec/fixtures/responses/status.dat +0 -0
  175. data/spec/fixtures/responses/update_attributes.dat +0 -0
  176. data/spec/fixtures/responses/update_attributes_mva.dat +0 -0
  177. data/spec/fixtures/sphinxapi.php +217 -45
  178. data/spec/spec_helper.rb +18 -3
  179. data/spec/sphinx/sphinx-id64.conf +6 -6
  180. data/spec/sphinx/sphinx.conf +6 -6
  181. data/sphinx.gemspec +19 -121
  182. metadata +268 -105
  183. data/README.rdoc +0 -243
  184. data/VERSION.yml +0 -5
  185. data/init.rb +0 -1
@@ -1,11 +1,26 @@
1
- require File.dirname(__FILE__) + '/../init'
1
+ require 'bundler/setup'
2
+ require 'sphinx'
3
+ require 'stringio'
2
4
 
3
5
  # Helper exception class to omit real dialogue between client and server
4
6
  class SphinxSpecError < StandardError; end
5
7
 
6
8
  # Runs PHP fixture to get request dump
7
- def sphinx_fixture(name)
8
- `php #{File.dirname(__FILE__)}/fixtures/#{name}.php`
9
+ def sphinx_fixture(name, type = :request)
10
+ File.open(File.join(File.dirname(__FILE__), 'fixtures', "#{type}s", "#{name}.dat"), 'rb') do |f|
11
+ f.read
12
+ end
13
+ end
14
+
15
+ class SphinxFakeSocket
16
+ def initialize(data = '', mode = 'rb')
17
+ @sock = StringIO.new(data, mode)
18
+ end
19
+
20
+ def method_missing(method, *args)
21
+ @sock.__send__(method, *args)
22
+ rescue IOError
23
+ end
9
24
  end
10
25
 
11
26
  def sphinx_create_client
@@ -33,7 +33,7 @@ source src2
33
33
  index test1
34
34
  {
35
35
  source = src1
36
- path = /opt/sphinx-0.9.9-id64/var/data/test1
36
+ path = /opt/sphinx-2.1.1-id64/var/data/test1
37
37
  docinfo = extern
38
38
  morphology = none
39
39
  stopwords =
@@ -43,7 +43,7 @@ index test1
43
43
  index test2
44
44
  {
45
45
  source = src2
46
- path = /opt/sphinx-0.9.9-id64/var/data/test2
46
+ path = /opt/sphinx-2.1.1-id64/var/data/test2
47
47
  docinfo = extern
48
48
  morphology = none
49
49
  stopwords =
@@ -57,11 +57,11 @@ indexer
57
57
 
58
58
  searchd
59
59
  {
60
- port = 9312
61
- log = /opt/sphinx-0.9.9-id64/var/log/searchd.log
62
- query_log = /opt/sphinx-0.9.9-id64/var/log/query.log
60
+ listen = 0.0.0.0:9312
61
+ log = /opt/sphinx-2.1.1-id64/var/log/searchd.log
62
+ query_log = /opt/sphinx-2.1.1-id64/var/log/query.log
63
63
  read_timeout = 5
64
64
  max_children = 30
65
- pid_file = /opt/sphinx-0.9.9-id64/var/log/searchd.pid
65
+ pid_file = /opt/sphinx-2.1.1-id64/var/log/searchd.pid
66
66
  max_matches = 1000
67
67
  }
@@ -33,7 +33,7 @@ source src2
33
33
  index test1
34
34
  {
35
35
  source = src1
36
- path = /opt/sphinx-0.9.9/var/data/test1
36
+ path = /opt/sphinx-2.1.1/var/data/test1
37
37
  docinfo = extern
38
38
  morphology = none
39
39
  stopwords =
@@ -43,7 +43,7 @@ index test1
43
43
  index test2
44
44
  {
45
45
  source = src2
46
- path = /opt/sphinx-0.9.9/var/data/test2
46
+ path = /opt/sphinx-2.1.1/var/data/test2
47
47
  docinfo = extern
48
48
  morphology = none
49
49
  stopwords =
@@ -57,11 +57,11 @@ indexer
57
57
 
58
58
  searchd
59
59
  {
60
- port = 9312
61
- log = /opt/sphinx-0.9.9/var/log/searchd.log
62
- query_log = /opt/sphinx-0.9.9/var/log/query.log
60
+ listen = 0.0.0.0:9312
61
+ log = /opt/sphinx-2.1.1/var/log/searchd.log
62
+ query_log = /opt/sphinx-2.1.1/var/log/query.log
63
63
  read_timeout = 5
64
64
  max_children = 30
65
- pid_file = /opt/sphinx-0.9.9/var/log/searchd.pid
65
+ pid_file = /opt/sphinx-2.1.1/var/log/searchd.pid
66
66
  max_matches = 1000
67
67
  }
@@ -1,128 +1,26 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
1
  # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path('../lib', __FILE__)
3
+ require 'sphinx/version'
5
4
 
6
5
  Gem::Specification.new do |s|
7
- s.name = %q{sphinx}
8
- s.version = "0.9.10.2122"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Dmytro Shteflyuk"]
12
- s.date = %q{2009-12-04}
6
+ s.name = 'sphinx'
7
+ s.version = Sphinx::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ['Dmytro Shteflyuk']
10
+ s.email = ['kpumuk@kpumuk.info']
11
+ s.homepage = 'http://github.com/kpumuk/sphinx'
12
+ s.summary = %q{Sphinx Client API for Ruby}
13
13
  s.description = %q{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.}
14
- s.email = %q{kpumuk@kpumuk.info}
15
- s.extra_rdoc_files = [
16
- "README.rdoc"
17
- ]
18
- s.files = [
19
- ".gitignore",
20
- "README.rdoc",
21
- "Rakefile",
22
- "VERSION.yml",
23
- "init.rb",
24
- "lib/sphinx.rb",
25
- "lib/sphinx/buffered_io.rb",
26
- "lib/sphinx/client.rb",
27
- "lib/sphinx/constants.rb",
28
- "lib/sphinx/indifferent_access.rb",
29
- "lib/sphinx/request.rb",
30
- "lib/sphinx/response.rb",
31
- "lib/sphinx/server.rb",
32
- "lib/sphinx/timeout.rb",
33
- "spec/client_response_spec.rb",
34
- "spec/client_spec.rb",
35
- "spec/client_validations_spec.rb",
36
- "spec/fixtures/default_search.php",
37
- "spec/fixtures/default_search_index.php",
38
- "spec/fixtures/excerpt_custom.php",
39
- "spec/fixtures/excerpt_default.php",
40
- "spec/fixtures/excerpt_flags.php",
41
- "spec/fixtures/field_weights.php",
42
- "spec/fixtures/filter.php",
43
- "spec/fixtures/filter_exclude.php",
44
- "spec/fixtures/filter_float_range.php",
45
- "spec/fixtures/filter_float_range_exclude.php",
46
- "spec/fixtures/filter_range.php",
47
- "spec/fixtures/filter_range_exclude.php",
48
- "spec/fixtures/filter_range_int64.php",
49
- "spec/fixtures/filter_ranges.php",
50
- "spec/fixtures/filters.php",
51
- "spec/fixtures/filters_different.php",
52
- "spec/fixtures/geo_anchor.php",
53
- "spec/fixtures/group_by_attr.php",
54
- "spec/fixtures/group_by_attrpair.php",
55
- "spec/fixtures/group_by_day.php",
56
- "spec/fixtures/group_by_day_sort.php",
57
- "spec/fixtures/group_by_month.php",
58
- "spec/fixtures/group_by_week.php",
59
- "spec/fixtures/group_by_year.php",
60
- "spec/fixtures/group_distinct.php",
61
- "spec/fixtures/id_range.php",
62
- "spec/fixtures/id_range64.php",
63
- "spec/fixtures/index_weights.php",
64
- "spec/fixtures/keywords.php",
65
- "spec/fixtures/limits.php",
66
- "spec/fixtures/limits_cutoff.php",
67
- "spec/fixtures/limits_max.php",
68
- "spec/fixtures/limits_max_cutoff.php",
69
- "spec/fixtures/match_all.php",
70
- "spec/fixtures/match_any.php",
71
- "spec/fixtures/match_boolean.php",
72
- "spec/fixtures/match_extended.php",
73
- "spec/fixtures/match_extended2.php",
74
- "spec/fixtures/match_fullscan.php",
75
- "spec/fixtures/match_phrase.php",
76
- "spec/fixtures/max_query_time.php",
77
- "spec/fixtures/miltiple_queries.php",
78
- "spec/fixtures/ranking_bm25.php",
79
- "spec/fixtures/ranking_fieldmask.php",
80
- "spec/fixtures/ranking_matchany.php",
81
- "spec/fixtures/ranking_none.php",
82
- "spec/fixtures/ranking_proximity.php",
83
- "spec/fixtures/ranking_proximity_bm25.php",
84
- "spec/fixtures/ranking_sph04.php",
85
- "spec/fixtures/ranking_wordcount.php",
86
- "spec/fixtures/retries.php",
87
- "spec/fixtures/retries_delay.php",
88
- "spec/fixtures/select.php",
89
- "spec/fixtures/set_override.php",
90
- "spec/fixtures/sort_attr_asc.php",
91
- "spec/fixtures/sort_attr_desc.php",
92
- "spec/fixtures/sort_expr.php",
93
- "spec/fixtures/sort_extended.php",
94
- "spec/fixtures/sort_relevance.php",
95
- "spec/fixtures/sort_time_segments.php",
96
- "spec/fixtures/sphinxapi.php",
97
- "spec/fixtures/update_attributes.php",
98
- "spec/fixtures/update_attributes_mva.php",
99
- "spec/fixtures/weights.php",
100
- "spec/spec_helper.rb",
101
- "spec/sphinx/sphinx-id64.conf",
102
- "spec/sphinx/sphinx.conf",
103
- "spec/sphinx/sphinx_test.sql",
104
- "sphinx.gemspec"
105
- ]
106
- s.homepage = %q{http://github.com/kpumuk/sphinx}
107
- s.rdoc_options = ["--charset=UTF-8"]
108
- s.require_paths = ["lib"]
109
- s.rubygems_version = %q{1.3.5}
110
- s.summary = %q{Sphinx Client API for Ruby}
111
- s.test_files = [
112
- "spec/client_response_spec.rb",
113
- "spec/client_spec.rb",
114
- "spec/client_validations_spec.rb",
115
- "spec/spec_helper.rb"
116
- ]
117
14
 
118
- if s.respond_to? :specification_version then
119
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
120
- s.specification_version = 3
15
+ s.add_development_dependency 'rake'
16
+ s.add_development_dependency 'rspec'
17
+ s.add_development_dependency 'yard'
18
+ s.add_development_dependency 'redcarpet'
121
19
 
122
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
123
- else
124
- end
125
- else
126
- end
20
+ s.files = `git ls-files`.split("\n")
21
+ s.test_files = `git ls-files -- {spec}/*`.split("\n")
22
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
23
+ s.extra_rdoc_files = ['README.md', 'CHANGELOG.md']
24
+ s.rdoc_options = ['--charset=UTF-8']
25
+ s.require_paths = ['lib']
127
26
  end
128
-
metadata CHANGED
@@ -1,32 +1,96 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: sphinx
3
- version: !ruby/object:Gem::Version
4
- version: 0.9.10.2122
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.1.1.3711
5
+ prerelease:
5
6
  platform: ruby
6
- authors:
7
+ authors:
7
8
  - Dmytro Shteflyuk
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
-
12
- date: 2009-12-04 00:00:00 +02:00
13
- default_executable:
14
- dependencies: []
15
-
16
- 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.
17
- email: kpumuk@kpumuk.info
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
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rspec
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: yard
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ 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:
81
+ - kpumuk@kpumuk.info
18
82
  executables: []
19
-
20
83
  extensions: []
21
-
22
- extra_rdoc_files:
23
- - README.rdoc
24
- files:
84
+ extra_rdoc_files:
85
+ - README.md
86
+ - CHANGELOG.md
87
+ files:
25
88
  - .gitignore
26
- - README.rdoc
89
+ - .travis.yml
90
+ - CHANGELOG.md
91
+ - Gemfile
92
+ - README.md
27
93
  - Rakefile
28
- - VERSION.yml
29
- - init.rb
30
94
  - lib/sphinx.rb
31
95
  - lib/sphinx/buffered_io.rb
32
96
  - lib/sphinx/client.rb
@@ -36,108 +100,207 @@ files:
36
100
  - lib/sphinx/response.rb
37
101
  - lib/sphinx/server.rb
38
102
  - lib/sphinx/timeout.rb
103
+ - lib/sphinx/version.rb
39
104
  - spec/client_response_spec.rb
40
105
  - spec/client_spec.rb
41
106
  - spec/client_validations_spec.rb
42
- - spec/fixtures/default_search.php
43
- - spec/fixtures/default_search_index.php
44
- - spec/fixtures/excerpt_custom.php
45
- - spec/fixtures/excerpt_default.php
46
- - spec/fixtures/excerpt_flags.php
47
- - spec/fixtures/field_weights.php
48
- - spec/fixtures/filter.php
49
- - spec/fixtures/filter_exclude.php
50
- - spec/fixtures/filter_float_range.php
51
- - spec/fixtures/filter_float_range_exclude.php
52
- - spec/fixtures/filter_range.php
53
- - spec/fixtures/filter_range_exclude.php
54
- - spec/fixtures/filter_range_int64.php
55
- - spec/fixtures/filter_ranges.php
56
- - spec/fixtures/filters.php
57
- - spec/fixtures/filters_different.php
58
- - spec/fixtures/geo_anchor.php
59
- - spec/fixtures/group_by_attr.php
60
- - spec/fixtures/group_by_attrpair.php
61
- - spec/fixtures/group_by_day.php
62
- - spec/fixtures/group_by_day_sort.php
63
- - spec/fixtures/group_by_month.php
64
- - spec/fixtures/group_by_week.php
65
- - spec/fixtures/group_by_year.php
66
- - spec/fixtures/group_distinct.php
67
- - spec/fixtures/id_range.php
68
- - spec/fixtures/id_range64.php
69
- - spec/fixtures/index_weights.php
70
- - spec/fixtures/keywords.php
71
- - spec/fixtures/limits.php
72
- - spec/fixtures/limits_cutoff.php
73
- - spec/fixtures/limits_max.php
74
- - spec/fixtures/limits_max_cutoff.php
75
- - spec/fixtures/match_all.php
76
- - spec/fixtures/match_any.php
77
- - spec/fixtures/match_boolean.php
78
- - spec/fixtures/match_extended.php
79
- - spec/fixtures/match_extended2.php
80
- - spec/fixtures/match_fullscan.php
81
- - spec/fixtures/match_phrase.php
82
- - spec/fixtures/max_query_time.php
83
- - spec/fixtures/miltiple_queries.php
84
- - spec/fixtures/ranking_bm25.php
85
- - spec/fixtures/ranking_fieldmask.php
86
- - spec/fixtures/ranking_matchany.php
87
- - spec/fixtures/ranking_none.php
88
- - spec/fixtures/ranking_proximity.php
89
- - spec/fixtures/ranking_proximity_bm25.php
90
- - spec/fixtures/ranking_sph04.php
91
- - spec/fixtures/ranking_wordcount.php
92
- - spec/fixtures/retries.php
93
- - spec/fixtures/retries_delay.php
94
- - spec/fixtures/select.php
95
- - spec/fixtures/set_override.php
96
- - spec/fixtures/sort_attr_asc.php
97
- - spec/fixtures/sort_attr_desc.php
98
- - spec/fixtures/sort_expr.php
99
- - spec/fixtures/sort_extended.php
100
- - spec/fixtures/sort_relevance.php
101
- - spec/fixtures/sort_time_segments.php
107
+ - spec/fixtures/requests/default_search.dat
108
+ - spec/fixtures/requests/default_search_index.dat
109
+ - spec/fixtures/requests/excerpt_custom.dat
110
+ - spec/fixtures/requests/excerpt_default.dat
111
+ - spec/fixtures/requests/excerpt_flags.dat
112
+ - spec/fixtures/requests/field_weights.dat
113
+ - spec/fixtures/requests/filter.dat
114
+ - spec/fixtures/requests/filter_exclude.dat
115
+ - spec/fixtures/requests/filter_float_range.dat
116
+ - spec/fixtures/requests/filter_float_range_exclude.dat
117
+ - spec/fixtures/requests/filter_range.dat
118
+ - spec/fixtures/requests/filter_range_exclude.dat
119
+ - spec/fixtures/requests/filter_range_int64.dat
120
+ - spec/fixtures/requests/filter_ranges.dat
121
+ - spec/fixtures/requests/filters.dat
122
+ - spec/fixtures/requests/filters_different.dat
123
+ - spec/fixtures/requests/geo_anchor.dat
124
+ - spec/fixtures/requests/group_by_attr.dat
125
+ - spec/fixtures/requests/group_by_attrpair.dat
126
+ - spec/fixtures/requests/group_by_day.dat
127
+ - spec/fixtures/requests/group_by_day_sort.dat
128
+ - spec/fixtures/requests/group_by_month.dat
129
+ - spec/fixtures/requests/group_by_week.dat
130
+ - spec/fixtures/requests/group_by_year.dat
131
+ - spec/fixtures/requests/group_distinct.dat
132
+ - spec/fixtures/requests/id_range.dat
133
+ - spec/fixtures/requests/id_range64.dat
134
+ - spec/fixtures/requests/index_weights.dat
135
+ - spec/fixtures/requests/keywords.dat
136
+ - spec/fixtures/requests/limits.dat
137
+ - spec/fixtures/requests/limits_cutoff.dat
138
+ - spec/fixtures/requests/limits_max.dat
139
+ - spec/fixtures/requests/limits_max_cutoff.dat
140
+ - spec/fixtures/requests/match_all.dat
141
+ - spec/fixtures/requests/match_any.dat
142
+ - spec/fixtures/requests/match_boolean.dat
143
+ - spec/fixtures/requests/match_extended.dat
144
+ - spec/fixtures/requests/match_extended2.dat
145
+ - spec/fixtures/requests/match_fullscan.dat
146
+ - spec/fixtures/requests/match_phrase.dat
147
+ - spec/fixtures/requests/max_query_time.dat
148
+ - spec/fixtures/requests/miltiple_queries.dat
149
+ - spec/fixtures/requests/outer_select.dat
150
+ - spec/fixtures/requests/override.dat
151
+ - spec/fixtures/requests/php/default_search.php
152
+ - spec/fixtures/requests/php/default_search_index.php
153
+ - spec/fixtures/requests/php/excerpt_custom.php
154
+ - spec/fixtures/requests/php/excerpt_default.php
155
+ - spec/fixtures/requests/php/excerpt_flags.php
156
+ - spec/fixtures/requests/php/field_weights.php
157
+ - spec/fixtures/requests/php/filter.php
158
+ - spec/fixtures/requests/php/filter_exclude.php
159
+ - spec/fixtures/requests/php/filter_float_range.php
160
+ - spec/fixtures/requests/php/filter_float_range_exclude.php
161
+ - spec/fixtures/requests/php/filter_range.php
162
+ - spec/fixtures/requests/php/filter_range_exclude.php
163
+ - spec/fixtures/requests/php/filter_range_int64.php
164
+ - spec/fixtures/requests/php/filter_ranges.php
165
+ - spec/fixtures/requests/php/filters.php
166
+ - spec/fixtures/requests/php/filters_different.php
167
+ - spec/fixtures/requests/php/geo_anchor.php
168
+ - spec/fixtures/requests/php/group_by_attr.php
169
+ - spec/fixtures/requests/php/group_by_attrpair.php
170
+ - spec/fixtures/requests/php/group_by_day.php
171
+ - spec/fixtures/requests/php/group_by_day_sort.php
172
+ - spec/fixtures/requests/php/group_by_month.php
173
+ - spec/fixtures/requests/php/group_by_week.php
174
+ - spec/fixtures/requests/php/group_by_year.php
175
+ - spec/fixtures/requests/php/group_distinct.php
176
+ - spec/fixtures/requests/php/id_range.php
177
+ - spec/fixtures/requests/php/id_range64.php
178
+ - spec/fixtures/requests/php/index_weights.php
179
+ - spec/fixtures/requests/php/keywords.php
180
+ - spec/fixtures/requests/php/limits.php
181
+ - spec/fixtures/requests/php/limits_cutoff.php
182
+ - spec/fixtures/requests/php/limits_max.php
183
+ - spec/fixtures/requests/php/limits_max_cutoff.php
184
+ - spec/fixtures/requests/php/match_all.php
185
+ - spec/fixtures/requests/php/match_any.php
186
+ - spec/fixtures/requests/php/match_boolean.php
187
+ - spec/fixtures/requests/php/match_extended.php
188
+ - spec/fixtures/requests/php/match_extended2.php
189
+ - spec/fixtures/requests/php/match_fullscan.php
190
+ - spec/fixtures/requests/php/match_phrase.php
191
+ - spec/fixtures/requests/php/max_query_time.php
192
+ - spec/fixtures/requests/php/miltiple_queries.php
193
+ - spec/fixtures/requests/php/outer_select.php
194
+ - spec/fixtures/requests/php/override.php
195
+ - spec/fixtures/requests/php/query_flag.php
196
+ - spec/fixtures/requests/php/query_flag_after_reset.php
197
+ - spec/fixtures/requests/php/ranking_bm25.php
198
+ - spec/fixtures/requests/php/ranking_expr.php
199
+ - spec/fixtures/requests/php/ranking_fieldmask.php
200
+ - spec/fixtures/requests/php/ranking_matchany.php
201
+ - spec/fixtures/requests/php/ranking_none.php
202
+ - spec/fixtures/requests/php/ranking_proximity.php
203
+ - spec/fixtures/requests/php/ranking_proximity_bm25.php
204
+ - spec/fixtures/requests/php/ranking_sph04.php
205
+ - spec/fixtures/requests/php/ranking_wordcount.php
206
+ - spec/fixtures/requests/php/retries.php
207
+ - spec/fixtures/requests/php/retries_delay.php
208
+ - spec/fixtures/requests/php/select.php
209
+ - spec/fixtures/requests/php/sort_attr_asc.php
210
+ - spec/fixtures/requests/php/sort_attr_desc.php
211
+ - spec/fixtures/requests/php/sort_expr.php
212
+ - spec/fixtures/requests/php/sort_extended.php
213
+ - spec/fixtures/requests/php/sort_relevance.php
214
+ - spec/fixtures/requests/php/sort_time_segments.php
215
+ - spec/fixtures/requests/php/update_attributes.php
216
+ - spec/fixtures/requests/php/update_attributes_mva.php
217
+ - spec/fixtures/requests/php/weights.php
218
+ - spec/fixtures/requests/query_flag.dat
219
+ - spec/fixtures/requests/query_flag_after_reset.dat
220
+ - spec/fixtures/requests/ranking_bm25.dat
221
+ - spec/fixtures/requests/ranking_expr.dat
222
+ - spec/fixtures/requests/ranking_fieldmask.dat
223
+ - spec/fixtures/requests/ranking_matchany.dat
224
+ - spec/fixtures/requests/ranking_none.dat
225
+ - spec/fixtures/requests/ranking_proximity.dat
226
+ - spec/fixtures/requests/ranking_proximity_bm25.dat
227
+ - spec/fixtures/requests/ranking_sph04.dat
228
+ - spec/fixtures/requests/ranking_wordcount.dat
229
+ - spec/fixtures/requests/retries.dat
230
+ - spec/fixtures/requests/retries_delay.dat
231
+ - spec/fixtures/requests/select.dat
232
+ - spec/fixtures/requests/sort_attr_asc.dat
233
+ - spec/fixtures/requests/sort_attr_desc.dat
234
+ - spec/fixtures/requests/sort_expr.dat
235
+ - spec/fixtures/requests/sort_extended.dat
236
+ - spec/fixtures/requests/sort_relevance.dat
237
+ - spec/fixtures/requests/sort_time_segments.dat
238
+ - spec/fixtures/requests/update_attributes.dat
239
+ - spec/fixtures/requests/update_attributes_mva.dat
240
+ - spec/fixtures/requests/weights.dat
241
+ - spec/fixtures/responses/build_excerpts.dat
242
+ - spec/fixtures/responses/build_keywords.dat
243
+ - spec/fixtures/responses/flush_attributes.dat
244
+ - spec/fixtures/responses/flush_attrs.dat
245
+ - spec/fixtures/responses/open.dat
246
+ - spec/fixtures/responses/open_twice.dat
247
+ - spec/fixtures/responses/php/build_excerpts.php
248
+ - spec/fixtures/responses/php/build_keywords.php
249
+ - spec/fixtures/responses/php/flush_attributes.php
250
+ - spec/fixtures/responses/php/open.php
251
+ - spec/fixtures/responses/php/open_twice.php
252
+ - spec/fixtures/responses/php/query.php
253
+ - spec/fixtures/responses/php/query_error.php
254
+ - spec/fixtures/responses/php/query_id64.php
255
+ - spec/fixtures/responses/php/run_queries.php
256
+ - spec/fixtures/responses/php/run_queries_error.php
257
+ - spec/fixtures/responses/php/status.php
258
+ - spec/fixtures/responses/php/update_attributes.php
259
+ - spec/fixtures/responses/php/update_attributes_mva.php
260
+ - spec/fixtures/responses/query.dat
261
+ - spec/fixtures/responses/query_error.dat
262
+ - spec/fixtures/responses/query_id64.dat
263
+ - spec/fixtures/responses/run_queries.dat
264
+ - spec/fixtures/responses/run_queries_error.dat
265
+ - spec/fixtures/responses/status.dat
266
+ - spec/fixtures/responses/update_attributes.dat
267
+ - spec/fixtures/responses/update_attributes_mva.dat
102
268
  - spec/fixtures/sphinxapi.php
103
- - spec/fixtures/update_attributes.php
104
- - spec/fixtures/update_attributes_mva.php
105
- - spec/fixtures/weights.php
106
269
  - spec/spec_helper.rb
107
270
  - spec/sphinx/sphinx-id64.conf
108
271
  - spec/sphinx/sphinx.conf
109
272
  - spec/sphinx/sphinx_test.sql
110
273
  - sphinx.gemspec
111
- has_rdoc: true
112
274
  homepage: http://github.com/kpumuk/sphinx
113
275
  licenses: []
114
-
115
276
  post_install_message:
116
- rdoc_options:
277
+ rdoc_options:
117
278
  - --charset=UTF-8
118
- require_paths:
279
+ require_paths:
119
280
  - lib
120
- required_ruby_version: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: "0"
125
- version:
126
- required_rubygems_version: !ruby/object:Gem::Requirement
127
- requirements:
128
- - - ">="
129
- - !ruby/object:Gem::Version
130
- version: "0"
131
- version:
281
+ required_ruby_version: !ruby/object:Gem::Requirement
282
+ none: false
283
+ requirements:
284
+ - - ! '>='
285
+ - !ruby/object:Gem::Version
286
+ version: '0'
287
+ segments:
288
+ - 0
289
+ hash: 3085923144825273519
290
+ required_rubygems_version: !ruby/object:Gem::Requirement
291
+ none: false
292
+ requirements:
293
+ - - ! '>='
294
+ - !ruby/object:Gem::Version
295
+ version: '0'
296
+ segments:
297
+ - 0
298
+ hash: 3085923144825273519
132
299
  requirements: []
133
-
134
300
  rubyforge_project:
135
- rubygems_version: 1.3.5
301
+ rubygems_version: 1.8.25
136
302
  signing_key:
137
303
  specification_version: 3
138
304
  summary: Sphinx Client API for Ruby
139
- test_files:
140
- - spec/client_response_spec.rb
141
- - spec/client_spec.rb
142
- - spec/client_validations_spec.rb
143
- - spec/spec_helper.rb
305
+ test_files: []
306
+ has_rdoc: