Commit Graph

703 Commits

Author SHA1 Message Date
Ben Ramsey 39c610ea31 Clean up project documentation and repo metadata 2019-11-30 11:07:39 -08:00
Ben Ramsey 7fccb64486 Update Travis CI build matrix to support PHP 5.4 to 7.4 2019-11-30 09:10:09 -08:00
Ben Ramsey 657add4b3c Fix mock invocation assertions 2019-11-30 09:10:09 -08:00
Ben Ramsey f19b700bd8 Clean up dependencies 2019-11-30 09:10:09 -08:00
Ben Ramsey ed9c494923 Add my username for GitHub Sponsors, pending acceptance to the beta 2019-11-30 09:10:09 -08:00
Ben Ramsey d0e9ca5bb6 Create FUNDING.yml 2019-11-30 09:10:09 -08:00
devrck bcf6c3d86b Use latest repo for coveralls, satooshi repo is abandoned 2019-11-30 09:10:09 -08:00
Ben Ramsey 6b5ba08f03 Add CodeTriage statement 2019-11-30 09:10:09 -08:00
Andrey Bolonin b715a258fa Update .travis.yml 2019-11-30 09:10:09 -08:00
Alessandro Minoccheri c4cc058f3d change array declarations 2019-11-30 09:10:09 -08:00
Ben Ramsey 2074056769 Remove unused tools scripts 2019-11-30 09:10:09 -08:00
Ben Ramsey 466629a399 Use a high-strength generator by default, when using RandomLibAdapter 2019-11-30 09:10:09 -08:00
Ben Ramsey 0cec25689d Update the changelog to follow the keepachangelog.com suggested format 2019-11-30 09:10:09 -08:00
Andreas Möller 59f7202226 Enhancement: Normalize composer.json 2019-11-30 09:10:09 -08:00
Martin Hujer bfc4afdf1f Tests: configure cacheDir for AspectMock 2019-11-30 09:10:09 -08:00
Martin Hujer f3e0fed2d7 Drop remnants of HHVM from tests
It was removed from Travis in c479cdd42f
2019-11-30 09:10:09 -08:00
Ben Ramsey 1b608e7e01 Remove test that fails because of qualified function call 2019-11-30 09:10:09 -08:00
karsasmus 2824db17c8 Change library ircmaxell/random-lib to paragonie/random-lib 2019-11-30 09:10:09 -08:00
Ben Ramsey 4c467ce4d5 Mark toString() method as deprecated, scheduled for removal in 4.0.0 2018-08-12 10:49:01 -05:00
Ben Ramsey 59c8bb0840 Update the deprecation messages 2018-08-12 09:43:21 -05:00
Ben Ramsey cd92bfa43c Mark SodiumRandomGenerator as deprecated 2018-08-11 21:30:34 -05:00
Ben Ramsey 7397e2f431 Mark MtRandGenerator and OpenSslGenerator as deprecated 2018-08-11 21:23:49 -05:00
Ben Ramsey 5d5eab97ee Add ext-json as a dependency 2018-08-05 16:59:04 -05:00
Ben Ramsey d09ea80159 Update CHANGELOG for the 3.8.0 release 3.8.0 2018-07-19 18:38:55 -05:00
Ben Ramsey 93a19b8133 Fix failing build due to coding standards violation 2018-07-19 17:19:38 -05:00
Ben Ramsey 8d621488c4 Check whether passthru() is disabled
If passthru() is disabled in php.ini, this will force the
SystemNodeProvider to return `false` for the node. Using the default
FallbackNodeProvider, ramsey/uuid will default to the
RandomNodeProvider, in these cases.

Closes #114
2018-07-19 16:53:00 -05:00
Ben Ramsey 735eb7e3c9 Add ext-ctype as a suggested extension 2018-07-19 15:48:43 -05:00
Ben Ramsey af6dcf6b93 Merge pull request #233 from localheinz/feature/sort-packages
Enhancement: Keep packages sorted in composer.json
2018-07-19 15:26:30 -05:00
Ben Ramsey 6616ec086c Merge pull request #232 from marcosh/master
add annotations for thrown exceptions
2018-07-19 15:24:41 -05:00
Ben Ramsey 76d4602795 Merge branch 'kalifg-SystemNodeProvider-FreeBSD-support' 2018-07-19 15:08:59 -05:00
Ben Ramsey b8cac9278c Merge branch 'SystemNodeProvider-FreeBSD-support' of https://github.com/kalifg/uuid into kalifg-SystemNodeProvider-FreeBSD-support 2018-07-19 15:08:45 -05:00
Andreas Möller cff5e11876 Enhancement: Keep packages sorted in composer.json 2018-07-19 14:48:23 +02:00
Marco Perone 4b7374129c add annotations for thrown exceptions 2018-07-09 09:04:12 +02:00
Ben Ramsey 8a8b1c0d2a Merge pull request #229 from simonwelsh/patch-1
Support random_compat v9.99.99
2018-07-01 20:36:14 -05:00
Simon Welsh e92ca19998 Support random_compat v9.99.99 2018-07-02 11:11:51 +10:00
Ben Ramsey 0c22388f0a Merge pull request #225 from lboynton/disallow-newlines
Don't allow UUIDs to have trailing newline
2018-07-01 15:17:46 -05:00
Ben Ramsey 526b329d74 Merge pull request #223 from BackEndTea/enhancement/ctype-compat
Add a polyfill for ctype
2018-07-01 15:11:32 -05:00
Lee Boynton 2804748423 Don't allow UUIDs to have trailing newline 2018-05-02 18:54:33 +01:00
Gert de Pagter 8d8766dc74 Use symfony version of ctype compat 2018-05-01 10:58:23 +02:00
Ben Ramsey 29fb62b486 Merge pull request #224 from peter279k/test_enhancement
Use class-based PHPUnit namespace
2018-04-25 15:14:32 -04:00
peter279k 8fab36d995 Use class-based PHPUnit namespace 2018-04-25 18:43:33 +08:00
Gert de Pagter a32a202301 Add a polyfil for ctype
This deals with #142 by adding a polyfil for the ctype functions
instead of failing an install.

The only downside for end users is that their version is slightly slower
if the run without ctype. But it does allow them to run it.
2018-04-23 18:30:10 +02:00
Ben Ramsey 1f55a65f51 Pin goaop/framework to less than v2.2, so that builds start passing 2018-03-23 11:28:09 -04:00
Ben Ramsey 79e56bc162 Exclude docs, tests, tools from GitHub language statistics 2018-03-23 11:03:46 -04:00
Ben Peachey 62628862df Improvements to the SystemNodeProviderTest class (#211)
* Changes location of providers in the SystemNodeProviderTest

  They are now grouped at the bottom of the class.

* Adds logic to SystemNodeProviderTest.

* Changes call to `file_get_contents` SystemNodeProvider so it can be
  mocked.

* Changes SystemNodeProviderTest so native PHP functions are mocked
  instead of the class under test.

* Changes SystemNodeProviderTest so "\n" is used instead of PHP_EOL

  As the (input or output) of the tests is not system dependant it does
  not make sense to use PHP_EOL. All of these instance have been
  replaced for the sake of readability and stating intent more clearly.

* Adds dataprovider to SystemNodeProvider main test for input
  variations.

* Adds OS to SystemNodeProviderTest dataprovider for Linux fail
  scenario.

* Adds test for SystemNodeProvider to ensure invalid values are not
  accepted.

* Changes names of dataproviders in SystemNodeProviderTest for
  consistency.

* Changes SystemNodeProviderTest by grouping dataproviders together.

* Changes method in SystemNodeProviderTest to use the provided mock
  functions.

* Fixes PSR-2 coding conventions in SystemNodeProviderTest.

* Minor change to SystemNodeProviderTest based on review.
2018-02-07 17:28:02 -06:00
kalifg a7492800e2 Add support for determining MAC address on FreeBSD systems 2018-02-07 15:15:49 -06:00
Ben Ramsey a7a286e5c2 Merge pull request #209 from vinkla/patch-1
Exclude docs from production
2018-01-21 10:56:55 -06:00
Vincent Klaiber 895cd766b6 Update .gitattributes 2018-01-21 17:53:12 +01:00
Vincent Klaiber c1fb254784 Update .gitattributes 2018-01-21 17:52:47 +01:00
Vincent Klaiber 9fef35e028 Exclude docs and markdown files
Added .md files and the docs directory to be excluded in production.
2018-01-21 14:19:56 +01:00