riddle 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34d2ffd1aafa3678203285a425bb6bd893ac8b8e218f6affec4dd0a89136cebe
4
- data.tar.gz: 7690d50b67c6d2d7d9b46168c52cfc588f7daa7eb2cafdcacd01f667e8c8e39f
3
+ metadata.gz: 973588631e152d0f6cf14fb46dedc1f8e59d7b0e4851dd827ecdac1970ddc4a5
4
+ data.tar.gz: d97f69db627d09822b65346e5aa0a28ab1d9a3fc95a5f4d721fbc1b7f4aa83b8
5
5
  SHA512:
6
- metadata.gz: 6503e33c3bccdf966e76b2e6da2fabb53b8a4dca7b74ebe52315f303eefaf35fd700fb0dba58f0f675c3fdb90ef4d8d6149c57239d80787cc6cf4ff194407f12
7
- data.tar.gz: 45c61b1009289b5d3b4343e718dc3804030dadfd87e9f877fce56503a46397e419c6c0519c1346f9f5961acdc18709bd6b1f8755137128bb9fd2eb9e12974fff
6
+ metadata.gz: df8d12baf0b15ffc325174f873f30a2dec7ff3edd1f6bdb40bd166e447093068cecc10bfe484d223d37e8f87ec629635bee7a4c497d3b81e0ba7ba1a46473439
7
+ data.tar.gz: 8332b2356d384ec0400c7cc82f5e7316a94e4b54a966ca704387d50e4ed0e95aac7611e254cca3105cca0f68f2762df60bef66d24730dca261705641c8960248
@@ -12,7 +12,8 @@ env:
12
12
  matrix:
13
13
  - SPHINX_VERSION=2.0.10
14
14
  - SPHINX_VERSION=2.1.9
15
- - SPHINX_VERSION=2.2.6
15
+ - SPHINX_VERSION=2.2.11
16
+ - SPHINX_VERSION=3.0.2
16
17
  before_script:
17
18
  - killall searchd; echo ''
18
19
  - "./bin/loadsphinx $SPHINX_VERSION"
data/Gemfile CHANGED
@@ -4,5 +4,5 @@ source 'http://rubygems.org'
4
4
 
5
5
  gemspec
6
6
 
7
- gem 'mysql2', '0.3.20', :platform => :ruby
7
+ gem 'mysql2', '0.5.0', :platform => :ruby
8
8
  gem 'jdbc-mysql', '5.1.35', :platform => :jruby
data/HISTORY CHANGED
@@ -1,3 +1,8 @@
1
+ 2.3.1 - March 25th 2018
2
+ - Handle parsing of invalid configuration files without endlessly looping.
3
+ - Test against mysql2 0.5.
4
+ - Test against Sphinx 3.0.
5
+
1
6
  2.3.0 - January 14th 2018
2
7
  - Add controller method for merging indices.
3
8
  - Add support for sockets in searchd configuration.
@@ -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.3.0'
17
+ gem 'riddle', '~> 2.3.1'
18
18
 
19
19
  ## Usage
20
20
 
@@ -133,6 +133,8 @@ class Riddle::Configuration::Parser
133
133
  class InnerParser
134
134
  SETTING_PATTERN = /^(\w+)\s*=\s*(.*)$/
135
135
 
136
+ EndOfFileError = Class.new StandardError
137
+
136
138
  def initialize(input)
137
139
  @stream = StringIO.new(input.gsub("\\\n", ''))
138
140
  @sections = {}
@@ -143,6 +145,8 @@ class Riddle::Configuration::Parser
143
145
  @sections[label] = next_settings
144
146
  end
145
147
 
148
+ @sections
149
+ rescue EndOfFileError
146
150
  @sections
147
151
  end
148
152
 
@@ -150,7 +154,7 @@ class Riddle::Configuration::Parser
150
154
 
151
155
  def next_line
152
156
  line = @stream.gets
153
- return line if line.nil?
157
+ raise EndOfFileError if line.nil?
154
158
 
155
159
  line = line.strip
156
160
  (line.empty? || line[/^#/]) ? next_line : line
@@ -5,7 +5,7 @@ $:.push File.expand_path('../lib', __FILE__)
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = 'riddle'
8
- s.version = '2.3.0'
8
+ s.version = '2.3.1'
9
9
  s.platform = Gem::Platform::RUBY
10
10
  s.authors = ['Pat Allan']
11
11
  s.email = ['pat@freelancing-gods.com']
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.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pat Allan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-14 00:00:00.000000000 Z
11
+ date: 2018-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  version: '0'
129
129
  requirements: []
130
130
  rubyforge_project: riddle
131
- rubygems_version: 2.7.3
131
+ rubygems_version: 2.7.6
132
132
  signing_key:
133
133
  specification_version: 4
134
134
  summary: An API for Sphinx, written in and for Ruby.