Commit Graph

163 Commits

Author SHA1 Message Date
Ben Ramsey d975f0f143 Add docblocks for classes and interfaces in Ramsey\Uuid\Provider namespace 2015-09-27 13:02:30 -05:00
Ben Ramsey 5bf7f5064c Add docblocks for classes and interfaces in Ramsey\Uuid\Generator namespace 2015-09-26 19:06:21 -05:00
Ben Ramsey dc26d4addb Add docblocks for classes and interfaces in Ramsey\Uuid\Converter namespace 2015-09-26 18:06:02 -05:00
Ben Ramsey 77a34348d5 Add docblocks for classes and interface in Ramsey\Uuid\Codec namespace 2015-09-03 23:28:07 -04:00
Ben Ramsey 67fe80dc1b Add docblocks for classes and interface in Ramsey\Uuid\Builder namespace 2015-09-03 23:00:55 -04:00
Ben Ramsey e99347f70d Merge pull request #77 from aztech-forks/master
Improve GUID support
2015-08-28 09:36:45 -05:00
Aztech 4c35be716a Remove message assertion -- cannot pass in both 32 and 64 bits envs 2015-08-14 23:26:15 +02:00
Aztech 8c699ecfec Fix exception message assertion in tests 2015-08-14 23:10:23 +02:00
Aztech 896cd9c4e2 Use GUID codec in all cases as it is now endianness independant 2015-08-14 22:43:58 +02:00
Aztech 958468d95b Detect host endianness when building codec 2015-08-14 22:24:16 +02:00
Aztech d3535feb50 Use host dependant endianness in GUID string codec 2015-08-14 21:57:59 +02:00
Ben Ramsey cf1776ebd6 Fix incompatible return type declaration issue
Scrutinizer turned up this issue, since the declared return type in
`UuidBuilderInterface` was of `Uuid` and we weren't properly importing
`\Ramsey\Uuid\Uuid` in a `use` statement.
2015-08-13 11:00:41 -05:00
Thibaud Fabre 89d91a97eb Remove unnecessary conversions in BigNumberConverter
Using the baseConvert method from BigNumber uses two consecutive convert operations:
  - convertToBase10
  - convertFromBase10

In BigNumberConverters context, we can directly call each specific method to avoid
the conversion overhead.
2015-08-13 17:44:40 +02:00
Scrutinizer Auto-Fixer f59b447603 Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2015-08-13 15:32:44 +00:00
Aztech bbce46dabe Add option to enable PeclUuidTimeGenerator via FeatureSet 2015-07-28 22:20:04 +02:00
Aztech 0cd74639cf Enable use of custom TimeGenerator implementations
- Removes now unnecessary `timeConverter` and `timeProvider`
  properties, setters, and getters in both FeatureSet and
  UuidFactory as those are now exclusively used by the default
  TimeGenerator
- Adds a `setTimeGenerator` method on UuidFactory to override the
  default time generator
2015-07-28 22:16:29 +02:00
Ben Ramsey 83367cef97 Use a medium strength generator for ircmaxell/random-lib
As discussed in https://github.com/ramsey/uuid/issues/56
2015-07-28 11:29:43 -05:00
Ben Ramsey e81568ea4f Fix parse error caused by double "new" keyword 2015-07-28 11:28:07 -05:00
Ben Ramsey a95140c25c Remove PeclUuidFactory in favor of the new PeclUuid*Generator 2015-07-28 11:25:07 -05:00
Ben Ramsey d88a941b8c Fix errant docblock comment asterisk removal 2015-07-27 11:14:42 -05:00
Aztech e2047199cd Remove redundant method call 2015-07-27 11:14:20 -05:00
Aztech ec3f5bbdc8 CS fix 2015-07-27 11:14:20 -05:00
Aztech 8974c76bf6 Refactor TimeGeneratorInterface
- Remove UuidFactory from signature
- Remove setters on UuidFactory to prevent inconsistencies (a new feature set and factory should be used instead)
- Update tests to reflect those changes
2015-07-27 11:14:20 -05:00
Ben Ramsey b7bb2018bf Add time generator for pecl-uuid 2015-07-27 11:14:20 -05:00
Ben Ramsey 8e5c641575 Add random generator for pecl-uuid 2015-07-27 11:14:20 -05:00
Ben Ramsey dfbf8b8098 Abstract time generation into family of TimeGeneratorInterface classes 2015-07-27 11:14:20 -05:00
Ben Ramsey 1bdc10a306 Add RandomBytesGenerator for use with PHP 7. 2015-07-22 21:34:15 +00:00
Ben Ramsey a06a01b07d Clean up docblocks in Ramsey\Uuid\Uuid. 2015-07-22 21:28:38 +00:00
Ben Ramsey a300a9dce1 Removing the VERSION constant 2015-07-16 12:57:05 -05:00
Ben Ramsey 9092d16213 Have UuidInterface extend from JsonSerializable and cover it with a test 2015-07-16 11:36:05 -05:00
Ben Ramsey db27dc1680 Rename UuidBuilder to Builder\UuidBuilderInterface 2015-07-16 10:06:16 -05:00
Ben Ramsey 3f0ba1ed00 Move CodecInterface to the Codec namespace 2015-07-16 10:01:24 -05:00
Ben Ramsey b3ef99a2e9 Move RandomGeneratorInterface and RandomGeneratorFactory to Generator NS 2015-07-16 09:54:04 -05:00
Ben Ramsey e006f669ad Adding common docblock file header 2015-07-15 13:59:52 -05:00
Ben Ramsey b375d1de2b Separate uuid CLI tool into separate project
Closes #52
2015-06-21 19:37:32 -05:00
Ben Ramsey de02e532b2 Separate Doctrine\UuidTupe into an external library
Closes #51
2015-06-21 18:05:49 -05:00
Yves Berkholz 505b2ac498 Migrating changes made by @yberkholz in c90233d6e2 into 3.0 2015-06-16 10:26:40 -05:00
Ben Ramsey 2053cd3633 Coding standards fix 2015-06-16 10:23:29 -05:00
Jesper Pedersen 7fe43508a4 Added caching of system node information
Applied optimization found in 2.8 for caching of system node information
2015-06-16 10:22:48 -05:00
Ben Ramsey d67c3490a8 Change namespace to "Ramsey"; closes #48 2015-04-25 12:11:37 -05:00
Ben Ramsey 2fd86e2cf9 Coding standards fixes 2015-03-21 20:14:43 +00: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
Thibaud Fabre d6205aaf47 Remove hackish extension_loaded mock 2014-12-29 22:00:47 +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
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