Commit Graph

265 Commits

Author SHA1 Message Date
Ben Ramsey 29a0610d95 Merge branch 'master' into 3.0
Conflicts:
	.gitignore
	src/Uuid.php
2015-03-21 10:44:59 -05:00
Ben Ramsey 12c9227653 Merge pull request #43 from aztech-forks/comb
Add generation of COMB UUID's
2015-03-10 14:17:59 -05:00
Ben Ramsey e636cf7306 Merge pull request #49 from francescolaffi/patch-1
getInteger should suggest getHex
2015-03-09 06:26:02 -07:00
Francesco Laffi 07d06dd3ec getInteger should suggest getHex
getInteger is suggesting getMostSignificantBitsHex if the math library is not available
2015-03-09 13:55:38 +01:00
Thibaud Fabre 8bece7c95b Add COMB and GUID options to command line 2015-02-07 13:14:58 +01:00
Thibaud Fabre cc23f64d58 Add COMB generator for use with UUID4 2015-02-07 13:14:58 +01:00
Ben Ramsey 7bf3ac0175 Merge pull request #45 from yberkholz/master
"passthru" replacement for "backtick operator" / getNodeFromSystem once per runtime
2015-01-07 08:46:10 -06:00
Ben Ramsey ee3522beb4 Merge pull request #44 from phpMQ/master
Added PHPStorm to ignore
2015-01-07 08:44:38 -06:00
Yves Berkholz c90233d6e2 Update Uuid.php
- change method "getIfconfig()" to use "passthru()" and an output buffer instead of the "backtick operator" which may be disabled for security reasons
- change  method "getNodeFromSystem()" to process detection only once per runtime - because of great performance impact
(Test: generate 100 UUIDs[v1] before ~21s / after ~200ms)
2015-01-07 10:12:19 +01:00
Larry Lewis 610458a6c2 Added PHPStorm to ignore 2015-01-07 16:19:19 +11:00
Ben Ramsey db357ed3a3 Merge pull request #42 from aztech-digital/pecl-uuid
Add PECL based UUID factory for UUID1/4
2015-01-06 14:17:20 -06:00
Thibaud Fabre 01b2b0b72e Run all tests 2014-12-29 22:09:34 +01:00
Thibaud Fabre ace0db7707 Skip tests that cannot succeed with HHVM 2014-12-29 22:06:06 +01:00
Thibaud Fabre d6205aaf47 Remove hackish extension_loaded mock 2014-12-29 22:00:47 +01:00
Thibaud Fabre 6047058adc Enable extension
Enable extension

Debug for Travis build

Run PECL tests only

WIP
2014-12-29 22:00:45 +01:00
Thibaud Fabre 82c57cac99 Add UUID system library to build
Use sudo to install UUID lib
2014-12-29 22:00:41 +01:00
Thibaud Fabre 34cc28cc30 Add more unit tests for Pecl-based factory
Do not try to install UUID ext in HHVM run
2014-12-29 22:00:36 +01:00
Thibaud Fabre 2873c1ad3f Add tests for Pecl factory 2014-12-17 01:42:57 +01:00
Thibaud Fabre b8fe2e4a91 Extract factory interface & add basic pecl impl 2014-12-17 01:42:57 +01:00
Ben Ramsey ec8d7a739c Merge pull request #39 from aztech-digital/refactoring
Refactoring for new 3.0 architecture
2014-12-03 08:22:06 -06:00
Ben Ramsey 96a01caa11 Setting version in master to 2.8.x-dev 2014-11-09 13:48:45 -05:00
Ben Ramsey cca98c652c Bumping the version number to 2.8.0 2.8.0 2014-11-09 13:42:56 -05:00
Ben Ramsey d9954fb6e2 Beautifying the CHANGELOG 2014-11-09 13:35:59 -05:00
Thibaud Fabre 7e036c4402 Add PHPCS to build config 2014-11-09 11:37:50 +01:00
Thibaud Fabre 3ca7eaa070 Fix PHPCS violation 2014-11-09 11:34:28 +01:00
Thibaud Fabre 463aa47338 Extract classes for CLI rendering 2014-11-09 11:31:08 +01:00
Thibaud Fabre 2069071f66 Remove unneeded parent class 2014-11-09 11:03:09 +01:00
Thibaud Fabre 5e818f090e Merge pull request #1 from ramsey/refactor-composition-ramsey
Refactoring the refactoring 😏 ~~ refactorin'ception :evil:
2014-11-09 10:01:13 +01:00
Ben Ramsey 39c98bb652 Add phpcs.xml to the .gitattributes ignore list 2014-11-08 16:50:04 -05:00
Ben Ramsey 680fd794cb Interfaces should have the suffix "Interface" in their names 2014-11-08 16:27:20 -05:00
Ben Ramsey ebea9b969b Add ircmaxell-RandomLib to the dev dependencies 2014-11-08 16:24:22 -05:00
Ben Ramsey 958643e7b6 Introduce Provider namespace and move Node and Time classes into it 2014-11-08 16:16:44 -05:00
Ben Ramsey 90fd1531d0 Fixing PSR2 standards violations reported by PHP_CodeSniffer 2014-11-08 15:50:04 -05:00
Ben Ramsey cd2d09c356 Introduce Converter namespace and move Number and Time classes into it 2014-11-08 14:43:09 -05:00
Thibaud Fabre 61ba697853 Fix decode output for v5 (incorrect hash algo name) 2014-11-08 16:28:19 +01:00
Thibaud Fabre 6ef25d3040 Refactor long method 2014-11-08 16:13:49 +01:00
Thibaud Fabre 260063c1b5 Fix incorrect return type 2014-11-08 16:01:48 +01:00
Thibaud Fabre cce58a0b8a Fix doc comments and remove unneeded usings 2014-11-08 15:57:30 +01:00
Thibaud Fabre ed06e0a84e Remove unused code 2014-11-08 15:50:19 +01:00
Thibaud Fabre b0192fa9b0 Handle unknown versions 2014-11-08 15:42:36 +01:00
Thibaud Fabre 04c64d6f45 Refactor duplicate code 2014-11-08 15:41:53 +01:00
Thibaud Fabre 9df122eb00 Remove duplication in UuidFactory 2014-11-08 15:08:06 +01:00
Thibaud Fabre c07988fe31 Refactor codecs to remove duplication 2014-11-08 15:00:58 +01:00
Thibaud Fabre 84123b2060 Remove all env related logic from factory
Defers all environment related decisions to factory initialization
All behavior is customizable through DI, but all deps are initialized to proper default instances
Removes static factory configuration
2014-11-08 12:41:40 +01:00
Thibaud Fabre f97c9e08f9 Rename degraded feature classes with more consistent names 2014-11-06 10:42:02 +01:00
Thibaud Fabre cd3e58b1f5 Refactor fromInteger method to use factory 2014-10-30 16:07:48 +01:00
Thibaud Fabre 653349f490 Remove final keyword (rebase error...) 2014-10-30 15:26:30 +01:00
Thibaud Fabre 053a25f335 Remove 5.3 build & debug info 2014-10-30 15:16:59 +01:00
Thibaud Fabre fead6f3223 Refactor in the spirit of #1 & #34 2014-10-30 15:16:59 +01:00
Thibaud Fabre 723ef345bf Refactor factory functions
Remove $littleEndian parameter
Add fromGuidString/Bytes factory methods for GUIDs
No longer possible to output GUIDs as UUIDs and vice-versa
Pass tests
2014-10-30 15:15:16 +01:00