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 +4 -4
- data/.travis.yml +2 -1
- data/Gemfile +1 -1
- data/HISTORY +5 -0
- data/README.markdown +1 -1
- data/lib/riddle/configuration/parser.rb +5 -1
- data/riddle.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 973588631e152d0f6cf14fb46dedc1f8e59d7b0e4851dd827ecdac1970ddc4a5
|
4
|
+
data.tar.gz: d97f69db627d09822b65346e5aa0a28ab1d9a3fc95a5f4d721fbc1b7f4aa83b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df8d12baf0b15ffc325174f873f30a2dec7ff3edd1f6bdb40bd166e447093068cecc10bfe484d223d37e8f87ec629635bee7a4c497d3b81e0ba7ba1a46473439
|
7
|
+
data.tar.gz: 8332b2356d384ec0400c7cc82f5e7316a94e4b54a966ca704387d50e4ed0e95aac7611e254cca3105cca0f68f2762df60bef66d24730dca261705641c8960248
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
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.
|
data/README.markdown
CHANGED
@@ -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
|
-
|
157
|
+
raise EndOfFileError if line.nil?
|
154
158
|
|
155
159
|
line = line.strip
|
156
160
|
(line.empty? || line[/^#/]) ? next_line : line
|
data/riddle.gemspec
CHANGED
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.
|
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-
|
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.
|
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.
|