Skip to content

Commit

Permalink
Merge pull request #15 from VirgilSecurity/develop
Browse files Browse the repository at this point in the history
Move from Passw0rd SDK to PureKit, v2.0.0
  • Loading branch information
PetrenkoAnton authored Mar 7, 2019
2 parents feffd1b + 8ef2158 commit d194e6c
Show file tree
Hide file tree
Showing 49 changed files with 275 additions and 260 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.idea
for-dev
vendor
.env
.env
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ install:
- travis_retry sudo apt-get install -y -qq php${PHP_VERSION}-dev
- travis_retry sudo apt-get install -y -qq php${PHP_VERSION}-mbstring
- travis_retry sudo apt-get install -y -qq php${PHP_VERSION}-curl
- travis_retry sudo apt-get install -y -qq php${PHP_VERSION}-xml
- echo "Install PHPUnit version ${PHPUNIT_VERSION} ..."
- travis_retry wget https://phar.phpunit.de/phpunit-${PHPUNIT_VERSION}.phar
- chmod +x phpunit-${PHPUNIT_VERSION}.phar
Expand Down
4 changes: 2 additions & 2 deletions passw0rd/Core/PHE.php → PureKit/Core/PHE.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
* Lead Maintainer: Virgil Security Inc. <support@virgilsecurity.com>
*/

namespace passw0rd\Core;
namespace Virgil\PureKit\Core;

/**
* Class PHE
* @package passw0rd\Core
* @package Virgil\PureKit\Core
*/
class PHE
{
Expand Down
2 changes: 1 addition & 1 deletion passw0rd/Core/PHECipher.php → PureKit/Core/PHECipher.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* Lead Maintainer: Virgil Security Inc. <support@virgilsecurity.com>
*/

namespace passw0rd\Core;
namespace Virgil\PureKit\Core;

/**
* Class PHECipher
Expand Down
2 changes: 1 addition & 1 deletion passw0rd/Core/PHEClient.php → PureKit/Core/PHEClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* Lead Maintainer: Virgil Security Inc. <support@virgilsecurity.com>
*/

namespace passw0rd\Core;
namespace Virgil\PureKit\Core;

/**
* Class PHEClient
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@
* Lead Maintainer: Virgil Security Inc. <support@virgilsecurity.com>
*/

namespace passw0rd\Core\Protobuf;
namespace Virgil\PureKit\Core\Protobuf;

use Passw0rd\DatabaseRecord as ProtobufDatabaseRecord;
use passw0rd\Exeptions\ProtocolContextException;
use Purekit\DatabaseRecord as ProtobufDatabaseRecord;
use Virgil\PureKit\Exceptions\ProtocolContextException;

/**
* Class DatabaseRecord
* @package passw0rd\Core\Protobuf
* @package Virgil\PureKit\Core\Protobuf
*/
class DatabaseRecord
{
Expand Down Expand Up @@ -80,6 +80,7 @@ public static function getValue(string $value, string $type): string
* @param string $value
* @param int $version
* @return string
* @throws \Exception
*/
public static function setup(string $value, int $version): string
{
Expand Down
37 changes: 37 additions & 0 deletions PureKit/Core/Protobuf/build/GPBMetadata/Proto/Purekit.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
syntax = "proto3";
package passw0rd;
package purekit;

message DatabaseRecord {
uint32 version = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
* Lead Maintainer: Virgil Security Inc. <support@virgilsecurity.com>
*/

namespace passw0rd\Credentials;
namespace Virgil\PureKit\Credentials;

/**
* Interface Credentials
* @package passw0rd\Credentials
* @package Virgil\PureKit\Credentials
*/
interface Credentials
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@
* Lead Maintainer: Virgil Security Inc. <support@virgilsecurity.com>
*/

namespace passw0rd\Credentials;
namespace Virgil\PureKit\Credentials;

use passw0rd\Exeptions\InputCredentialsCheckerException;
use Virgil\PureKit\Exceptions\InputCredentialsCheckerException;

/**
* Class InputCredentialsChecker
* @package passw0rd\credentials
* @package Virgil\PureKit\credentials
*/
class InputCredentialsChecker implements Credentials
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@
* Lead Maintainer: Virgil Security Inc. <support@virgilsecurity.com>
*/

namespace passw0rd\Credentials;
namespace Virgil\PureKit\Credentials;

use passw0rd\Exeptions\UpdateTokenException;
use Virgil\PureKit\Exceptions\UpdateTokenException;

/**
* Class UpdateToken
* @package passw0rd\Credentials
* @package Virgil\PureKit\Credentials
*/
class UpdateToken
{
Expand All @@ -57,7 +57,7 @@ class UpdateToken
*/
public function __construct(string $updateToken)
{
if($updateToken == "")
if(""==$updateToken)
throw new UpdateTokenException("Empty update token value");
$this->validateAndSet($updateToken);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
* Lead Maintainer: Virgil Security Inc. <support@virgilsecurity.com>
*/

namespace passw0rd\Exeptions;
namespace Virgil\PureKit\Exceptions;

/**
* Class InputCredentialsCheckerException
* @package passw0rd\Exeptions
* @package Virgil\PureKit\Exeptions
*/
class InputCredentialsCheckerException extends \Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
* Lead Maintainer: Virgil Security Inc. <support@virgilsecurity.com>
*/

namespace passw0rd\Exeptions;
namespace Virgil\PureKit\Exceptions;

/**
* Class ProtocolContextException
* @package passw0rd\Exeptions
* @package Virgil\PureKit\Exeptions
*/
class ProtocolContextException extends \Exception
{
Expand Down
Loading

0 comments on commit d194e6c

Please sign in to comment.