functional-ruby 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +154 -562
  3. data/lib/functional/agent.rb +130 -0
  4. data/lib/functional/all.rb +9 -1
  5. data/lib/functional/behavior.rb +72 -39
  6. data/lib/functional/cached_thread_pool.rb +122 -0
  7. data/lib/functional/concurrency.rb +32 -24
  8. data/lib/functional/core.rb +2 -62
  9. data/lib/functional/event.rb +53 -0
  10. data/lib/functional/event_machine_defer_proxy.rb +23 -0
  11. data/lib/functional/fixed_thread_pool.rb +89 -0
  12. data/lib/functional/future.rb +42 -0
  13. data/lib/functional/global_thread_pool.rb +3 -0
  14. data/lib/functional/obligation.rb +121 -0
  15. data/lib/functional/promise.rb +194 -0
  16. data/lib/functional/thread_pool.rb +61 -0
  17. data/lib/functional/utilities.rb +114 -0
  18. data/lib/functional/version.rb +1 -1
  19. data/lib/functional.rb +1 -0
  20. data/lib/functional_ruby.rb +1 -0
  21. data/md/behavior.md +147 -0
  22. data/md/concurrency.md +465 -0
  23. data/md/future.md +32 -0
  24. data/md/obligation.md +32 -0
  25. data/md/pattern_matching.md +512 -0
  26. data/md/promise.md +220 -0
  27. data/md/utilities.md +53 -0
  28. data/spec/functional/agent_spec.rb +405 -0
  29. data/spec/functional/behavior_spec.rb +12 -33
  30. data/spec/functional/cached_thread_pool_spec.rb +112 -0
  31. data/spec/functional/concurrency_spec.rb +55 -0
  32. data/spec/functional/event_machine_defer_proxy_spec.rb +246 -0
  33. data/spec/functional/event_spec.rb +114 -0
  34. data/spec/functional/fixed_thread_pool_spec.rb +84 -0
  35. data/spec/functional/future_spec.rb +115 -0
  36. data/spec/functional/obligation_shared.rb +121 -0
  37. data/spec/functional/pattern_matching_spec.rb +10 -8
  38. data/spec/functional/promise_spec.rb +310 -0
  39. data/spec/functional/thread_pool_shared.rb +209 -0
  40. data/spec/functional/utilities_spec.rb +149 -0
  41. data/spec/spec_helper.rb +2 -0
  42. metadata +55 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8220871c4682445a0bee4972bf8bef71e14a19b1
4
- data.tar.gz: 62b968db9be005478c581efbe94690fa3786c047
3
+ metadata.gz: 8c798e8848a4a1a3e47077fa48ac65c0595df304
4
+ data.tar.gz: 0785957a5566c7fe58c753d8a2c09b040e11a17c
5
5
  SHA512:
6
- metadata.gz: 6d5c421b9b90a3f8bb342e2a7803aae5e535c646832b355b59d92aeb586ee9b040f3b45462541ade49a09e8e1423bfc3f291bad0463a6e6ae3acac87d11ab662
7
- data.tar.gz: 868071ddf7fa427b15fa3ea270785d48cff0e0155173cf97de5b76dd91567fdc390211f31640bdb1d1aa445b41c3f1c6ca620b50169139974bf186bb747ce638
6
+ metadata.gz: 7e2bd7f3b530d2c95134733f2a275ed2eb5ea16a68aac88ae9bbc9f50a9391a277afbf1608b9b15e7a25df193179523f5b6da920751e5e64f5255841823ebc6e
7
+ data.tar.gz: 46a8e971f0c9e39f4287c3b743495678975a7fac5f22dbb607b9ec10321e5e2c27ee120bcf67a6d8adde48d4a7b95b910f65a7be0fe38931481153bf0b7afecf