dry-monads-sorbet 1.1.2 → 1.1.6.pre2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +7 -3
  3. data/.ruby-version +1 -1
  4. data/CHANGELOG.md +18 -2
  5. data/lib/bundled_rbi/dry-monads.rbi +12 -525
  6. data/lib/dry-monads-sorbet.rb +1 -0
  7. data/lib/dry-monads-sorbet/railtie.rb +1 -0
  8. data/lib/dry/monads/sorbet/version.rb +2 -1
  9. data/sorbet/config +4 -0
  10. data/sorbet/rbi/gems/activesupport.rbi +1722 -0
  11. data/sorbet/rbi/gems/ast.rbi +48 -0
  12. data/sorbet/rbi/gems/byebug.rbi +1041 -0
  13. data/sorbet/rbi/gems/coderay.rbi +285 -0
  14. data/sorbet/rbi/gems/concurrent-ruby.rbi +1586 -0
  15. data/sorbet/rbi/gems/docile.rbi +32 -0
  16. data/sorbet/rbi/gems/dry-core.rbi +38 -0
  17. data/sorbet/rbi/gems/dry-equalizer.rbi +26 -0
  18. data/sorbet/rbi/gems/dry-monads.rbi +510 -0
  19. data/sorbet/rbi/gems/em-websocket.rbi +225 -0
  20. data/sorbet/rbi/gems/eventmachine.rbi +489 -0
  21. data/sorbet/rbi/gems/ffaker.rbi +60 -0
  22. data/sorbet/rbi/gems/guard.rbi +397 -0
  23. data/sorbet/rbi/gems/http_parser.rb.rbi +37 -0
  24. data/sorbet/rbi/gems/i18n.rbi +133 -0
  25. data/sorbet/rbi/gems/kwalify.rbi +340 -0
  26. data/sorbet/rbi/gems/listen.rbi +324 -0
  27. data/sorbet/rbi/gems/lumberjack.rbi +300 -0
  28. data/sorbet/rbi/gems/method_source.rbi +64 -0
  29. data/sorbet/rbi/gems/multi_json.rbi +62 -0
  30. data/sorbet/rbi/gems/nenv.rbi +60 -0
  31. data/sorbet/rbi/gems/notiffany.rbi +215 -0
  32. data/sorbet/rbi/gems/parallel.rbi +82 -0
  33. data/sorbet/rbi/gems/parser.rbi +1846 -0
  34. data/sorbet/rbi/gems/pry-byebug.rbi +155 -0
  35. data/sorbet/rbi/gems/pry.rbi +1949 -0
  36. data/sorbet/rbi/gems/rainbow.rbi +118 -0
  37. data/sorbet/rbi/gems/rake.rbi +648 -0
  38. data/sorbet/rbi/gems/rb-fsevent.rbi +31 -0
  39. data/sorbet/rbi/gems/rb-readline.rbi +767 -0
  40. data/sorbet/rbi/gems/reek.rbi +1027 -0
  41. data/sorbet/rbi/gems/regexp_parser.rbi +913 -0
  42. data/sorbet/rbi/gems/rexml.rbi +605 -0
  43. data/sorbet/rbi/gems/rspec-core.rbi +1913 -0
  44. data/sorbet/rbi/gems/rspec-expectations.rbi +1123 -0
  45. data/sorbet/rbi/gems/rspec-mocks.rbi +1099 -0
  46. data/sorbet/rbi/gems/rspec-support.rbi +280 -0
  47. data/sorbet/rbi/gems/rspec.rbi +15 -0
  48. data/sorbet/rbi/gems/rubocop-ast.rbi +1053 -0
  49. data/sorbet/rbi/gems/rubocop-rspec.rbi +937 -0
  50. data/sorbet/rbi/gems/rubocop.rbi +6841 -0
  51. data/sorbet/rbi/gems/ruby-progressbar.rbi +305 -0
  52. data/sorbet/rbi/gems/shellany.rbi +29 -0
  53. data/sorbet/rbi/gems/shoulda-matchers.rbi +1848 -0
  54. data/sorbet/rbi/gems/simplecov-html.rbi +35 -0
  55. data/sorbet/rbi/gems/simplecov.rbi +361 -0
  56. data/sorbet/rbi/gems/sqlite3.rbi +354 -0
  57. data/sorbet/rbi/gems/stackprof.rbi +52 -0
  58. data/sorbet/rbi/gems/thor.rbi +32 -0
  59. data/sorbet/rbi/gems/thread_safe.rbi +82 -0
  60. data/sorbet/rbi/gems/timecop.rbi +98 -0
  61. data/sorbet/rbi/gems/tzinfo.rbi +406 -0
  62. data/sorbet/rbi/gems/unicode-display_width.rbi +17 -0
  63. data/sorbet/rbi/hidden-definitions/errors.txt +7267 -0
  64. data/sorbet/rbi/hidden-definitions/hidden.rbi +14661 -0
  65. data/sorbet/rbi/sorbet-typed/lib/activesupport/>=6.0.0.rc1/activesupport.rbi +23 -0
  66. data/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +1431 -0
  67. data/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +108 -0
  68. data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +276 -0
  69. data/sorbet/rbi/sorbet-typed/lib/rubocop-rspec/~>1.39/rubocop-rspec.rbi +398 -0
  70. data/sorbet/rbi/sorbet-typed/lib/rubocop/~>0.85/rubocop.rbi +2072 -0
  71. data/sorbet/rbi/todo.rbi +8 -0
  72. metadata +71 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 25c5b71c33daec16deda28a30aa06d0ba39738295c86c87c497554f12d7a9ca3
4
- data.tar.gz: 1479a94070fa413a7adefdd171b740987a583b62802cdb6f14f919cdd4730f4e
3
+ metadata.gz: 5d2c1bcb8e3d36b2bde43f514469c30efd24cede7413a69f9d7a9009b12f78d0
4
+ data.tar.gz: 621540251a9355446f378d7054e38f2910e92ef70eb7ec37bfbc3ac1586f3eb4
5
5
  SHA512:
6
- metadata.gz: '08ef83a7c701035db63f190270acd65599d5f37703e5debee6d659a0460e324be13e012ace46238d1bdaa6a65576ac8836dfb07e55868eeffbf0f93b71ef9705'
7
- data.tar.gz: 246a737a59c34f0e8a371be92a6ccf0d22c0d66fab043f21ac0c7edcd1b1bb22d99e861ecd614765e4fe52cc6f41f7e0309eb3a9f0abe5cb11f18e3e49b77f76
6
+ metadata.gz: e4fd0868588a9827f5883f9c9a68430e810175ed3f9d63cab8162eff4688df823eade51d198a78c9cbb6868e61db6d43a9a5c0c16508e182f22e39f8c668fc96
7
+ data.tar.gz: 443d55b50900c391f4b18d7af02a4308e8e2964b1dcccff80f2080afc58d965a26ee38fba234ed361cb883e0338cf704fb504dc57c9873485e945b6e49d3844d
@@ -18,11 +18,11 @@ jobs:
18
18
  - name: Install Linux dependencies
19
19
  run: sudo apt-get update -qq && sudo apt-get install -y libsqlite3-dev
20
20
  - name: Set up Ruby
21
- uses: actions/setup-ruby@v1.1.1
21
+ uses: ruby/setup-ruby@v1
22
22
  with:
23
23
  ruby-version: 2.6.6
24
24
  - name: Cache gems
25
- uses: actions/cache@v1
25
+ uses: actions/cache@v2
26
26
  with:
27
27
  path: vendor/bundle
28
28
  key: "${{ runner.OS }}-gem-cache-${{ hashFiles('**/dry-monads-sorbet.gemspec')
@@ -30,10 +30,14 @@ jobs:
30
30
  restore-keys: "${{ runner.OS }}-gem-cache-\n"
31
31
  - name: Install bundler
32
32
  run: (bundler -v | grep "2.1.4") || gem install bundler:2.1.4
33
+ - name: Remove metrics from bundled gems
34
+ run: bundle config set without 'metrics'
33
35
  - name: Install gems
34
- run: bundle install --jobs $(nproc) --retry 3 --without metrics --path vendor/bundle
36
+ run: bundle install --jobs $(nproc) --retry 3 --path vendor/bundle
35
37
  - name: Create cache directory
36
38
  run: mkdir -p tmp/cache
39
+ - name: Typecheck with Sorbet
40
+ run: bundle exec srb tc . --ignore=/vendor
37
41
  - name: Run RSpec test suite
38
42
  run: bundle exec rspec spec
39
43
  env:
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.7.1
1
+ 2.6.6
data/CHANGELOG.md CHANGED
@@ -1,6 +1,22 @@
1
+ UNRELEASED
2
+
3
+ * Fix bundled RBI being incompatible with recent Sorbet releases due to `params()` and invalid use of `sealed!`.
4
+
5
+ 1.1.5
6
+
7
+ * Fix inaccurate type annotations for `Dry::Monads::Maybe#fmap` and `Dry::Monads::Result#fmap`.
8
+
9
+ 1.1.4
10
+
11
+ * Remove accidentally included autogenerated annotations from `dry-monads.rbi`.
12
+
13
+ 1.1.3
14
+
15
+ * Fix missing type annotation for `Dry::Monads::Maybe#value!`.
16
+
1
17
  1.1.2
2
18
 
3
- * Fix an issue when used alongside `sorbet-rails`
19
+ * Fix an issue when used alongside `sorbet-rails`.
4
20
 
5
21
  1.1.1
6
22
 
@@ -12,4 +28,4 @@
12
28
 
13
29
  1.0.0
14
30
 
15
- * Initial release
31
+ * Initial release.
@@ -1,4 +1,4 @@
1
- # typed: strong
1
+ # typed: strict
2
2
  #
3
3
  # This rbi file is bundled in the dry-monads-sorbet gem and is copied down
4
4
  # into projects using the dry_monads_sorbet:update_rbi rake task.
@@ -48,7 +48,6 @@ class Dry::Monads::Maybe
48
48
  Elem = type_member
49
49
 
50
50
  abstract!
51
- sealed!
52
51
 
53
52
  sig do
54
53
  type_parameters(:New)
@@ -59,8 +58,8 @@ class Dry::Monads::Maybe
59
58
 
60
59
  sig do
61
60
  type_parameters(:New)
62
- .params(blk: T.proc.params(arg0: Elem).returns(T.type_parameter(:out, :New)))
63
- .returns(Dry::Monads::Maybe[T.type_parameter(:out, :New)])
61
+ .params(blk: T.proc.params(arg0: Elem).returns(T.type_parameter(:New)))
62
+ .returns(Dry::Monads::Maybe[T.type_parameter(:New)])
64
63
  end
65
64
  def fmap(&blk); end
66
65
 
@@ -71,6 +70,11 @@ class Dry::Monads::Maybe
71
70
  end
72
71
  def value_or(val = nil, &blk); end
73
72
 
73
+ sig do
74
+ returns(Elem)
75
+ end
76
+ def value!; end
77
+
74
78
  sig do
75
79
  params(arg0: T.untyped)
76
80
  .returns(T.self_type)
@@ -105,12 +109,6 @@ class Dry::Monads::Maybe::Some < Dry::Monads::Maybe
105
109
 
106
110
  sig {params(value: Elem).void}
107
111
  def initialize(value = nil); end
108
-
109
- sig do
110
- returns(Elem)
111
- end
112
- def value!; end
113
-
114
112
  def inspect; end
115
113
  def maybe(*args, &block); end
116
114
  def self.[](*value); end
@@ -134,7 +132,7 @@ class Dry::Monads::Maybe::None < Dry::Monads::Maybe
134
132
  def deconstruct; end
135
133
  def eql?(other); end
136
134
  def hash; end
137
- sig {params().void}
135
+ sig {void}
138
136
  def initialize(); end
139
137
  def inspect; end
140
138
  def maybe(*arg0); end
@@ -152,7 +150,7 @@ end
152
150
  module Dry::Monads::Maybe::Mixin::Constructors
153
151
  sig {type_parameters(:T).params(value: T.nilable(T.type_parameter(:T))).returns(Dry::Monads::Maybe[T.type_parameter(:T)])}
154
152
  def Maybe(value); end
155
- sig {type_parameters(:T).params().returns(Dry::Monads::Maybe[T.type_parameter(:out, :T)])}
153
+ sig {type_parameters(:T).returns(Dry::Monads::Maybe[T.type_parameter(:out, :T)])}
156
154
  def None; end
157
155
  sig {type_parameters(:T).params(value: T.type_parameter(:T)).returns(Dry::Monads::Maybe[T.type_parameter(:T)])}
158
156
  def Some(value = nil); end
@@ -170,7 +168,6 @@ class Dry::Monads::Result
170
168
  SuccessType = type_member
171
169
 
172
170
  abstract!
173
- sealed!
174
171
 
175
172
  sig do
176
173
  type_parameters(:NewSuccessType)
@@ -181,8 +178,8 @@ class Dry::Monads::Result
181
178
 
182
179
  sig do
183
180
  type_parameters(:New)
184
- .params(blk: T.proc.params(arg0: SuccessType).returns(T.type_parameter(:out, :New)))
185
- .returns(Dry::Monads::Result[FailureType, T.type_parameter(:out, :New)])
181
+ .params(blk: T.proc.params(arg0: SuccessType).returns(T.type_parameter(:New)))
182
+ .returns(Dry::Monads::Result[FailureType, T.type_parameter(:New)])
186
183
  end
187
184
  def fmap(&blk); end
188
185
 
@@ -595,515 +592,5 @@ module Dry::Monads::Lazy::Mixin::Constructors
595
592
  end
596
593
  class Dry::Monads::Result::Fixed < Module
597
594
  def included(base); end
598
- def initialize(error, **options); end
599
- def self.[](error, **options); end
600
- end
601
- # This file is autogenerated. Do not edit it by hand. Regenerate it with:
602
- # srb rbi gems
603
-
604
- # typed: true
605
- #
606
- # If you would like to make changes to this file, great! Please create the gem's shim here:
607
- #
608
- # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/dry-monads/all/dry-monads.rbi
609
- #
610
- # dry-monads-1.3.5
611
- module Dry
612
- end
613
- module Dry::Monads
614
- def self.Result(error, **options); end
615
- def self.[](*monads); end
616
- def self.all_loaded?; end
617
- def self.constructors; end
618
- def self.included(base); end
619
- def self.known_monads; end
620
- def self.load_monad(name); end
621
- def self.register_mixin(name, mod); end
622
- def self.registry; end
623
- def self.registry=(registry); end
624
- extend Dry::Monads::Maybe::Mixin::Constructors
625
- extend Dry::Monads::Maybe::Mixin::Constructors
626
- extend Dry::Monads::Result::Mixin::Constructors
627
- extend Dry::Monads::Validated::Mixin::Constructors
628
- include Dry::Core::Constants
629
- end
630
- module Dry::Monads::Curry
631
- def self.call(value); end
632
- end
633
- class Dry::Monads::UnwrapError < StandardError
634
- def initialize(ctx); end
635
- end
636
- class Dry::Monads::InvalidFailureTypeError < StandardError
637
- def initialize(failure); end
638
- end
639
- class Dry::Monads::ConstructorNotAppliedError < NoMethodError
640
- def initialize(method_name, constructor_name); end
641
- end
642
- module Dry::Monads::RightBiased
643
- end
644
- module Dry::Monads::RightBiased::Right
645
- def ===(other); end
646
- def and(mb); end
647
- def apply(val = nil); end
648
- def bind(*args, **kwargs); end
649
- def curry; end
650
- def deconstruct; end
651
- def deconstruct_keys(keys); end
652
- def destructure(*args, **kwargs); end
653
- def discard; end
654
- def flatten; end
655
- def fmap(*arg0); end
656
- def or(*arg0); end
657
- def or_fmap(*arg0); end
658
- def self.included(m); end
659
- def tee(*args, &block); end
660
- def value!; end
661
- def value_or(_val = nil); end
662
- end
663
- module Dry::Monads::RightBiased::Left
664
- def and(_); end
665
- def apply(*arg0); end
666
- def bind(*arg0); end
667
- def deconstruct; end
668
- def deconstruct_keys(keys); end
669
- def discard; end
670
- def flatten; end
671
- def fmap(*arg0); end
672
- def or(*arg0); end
673
- def or_fmap(*arg0); end
674
- def self.trace_caller; end
675
- def tee(*arg0); end
676
- def value!; end
677
- def value_or(val = nil); end
678
- end
679
- module Dry::Monads::Transformer
680
- def fmap2(*args); end
681
- def fmap3(*args); end
682
- end
683
- class Dry::Monads::Maybe
684
- def failure?; end
685
- def monad; end
686
- def none?; end
687
- def self.coerce(value); end
688
- def self.lift(*args, &block); end
689
- def self.pure(value = nil, &block); end
690
- def self.to_proc; end
691
- def some?; end
692
- def success?; end
693
- def to_maybe; end
694
- def to_monad; end
695
- include Dry::Monads::Transformer
696
- end
697
- class Dry::Monads::Maybe::Some < Dry::Monads::Maybe
698
- def fmap(*args, &block); end
699
- def initialize(value = nil); end
700
- def inspect; end
701
- def maybe(*args, &block); end
702
- def self.[](*value); end
703
- def self.call(*arg0); end
704
- def self.to_proc; end
705
- def to_result(_fail = nil); end
706
- def to_s; end
707
- include Anonymous_Dry_Equalizer_40
708
- include Dry::Equalizer::Methods
709
- include Dry::Monads::RightBiased::Right
710
- end
711
- module Anonymous_Dry_Equalizer_40
712
- def cmp?(comparator, other); end
713
- def hash; end
714
- def inspect; end
715
- end
716
- class Dry::Monads::Maybe::None < Dry::Monads::Maybe
717
- def ==(other); end
718
- def deconstruct; end
719
- def eql?(other); end
720
- def hash; end
721
- def initialize(trace = nil); end
722
- def inspect; end
723
- def maybe(*arg0); end
724
- def or(*args); end
725
- def or_fmap(*args, &block); end
726
- def self.instance; end
727
- def self.method_missing(m, *arg1); end
728
- def to_result(fail = nil); end
729
- def to_s; end
730
- def trace; end
731
- include Dry::Monads::RightBiased::Left
732
- end
733
- module Dry::Monads::Maybe::Mixin
734
- include Dry::Monads::Maybe::Mixin::Constructors
735
- end
736
- module Dry::Monads::Maybe::Mixin::Constructors
737
- def Maybe(value); end
738
- def None; end
739
- def Some(value = nil, &block); end
740
- end
741
- module Dry::Monads::Maybe::Hash
742
- def self.all(hash, trace = nil); end
743
- def self.filter(hash); end
744
- end
745
- class Dry::Monads::Result
746
- def failure; end
747
- def monad; end
748
- def self.pure(value = nil, &block); end
749
- def success; end
750
- def to_monad; end
751
- def to_result; end
752
- include Anonymous_Module_41
753
- include Dry::Monads::Transformer
754
- end
755
- class Dry::Monads::Result::Success < Dry::Monads::Result
756
- def either(f, _); end
757
- def failure?; end
758
- def flip; end
759
- def fmap(*args, &block); end
760
- def initialize(value); end
761
- def inspect; end
762
- def result(_, f); end
763
- def self.[](*value); end
764
- def self.call(*arg0); end
765
- def self.to_proc; end
766
- def success; end
767
- def success?; end
768
- def to_maybe; end
769
- def to_s; end
770
- def to_validated; end
771
- include Anonymous_Dry_Equalizer_42
772
- include Dry::Equalizer::Methods
773
- include Dry::Monads::RightBiased::Right
774
- end
775
- class Dry::Monads::Result::Failure < Dry::Monads::Result
776
- def ===(other); end
777
- def either(_, g); end
778
- def failure; end
779
- def failure?; end
780
- def flip; end
781
- def initialize(value, trace = nil); end
782
- def inspect; end
783
- def or(*args); end
784
- def or_fmap(*args, &block); end
785
- def result(f, _); end
786
- def self.[](*value); end
787
- def self.call(*arg0); end
788
- def self.to_proc; end
789
- def success?; end
790
- def to_maybe; end
791
- def to_s; end
792
- def to_validated; end
793
- def trace; end
794
- def value_or(val = nil); end
795
- include Anonymous_Dry_Equalizer_43
796
- include Dry::Equalizer::Methods
797
- include Dry::Monads::RightBiased::Left
798
- end
799
- class Dry::Monads::Task
800
- def ==(other); end
801
- def apply(val = nil); end
802
- def bind(&block); end
803
- def compare_promises(x, y); end
804
- def complete?; end
805
- def curry(value); end
806
- def discard; end
807
- def fmap(&block); end
808
- def initialize(promise); end
809
- def inspect; end
810
- def monad; end
811
- def or(&block); end
812
- def or_fmap(&block); end
813
- def promise; end
814
- def self.[](executor, &block); end
815
- def self.failed(exc); end
816
- def self.new(promise = nil, &block); end
817
- def self.pure(value = nil, &block); end
818
- def then(&block); end
819
- def to_maybe; end
820
- def to_monad; end
821
- def to_result; end
822
- def to_s; end
823
- def value!; end
824
- def value_or(&block); end
825
- def wait(timeout = nil); end
826
- include Anonymous_Module_44
827
- end
828
- class Dry::Monads::Try
829
- def error?; end
830
- def exception; end
831
- def failure?; end
832
- def self.[](*exceptions, &block); end
833
- def self.lift(*args, &block); end
834
- def self.pure(value = nil, exceptions = nil, &block); end
835
- def self.run(exceptions, f); end
836
- def success?; end
837
- def to_monad; end
838
- def value?; end
839
- include Anonymous_Module_45
840
- end
841
- class Dry::Monads::Try::Value < Dry::Monads::Try
842
- def bind(*args); end
843
- def bind_call(*args, **kwargs); end
844
- def catchable; end
845
- def fmap(*args, &block); end
846
- def initialize(exceptions, value); end
847
- def inspect; end
848
- def self.call(*arg0); end
849
- def self.to_proc; end
850
- def to_maybe; end
851
- def to_result; end
852
- def to_s; end
853
- include Anonymous_Dry_Equalizer_46
854
- include Dry::Equalizer::Methods
855
- include Dry::Monads::RightBiased::Right
856
- end
857
- class Dry::Monads::Try::Error < Dry::Monads::Try
858
- def ===(other); end
859
- def initialize(exception); end
860
- def inspect; end
861
- def or(*args); end
862
- def self.call(*arg0); end
863
- def to_maybe; end
864
- def to_result; end
865
- def to_s; end
866
- include Anonymous_Dry_Equalizer_47
867
- include Dry::Equalizer::Methods
868
- include Dry::Monads::RightBiased::Left
869
- end
870
- class Dry::Monads::Validated
871
- def bind(*arg0); end
872
- def self.pure(value = nil, &block); end
873
- def to_monad; end
874
- include Anonymous_Module_48
875
- end
876
- class Dry::Monads::Validated::Valid < Dry::Monads::Validated
877
- def ===(other); end
878
- def alt_map(_ = nil); end
879
- def apply(val = nil); end
880
- def fmap(proc = nil, &block); end
881
- def initialize(value); end
882
- def inspect; end
883
- def or(_ = nil); end
884
- def to_maybe; end
885
- def to_result; end
886
- def to_s; end
887
- def value!; end
888
- include Anonymous_Dry_Equalizer_49
889
- include Dry::Equalizer::Methods
890
- end
891
- class Dry::Monads::Validated::Invalid < Dry::Monads::Validated
892
- def ===(other); end
893
- def alt_map(proc = nil, &block); end
894
- def apply(val = nil); end
895
- def error; end
896
- def fmap(_ = nil); end
897
- def initialize(error, trace = nil); end
898
- def inspect; end
899
- def or(proc = nil, &block); end
900
- def to_maybe; end
901
- def to_result; end
902
- def to_s; end
903
- def trace; end
904
- include Anonymous_Dry_Equalizer_50
905
- include Dry::Equalizer::Methods
906
- end
907
- module Dry::Monads::ConversionStubs
908
- def self.[](*method_names); end
909
- end
910
- module Dry::Monads::ConversionStubs::Methods
911
- def self.to_maybe; end
912
- def self.to_result; end
913
- def self.to_validated; end
914
- def to_maybe; end
915
- def to_result; end
916
- def to_validated; end
917
- end
918
- class Dry::Monads::Task::Promise < Concurrent::Promise
919
- def on_fulfill(result); end
920
- def on_reject(reason); end
921
- end
922
- module Anonymous_Module_44
923
- def to_maybe(*arg0); end
924
- def to_result(*arg0); end
925
- end
926
- module Dry::Monads::Task::Mixin
927
- def self.[](executor); end
928
- include Dry::Monads::Task::Mixin::Constructors
929
- end
930
- module Dry::Monads::Task::Mixin::Constructors
931
- def Task(&block); end
932
- end
933
- module Anonymous_Module_41
934
- def to_maybe(*arg0); end
935
- def to_validated(*arg0); end
936
- end
937
- module Anonymous_Dry_Equalizer_42
938
- def cmp?(comparator, other); end
939
- def hash; end
940
- def inspect; end
941
- end
942
- module Anonymous_Dry_Equalizer_43
943
- def cmp?(comparator, other); end
944
- def hash; end
945
- def inspect; end
946
- end
947
- module Dry::Monads::Result::Mixin
948
- include Dry::Monads::Result::Mixin::Constructors
949
- end
950
- module Dry::Monads::Result::Mixin::Constructors
951
- def Failure(value = nil, &block); end
952
- def Success(value = nil, &block); end
953
- end
954
- module Anonymous_Module_45
955
- def to_maybe(*arg0); end
956
- def to_result(*arg0); end
957
- end
958
- module Anonymous_Dry_Equalizer_46
959
- def cmp?(comparator, other); end
960
- def hash; end
961
- def inspect; end
962
- end
963
- module Anonymous_Dry_Equalizer_47
964
- def cmp?(comparator, other); end
965
- def hash; end
966
- def inspect; end
967
- end
968
- module Dry::Monads::Try::Mixin
969
- def Error(error = nil, &block); end
970
- def Value(value = nil, exceptions = nil, &block); end
971
- include Dry::Monads::Try::Mixin::Constructors
972
- end
973
- module Dry::Monads::Try::Mixin::Constructors
974
- def Try(*exceptions, &f); end
975
- end
976
- module Anonymous_Module_48
977
- def to_maybe(*arg0); end
978
- def to_result(*arg0); end
979
- end
980
- module Anonymous_Dry_Equalizer_49
981
- def cmp?(comparator, other); end
982
- def hash; end
983
- def inspect; end
984
- end
985
- module Anonymous_Dry_Equalizer_50
986
- def cmp?(comparator, other); end
987
- def hash; end
988
- def inspect; end
989
- end
990
- module Dry::Monads::Validated::Mixin
991
- include Dry::Monads::Validated::Mixin::Constructors
992
- end
993
- module Dry::Monads::Validated::Mixin::Constructors
994
- def Invalid(value = nil, &block); end
995
- def Valid(value = nil, &block); end
996
- end
997
- class Dry::Monads::List
998
- def +(other); end
999
- def apply(list = nil); end
1000
- def bind(*args); end
1001
- def coerce(other); end
1002
- def collect; end
1003
- def deconstruct; end
1004
- def empty?; end
1005
- def filter; end
1006
- def first; end
1007
- def fmap(*args); end
1008
- def fold_left(initial); end
1009
- def fold_right(initial); end
1010
- def foldl(initial); end
1011
- def foldr(initial); end
1012
- def head; end
1013
- def initialize(value, type = nil); end
1014
- def inspect; end
1015
- def last; end
1016
- def map(&block); end
1017
- def monad; end
1018
- def reduce(initial); end
1019
- def reverse; end
1020
- def select; end
1021
- def self.[](*values); end
1022
- def self.coerce(value, type = nil); end
1023
- def self.pure(value = nil, type = nil, &block); end
1024
- def self.unfold(state, type = nil); end
1025
- def size; end
1026
- def sort; end
1027
- def tail; end
1028
- def to_a; end
1029
- def to_ary; end
1030
- def to_monad; end
1031
- def to_s; end
1032
- def traverse(proc = nil, &block); end
1033
- def type; end
1034
- def typed(type = nil); end
1035
- def typed?; end
1036
- def value; end
1037
- extend Anonymous_Dry_Core_Deprecations_Tagged_51
1038
- extend Dry::Core::Deprecations::Interface
1039
- include Anonymous_Dry_Equalizer_52
1040
- include Dry::Equalizer::Methods
1041
- include Dry::Monads::Transformer
1042
- end
1043
- module Anonymous_Dry_Core_Deprecations_Tagged_51
1044
- end
1045
- module Anonymous_Dry_Equalizer_52
1046
- def cmp?(comparator, other); end
1047
- def hash; end
1048
- def inspect; end
1049
- end
1050
- class Dry::Monads::List::ListBuilder
1051
- def [](*args); end
1052
- def coerce(value); end
1053
- def initialize(type); end
1054
- def pure(val = nil, &block); end
1055
- def self.[](*arg0); end
1056
- def type; end
1057
- end
1058
- module Dry::Monads::List::Mixin
1059
- def List(value); end
1060
- end
1061
- module Dry::Monads::Do
1062
- def self.coerce_to_monad(monads); end
1063
- def self.for(*methods); end
1064
- def self.halt(result); end
1065
- def self.included(base); end
1066
- def self.wrap_method(target, method_name); end
1067
- extend Dry::Monads::Do::Mixin
1068
- end
1069
- module Dry::Monads::Do::Mixin
1070
- def bind(monads); end
1071
- def call; end
1072
- end
1073
- class Dry::Monads::Do::Halt < StandardError
1074
- def initialize(result); end
1075
- def result; end
1076
- end
1077
- module Dry::Monads::Do::All
1078
- def self.included(base); end
1079
- extend Dry::Monads::Do::All::InstanceMixin
1080
- end
1081
- class Dry::Monads::Do::All::MethodTracker < Module
1082
- def extend_object(target); end
1083
- def initialize(wrappers); end
1084
- def wrap_method(target, method); end
1085
- def wrappers; end
1086
- end
1087
- module Dry::Monads::Do::All::InstanceMixin
1088
- def extended(object); end
1089
- end
1090
- class Dry::Monads::Lazy < Dry::Monads::Task
1091
- def force!; end
1092
- def force; end
1093
- def inspect; end
1094
- def self.[](executor, &block); end
1095
- def self.new(promise = nil, &block); end
1096
- def to_s; end
1097
- def value!; end
1098
- end
1099
- module Dry::Monads::Lazy::Mixin
1100
- include Dry::Monads::Lazy::Mixin::Constructors
1101
- end
1102
- module Dry::Monads::Lazy::Mixin::Constructors
1103
- def Lazy(&block); end
1104
- end
1105
- class Dry::Monads::Result::Fixed < Module
1106
- def included(base); end
1107
- def initialize(error, **_options); end
1108
595
  def self.[](error, **options); end
1109
596
  end