680 Commits

Author SHA1 Message Date
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
Ben Ramsey 44abcdad87 Update CHANGELOG for the 3.7.3 release 3.7.3 2018-01-19 18:28:24 -06:00
Ben Ramsey 9230e78a59 Merge pull request #206 from 1ma/timegen-fix
Fix for DefaultTimeGenerator
2018-01-19 17:50:16 -06:00
Marcel Hernandez 76efebe0ac generate random clockSeq with random_int() instead of mt_rand() 2018-01-19 16:17:49 -06:00
Marcel Hernandez 3567caf3f9 fixed off-by-one error on DefaultTimeGenerator 2018-01-19 16:17:36 -06:00
Ben Ramsey 8727e30fb5 Bump release date for 3.7.3 to 19 January 2018 2018-01-19 16:00:42 -06:00
Ben Ramsey f203f13921 Fix broken build on PHP 5.4 2018-01-19 16:00:06 -06:00
Ben Ramsey 7575e4f2b5 Add initial documentation structure for Read the Docs 2018-01-16 20:08:52 -06:00
Ben Ramsey e67d6bfdc2 Revert to pre-1.x series of mockery/mockery for ramsey/uuid 3.x 2018-01-16 19:45:47 -06:00
Ben Ramsey 4f8e6f6c40 Add CHANGELOG notes for version 3.7.3 2018-01-16 14:19:53 -06:00
Ben Ramsey 89c3c1777e Fix capitalization of the getSysfs() method 2018-01-16 14:14:34 -06:00
Ben Ramsey 901c3e540d Handle cases where glob() returns false
Fixes #203
2018-01-16 14:11:58 -06:00
Ben Ramsey fc6ebc6e72 Remove satooshi/php-coveralls from dev requirements 2018-01-16 13:53:41 -06:00
Ben Ramsey 5a98ff58fe Remove apigen/apigen as a dev dependency 2018-01-16 13:53:41 -06:00
Ben Ramsey c8720ffe16 Upgrade mockery/mockery to the 1.x series 2018-01-16 13:53:32 -06:00
Ben Ramsey bba83ad77b Add CHANGELOG notes for version 3.7.2 3.7.2 2018-01-13 16:22:03 -06:00
Ben Ramsey 21d679130b Merge pull request #196 from carusogabriel/refactoring-tests
Use assertSame
2017-12-10 09:04:55 -08:00
Gabriel Caruso f65471fb5c Use assertSame 2017-12-10 05:51:10 -02:00
Ben Ramsey 21063bd716 Merge pull request #185 from mjrider/add-sysfs-option
Add feature to use sysfs interface to get node identifier
2017-12-01 09:02:13 -08:00
Robbert Müller 8a540b78a1 mock glob function to get assertions work 2017-11-17 16:16:29 +01:00
Robbert Müller 70346f5da3 Fix whitespace 2017-11-17 15:00:23 +01:00
Robbert Müller a9154c4c27 add testcase for getsysfs 2017-11-17 14:52:51 +01:00
Ben Ramsey ab757fc82c Tell Travis to wait on the build, since it can be longer than 10 minutes 2017-11-10 16:38:08 -06:00
Ben Ramsey 6b0445588c Merge branch 'master' into add-sysfs-option 2017-11-10 16:04:30 -06:00