Ben Ramsey
d4a3b6f42e
Merge branch 'potherca-contrib-fix/replace-deprecated-getMock'
2017-11-08 12:08:03 -06: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
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
Ben Ramsey
41dcc417e2
Merge pull request #149 from colinajd/patch-1
...
bump copyright year
2017-01-05 20:48:25 -06:00
Colin Donaldson
5177375b59
bump copyright year
2017-01-06 00:40:52 +00:00
Ben Ramsey
5677cfe023
Add change log notes for 3.5.2 release
3.5.2
2016-11-22 13:21:44 -06:00
Ben Ramsey
34447f3f0f
Merge pull request #144 from lt/fix-php7-tests
...
Pin doctrine/annotations to a 1.2.x version (Fixes build)
2016-10-31 09:25:20 -05:00
Leigh
8a55a398d2
Pin doctrine/annotations to a 1.2.x version
...
1.3.x is currently causing test failures when used with goaop
1.0.0-alpha2 (which we are pinned at for PHP 5.4 compat)
2016-10-31 13:33:01 +00:00
Ben Ramsey
fe152ef1ee
Merge pull request #139 from jmauerhan/tests
...
Adding test coverage for getters/setters currently untested.
2016-10-26 09:58:11 -05:00
Jessica Mauerhan
02fc392d84
formatting
2016-10-18 08:53:11 -05:00
Jessica Mauerhan
bf1513433f
fixing formatting
2016-10-17 20:56:57 -05:00
Jessica Mauerhan
d4ece57761
Adding test coverage for getters/setters currently untested.
2016-10-17 20:53:01 -05:00
Ben Ramsey
2d19c68f5c
Merge pull request #138 from jmauerhan/master
...
Unit Tests: Add function mock test for systems without libsodium
2016-10-07 08:31:56 -05:00
Jessica Mauerhan
e0c2ff2a09
Fix code style
2016-10-06 11:10:40 -04:00