Skip to content

Commit

Permalink
Merge pull request #4 from bileto/bileto-brand
Browse files Browse the repository at this point in the history
Re-brand CriticalSections to Bileto package
jspetrak authored Sep 17, 2020
2 parents 016148a + ac918f5 commit c8ec6b1
Showing 20 changed files with 45 additions and 39 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -5,8 +5,9 @@ cache:
- $HOME/.composer/cache

php:
- 7.0
- 7.1
- 7.2
- 7.3

services:
- redis-server
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# CriticalSection [![Build Status](https://travis-ci.org/stekycz/CriticalSection.svg?branch=master)](https://travis-ci.org/stekycz/CriticalSection)
# CriticalSection [![Build Status](https://travis-ci.org/bileto/CriticalSection.svg?branch=master)](https://travis-ci.org/bileto/CriticalSection)

## Description

Lightweight class supporting critical section locking.

It requires **PHP >= 7.0.0**.
It requires **PHP >= 7.1**.
17 changes: 11 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
{
"name": "stekycz/critical-section",
"name": "bileto/critical-section",
"type": "library",
"description": "Lightweight class supporting critical section locking",
"keywords": ["parallel", "critical-section", "locks"],
"license": "MIT",
"authors": [
{
"name": "Josef Petrák",
"email": "me@jspetrak.name",
"role": "Developer"
},
{
"name": "Martin Štekl",
"email": "martin.stekl@gmail.com",
"role": "Developer"
}
],
"support": {
"email": "martin.stekl@gmail.com",
"issues": "https://github.com/stekycz/CriticalSection/issues",
"source": "https://github.com/stekycz/CriticalSection"
"email": "development@bileto.com",
"issues": "https://github.com/bileto/CriticalSection/issues",
"source": "https://github.com/bileto/CriticalSection"
},
"require": {
"php": ">=7.0.0"
"php": ">=7.1"
},
"suggest": {
"ext-redis": "The php redis extension https://github.com/nicolasff/phpredis/ is required for connecting to redis server"
@@ -30,7 +35,7 @@
},
"autoload": {
"psr-4": {
"stekycz\\": "src"
"Bileto\\": "src"
}
}
}
2 changes: 1 addition & 1 deletion license.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2017 Martin Štekl <martin.stekl@gmail.com>
Copyright (c) 2020 BTO software technologies s.r.o. <development@bileto.com>

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
6 changes: 3 additions & 3 deletions src/CriticalSection/CriticalSection.php
Original file line number Diff line number Diff line change
@@ -2,10 +2,10 @@

declare(strict_types=1);

namespace stekycz\CriticalSection;
namespace Bileto\CriticalSection;

use stekycz\CriticalSection\Driver\IDriver;
use stekycz\CriticalSection\Exception\RuntimeException;
use Bileto\CriticalSection\Driver\IDriver;
use Bileto\CriticalSection\Exception\RuntimeException;
use Throwable;

final class CriticalSection implements ICriticalSection
4 changes: 2 additions & 2 deletions src/CriticalSection/Driver/FileDriver.php
Original file line number Diff line number Diff line change
@@ -2,9 +2,9 @@

declare(strict_types=1);

namespace stekycz\CriticalSection\Driver;
namespace Bileto\CriticalSection\Driver;

use stekycz\CriticalSection\Exception\CriticalSectionException;
use Bileto\CriticalSection\Exception\CriticalSectionException;

class FileDriver implements IDriver
{
2 changes: 1 addition & 1 deletion src/CriticalSection/Driver/IDriver.php
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

declare(strict_types=1);

namespace stekycz\CriticalSection\Driver;
namespace Bileto\CriticalSection\Driver;

interface IDriver
{
2 changes: 1 addition & 1 deletion src/CriticalSection/Driver/PdoMysqlDriver.php
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

declare(strict_types=1);

namespace stekycz\CriticalSection\Driver;
namespace Bileto\CriticalSection\Driver;

use PDO;

2 changes: 1 addition & 1 deletion src/CriticalSection/Driver/PdoPgsqlDriver.php
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

declare(strict_types=1);

namespace stekycz\CriticalSection\Driver;
namespace Bileto\CriticalSection\Driver;

use PDO;

4 changes: 2 additions & 2 deletions src/CriticalSection/Driver/RedisDriver.php
Original file line number Diff line number Diff line change
@@ -2,10 +2,10 @@

declare(strict_types=1);

namespace stekycz\CriticalSection\Driver;
namespace Bileto\CriticalSection\Driver;

use Redis;
use stekycz\CriticalSection\Exception\CriticalSectionException;
use Bileto\CriticalSection\Exception\CriticalSectionException;
use Throwable;

class RedisDriver implements IDriver
2 changes: 1 addition & 1 deletion src/CriticalSection/Driver/SemaphoreDriver.php
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

declare(strict_types=1);

namespace stekycz\CriticalSection\Driver;
namespace Bileto\CriticalSection\Driver;

/**
* This driver works correctly in single system environment only because semaphores are not shared on different
2 changes: 1 addition & 1 deletion src/CriticalSection/Exception/CriticalSectionException.php
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

declare(strict_types=1);

namespace stekycz\CriticalSection\Exception;
namespace Bileto\CriticalSection\Exception;

class CriticalSectionException extends RuntimeException
{
2 changes: 1 addition & 1 deletion src/CriticalSection/Exception/RuntimeException.php
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

declare(strict_types=1);

namespace stekycz\CriticalSection\Exception;
namespace Bileto\CriticalSection\Exception;

class RuntimeException extends \RuntimeException
{
2 changes: 1 addition & 1 deletion src/CriticalSection/ICriticalSection.php
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

declare(strict_types=1);

namespace stekycz\CriticalSection;
namespace Bileto\CriticalSection;

interface ICriticalSection
{
6 changes: 3 additions & 3 deletions tests/CriticalSectionTests/CriticalSection.phpt
Original file line number Diff line number Diff line change
@@ -6,12 +6,12 @@ declare(strict_types=1);
* @testCase
*/

namespace stekycz\CriticalSection\tests;
namespace Bileto\CriticalSection\tests;

use Mockery;
use Redis;
use stekycz\CriticalSection\CriticalSection;
use stekycz\CriticalSection\Driver\IDriver;
use Bileto\CriticalSection\CriticalSection;
use Bileto\CriticalSection\Driver\IDriver;
use TestCase;
use Tester\Assert;

6 changes: 3 additions & 3 deletions tests/CriticalSectionTests/Driver/FileDriver.phpt
Original file line number Diff line number Diff line change
@@ -6,10 +6,10 @@ declare(strict_types=1);
* @testCase
*/

namespace stekycz\CriticalSection\tests\Driver;
namespace Bileto\CriticalSection\tests\Driver;

use stekycz\CriticalSection\Driver\FileDriver;
use stekycz\CriticalSection\Exception\CriticalSectionException;
use Bileto\CriticalSection\Driver\FileDriver;
use Bileto\CriticalSection\Exception\CriticalSectionException;
use TestCase;
use Tester\Assert;

4 changes: 2 additions & 2 deletions tests/CriticalSectionTests/Driver/PdoMysqlDriver.phpt
Original file line number Diff line number Diff line change
@@ -6,12 +6,12 @@ declare(strict_types=1);
* @testCase
*/

namespace stekycz\CriticalSection\tests\Driver;
namespace Bileto\CriticalSection\tests\Driver;

use Mockery;
use PDO;
use PDOStatement;
use stekycz\CriticalSection\Driver\PdoMysqlDriver;
use Bileto\CriticalSection\Driver\PdoMysqlDriver;
use TestCase;
use Tester\Assert;

4 changes: 2 additions & 2 deletions tests/CriticalSectionTests/Driver/PdoPgsqlDriver.phpt
Original file line number Diff line number Diff line change
@@ -6,12 +6,12 @@ declare(strict_types=1);
* @testCase
*/

namespace stekycz\CriticalSection\tests\Driver;
namespace Bileto\CriticalSection\tests\Driver;

use Mockery;
use PDO;
use PDOStatement;
use stekycz\CriticalSection\Driver\PdoPgsqlDriver;
use Bileto\CriticalSection\Driver\PdoPgsqlDriver;
use TestCase;
use Tester\Assert;

6 changes: 3 additions & 3 deletions tests/CriticalSectionTests/Driver/RedisDriver.phpt
Original file line number Diff line number Diff line change
@@ -6,13 +6,13 @@ declare(strict_types=1);
* @testCase
*/

namespace stekycz\CriticalSection\tests\Driver;
namespace Bileto\CriticalSection\tests\Driver;

use Exception;
use Mockery;
use Redis;
use stekycz\CriticalSection\Driver\RedisDriver;
use stekycz\CriticalSection\Exception\CriticalSectionException;
use Bileto\CriticalSection\Driver\RedisDriver;
use Bileto\CriticalSection\Exception\CriticalSectionException;
use TestCase;
use Tester\Assert;

4 changes: 2 additions & 2 deletions tests/CriticalSectionTests/Driver/SemaphoreDriver.phpt
Original file line number Diff line number Diff line change
@@ -6,9 +6,9 @@ declare(strict_types=1);
* @testCase
*/

namespace stekycz\CriticalSection\tests\Driver;
namespace Bileto\CriticalSection\tests\Driver;

use stekycz\CriticalSection\Driver\SemaphoreDriver;
use Bileto\CriticalSection\Driver\SemaphoreDriver;
use TestCase;
use Tester\Assert;

0 comments on commit c8ec6b1

Please sign in to comment.