riddle 2.1.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +8 -5
  3. data/Gemfile +10 -0
  4. data/HISTORY +4 -0
  5. data/README.markdown +1 -1
  6. data/lib/riddle.rb +1 -0
  7. data/lib/riddle/0.9.9/configuration/searchd.rb +1 -1
  8. data/lib/riddle/client.rb +4 -1
  9. data/lib/riddle/client/message.rb +15 -14
  10. data/lib/riddle/configuration/parser.rb +1 -0
  11. data/lib/riddle/configuration/section.rb +9 -9
  12. data/lib/riddle/configuration/source.rb +5 -5
  13. data/lib/riddle/query/select.rb +3 -2
  14. data/riddle.gemspec +2 -4
  15. metadata +4 -329
  16. data/spec/fixtures/.gitignore +0 -2
  17. data/spec/fixtures/data/0.9.9/anchor.bin +0 -0
  18. data/spec/fixtures/data/0.9.9/any.bin +0 -0
  19. data/spec/fixtures/data/0.9.9/boolean.bin +0 -0
  20. data/spec/fixtures/data/0.9.9/comment.bin +0 -0
  21. data/spec/fixtures/data/0.9.9/distinct.bin +0 -0
  22. data/spec/fixtures/data/0.9.9/field_weights.bin +0 -0
  23. data/spec/fixtures/data/0.9.9/filter.bin +0 -0
  24. data/spec/fixtures/data/0.9.9/filter_array.bin +0 -0
  25. data/spec/fixtures/data/0.9.9/filter_array_exclude.bin +0 -0
  26. data/spec/fixtures/data/0.9.9/filter_boolean.bin +0 -0
  27. data/spec/fixtures/data/0.9.9/filter_floats.bin +0 -0
  28. data/spec/fixtures/data/0.9.9/filter_floats_exclude.bin +0 -0
  29. data/spec/fixtures/data/0.9.9/filter_range.bin +0 -0
  30. data/spec/fixtures/data/0.9.9/filter_range_exclude.bin +0 -0
  31. data/spec/fixtures/data/0.9.9/group.bin +0 -0
  32. data/spec/fixtures/data/0.9.9/index.bin +0 -0
  33. data/spec/fixtures/data/0.9.9/index_weights.bin +0 -0
  34. data/spec/fixtures/data/0.9.9/keywords_with_hits.bin +0 -0
  35. data/spec/fixtures/data/0.9.9/keywords_without_hits.bin +0 -0
  36. data/spec/fixtures/data/0.9.9/overrides.bin +0 -0
  37. data/spec/fixtures/data/0.9.9/phrase.bin +0 -0
  38. data/spec/fixtures/data/0.9.9/rank_mode.bin +0 -0
  39. data/spec/fixtures/data/0.9.9/select.bin +0 -0
  40. data/spec/fixtures/data/0.9.9/simple.bin +0 -0
  41. data/spec/fixtures/data/0.9.9/sort.bin +0 -0
  42. data/spec/fixtures/data/0.9.9/update_simple.bin +0 -0
  43. data/spec/fixtures/data/0.9.9/weights.bin +0 -0
  44. data/spec/fixtures/data/1.10/anchor.bin +0 -0
  45. data/spec/fixtures/data/1.10/any.bin +0 -0
  46. data/spec/fixtures/data/1.10/boolean.bin +0 -0
  47. data/spec/fixtures/data/1.10/comment.bin +0 -0
  48. data/spec/fixtures/data/1.10/distinct.bin +0 -0
  49. data/spec/fixtures/data/1.10/field_weights.bin +0 -0
  50. data/spec/fixtures/data/1.10/filter.bin +0 -0
  51. data/spec/fixtures/data/1.10/filter_array.bin +0 -0
  52. data/spec/fixtures/data/1.10/filter_array_exclude.bin +0 -0
  53. data/spec/fixtures/data/1.10/filter_boolean.bin +0 -0
  54. data/spec/fixtures/data/1.10/filter_floats.bin +0 -0
  55. data/spec/fixtures/data/1.10/filter_floats_exclude.bin +0 -0
  56. data/spec/fixtures/data/1.10/filter_range.bin +0 -0
  57. data/spec/fixtures/data/1.10/filter_range_exclude.bin +0 -0
  58. data/spec/fixtures/data/1.10/group.bin +0 -0
  59. data/spec/fixtures/data/1.10/index.bin +0 -0
  60. data/spec/fixtures/data/1.10/index_weights.bin +0 -0
  61. data/spec/fixtures/data/1.10/keywords_with_hits.bin +0 -0
  62. data/spec/fixtures/data/1.10/keywords_without_hits.bin +0 -0
  63. data/spec/fixtures/data/1.10/overrides.bin +0 -0
  64. data/spec/fixtures/data/1.10/phrase.bin +0 -0
  65. data/spec/fixtures/data/1.10/rank_mode.bin +0 -0
  66. data/spec/fixtures/data/1.10/select.bin +0 -0
  67. data/spec/fixtures/data/1.10/simple.bin +0 -0
  68. data/spec/fixtures/data/1.10/sort.bin +0 -0
  69. data/spec/fixtures/data/1.10/update_simple.bin +0 -0
  70. data/spec/fixtures/data/1.10/weights.bin +0 -0
  71. data/spec/fixtures/data/2.0.1/anchor.bin +0 -0
  72. data/spec/fixtures/data/2.0.1/any.bin +0 -0
  73. data/spec/fixtures/data/2.0.1/boolean.bin +0 -0
  74. data/spec/fixtures/data/2.0.1/comment.bin +0 -0
  75. data/spec/fixtures/data/2.0.1/distinct.bin +0 -0
  76. data/spec/fixtures/data/2.0.1/field_weights.bin +0 -0
  77. data/spec/fixtures/data/2.0.1/filter.bin +0 -0
  78. data/spec/fixtures/data/2.0.1/filter_array.bin +0 -0
  79. data/spec/fixtures/data/2.0.1/filter_array_exclude.bin +0 -0
  80. data/spec/fixtures/data/2.0.1/filter_boolean.bin +0 -0
  81. data/spec/fixtures/data/2.0.1/filter_floats.bin +0 -0
  82. data/spec/fixtures/data/2.0.1/filter_floats_exclude.bin +0 -0
  83. data/spec/fixtures/data/2.0.1/filter_range.bin +0 -0
  84. data/spec/fixtures/data/2.0.1/filter_range_exclude.bin +0 -0
  85. data/spec/fixtures/data/2.0.1/group.bin +0 -0
  86. data/spec/fixtures/data/2.0.1/index.bin +0 -0
  87. data/spec/fixtures/data/2.0.1/index_weights.bin +0 -0
  88. data/spec/fixtures/data/2.0.1/keywords_with_hits.bin +0 -0
  89. data/spec/fixtures/data/2.0.1/keywords_without_hits.bin +0 -0
  90. data/spec/fixtures/data/2.0.1/overrides.bin +0 -0
  91. data/spec/fixtures/data/2.0.1/phrase.bin +0 -0
  92. data/spec/fixtures/data/2.0.1/rank_mode.bin +0 -0
  93. data/spec/fixtures/data/2.0.1/select.bin +0 -0
  94. data/spec/fixtures/data/2.0.1/simple.bin +0 -0
  95. data/spec/fixtures/data/2.0.1/sort.bin +0 -0
  96. data/spec/fixtures/data/2.0.1/update_simple.bin +0 -0
  97. data/spec/fixtures/data/2.0.1/weights.bin +0 -0
  98. data/spec/fixtures/data/2.1.0/anchor.bin +0 -0
  99. data/spec/fixtures/data/2.1.0/any.bin +0 -0
  100. data/spec/fixtures/data/2.1.0/boolean.bin +0 -0
  101. data/spec/fixtures/data/2.1.0/comment.bin +0 -0
  102. data/spec/fixtures/data/2.1.0/distinct.bin +0 -0
  103. data/spec/fixtures/data/2.1.0/field_weights.bin +0 -0
  104. data/spec/fixtures/data/2.1.0/filter.bin +0 -0
  105. data/spec/fixtures/data/2.1.0/filter_array.bin +0 -0
  106. data/spec/fixtures/data/2.1.0/filter_array_exclude.bin +0 -0
  107. data/spec/fixtures/data/2.1.0/filter_boolean.bin +0 -0
  108. data/spec/fixtures/data/2.1.0/filter_floats.bin +0 -0
  109. data/spec/fixtures/data/2.1.0/filter_floats_exclude.bin +0 -0
  110. data/spec/fixtures/data/2.1.0/filter_range.bin +0 -0
  111. data/spec/fixtures/data/2.1.0/filter_range_exclude.bin +0 -0
  112. data/spec/fixtures/data/2.1.0/group.bin +0 -0
  113. data/spec/fixtures/data/2.1.0/index.bin +0 -0
  114. data/spec/fixtures/data/2.1.0/index_weights.bin +0 -0
  115. data/spec/fixtures/data/2.1.0/keywords_with_hits.bin +0 -0
  116. data/spec/fixtures/data/2.1.0/keywords_without_hits.bin +0 -0
  117. data/spec/fixtures/data/2.1.0/overrides.bin +0 -0
  118. data/spec/fixtures/data/2.1.0/phrase.bin +0 -0
  119. data/spec/fixtures/data/2.1.0/rank_mode.bin +0 -0
  120. data/spec/fixtures/data/2.1.0/select.bin +0 -0
  121. data/spec/fixtures/data/2.1.0/simple.bin +0 -0
  122. data/spec/fixtures/data/2.1.0/sort.bin +0 -0
  123. data/spec/fixtures/data/2.1.0/update_simple.bin +0 -0
  124. data/spec/fixtures/data/2.1.0/weights.bin +0 -0
  125. data/spec/fixtures/data_generator.0.9.8.php +0 -208
  126. data/spec/fixtures/data_generator.0.9.9.php +0 -5
  127. data/spec/fixtures/data_generator.1.10.php +0 -5
  128. data/spec/fixtures/data_generator.2.0.1.php +0 -5
  129. data/spec/fixtures/data_generator.2.1.0.php +0 -5
  130. data/spec/fixtures/data_generator.php +0 -223
  131. data/spec/fixtures/sphinxapi.0.9.8.php +0 -1228
  132. data/spec/fixtures/sphinxapi.0.9.9.php +0 -1646
  133. data/spec/fixtures/sphinxapi.1.10.php +0 -1728
  134. data/spec/fixtures/sphinxapi.2.0.1.php +0 -1731
  135. data/spec/fixtures/sphinxapi.2.1.0.php +0 -1752
  136. data/spec/fixtures/sql/conf.example.yml +0 -3
  137. data/spec/fixtures/sql/data.sql +0 -25000
  138. data/spec/fixtures/sql/data.tsv +0 -25000
  139. data/spec/fixtures/sql/structure.sql +0 -16
  140. data/spec/functional/connection_spec.rb +0 -64
  141. data/spec/functional/escaping_spec.rb +0 -49
  142. data/spec/functional/excerpt_spec.rb +0 -139
  143. data/spec/functional/keywords_spec.rb +0 -40
  144. data/spec/functional/persistance_spec.rb +0 -17
  145. data/spec/functional/search_spec.rb +0 -67
  146. data/spec/functional/status_spec.rb +0 -21
  147. data/spec/functional/update_spec.rb +0 -41
  148. data/spec/riddle/auto_version_spec.rb +0 -95
  149. data/spec/riddle/client_spec.rb +0 -11
  150. data/spec/riddle/configuration_spec.rb +0 -28
  151. data/spec/riddle/controller_spec.rb +0 -39
  152. data/spec/riddle/query/delete_spec.rb +0 -18
  153. data/spec/riddle/query/insert_spec.rb +0 -25
  154. data/spec/riddle/query/select_spec.rb +0 -226
  155. data/spec/riddle/query_spec.rb +0 -97
  156. data/spec/riddle_spec.rb +0 -27
  157. data/spec/spec_helper.rb +0 -34
  158. data/spec/support/binary_fixtures.rb +0 -18
  159. data/spec/support/sphinx.rb +0 -137
  160. data/spec/unit/client_spec.rb +0 -290
  161. data/spec/unit/configuration/common_spec.rb +0 -60
  162. data/spec/unit/configuration/distributed_index_spec.rb +0 -58
  163. data/spec/unit/configuration/index_spec.rb +0 -124
  164. data/spec/unit/configuration/indexer_spec.rb +0 -73
  165. data/spec/unit/configuration/realtime_index_spec.rb +0 -65
  166. data/spec/unit/configuration/searchd_spec.rb +0 -228
  167. data/spec/unit/configuration/source_spec.rb +0 -5
  168. data/spec/unit/configuration/sql_source_spec.rb +0 -137
  169. data/spec/unit/configuration/template_index_spec.rb +0 -91
  170. data/spec/unit/configuration/tsv_source_spec.rb +0 -53
  171. data/spec/unit/configuration/xml_source_spec.rb +0 -51
  172. data/spec/unit/configuration_spec.rb +0 -25
  173. data/spec/unit/filter_spec.rb +0 -38
  174. data/spec/unit/message_spec.rb +0 -94
  175. data/spec/unit/response_spec.rb +0 -64
  176. data/spec/unit/riddle_spec.rb +0 -17
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9703ab2715784c618307e9081ebf69b2bea0ed08
4
- data.tar.gz: 9570d8929bbb278985a468570c34ddc6cf702502
3
+ metadata.gz: 3e8107a5880b8a9bf181bd6f395dddef5cd887b0
4
+ data.tar.gz: daf50f55994fe6b909cceeae4aeb2a8c8568a8ba
5
5
  SHA512:
6
- metadata.gz: 0d097ac478f457a842116c00ba098ebc0d70b19e5fad881b53aa7721ac2058d75e3c63a05647185e9c58931bfa06adce4e5c8405018197f0bf6cdce11794dfe2
7
- data.tar.gz: 2375a83b6ff035108262bc185483ecbe7a13a7abedf676fb2df20ab293b52eefa4fee4df1b9d003b642600b0109461e9d75e6bf715718d1bbc0d2a8b30bda69b
6
+ metadata.gz: 25262a9682bdc924d5219fe696064ec6a3c773dcca7228465f132735ea7887cb2ff68662399b22c4a81e5b806821b8f3e0893d90a314ae864a2511eea74df628
7
+ data.tar.gz: b1b0ccf8b7609ae714c488caebe693427dee20b26ba4ea4e5b9c925f0007f8713319b39a425a75eed52cfc7759ad8037d66abfb5aee40d4f424ce233a93f5130
data/.travis.yml CHANGED
@@ -1,13 +1,16 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.1
4
3
  - 2.2
5
- - 2.3.3
6
- - 2.4.0
4
+ - 2.3.4
5
+ - 2.4.1
6
+ - jruby-9.1.10.0
7
7
  env:
8
8
  - SPHINX_BIN=/usr/local/sphinx-2.0.10/bin SPHINX_VERSION=2.0.10
9
9
  - SPHINX_BIN=/usr/local/sphinx-2.1.9/bin SPHINX_VERSION=2.1.9
10
10
  - SPHINX_BIN=/usr/local/sphinx-2.2.6/bin SPHINX_VERSION=2.2.6
11
- before_script: killall searchd; echo ''
12
- after_script: killall searchd; echo ''
11
+ before_script:
12
+ - killall searchd; echo ''
13
+ - if (ruby -e "exit RUBY_VERSION.to_f >= 2.4"); then export RUBYOPT="--enable-frozen-string-literal"; fi; echo $RUBYOPT
14
+ after_script:
15
+ - killall searchd; echo ''
13
16
  sudo: false
data/Gemfile CHANGED
@@ -4,3 +4,13 @@ gemspec
4
4
 
5
5
  gem 'mysql2', '0.3.20', :platform => :ruby
6
6
  gem 'jdbc-mysql', '5.1.35', :platform => :jruby
7
+
8
+ %w[
9
+ rspec
10
+ rspec-core
11
+ rspec-expectations
12
+ rspec-mocks
13
+ rspec-support
14
+ ].each do |library|
15
+ gem library, :git => "https://github.com/rspec/#{library}.git"
16
+ end
data/HISTORY CHANGED
@@ -1,3 +1,7 @@
1
+ 2.2.0 - June 20th 2017
2
+ - Add compatibility for MRI's frozen string literals setting.
3
+ - Stop packaging test files with gem releases (@dimko).
4
+
1
5
  2.1.0 - January 5th 2017
2
6
  - Wrap string attribute filter values in single quotes.
3
7
  - Remove direct references to FixNum to avoid MRI 2.4 warnings.
data/README.markdown CHANGED
@@ -14,7 +14,7 @@ Riddle is available as a gem, so you can install it directly:
14
14
 
15
15
  Or include it in a Gemfile:
16
16
 
17
- gem 'riddle', '~> 2.1.0'
17
+ gem 'riddle', '~> 2.2.0'
18
18
 
19
19
  ## Usage
20
20
 
data/lib/riddle.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'thread'
2
2
  require 'socket'
3
+ require 'stringio'
3
4
  require 'timeout'
4
5
 
5
6
  module Riddle #:nodoc:
@@ -21,7 +21,7 @@ module Riddle
21
21
  @listen << "9306:mysql41" if @mysql41.is_a?(TrueClass)
22
22
  @listen << "#{@mysql41}:mysql41" if @mysql41.is_a?(NUMBER)
23
23
 
24
- @listen.each { |l| l.insert(0, "#{@address}:") } if @address
24
+ @listen = @listen.collect { |line| "#{@address}:#{line}" } if @address
25
25
  end
26
26
 
27
27
  def settings
data/lib/riddle/client.rb CHANGED
@@ -626,7 +626,8 @@ module Riddle
626
626
  # Send a collection of messages, for a command type (eg, search, excerpts,
627
627
  # update), to the Sphinx daemon.
628
628
  def request(command, messages)
629
- response = ""
629
+ response = StringIO.new String.new(""), "w"
630
+ response.set_encoding "ASCII-8BIT"
630
631
  status = -1
631
632
  version = 0
632
633
  length = 0
@@ -661,6 +662,8 @@ module Riddle
661
662
  end
662
663
  end
663
664
 
665
+ response = response.string
666
+
664
667
  if response.empty? || response.length != length
665
668
  raise ResponseError, "No response from searchd (status: #{status}, version: #{version})"
666
669
  end
@@ -4,64 +4,65 @@ module Riddle
4
4
  # the format required by the Sphinx service.
5
5
  class Message
6
6
  def initialize
7
- @message = ""
7
+ @message = StringIO.new String.new(""), "w"
8
+ @message.set_encoding 'ASCII-8BIT'
8
9
  @size_method = @message.respond_to?(:bytesize) ? :bytesize : :length
9
10
  end
10
-
11
+
11
12
  # Append raw data (only use if you know what you're doing)
12
13
  def append(*args)
13
14
  args.each { |arg| @message << arg }
14
15
  end
15
-
16
+
16
17
  # Append a string's length, then the string itself
17
18
  def append_string(str)
18
19
  string = Riddle.encode(str.dup, 'ASCII-8BIT')
19
20
  @message << [string.send(@size_method)].pack('N') + string
20
21
  end
21
-
22
+
22
23
  # Append an integer
23
24
  def append_int(int)
24
25
  @message << [int.to_i].pack('N')
25
26
  end
26
-
27
+
27
28
  def append_64bit_int(int)
28
29
  @message << [int.to_i >> 32, int.to_i & 0xFFFFFFFF].pack('NN')
29
30
  end
30
-
31
+
31
32
  # Append a float
32
33
  def append_float(float)
33
34
  @message << [float].pack('f').unpack('L*').pack("N")
34
35
  end
35
-
36
+
36
37
  def append_boolean(bool)
37
38
  append_int(bool ? 1 : 0)
38
39
  end
39
-
40
+
40
41
  # Append multiple integers
41
42
  def append_ints(*ints)
42
43
  ints.each { |int| append_int(int) }
43
44
  end
44
-
45
+
45
46
  def append_64bit_ints(*ints)
46
47
  ints.each { |int| append_64bit_int(int) }
47
48
  end
48
-
49
+
49
50
  # Append multiple floats
50
51
  def append_floats(*floats)
51
52
  floats.each { |float| append_float(float) }
52
53
  end
53
-
54
+
54
55
  # Append an array of strings - first appends the length of the array,
55
56
  # then each item's length and value.
56
57
  def append_array(array)
57
58
  append_int(array.length)
58
-
59
+
59
60
  array.each { |item| append_string(item) }
60
61
  end
61
-
62
+
62
63
  # Returns the entire message
63
64
  def to_s
64
- @message
65
+ @message.string
65
66
  end
66
67
  end
67
68
  end
@@ -1,4 +1,5 @@
1
1
  # encoding: UTF-8
2
+
2
3
  require 'stringio'
3
4
 
4
5
  class Riddle::Configuration::Parser
@@ -4,13 +4,13 @@ module Riddle
4
4
  def self.settings
5
5
  []
6
6
  end
7
-
7
+
8
8
  def valid?
9
9
  true
10
10
  end
11
-
11
+
12
12
  private
13
-
13
+
14
14
  def settings_body
15
15
  settings.select { |setting|
16
16
  !send(setting).nil?
@@ -25,7 +25,7 @@ module Riddle
25
25
  conf.length == 0 ? nil : conf
26
26
  }.flatten.compact
27
27
  end
28
-
28
+
29
29
  def setting_to_array(setting)
30
30
  value = send(setting)
31
31
  case value
@@ -36,18 +36,18 @@ module Riddle
36
36
  [value]
37
37
  end
38
38
  end
39
-
39
+
40
40
  def rendered_setting(setting)
41
41
  return setting unless setting.is_a?(String)
42
-
42
+
43
43
  index = 8100
44
- output = setting.clone
45
-
44
+ output = String.new(setting)
45
+
46
46
  while index < output.length
47
47
  output.insert(index, "\\\n")
48
48
  index += 8100
49
49
  end
50
-
50
+
51
51
  output
52
52
  end
53
53
 
@@ -2,22 +2,22 @@ module Riddle
2
2
  class Configuration
3
3
  class Source < Riddle::Configuration::Section
4
4
  attr_accessor :name, :parent, :type
5
-
5
+
6
6
  def render
7
7
  raise ConfigurationError unless valid?
8
-
8
+
9
9
  inherited_name = "#{name}"
10
- inherited_name << " : #{parent}" if parent
10
+ inherited_name += " : #{parent}" if parent
11
11
  (
12
12
  ["source #{inherited_name}", "{"] +
13
13
  settings_body +
14
14
  ["}", ""]
15
15
  ).join("\n")
16
16
  end
17
-
17
+
18
18
  def valid?
19
19
  !( @name.nil? || @type.nil? )
20
20
  end
21
21
  end
22
22
  end
23
- end
23
+ end
@@ -98,7 +98,8 @@ class Riddle::Query::Select
98
98
  end
99
99
 
100
100
  def to_sql
101
- sql = "SELECT #{ extended_values } FROM #{ @indices.join(', ') }"
101
+ sql = StringIO.new String.new(""), "w"
102
+ sql << "SELECT #{ extended_values } FROM #{ @indices.join(', ') }"
102
103
  sql << " WHERE #{ combined_wheres }" if wheres?
103
104
  sql << " #{group_prefix} #{escape_columns(@group_by)}" if !@group_by.nil?
104
105
  unless @order_within_group_by.nil?
@@ -109,7 +110,7 @@ class Riddle::Query::Select
109
110
  sql << " #{limit_clause}" unless @limit.nil? && @offset.nil?
110
111
  sql << " #{options_clause}" unless @options.empty?
111
112
 
112
- sql
113
+ sql.string
113
114
  end
114
115
 
115
116
  private
data/riddle.gemspec CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path('../lib', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'riddle'
6
- s.version = '2.1.0'
6
+ s.version = '2.2.0'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ['Pat Allan']
9
9
  s.email = ['pat@freelancing-gods.com']
@@ -14,9 +14,7 @@ Gem::Specification.new do |s|
14
14
 
15
15
  s.rubyforge_project = 'riddle'
16
16
 
17
- s.files = `git ls-files`.split("\n")
18
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
+ s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
18
  s.require_paths = ['lib']
21
19
 
22
20
  s.add_development_dependency 'rake', '>= 0.9.2'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riddle
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pat Allan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-04 00:00:00.000000000 Z
11
+ date: 2017-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -107,168 +107,6 @@ files:
107
107
  - lib/riddle/query/insert.rb
108
108
  - lib/riddle/query/select.rb
109
109
  - riddle.gemspec
110
- - spec/fixtures/.gitignore
111
- - spec/fixtures/data/0.9.9/anchor.bin
112
- - spec/fixtures/data/0.9.9/any.bin
113
- - spec/fixtures/data/0.9.9/boolean.bin
114
- - spec/fixtures/data/0.9.9/comment.bin
115
- - spec/fixtures/data/0.9.9/distinct.bin
116
- - spec/fixtures/data/0.9.9/field_weights.bin
117
- - spec/fixtures/data/0.9.9/filter.bin
118
- - spec/fixtures/data/0.9.9/filter_array.bin
119
- - spec/fixtures/data/0.9.9/filter_array_exclude.bin
120
- - spec/fixtures/data/0.9.9/filter_boolean.bin
121
- - spec/fixtures/data/0.9.9/filter_floats.bin
122
- - spec/fixtures/data/0.9.9/filter_floats_exclude.bin
123
- - spec/fixtures/data/0.9.9/filter_range.bin
124
- - spec/fixtures/data/0.9.9/filter_range_exclude.bin
125
- - spec/fixtures/data/0.9.9/group.bin
126
- - spec/fixtures/data/0.9.9/index.bin
127
- - spec/fixtures/data/0.9.9/index_weights.bin
128
- - spec/fixtures/data/0.9.9/keywords_with_hits.bin
129
- - spec/fixtures/data/0.9.9/keywords_without_hits.bin
130
- - spec/fixtures/data/0.9.9/overrides.bin
131
- - spec/fixtures/data/0.9.9/phrase.bin
132
- - spec/fixtures/data/0.9.9/rank_mode.bin
133
- - spec/fixtures/data/0.9.9/select.bin
134
- - spec/fixtures/data/0.9.9/simple.bin
135
- - spec/fixtures/data/0.9.9/sort.bin
136
- - spec/fixtures/data/0.9.9/update_simple.bin
137
- - spec/fixtures/data/0.9.9/weights.bin
138
- - spec/fixtures/data/1.10/anchor.bin
139
- - spec/fixtures/data/1.10/any.bin
140
- - spec/fixtures/data/1.10/boolean.bin
141
- - spec/fixtures/data/1.10/comment.bin
142
- - spec/fixtures/data/1.10/distinct.bin
143
- - spec/fixtures/data/1.10/field_weights.bin
144
- - spec/fixtures/data/1.10/filter.bin
145
- - spec/fixtures/data/1.10/filter_array.bin
146
- - spec/fixtures/data/1.10/filter_array_exclude.bin
147
- - spec/fixtures/data/1.10/filter_boolean.bin
148
- - spec/fixtures/data/1.10/filter_floats.bin
149
- - spec/fixtures/data/1.10/filter_floats_exclude.bin
150
- - spec/fixtures/data/1.10/filter_range.bin
151
- - spec/fixtures/data/1.10/filter_range_exclude.bin
152
- - spec/fixtures/data/1.10/group.bin
153
- - spec/fixtures/data/1.10/index.bin
154
- - spec/fixtures/data/1.10/index_weights.bin
155
- - spec/fixtures/data/1.10/keywords_with_hits.bin
156
- - spec/fixtures/data/1.10/keywords_without_hits.bin
157
- - spec/fixtures/data/1.10/overrides.bin
158
- - spec/fixtures/data/1.10/phrase.bin
159
- - spec/fixtures/data/1.10/rank_mode.bin
160
- - spec/fixtures/data/1.10/select.bin
161
- - spec/fixtures/data/1.10/simple.bin
162
- - spec/fixtures/data/1.10/sort.bin
163
- - spec/fixtures/data/1.10/update_simple.bin
164
- - spec/fixtures/data/1.10/weights.bin
165
- - spec/fixtures/data/2.0.1/anchor.bin
166
- - spec/fixtures/data/2.0.1/any.bin
167
- - spec/fixtures/data/2.0.1/boolean.bin
168
- - spec/fixtures/data/2.0.1/comment.bin
169
- - spec/fixtures/data/2.0.1/distinct.bin
170
- - spec/fixtures/data/2.0.1/field_weights.bin
171
- - spec/fixtures/data/2.0.1/filter.bin
172
- - spec/fixtures/data/2.0.1/filter_array.bin
173
- - spec/fixtures/data/2.0.1/filter_array_exclude.bin
174
- - spec/fixtures/data/2.0.1/filter_boolean.bin
175
- - spec/fixtures/data/2.0.1/filter_floats.bin
176
- - spec/fixtures/data/2.0.1/filter_floats_exclude.bin
177
- - spec/fixtures/data/2.0.1/filter_range.bin
178
- - spec/fixtures/data/2.0.1/filter_range_exclude.bin
179
- - spec/fixtures/data/2.0.1/group.bin
180
- - spec/fixtures/data/2.0.1/index.bin
181
- - spec/fixtures/data/2.0.1/index_weights.bin
182
- - spec/fixtures/data/2.0.1/keywords_with_hits.bin
183
- - spec/fixtures/data/2.0.1/keywords_without_hits.bin
184
- - spec/fixtures/data/2.0.1/overrides.bin
185
- - spec/fixtures/data/2.0.1/phrase.bin
186
- - spec/fixtures/data/2.0.1/rank_mode.bin
187
- - spec/fixtures/data/2.0.1/select.bin
188
- - spec/fixtures/data/2.0.1/simple.bin
189
- - spec/fixtures/data/2.0.1/sort.bin
190
- - spec/fixtures/data/2.0.1/update_simple.bin
191
- - spec/fixtures/data/2.0.1/weights.bin
192
- - spec/fixtures/data/2.1.0/anchor.bin
193
- - spec/fixtures/data/2.1.0/any.bin
194
- - spec/fixtures/data/2.1.0/boolean.bin
195
- - spec/fixtures/data/2.1.0/comment.bin
196
- - spec/fixtures/data/2.1.0/distinct.bin
197
- - spec/fixtures/data/2.1.0/field_weights.bin
198
- - spec/fixtures/data/2.1.0/filter.bin
199
- - spec/fixtures/data/2.1.0/filter_array.bin
200
- - spec/fixtures/data/2.1.0/filter_array_exclude.bin
201
- - spec/fixtures/data/2.1.0/filter_boolean.bin
202
- - spec/fixtures/data/2.1.0/filter_floats.bin
203
- - spec/fixtures/data/2.1.0/filter_floats_exclude.bin
204
- - spec/fixtures/data/2.1.0/filter_range.bin
205
- - spec/fixtures/data/2.1.0/filter_range_exclude.bin
206
- - spec/fixtures/data/2.1.0/group.bin
207
- - spec/fixtures/data/2.1.0/index.bin
208
- - spec/fixtures/data/2.1.0/index_weights.bin
209
- - spec/fixtures/data/2.1.0/keywords_with_hits.bin
210
- - spec/fixtures/data/2.1.0/keywords_without_hits.bin
211
- - spec/fixtures/data/2.1.0/overrides.bin
212
- - spec/fixtures/data/2.1.0/phrase.bin
213
- - spec/fixtures/data/2.1.0/rank_mode.bin
214
- - spec/fixtures/data/2.1.0/select.bin
215
- - spec/fixtures/data/2.1.0/simple.bin
216
- - spec/fixtures/data/2.1.0/sort.bin
217
- - spec/fixtures/data/2.1.0/update_simple.bin
218
- - spec/fixtures/data/2.1.0/weights.bin
219
- - spec/fixtures/data_generator.0.9.8.php
220
- - spec/fixtures/data_generator.0.9.9.php
221
- - spec/fixtures/data_generator.1.10.php
222
- - spec/fixtures/data_generator.2.0.1.php
223
- - spec/fixtures/data_generator.2.1.0.php
224
- - spec/fixtures/data_generator.php
225
- - spec/fixtures/sphinx/configuration.erb
226
- - spec/fixtures/sphinxapi.0.9.8.php
227
- - spec/fixtures/sphinxapi.0.9.9.php
228
- - spec/fixtures/sphinxapi.1.10.php
229
- - spec/fixtures/sphinxapi.2.0.1.php
230
- - spec/fixtures/sphinxapi.2.1.0.php
231
- - spec/fixtures/sql/conf.example.yml
232
- - spec/fixtures/sql/data.sql
233
- - spec/fixtures/sql/data.tsv
234
- - spec/fixtures/sql/structure.sql
235
- - spec/functional/connection_spec.rb
236
- - spec/functional/escaping_spec.rb
237
- - spec/functional/excerpt_spec.rb
238
- - spec/functional/keywords_spec.rb
239
- - spec/functional/persistance_spec.rb
240
- - spec/functional/search_spec.rb
241
- - spec/functional/status_spec.rb
242
- - spec/functional/update_spec.rb
243
- - spec/riddle/auto_version_spec.rb
244
- - spec/riddle/client_spec.rb
245
- - spec/riddle/configuration_spec.rb
246
- - spec/riddle/controller_spec.rb
247
- - spec/riddle/query/delete_spec.rb
248
- - spec/riddle/query/insert_spec.rb
249
- - spec/riddle/query/select_spec.rb
250
- - spec/riddle/query_spec.rb
251
- - spec/riddle_spec.rb
252
- - spec/spec_helper.rb
253
- - spec/support/binary_fixtures.rb
254
- - spec/support/sphinx.rb
255
- - spec/unit/client_spec.rb
256
- - spec/unit/configuration/common_spec.rb
257
- - spec/unit/configuration/distributed_index_spec.rb
258
- - spec/unit/configuration/index_spec.rb
259
- - spec/unit/configuration/indexer_spec.rb
260
- - spec/unit/configuration/realtime_index_spec.rb
261
- - spec/unit/configuration/searchd_spec.rb
262
- - spec/unit/configuration/source_spec.rb
263
- - spec/unit/configuration/sql_source_spec.rb
264
- - spec/unit/configuration/template_index_spec.rb
265
- - spec/unit/configuration/tsv_source_spec.rb
266
- - spec/unit/configuration/xml_source_spec.rb
267
- - spec/unit/configuration_spec.rb
268
- - spec/unit/filter_spec.rb
269
- - spec/unit/message_spec.rb
270
- - spec/unit/response_spec.rb
271
- - spec/unit/riddle_spec.rb
272
110
  homepage: http://pat.github.io/riddle/
273
111
  licenses:
274
112
  - MIT
@@ -289,171 +127,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
289
127
  version: '0'
290
128
  requirements: []
291
129
  rubyforge_project: riddle
292
- rubygems_version: 2.6.8
130
+ rubygems_version: 2.6.11
293
131
  signing_key:
294
132
  specification_version: 4
295
133
  summary: An API for Sphinx, written in and for Ruby.
296
- test_files:
297
- - spec/fixtures/.gitignore
298
- - spec/fixtures/data/0.9.9/anchor.bin
299
- - spec/fixtures/data/0.9.9/any.bin
300
- - spec/fixtures/data/0.9.9/boolean.bin
301
- - spec/fixtures/data/0.9.9/comment.bin
302
- - spec/fixtures/data/0.9.9/distinct.bin
303
- - spec/fixtures/data/0.9.9/field_weights.bin
304
- - spec/fixtures/data/0.9.9/filter.bin
305
- - spec/fixtures/data/0.9.9/filter_array.bin
306
- - spec/fixtures/data/0.9.9/filter_array_exclude.bin
307
- - spec/fixtures/data/0.9.9/filter_boolean.bin
308
- - spec/fixtures/data/0.9.9/filter_floats.bin
309
- - spec/fixtures/data/0.9.9/filter_floats_exclude.bin
310
- - spec/fixtures/data/0.9.9/filter_range.bin
311
- - spec/fixtures/data/0.9.9/filter_range_exclude.bin
312
- - spec/fixtures/data/0.9.9/group.bin
313
- - spec/fixtures/data/0.9.9/index.bin
314
- - spec/fixtures/data/0.9.9/index_weights.bin
315
- - spec/fixtures/data/0.9.9/keywords_with_hits.bin
316
- - spec/fixtures/data/0.9.9/keywords_without_hits.bin
317
- - spec/fixtures/data/0.9.9/overrides.bin
318
- - spec/fixtures/data/0.9.9/phrase.bin
319
- - spec/fixtures/data/0.9.9/rank_mode.bin
320
- - spec/fixtures/data/0.9.9/select.bin
321
- - spec/fixtures/data/0.9.9/simple.bin
322
- - spec/fixtures/data/0.9.9/sort.bin
323
- - spec/fixtures/data/0.9.9/update_simple.bin
324
- - spec/fixtures/data/0.9.9/weights.bin
325
- - spec/fixtures/data/1.10/anchor.bin
326
- - spec/fixtures/data/1.10/any.bin
327
- - spec/fixtures/data/1.10/boolean.bin
328
- - spec/fixtures/data/1.10/comment.bin
329
- - spec/fixtures/data/1.10/distinct.bin
330
- - spec/fixtures/data/1.10/field_weights.bin
331
- - spec/fixtures/data/1.10/filter.bin
332
- - spec/fixtures/data/1.10/filter_array.bin
333
- - spec/fixtures/data/1.10/filter_array_exclude.bin
334
- - spec/fixtures/data/1.10/filter_boolean.bin
335
- - spec/fixtures/data/1.10/filter_floats.bin
336
- - spec/fixtures/data/1.10/filter_floats_exclude.bin
337
- - spec/fixtures/data/1.10/filter_range.bin
338
- - spec/fixtures/data/1.10/filter_range_exclude.bin
339
- - spec/fixtures/data/1.10/group.bin
340
- - spec/fixtures/data/1.10/index.bin
341
- - spec/fixtures/data/1.10/index_weights.bin
342
- - spec/fixtures/data/1.10/keywords_with_hits.bin
343
- - spec/fixtures/data/1.10/keywords_without_hits.bin
344
- - spec/fixtures/data/1.10/overrides.bin
345
- - spec/fixtures/data/1.10/phrase.bin
346
- - spec/fixtures/data/1.10/rank_mode.bin
347
- - spec/fixtures/data/1.10/select.bin
348
- - spec/fixtures/data/1.10/simple.bin
349
- - spec/fixtures/data/1.10/sort.bin
350
- - spec/fixtures/data/1.10/update_simple.bin
351
- - spec/fixtures/data/1.10/weights.bin
352
- - spec/fixtures/data/2.0.1/anchor.bin
353
- - spec/fixtures/data/2.0.1/any.bin
354
- - spec/fixtures/data/2.0.1/boolean.bin
355
- - spec/fixtures/data/2.0.1/comment.bin
356
- - spec/fixtures/data/2.0.1/distinct.bin
357
- - spec/fixtures/data/2.0.1/field_weights.bin
358
- - spec/fixtures/data/2.0.1/filter.bin
359
- - spec/fixtures/data/2.0.1/filter_array.bin
360
- - spec/fixtures/data/2.0.1/filter_array_exclude.bin
361
- - spec/fixtures/data/2.0.1/filter_boolean.bin
362
- - spec/fixtures/data/2.0.1/filter_floats.bin
363
- - spec/fixtures/data/2.0.1/filter_floats_exclude.bin
364
- - spec/fixtures/data/2.0.1/filter_range.bin
365
- - spec/fixtures/data/2.0.1/filter_range_exclude.bin
366
- - spec/fixtures/data/2.0.1/group.bin
367
- - spec/fixtures/data/2.0.1/index.bin
368
- - spec/fixtures/data/2.0.1/index_weights.bin
369
- - spec/fixtures/data/2.0.1/keywords_with_hits.bin
370
- - spec/fixtures/data/2.0.1/keywords_without_hits.bin
371
- - spec/fixtures/data/2.0.1/overrides.bin
372
- - spec/fixtures/data/2.0.1/phrase.bin
373
- - spec/fixtures/data/2.0.1/rank_mode.bin
374
- - spec/fixtures/data/2.0.1/select.bin
375
- - spec/fixtures/data/2.0.1/simple.bin
376
- - spec/fixtures/data/2.0.1/sort.bin
377
- - spec/fixtures/data/2.0.1/update_simple.bin
378
- - spec/fixtures/data/2.0.1/weights.bin
379
- - spec/fixtures/data/2.1.0/anchor.bin
380
- - spec/fixtures/data/2.1.0/any.bin
381
- - spec/fixtures/data/2.1.0/boolean.bin
382
- - spec/fixtures/data/2.1.0/comment.bin
383
- - spec/fixtures/data/2.1.0/distinct.bin
384
- - spec/fixtures/data/2.1.0/field_weights.bin
385
- - spec/fixtures/data/2.1.0/filter.bin
386
- - spec/fixtures/data/2.1.0/filter_array.bin
387
- - spec/fixtures/data/2.1.0/filter_array_exclude.bin
388
- - spec/fixtures/data/2.1.0/filter_boolean.bin
389
- - spec/fixtures/data/2.1.0/filter_floats.bin
390
- - spec/fixtures/data/2.1.0/filter_floats_exclude.bin
391
- - spec/fixtures/data/2.1.0/filter_range.bin
392
- - spec/fixtures/data/2.1.0/filter_range_exclude.bin
393
- - spec/fixtures/data/2.1.0/group.bin
394
- - spec/fixtures/data/2.1.0/index.bin
395
- - spec/fixtures/data/2.1.0/index_weights.bin
396
- - spec/fixtures/data/2.1.0/keywords_with_hits.bin
397
- - spec/fixtures/data/2.1.0/keywords_without_hits.bin
398
- - spec/fixtures/data/2.1.0/overrides.bin
399
- - spec/fixtures/data/2.1.0/phrase.bin
400
- - spec/fixtures/data/2.1.0/rank_mode.bin
401
- - spec/fixtures/data/2.1.0/select.bin
402
- - spec/fixtures/data/2.1.0/simple.bin
403
- - spec/fixtures/data/2.1.0/sort.bin
404
- - spec/fixtures/data/2.1.0/update_simple.bin
405
- - spec/fixtures/data/2.1.0/weights.bin
406
- - spec/fixtures/data_generator.0.9.8.php
407
- - spec/fixtures/data_generator.0.9.9.php
408
- - spec/fixtures/data_generator.1.10.php
409
- - spec/fixtures/data_generator.2.0.1.php
410
- - spec/fixtures/data_generator.2.1.0.php
411
- - spec/fixtures/data_generator.php
412
- - spec/fixtures/sphinx/configuration.erb
413
- - spec/fixtures/sphinxapi.0.9.8.php
414
- - spec/fixtures/sphinxapi.0.9.9.php
415
- - spec/fixtures/sphinxapi.1.10.php
416
- - spec/fixtures/sphinxapi.2.0.1.php
417
- - spec/fixtures/sphinxapi.2.1.0.php
418
- - spec/fixtures/sql/conf.example.yml
419
- - spec/fixtures/sql/data.sql
420
- - spec/fixtures/sql/data.tsv
421
- - spec/fixtures/sql/structure.sql
422
- - spec/functional/connection_spec.rb
423
- - spec/functional/escaping_spec.rb
424
- - spec/functional/excerpt_spec.rb
425
- - spec/functional/keywords_spec.rb
426
- - spec/functional/persistance_spec.rb
427
- - spec/functional/search_spec.rb
428
- - spec/functional/status_spec.rb
429
- - spec/functional/update_spec.rb
430
- - spec/riddle/auto_version_spec.rb
431
- - spec/riddle/client_spec.rb
432
- - spec/riddle/configuration_spec.rb
433
- - spec/riddle/controller_spec.rb
434
- - spec/riddle/query/delete_spec.rb
435
- - spec/riddle/query/insert_spec.rb
436
- - spec/riddle/query/select_spec.rb
437
- - spec/riddle/query_spec.rb
438
- - spec/riddle_spec.rb
439
- - spec/spec_helper.rb
440
- - spec/support/binary_fixtures.rb
441
- - spec/support/sphinx.rb
442
- - spec/unit/client_spec.rb
443
- - spec/unit/configuration/common_spec.rb
444
- - spec/unit/configuration/distributed_index_spec.rb
445
- - spec/unit/configuration/index_spec.rb
446
- - spec/unit/configuration/indexer_spec.rb
447
- - spec/unit/configuration/realtime_index_spec.rb
448
- - spec/unit/configuration/searchd_spec.rb
449
- - spec/unit/configuration/source_spec.rb
450
- - spec/unit/configuration/sql_source_spec.rb
451
- - spec/unit/configuration/template_index_spec.rb
452
- - spec/unit/configuration/tsv_source_spec.rb
453
- - spec/unit/configuration/xml_source_spec.rb
454
- - spec/unit/configuration_spec.rb
455
- - spec/unit/filter_spec.rb
456
- - spec/unit/message_spec.rb
457
- - spec/unit/response_spec.rb
458
- - spec/unit/riddle_spec.rb
459
- has_rdoc:
134
+ test_files: []