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
Ben Ramsey
ca4154648d
Add PHP 7.2 to the Travis build matrix
2017-11-08 21:25:25 -06:00
Ben Ramsey
bd7f7f3135
Restrict codeception/aspect-mock to the 2.0.* series
...
A backward-incompatible change was introduced in codeception/aspect-mock
version 2.1, causing tests to generate errors. There is no need to
update the tests in the 3.x series of ramsey/uuid, so this change
restricts aspect-mock to <2.1.
2017-11-08 21:16:02 -06:00
Ben Ramsey
d4a3b6f42e
Merge branch 'potherca-contrib-fix/replace-deprecated-getMock'
2017-11-08 12:08:03 -06:00
Robbert Müller
3572bf8755
adapt testcases to also mock getsysfs, to get the old code path tested
2017-10-18 11:33:26 +02:00
Robbert Müller
10e022c05c
bug fixes
...
- add missing default value
- invert logic, because it was doing it the wrong way around
2017-10-18 10:32:45 +02:00
Ben Peachey
58658b8f4d
Merge branch 'master' into fix/replace-deprecated-getMock
2017-10-18 08:57:31 +02:00
Ben Peachey
c52af4ea07
Removes <5.4 limit for PHPUnit in composer.json file.
2017-10-17 12:47:21 +02:00
Ben Peachey
dbb9a8b6d1
Changes all usage in Tests of getMock with getMockBuilder.
2017-10-17 12:46:25 +02:00
Ben Ramsey
bb9c49a32f
Merge branch 'master' into add-sysfs-option
2017-10-09 09:19:48 -05:00
Robbert Müller
cfafc97fc0
Add sysfs option for linux system
...
Linux offers a sysfs interface to the macaddresses of the system network
interfaces without calling exec.
This enables stable system based UUID generation even on docker images
like php:7
2017-10-06 19:57:30 +02:00
Ben Ramsey
45cffe8220
Add change log notes for 3.7.1 release
3.7.1
2017-09-22 15:46:04 -05:00
Ben Ramsey
749b30e3f9
Add random node test that asserts multicast bit against random values
2017-09-22 15:46:04 -05:00
Ben Ramsey
3f2b434845
Merge pull request #182 from ramsey/node-multicast-bit
...
Set the multicast bit for random nodes, according to RFC 4122, §4.5
2017-09-22 15:30:45 -05:00
Ben Ramsey
dced71b87a
Use str_pad() and dechex() instead of sprint()
...
This is a micro-optimization that improves memory usage when generating
large quantities of UUIDs. See #159 and #160 .
2017-09-22 14:27:30 -05:00
Ben Ramsey
5c38d41ccb
Use sprintf() to prefix zeros on the returned node hex string
2017-09-22 13:03:41 -05:00
Ben Ramsey
1ec0826a40
Set the multicast bit for random nodes, according to RFC 4122, §4.5
...
Borrows the idea from cf1c981414 to
properly set the multicast bit to the "least significant bit of the
first octet of the node ID."
When merged, this will close #171 and #170
2017-09-22 12:54:15 -05:00
Ben Ramsey
aab08bb08a
Use random_bytes() to generate a random node
2017-09-22 12:26:34 -05:00
Ben Ramsey
0ef23d1b10
Add change log notes for 3.7.0 release
3.7.0
2017-08-04 09:39:04 -04:00
Ben Ramsey
c141cdc8da
Merge pull request #177 from davispeixoto/173-expose-versions-alternative1
...
issue #173 expose versions alternative1
2017-08-04 09:32:09 -04:00
Davis Peixoto
46071e69a1
173 - Expose UUID versions - Alternative 1
...
https://github.com/ramsey/uuid/issues/173
Creating constants on Uuid object, so they can be used as
- Uuid::UUID_TYPE_TIME
- Uuid::UUID_TYPE_RANDOM
# Alternative 1
Create constants on Uuid class
Signed-off-by: Davis Peixoto <davis.peixoto@gmail.com >
2017-08-03 21:12:10 -03:00
Davis Peixoto
0915c7bdc2
173 - Expose UUID versions - Alternative 1
...
https://github.com/ramsey/uuid/issues/173
Creating constants on Uuid object, so they can be used as
- UUID::UUID_TYPE_TIME
- UUID::UUID_TYPE_RANDOM
# Alternative 1
Create constants on Uuid class
Signed-off-by: Davis Peixoto <davis.peixoto@gmail.com >
2017-08-02 08:55:26 -03:00
Davis Peixoto
3d1db97b4d
173 - Expose UUID versions - Alternative 1
...
https://github.com/ramsey/uuid/issues/173
Creating constants on Uuid object, so they can be used as
- Uuid::UUID_TYPE_TIME
- Uuid::UUID_TYPE_RANDOM
Signed-off-by: Davis Peixoto <davis.peixoto@gmail.com >
2017-08-01 15:40:21 -03:00
Ben Ramsey
c479cdd42f
Remove HHVM from the Travis CI build matrix
2017-07-31 02:30:25 -04:00
Ben Ramsey
446df35e87
Move util/ to tools/
...
GitHub ignores the contents of the tools/ directory for the purpose of
repo language statistics.
2017-03-26 16:03:42 -05:00
Ben Ramsey
4ae32dd9ab
Add change log notes for 3.6.1 release
3.6.1
2017-03-26 15:37:53 -05:00
Ben Ramsey
cc7bcfa142
Removed reference to Gitter chat
...
[ci skip]
2017-03-26 15:19:26 -05:00
Ben Ramsey
6a575eb09f
Merge pull request #164 from mhujer/mh-uuid-decoding-speedup
...
Optimize UUID string decoding
2017-03-26 15:10:48 -05:00
Martin Hujer
4eefce356d
Optimize UUID string decoding
...
I realized, that 30% of the request time in our app is spent by
hydrating the uuid (We are using Doctrine and in this specific request
I was accidentally hydrating few thousands entities). Luckily, I
remembered the #160 and tried to do similar optimization for uuid
decoding. It resulted in 10-20% performance improvement.
2017-03-26 19:02:20 +02:00
Ben Ramsey
ff6ad53a00
Allow alpha version of goaop/framework for PHP 5.4
2017-03-18 12:02:09 -05:00
Ben Ramsey
734eb56383
Allow older dependencies for earlier versions of PHP
2017-03-18 11:57:21 -05:00
Ben Ramsey
6d7b1dc123
Update dev dependencies so that tests succeed on PHP nightlies
2017-03-18 11:52:45 -05:00
Ben Ramsey
0b7bdfb180
Add change log notes for 3.6.0 release
3.6.0
2017-03-18 10:38:09 -05:00
Ben Ramsey
5ec8dd5826
Add fast_finish to Travis CI configuration
2017-03-18 10:38:09 -05:00
Ben Ramsey
eaf2cd937a
Move coveralls reporting to after_success
2017-03-18 10:38:09 -05:00
Ben Ramsey
9e1b234324
Add Composer scripts as shortcuts to tests and doc generation
2017-03-18 10:38:08 -05:00
Ben Ramsey
fa38bdddc5
Remove Gitter and Scrutinizer integration
2017-03-18 10:11:07 -05:00
Ben Ramsey
ded61ca8d8
Merge pull request #162 from garak/specific-exception
...
add a specific exception for invalid UUID string
2017-03-11 08:30:28 -06:00
Massimiliano Arione
a2647abc14
add a specific exception for invalid UUID string
2017-03-11 10:52:53 +01:00
Ben Ramsey
47fcdc6341
Merge pull request #160 from iainmckay/master
...
Improves memory usage when generating large quantities of UUID's
2017-03-10 12:37:11 -06:00
Iain Mckay
0a198d3d11
Improves memory usage when generating large quantities of UUID's
2017-03-09 09:01:12 +01:00
Ben Ramsey
38d8e5086d
Merge pull request #158 from Nyholm/patch-1
...
Be more specific about PHP versions
2017-03-08 08:02:19 -06:00
Tobias Nyholm
f2a7cd06bb
Be more specific about PHP versions
...
We do not support PHP6 nor PHP8.
2017-03-08 10:32:44 +01:00
Ben Ramsey
2f7d4ff00f
Add tests for uuid3() and uuid4() to test behavior for empty strings
2017-02-02 15:30:40 -06:00
Ben Ramsey
a2509c5910
Merge pull request #151 from mikeSimonson/patch-1
...
Upgrade of the travis configuration for php nightly
2017-01-24 08:49:21 -06:00
mikeSimonson
05af243d07
Upgrade of the travis configuration for php nightly
2017-01-24 15:22:46 +01:00