Skip to content

Commit

Permalink
Update request library to v1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrims0n authored and captn3m0 committed Nov 28, 2018
1 parent 7f67aae commit 42babae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ php:
- 7.1
- 7.2
install: composer install
before_script:
before_script:
- cp phpunit.xml.dist phpunit.xml
# These two are required in the build step for non-composer-tests
- mkdir -p libs
- cd libs && wget https://github.com/rmccue/Requests/archive/v1.6.1.zip -O requests.zip && unzip requests.zip && rm requests.zip && cd ..
- cd libs && wget https://github.com/rmccue/Requests/archive/v1.7.0.zip -O requests.zip && unzip requests.zip && rm requests.zip && cd ..
script:
- ./vendor/bin/phpunit

Expand Down
4 changes: 2 additions & 2 deletions Razorpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
// Include Requests only if not already defined
if (class_exists('Requests') === false)
{
require_once __DIR__.'/libs/Requests-1.6.1/library/Requests.php';
require_once __DIR__.'/libs/Requests-1.7.0/library/Requests.php';
}

try
{
Requests::register_autoloader();
Requests::register_autoloader();

if (version_compare(Requests::VERSION, '1.6.0') === -1)
{
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"license": "MIT",
"require": {
"php": ">=5.4.0",
"rmccue/requests": "v1.6.1",
"rmccue/requests": "v1.7.0",
"ext-json": "*"
},
"require-dev": {
Expand Down

0 comments on commit 42babae

Please # to comment.