Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
solarium
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
solarium
Commits
c814ab80
Commit
c814ab80
authored
Feb 22, 2015
by
Bas de Nooijer
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #312 from basdenooijer/develop
Merging pull requests into develop
parents
21b919dd
4ea1f324
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
50 additions
and
6 deletions
+50
-6
.travis.yml
.travis.yml
+1
-1
CHANGELOG.md
CHANGELOG.md
+38
-0
README.md
README.md
+0
-1
composer.json
composer.json
+0
-3
library/Solarium/Core/Client/Adapter/Curl.php
library/Solarium/Core/Client/Adapter/Curl.php
+1
-1
tests/Solarium/Tests/QueryType/Extract/RequestBuilderTest.php
...s/Solarium/Tests/QueryType/Extract/RequestBuilderTest.php
+10
-0
No files found.
.travis.yml
View file @
c814ab80
...
@@ -19,7 +19,7 @@ before_script:
...
@@ -19,7 +19,7 @@ before_script:
-
bash -c "if [ $TRAVIS_PHP_VERSION != 'hhvm' ] && [ $TRAVIS_PHP_VERSION != 'hhvm-nightly' ] && [ $TRAVIS_PHP_VERSION != '5.3' ]; then printf '\n\n\n\n' | pecl install pecl_http-1.7.6; fi"
-
bash -c "if [ $TRAVIS_PHP_VERSION != 'hhvm' ] && [ $TRAVIS_PHP_VERSION != 'hhvm-nightly' ] && [ $TRAVIS_PHP_VERSION != '5.3' ]; then printf '\n\n\n\n' | pecl install pecl_http-1.7.6; fi"
-
composer require --prefer-source --dev symfony/event-dispatcher:${SYMFONY_VERSION}
-
composer require --prefer-source --dev symfony/event-dispatcher:${SYMFONY_VERSION}
script
:
composer test
script
:
vendor/bin/phpunit -c phpunit.xml.travis -v
after_script
:
vendor/bin/coveralls -v
after_script
:
vendor/bin/coveralls -v
...
...
CHANGELOG.md
0 → 100644
View file @
c814ab80
# CHANGELOG
## 3.3.0 - 2014-11-16
-
improvement: fixes in build.xml (use phpunit in vendor directory)
-
improvement: added support for nested debug-info in the debug query
-
new feature: added support for data fixtures
-
improvement: filter control characters in update documents by default
-
bugfix: pivot facet does not accept extra parameters
-
improvement: Facet range now supports the mincount parameter
-
improvement: Spellcheck response parser can now handle multiple suggestions
-
bugfix: Pivot facet uses the wrong key in result parsing
-
bugfix: Wrong handling of boolean values in update documents
-
improvement: Removed constructor from interface Solarium/Core/ConfigurableInterface.php
-
improvement: Prefetch iterator now resets if prefetch or query settings are changed
-
improvement: Added matchoffset setting to MLT querytype
-
bugfix: Highlight query should only set hl.fl param if there are any fields set
-
bugfix: Curl crash when open_basedir is set
-
improvement: PreFetchIterator plugin now supports setting an endpoint
-
improvement: BufferedAdd plugin now supports an endpoint supplied as a config
-
improvement: Updated curl adapter file handling to prevent warnings in php >=5.5.0
-
improvement: Added remote file streaming support to extract request handler
-
improvement: Query result now also supports maxscore
-
new feature: Added MinimumScoreFilter plugin, also for grouping
-
improvement: MoreLikeThis now allows for individual boosts on query fields
-
bugfix: Fix suggester parser with duplicates
-
improvement: Select query component MoreLikeThis now supports boosting multiple fields
-
improvement: added PHP 5.5, 5.6 and HHVM to Travis config
-
improvement: Solarium now uses Coveralls for test coverage reports
-
improvement: if a config object does not supply a toArray method, the object is converted by Solarium
-
improvement: Highlighting now supports hl.preserveMulti param
-
improvement: Stats component now supports exludes
-
improvement: Range query helper now supports wildcards
-
improvement: Support HTTPS scheme for endpoints
-
improvement: CURL and PECL_HTTP adapters now set connection timeout and dns cache timeout
-
improvement: Extract query now supports ExtractOnly
-
improvement: The event dispatcher can now be injected
-
improvement: PSR-0 and PSR-2 code fixes
README.md
View file @
c814ab80
...
@@ -49,4 +49,3 @@ http://wiki.solarium-project.org/index.php/V3:Installation#Getting_Solarium
...
@@ -49,4 +49,3 @@ http://wiki.solarium-project.org/index.php/V3:Installation#Getting_Solarium
*
Develop branch
[

](https://coveralls.io/r/solariumphp/solarium?branch=develop)
*
Develop branch
[

](https://coveralls.io/r/solariumphp/solarium?branch=develop)
*
Master branch
[

](http://travis-ci.org/solariumphp/solarium)
*
Master branch
[

](http://travis-ci.org/solariumphp/solarium)
*
Master branch
[

](https://coveralls.io/r/solariumphp/solarium?branch=master)
*
Master branch
[

](https://coveralls.io/r/solariumphp/solarium?branch=master)
composer.json
View file @
c814ab80
...
@@ -26,9 +26,6 @@
...
@@ -26,9 +26,6 @@
"dev-develop"
:
"3.3.x-dev"
"dev-develop"
:
"3.3.x-dev"
}
}
},
},
"scripts"
:
{
"test"
:
"phpunit -c phpunit.xml.travis -v"
},
"autoload"
:
{
"autoload"
:
{
"psr-0"
:
{
"Solarium\\"
:
"library/"
}
"psr-0"
:
{
"Solarium\\"
:
"library/"
}
}
}
...
...
library/Solarium/Core/Client/Adapter/Curl.php
View file @
c814ab80
...
@@ -184,7 +184,7 @@ class Curl extends Configurable implements AdapterInterface
...
@@ -184,7 +184,7 @@ class Curl extends Configurable implements AdapterInterface
if
(
$request
->
getFileUpload
())
{
if
(
$request
->
getFileUpload
())
{
if
(
version_compare
(
PHP_VERSION
,
'5.5.0'
)
>=
0
)
{
if
(
version_compare
(
PHP_VERSION
,
'5.5.0'
)
>=
0
)
{
$curlFile
=
curl_file_create
(
$request
->
getFileUpload
());
$curlFile
=
curl_file_create
(
$request
->
getFileUpload
());
curl_setopt
(
$handler
,
CURLOPT_POSTFIELDS
,
array
(
'content'
,
$curlFile
));
curl_setopt
(
$handler
,
CURLOPT_POSTFIELDS
,
array
(
'content'
=>
$curlFile
));
}
else
{
}
else
{
curl_setopt
(
$handler
,
CURLOPT_POSTFIELDS
,
array
(
'content'
=>
'@'
.
$request
->
getFileUpload
()));
curl_setopt
(
$handler
,
CURLOPT_POSTFIELDS
,
array
(
'content'
=>
'@'
.
$request
->
getFileUpload
()));
}
}
...
...
tests/Solarium/Tests/QueryType/Extract/RequestBuilderTest.php
View file @
c814ab80
...
@@ -131,4 +131,14 @@ class RequestBuilderTest extends \PHPUnit_Framework_TestCase
...
@@ -131,4 +131,14 @@ class RequestBuilderTest extends \PHPUnit_Framework_TestCase
$this
->
setExpectedException
(
'Solarium\Exception\RuntimeException'
);
$this
->
setExpectedException
(
'Solarium\Exception\RuntimeException'
);
$this
->
builder
->
build
(
$this
->
query
);
$this
->
builder
->
build
(
$this
->
query
);
}
}
public
function
testContentTypeHeader
()
{
$headers
=
array
(
'Content-Type: multipart/form-data'
);
$request
=
$this
->
builder
->
build
(
$this
->
query
);
$this
->
assertEquals
(
$headers
,
$request
->
getHeaders
());
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment