riddle 2.3.1 → 2.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +13 -5
- data/HISTORY +4 -0
- data/README.markdown +1 -1
- data/bin/loadsphinx +29 -2
- data/lib/riddle/configuration/index.rb +1 -2
- data/riddle.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a860b9ec8b23910ccc19ccb24c1e6b5e23e0d5a23522b51399a915859dbe5f5b
|
4
|
+
data.tar.gz: 4c3f3b27ff3246cfbbf9dcfc75af8e25370ffdc15c6543eda64b2e3b45ea2c76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab43f391a4086352d1e84a3c440d56cf51937f2726139da12bf7119ed783554c0e9da79762724e1d256eb969f6102ed9bb84f52385c3ecd3ace7ce20a11e5504
|
7
|
+
data.tar.gz: 00dfaef9019672f5f26ec1efa985c4c257048b7e6a5cb9c59e246bdddca1a35ed30d11dca21ac031c74a9c84f1c98ecf8710a9ed484d823fca97e41aba1db082
|
data/.travis.yml
CHANGED
@@ -10,14 +10,22 @@ env:
|
|
10
10
|
- SPHINX_BIN=ext/sphinx/bin/
|
11
11
|
- secure: aP3wCZnnqim/yBWbO8+N2DAJIDVuqewUayK3nBphR/Jt1POIMbqCIuHwk/SG/JfMc6pJIlH0QOX8wI3fF3y5GO6aIrN8xKAX0DoDm+Gkvk/YEk3cK/2fJUwvocR89M99EoV8ctLPaR03B3dm3h2Dh2oe8NQRBfcrL3WtiHHq3d0=
|
12
12
|
matrix:
|
13
|
-
- SPHINX_VERSION=2.0.10
|
14
|
-
- SPHINX_VERSION=2.1.9
|
15
|
-
- SPHINX_VERSION=2.2.11
|
16
|
-
- SPHINX_VERSION=3.0.2
|
13
|
+
- SPHINX_VERSION=2.0.10 SPHINX_ENGINE=sphinx
|
14
|
+
- SPHINX_VERSION=2.1.9 SPHINX_ENGINE=sphinx
|
15
|
+
- SPHINX_VERSION=2.2.11 SPHINX_ENGINE=sphinx
|
16
|
+
- SPHINX_VERSION=3.0.2 SPHINX_ENGINE=sphinx
|
17
|
+
- SPHINX_VERSION=2.6.3 SPHINX_ENGINE=manticore
|
17
18
|
before_script:
|
18
19
|
- killall searchd; echo ''
|
19
|
-
- "./bin/loadsphinx $SPHINX_VERSION"
|
20
|
+
- "./bin/loadsphinx $SPHINX_VERSION $SPHINX_ENGINE"
|
21
|
+
addons:
|
22
|
+
apt:
|
23
|
+
packages:
|
24
|
+
- cmake
|
25
|
+
- bison
|
26
|
+
- flex
|
20
27
|
before_install:
|
28
|
+
- pip install --upgrade --user awscli
|
21
29
|
- gem update --system
|
22
30
|
after_script:
|
23
31
|
- killall searchd; echo ''
|
data/HISTORY
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
2.3.2 - September 23rd 2018
|
2
|
+
- Fix attempt to modify a frozen string when generating configuration.
|
3
|
+
- Test against Manticore 2.6.3.
|
4
|
+
|
1
5
|
2.3.1 - March 25th 2018
|
2
6
|
- Handle parsing of invalid configuration files without endlessly looping.
|
3
7
|
- Test against mysql2 0.5.
|
data/README.markdown
CHANGED
data/bin/loadsphinx
CHANGED
@@ -1,14 +1,28 @@
|
|
1
1
|
#!/usr/bin/env bash
|
2
2
|
|
3
3
|
version=$1
|
4
|
-
|
5
|
-
|
4
|
+
engine=$2
|
5
|
+
name="$engine-$version"
|
6
6
|
bucket="thinking-sphinx"
|
7
7
|
directory="ext/sphinx"
|
8
8
|
prefix="`pwd`/$directory"
|
9
9
|
file="ext/$name.tar.gz"
|
10
10
|
|
11
|
+
if [ "$engine" == "sphinx" ]; then
|
12
|
+
url="http://sphinxsearch.com/files/$name-release.tar.gz"
|
13
|
+
else
|
14
|
+
url="https://github.com/manticoresoftware/manticore.git"
|
15
|
+
fi
|
16
|
+
|
11
17
|
download_and_compile_source () {
|
18
|
+
if [ "$engine" == "sphinx" ]; then
|
19
|
+
download_and_compile_sphinx
|
20
|
+
else
|
21
|
+
download_and_compile_manticore
|
22
|
+
fi
|
23
|
+
}
|
24
|
+
|
25
|
+
download_and_compile_sphinx () {
|
12
26
|
curl -O $url
|
13
27
|
tar -zxf $name-release.tar.gz
|
14
28
|
cd $name-release
|
@@ -19,6 +33,19 @@ download_and_compile_source () {
|
|
19
33
|
rm -rf $name-release.tar.gz $name-release
|
20
34
|
}
|
21
35
|
|
36
|
+
download_and_compile_manticore () {
|
37
|
+
git clone $url $engine
|
38
|
+
cd $engine
|
39
|
+
git checkout $version
|
40
|
+
mkdir build
|
41
|
+
cd build
|
42
|
+
cmake -D WITH_MYSQL=TRUE -D WITH_PGSQL=TRUE -D DISABLE_TESTING=TRUE -D CMAKE_INSTALL_PREFIX=$prefix ..
|
43
|
+
make -j4
|
44
|
+
make install
|
45
|
+
cd ../..
|
46
|
+
rm -rf $engine
|
47
|
+
}
|
48
|
+
|
22
49
|
load_cache () {
|
23
50
|
mkdir ext
|
24
51
|
curl -o $file http://$bucket.s3.amazonaws.com/bincaches/$name.tar.gz
|
@@ -25,8 +25,7 @@ module Riddle
|
|
25
25
|
def render
|
26
26
|
raise ConfigurationError, "#{@name} #{@sources.inspect} #{@path} #{@parent}" unless valid?
|
27
27
|
|
28
|
-
inherited_name = "#{name}"
|
29
|
-
inherited_name << " : #{parent}" if parent
|
28
|
+
inherited_name = parent ? "#{name} : #{parent}" : "#{name}"
|
30
29
|
(
|
31
30
|
@sources.collect { |s| s.render } +
|
32
31
|
["index #{inherited_name}", "{"] +
|
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.2
|
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-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|