universalid 0.0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +959 -186
  3. data/Rakefile +1 -5
  4. data/config/default.yml +12 -0
  5. data/config/example.yml +45 -0
  6. data/lib/universal_id/contrib/active_record/base_message_pack_type.rb +11 -0
  7. data/lib/universal_id/contrib/active_record/base_packer.rb +130 -0
  8. data/lib/universal_id/contrib/active_record/base_unpacker.rb +52 -0
  9. data/lib/universal_id/contrib/active_record/relation_message_pack_type.rb +16 -0
  10. data/lib/universal_id/contrib/active_record.rb +4 -0
  11. data/lib/universal_id/contrib/active_support/time_with_zone_message_pack_type.rb +14 -0
  12. data/lib/universal_id/contrib/active_support.rb +3 -0
  13. data/lib/universal_id/contrib/global_id/global_id_model.rb +24 -0
  14. data/lib/universal_id/contrib/global_id/global_id_uid_extension.rb +36 -0
  15. data/lib/universal_id/contrib/global_id/message_pack_type.rb +15 -0
  16. data/lib/universal_id/contrib/global_id.rb +3 -0
  17. data/lib/universal_id/contrib/rails.rb +6 -0
  18. data/lib/universal_id/contrib/signed_global_id/message_pack_type.rb +8 -0
  19. data/lib/universal_id/contrib/signed_global_id.rb +3 -0
  20. data/lib/universal_id/encoder.rb +27 -0
  21. data/lib/universal_id/message_pack_factory.rb +51 -0
  22. data/lib/universal_id/message_pack_types/ruby/composites/open_struct.rb +8 -0
  23. data/lib/universal_id/message_pack_types/ruby/composites/set.rb +9 -0
  24. data/lib/universal_id/message_pack_types/ruby/composites/struct.rb +23 -0
  25. data/lib/universal_id/message_pack_types/ruby/scalars/complex.rb +8 -0
  26. data/lib/universal_id/message_pack_types/ruby/scalars/date.rb +8 -0
  27. data/lib/universal_id/message_pack_types/ruby/scalars/date_time.rb +8 -0
  28. data/lib/universal_id/message_pack_types/ruby/scalars/range.rb +20 -0
  29. data/lib/universal_id/message_pack_types/ruby/scalars/rational.rb +8 -0
  30. data/lib/universal_id/message_pack_types/ruby/scalars/regexp.rb +15 -0
  31. data/lib/universal_id/message_pack_types/uri/uid/type.rb +8 -0
  32. data/lib/universal_id/message_pack_types.rb +24 -0
  33. data/lib/universal_id/prepack_database_options.rb +63 -0
  34. data/lib/universal_id/prepack_options.rb +74 -0
  35. data/lib/universal_id/prepacker.rb +28 -0
  36. data/lib/universal_id/refinements/array_refinement.rb +17 -0
  37. data/lib/universal_id/refinements/hash_refinement.rb +19 -0
  38. data/lib/universal_id/refinements/kernel_refinement.rb +19 -0
  39. data/lib/universal_id/refinements/open_struct_refinement.rb +12 -0
  40. data/lib/universal_id/refinements/set_refinement.rb +12 -0
  41. data/lib/universal_id/refinements.rb +9 -0
  42. data/lib/universal_id/settings.rb +82 -0
  43. data/lib/universal_id/version.rb +1 -1
  44. data/lib/universal_id.rb +25 -10
  45. data/lib/uri/uid.rb +95 -0
  46. metadata +105 -28
  47. data/lib/universal_id/active_model_serializer.rb +0 -53
  48. data/lib/universal_id/config.rb +0 -18
  49. data/lib/universal_id/errors.rb +0 -11
  50. data/lib/universal_id/portable.rb +0 -24
  51. data/lib/universal_id/portable_hash.rb +0 -85
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '043986f0e3474969c1d0ff0cbf97749d10a4fbb78ccd49296347b9d9e49935b6'
4
- data.tar.gz: b43b1fa649dd682d12d8cb8e3fc373aaf2dcd7d98f64c7e36ad91747a130200d
3
+ metadata.gz: e55004b7c0b0346e1186784b7962857ae5a010dc85011093703c8e616359c7a9
4
+ data.tar.gz: c3ed66a1d494c536851cb642c7b8d538092792ec2e4b78d6b3b4db9f3628d666
5
5
  SHA512:
6
- metadata.gz: 94768a2128d5b16c7eb2e4989b64c9a9bab603c33f1cf696429c67e8ad4321a888f8df1c68d19f2c74941265a6fa9a6081527970c52a87a1ba325fd7e9558d3a
7
- data.tar.gz: fddaae3b8892726c533ea1527cb6040c215057df342ea6542f4ba669878badf270b13a6369b490abc021fe77da4871a0773cdaff093777c511a79c84a4ac3539
6
+ metadata.gz: 8bad79ee6a4b23619b894846e9499493d37d59ee88772a86327ba5d822bbc2436df05c16b5dfbdc39e276002f0703476365a45b79590af95cd2ef7558531cbd5
7
+ data.tar.gz: d4a48f15ea08f0cb2f0291f74ff20202c8fd2af431f0e73ba701af178c18f3219d73bc10d8269c9360d6b2f4ffe4a1a521bcbe92ca7688bd7f208acd827ec1a8