shotgrid_api_ruby 0.2.0.5 → 0.2.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (187) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test_and_publish.yml +3 -3
  3. data/.github/workflows/test_only.yml +7 -5
  4. data/.ruby-version +1 -1
  5. data/CHANGELOG.md +6 -0
  6. data/Gemfile +12 -0
  7. data/Gemfile.lock +101 -85
  8. data/bin/prettirun +1 -1
  9. data/docs/ShotgridApiRuby/Auth/Validator.html +4 -4
  10. data/docs/ShotgridApiRuby/Auth.html +4 -4
  11. data/docs/ShotgridApiRuby/Client.html +4 -4
  12. data/docs/ShotgridApiRuby/Entities/Params/TooComplexFiltersError.html +4 -4
  13. data/docs/ShotgridApiRuby/Entities/Params.html +4 -4
  14. data/docs/ShotgridApiRuby/Entities/Schema.html +4 -4
  15. data/docs/ShotgridApiRuby/Entities/Summarize/Summary.html +8 -8
  16. data/docs/ShotgridApiRuby/Entities/Summarize.html +4 -4
  17. data/docs/ShotgridApiRuby/Entities.html +4 -4
  18. data/docs/ShotgridApiRuby/Entity.html +12 -12
  19. data/docs/ShotgridApiRuby/Preferences.html +4 -4
  20. data/docs/ShotgridApiRuby/ServerInfo.html +4 -4
  21. data/docs/ShotgridApiRuby/ShotgridCallError.html +4 -4
  22. data/docs/ShotgridApiRuby/Types.html +4 -4
  23. data/docs/ShotgridApiRuby.html +5 -5
  24. data/docs/_index.html +5 -5
  25. data/docs/file.README.html +4 -4
  26. data/docs/frames.html +1 -1
  27. data/docs/index.html +4 -4
  28. data/docs/top-level-namespace.html +4 -4
  29. data/lib/shotgrid_api_ruby/version.rb +1 -1
  30. data/shotgrid_api_ruby.gemspec +0 -9
  31. data/sorbet/rbi/gems/activesupport@7.0.4.2.rbi +18676 -0
  32. data/sorbet/rbi/gems/ast@2.4.2.rbi +533 -3
  33. data/sorbet/rbi/gems/backport@1.2.0.rbi +518 -4
  34. data/sorbet/rbi/gems/benchmark@0.2.1.rbi +588 -0
  35. data/sorbet/rbi/gems/bundler-audit@0.9.1.rbi +308 -0
  36. data/sorbet/rbi/gems/byebug@11.1.3.rbi +2065 -28
  37. data/sorbet/rbi/gems/childprocess@4.1.0.rbi +397 -4
  38. data/sorbet/rbi/gems/coderay@1.1.3.rbi +2425 -4
  39. data/sorbet/rbi/gems/concurrent-ruby@1.2.0.rbi +11570 -0
  40. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1083 -0
  41. data/sorbet/rbi/gems/docile@1.4.0.rbi +335 -13
  42. data/sorbet/rbi/gems/dotenv@2.8.1.rbi +234 -0
  43. data/sorbet/rbi/gems/e2mmap@0.1.0.rbi +4 -4
  44. data/sorbet/rbi/gems/faker@3.1.0.rbi +13380 -0
  45. data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +167 -11
  46. data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +94 -11
  47. data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +105 -11
  48. data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +118 -11
  49. data/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi +273 -0
  50. data/sorbet/rbi/gems/faraday-net_http@1.0.1.rbi +106 -11
  51. data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +92 -11
  52. data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +97 -11
  53. data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +106 -11
  54. data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +227 -0
  55. data/sorbet/rbi/gems/faraday@1.10.3.rbi +2743 -0
  56. data/sorbet/rbi/gems/ffi@1.15.5.rbi +8 -0
  57. data/sorbet/rbi/gems/formatador@1.1.0.rbi +8 -0
  58. data/sorbet/rbi/gems/guard-compat@1.2.1.rbi +62 -4
  59. data/sorbet/rbi/gems/guard-rspec@4.7.3.rbi +558 -4
  60. data/sorbet/rbi/gems/guard@2.18.0.rbi +4 -4
  61. data/sorbet/rbi/gems/haml@6.1.1.rbi +1588 -0
  62. data/sorbet/rbi/gems/i18n@1.12.0.rbi +2296 -0
  63. data/sorbet/rbi/gems/iniparse@1.5.0.rbi +893 -4
  64. data/sorbet/rbi/gems/jaro_winkler@1.5.4.rbi +15 -4
  65. data/sorbet/rbi/gems/json@2.6.3.rbi +1533 -0
  66. data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +129 -4
  67. data/sorbet/rbi/gems/kramdown@2.4.0.rbi +3271 -0
  68. data/sorbet/rbi/gems/listen@3.8.0.rbi +1181 -0
  69. data/sorbet/rbi/gems/lumberjack@1.2.8.rbi +4 -4
  70. data/sorbet/rbi/gems/method_source@1.0.0.rbi +202 -2
  71. data/sorbet/rbi/gems/minitest@5.17.0.rbi +1457 -0
  72. data/sorbet/rbi/gems/multipart-post@2.3.0.rbi +233 -0
  73. data/sorbet/rbi/gems/nenv@0.3.0.rbi +4 -4
  74. data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
  75. data/sorbet/rbi/gems/nokogiri@1.14.0.rbi +7250 -0
  76. data/sorbet/rbi/gems/notiffany@0.1.3.rbi +4 -4
  77. data/sorbet/rbi/gems/overcommit@0.60.0.rbi +2399 -0
  78. data/sorbet/rbi/gems/parallel@1.22.1.rbi +277 -0
  79. data/sorbet/rbi/gems/parser@3.2.0.0.rbi +6964 -0
  80. data/sorbet/rbi/gems/prettier@3.2.2.rbi +22 -0
  81. data/sorbet/rbi/gems/prettier_print@1.2.0.rbi +8 -0
  82. data/sorbet/rbi/gems/pry-byebug@3.10.1.rbi +1171 -0
  83. data/sorbet/rbi/gems/pry@0.14.2.rbi +10081 -0
  84. data/sorbet/rbi/gems/racc@1.6.2.rbi +154 -0
  85. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +408 -0
  86. data/sorbet/rbi/gems/rake@13.0.6.rbi +2248 -13
  87. data/sorbet/rbi/gems/rb-fsevent@0.11.2.rbi +8 -0
  88. data/sorbet/rbi/gems/rb-inotify@0.10.1.rbi +4 -4
  89. data/sorbet/rbi/gems/rbi@0.0.16.rbi +3008 -0
  90. data/sorbet/rbi/gems/rbs@2.8.4.rbi +8 -0
  91. data/sorbet/rbi/gems/regexp_parser@2.6.2.rbi +3481 -0
  92. data/sorbet/rbi/gems/reverse_markdown@2.1.1.rbi +389 -0
  93. data/sorbet/rbi/gems/rexml@3.2.5.rbi +4048 -3
  94. data/sorbet/rbi/gems/rspec-core@3.12.0.rbi +10809 -0
  95. data/sorbet/rbi/gems/rspec-expectations@3.12.2.rbi +8109 -0
  96. data/sorbet/rbi/gems/rspec-mocks@3.12.3.rbi +5308 -0
  97. data/sorbet/rbi/gems/rspec-support@3.12.0.rbi +1620 -0
  98. data/sorbet/rbi/gems/rspec@3.12.0.rbi +91 -0
  99. data/sorbet/rbi/gems/rspec_in_context@1.1.0.3.rbi +387 -15
  100. data/sorbet/rbi/gems/rubocop-ast@1.24.1.rbi +7019 -0
  101. data/sorbet/rbi/gems/rubocop-faker@1.1.0.rbi +102 -4
  102. data/sorbet/rbi/gems/rubocop-performance@1.15.2.rbi +3021 -0
  103. data/sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi +990 -0
  104. data/sorbet/rbi/gems/rubocop@1.44.1.rbi +54394 -0
  105. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +1235 -4
  106. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +4 -4
  107. data/sorbet/rbi/gems/shellany@0.0.1.rbi +4 -4
  108. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +135 -5
  109. data/sorbet/rbi/gems/simplecov@0.22.0.rbi +2148 -0
  110. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +8 -0
  111. data/sorbet/rbi/gems/solargraph@0.48.0.rbi +9146 -0
  112. data/sorbet/rbi/gems/spoom@1.1.15.rbi +2383 -0
  113. data/sorbet/rbi/gems/syntax_tree-haml@3.0.0.rbi +8 -0
  114. data/sorbet/rbi/gems/syntax_tree-rbs@0.5.1.rbi +8 -0
  115. data/sorbet/rbi/gems/syntax_tree@5.2.0.rbi +8 -0
  116. data/sorbet/rbi/gems/tapioca@0.10.5.rbi +3226 -0
  117. data/sorbet/rbi/gems/temple@0.10.0.rbi +1722 -0
  118. data/sorbet/rbi/gems/thor@1.2.1.rbi +3956 -0
  119. data/sorbet/rbi/gems/tilt@2.0.11.rbi +745 -0
  120. data/sorbet/rbi/gems/timecop@0.9.6.rbi +368 -0
  121. data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +5914 -0
  122. data/sorbet/rbi/gems/unicode-display_width@2.4.2.rbi +65 -0
  123. data/sorbet/rbi/gems/unparser@0.6.7.rbi +4524 -0
  124. data/sorbet/rbi/gems/vcr@6.1.0.rbi +3020 -0
  125. data/sorbet/rbi/gems/webrick@1.7.0.rbi +2555 -0
  126. data/sorbet/rbi/gems/yard-sorbet@0.8.0.rbi +441 -0
  127. data/sorbet/rbi/gems/yard@0.9.28.rbi +17863 -0
  128. data/sorbet/rbi/gems/zeitwerk@2.6.6.rbi +950 -0
  129. data/yarn.lock +3 -3
  130. metadata +67 -186
  131. data/sorbet/rbi/gems/activesupport@6.1.4.1.rbi +0 -3770
  132. data/sorbet/rbi/gems/benchmark@0.1.1.rbi +0 -65
  133. data/sorbet/rbi/gems/bundler-audit@0.8.0.rbi +0 -8
  134. data/sorbet/rbi/gems/colorize@0.8.1.rbi +0 -39
  135. data/sorbet/rbi/gems/commander@4.6.0.rbi +0 -8
  136. data/sorbet/rbi/gems/concurrent-ruby@1.1.9.rbi +0 -2403
  137. data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +0 -8
  138. data/sorbet/rbi/gems/dotenv@2.7.6.rbi +0 -88
  139. data/sorbet/rbi/gems/faker@2.19.0.rbi +0 -2513
  140. data/sorbet/rbi/gems/faraday@1.7.0.rbi +0 -783
  141. data/sorbet/rbi/gems/ffi@1.15.3.rbi +0 -8
  142. data/sorbet/rbi/gems/formatador@0.3.0.rbi +0 -8
  143. data/sorbet/rbi/gems/haml@5.2.2.rbi +0 -8
  144. data/sorbet/rbi/gems/highline@2.0.3.rbi +0 -8
  145. data/sorbet/rbi/gems/i18n@1.8.10.rbi +0 -584
  146. data/sorbet/rbi/gems/kramdown@2.3.1.rbi +0 -8
  147. data/sorbet/rbi/gems/listen@3.7.0.rbi +0 -476
  148. data/sorbet/rbi/gems/minitest@5.14.4.rbi +0 -344
  149. data/sorbet/rbi/gems/multipart-post@2.1.1.rbi +0 -69
  150. data/sorbet/rbi/gems/nokogiri@1.12.3.rbi +0 -8
  151. data/sorbet/rbi/gems/overcommit@0.58.0.rbi +0 -8
  152. data/sorbet/rbi/gems/parallel@1.20.1.rbi +0 -8
  153. data/sorbet/rbi/gems/parlour@6.0.1.rbi +0 -1610
  154. data/sorbet/rbi/gems/parser@3.0.2.0.rbi +0 -1731
  155. data/sorbet/rbi/gems/prettier@1.6.1.rbi +0 -8
  156. data/sorbet/rbi/gems/pry-byebug@3.9.0.rbi +0 -461
  157. data/sorbet/rbi/gems/pry@0.13.1.rbi +0 -2553
  158. data/sorbet/rbi/gems/racc@1.5.2.rbi +0 -47
  159. data/sorbet/rbi/gems/rainbow@3.0.0.rbi +0 -153
  160. data/sorbet/rbi/gems/rb-fsevent@0.11.0.rbi +0 -8
  161. data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +0 -8
  162. data/sorbet/rbi/gems/reverse_markdown@2.0.0.rbi +0 -8
  163. data/sorbet/rbi/gems/rspec-core@3.10.1.rbi +0 -2500
  164. data/sorbet/rbi/gems/rspec-expectations@3.10.1.rbi +0 -1574
  165. data/sorbet/rbi/gems/rspec-mocks@3.10.2.rbi +0 -1462
  166. data/sorbet/rbi/gems/rspec-support@3.10.2.rbi +0 -510
  167. data/sorbet/rbi/gems/rspec@3.10.0.rbi +0 -39
  168. data/sorbet/rbi/gems/rubocop-ast@1.11.0.rbi +0 -8
  169. data/sorbet/rbi/gems/rubocop-performance@1.11.5.rbi +0 -8
  170. data/sorbet/rbi/gems/rubocop-sorbet@0.6.2.rbi +0 -8
  171. data/sorbet/rbi/gems/rubocop@1.20.0.rbi +0 -8
  172. data/sorbet/rbi/gems/simplecov@0.21.2.rbi +0 -577
  173. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.3.rbi +0 -8
  174. data/sorbet/rbi/gems/solargraph@0.43.0.rbi +0 -8
  175. data/sorbet/rbi/gems/spoom@1.1.2.rbi +0 -1204
  176. data/sorbet/rbi/gems/tapioca@0.4.25.rbi +0 -1239
  177. data/sorbet/rbi/gems/temple@0.8.2.rbi +0 -8
  178. data/sorbet/rbi/gems/thor@1.1.0.rbi +0 -838
  179. data/sorbet/rbi/gems/tilt@2.0.10.rbi +0 -8
  180. data/sorbet/rbi/gems/timecop@0.9.4.rbi +0 -82
  181. data/sorbet/rbi/gems/tzinfo@2.0.4.rbi +0 -857
  182. data/sorbet/rbi/gems/unicode-display_width@2.0.0.rbi +0 -8
  183. data/sorbet/rbi/gems/unparser@0.6.0.rbi +0 -8
  184. data/sorbet/rbi/gems/vcr@6.0.0.rbi +0 -782
  185. data/sorbet/rbi/gems/yard-sorbet@0.5.3.rbi +0 -8
  186. data/sorbet/rbi/gems/yard@0.9.26.rbi +0 -8
  187. data/sorbet/rbi/gems/zeitwerk@2.4.2.rbi +0 -173
@@ -1,54 +1,376 @@
1
+ # typed: true
2
+
1
3
  # DO NOT EDIT MANUALLY
2
4
  # This is an autogenerated file for types exported from the `docile` gem.
3
- # Please instead update this file by running `bin/tapioca sync`.
4
-
5
- # typed: true
5
+ # Please instead update this file by running `bin/tapioca gem docile`.
6
6
 
7
+ # Docile keeps your Ruby DSLs tame and well-behaved.
8
+ #
9
+ # source://docile//lib/docile/version.rb#3
7
10
  module Docile
8
11
  extend ::Docile::Execution
9
12
 
10
13
  private
11
14
 
12
- def dsl_eval(dsl, *args, &block); end
13
- def dsl_eval_immutable(dsl, *args, &block); end
14
- def dsl_eval_with_block_return(dsl, *args, &block); end
15
+ # Execute a block in the context of an object whose methods represent the
16
+ # commands in a DSL.
17
+ #
18
+ # Use this method to execute an *imperative* DSL, which means that:
19
+ #
20
+ # 1. Each command mutates the state of the DSL context object
21
+ # 2. The return value of each command is ignored
22
+ # 3. The final return value is the original context object
23
+ #
24
+ # @example Use a String as a DSL
25
+ # Docile.dsl_eval("Hello, world!") do
26
+ # reverse!
27
+ # upcase!
28
+ # end
29
+ # #=> "!DLROW ,OLLEH"
30
+ # @example Use an Array as a DSL
31
+ # Docile.dsl_eval([]) do
32
+ # push 1
33
+ # push 2
34
+ # pop
35
+ # push 3
36
+ # end
37
+ # #=> [1, 3]
38
+ # @note Use with an *imperative* DSL (commands modify the context object)
39
+ # @param dsl [Object] context object whose methods make up the DSL
40
+ # @param args [Array] arguments to be passed to the block
41
+ # @param block [Proc] the block of DSL commands to be executed against the
42
+ # `dsl` context object
43
+ # @return [Object] the `dsl` context object after executing the block
44
+ #
45
+ # source://docile//lib/docile.rb#45
46
+ def dsl_eval(dsl, *args, **_arg2, &block); end
47
+
48
+ # Execute a block in the context of an immutable object whose methods,
49
+ # and the methods of their return values, represent the commands in a DSL.
50
+ #
51
+ # Use this method to execute a *functional* DSL, which means that:
52
+ #
53
+ # 1. The original DSL context object is never mutated
54
+ # 2. Each command returns the next DSL context object
55
+ # 3. The final return value is the value returned by the last command
56
+ #
57
+ # @example Use a frozen String as a DSL
58
+ # Docile.dsl_eval_immutable("I'm immutable!".freeze) do
59
+ # reverse
60
+ # upcase
61
+ # end
62
+ # #=> "!ELBATUMMI M'I"
63
+ # @example Use a Float as a DSL
64
+ # Docile.dsl_eval_immutable(84.5) do
65
+ # fdiv(2)
66
+ # floor
67
+ # end
68
+ # #=> 42
69
+ # @note Use with a *functional* DSL (commands return successor
70
+ # context objects)
71
+ # @param dsl [Object] immutable context object whose methods make up the
72
+ # initial DSL
73
+ # @param args [Array] arguments to be passed to the block
74
+ # @param block [Proc] the block of DSL commands to be executed against the
75
+ # `dsl` context object and successor return values
76
+ # @return [Object] the return value of the final command in the block
77
+ #
78
+ # source://docile//lib/docile.rb#128
79
+ def dsl_eval_immutable(dsl, *args, **_arg2, &block); end
80
+
81
+ # Execute a block in the context of an object whose methods represent the
82
+ # commands in a DSL, and return *the block's return value*.
83
+ #
84
+ # Use this method to execute an *imperative* DSL, which means that:
85
+ #
86
+ # 1. Each command mutates the state of the DSL context object
87
+ # 2. The return value of each command is ignored
88
+ # 3. The final return value is the original context object
89
+ #
90
+ # @example Use a String as a DSL
91
+ # Docile.dsl_eval_with_block_return("Hello, world!") do
92
+ # reverse!
93
+ # upcase!
94
+ # first
95
+ # end
96
+ # #=> "!"
97
+ # @example Use an Array as a DSL
98
+ # Docile.dsl_eval_with_block_return([]) do
99
+ # push "a"
100
+ # push "b"
101
+ # pop
102
+ # push "c"
103
+ # length
104
+ # end
105
+ # #=> 2
106
+ # @note Use with an *imperative* DSL (commands modify the context object)
107
+ # @param dsl [Object] context object whose methods make up the DSL
108
+ # @param args [Array] arguments to be passed to the block
109
+ # @param block [Proc] the block of DSL commands to be executed against the
110
+ # `dsl` context object
111
+ # @return [Object] the return value from executing the block
112
+ #
113
+ # source://docile//lib/docile.rb#87
114
+ def dsl_eval_with_block_return(dsl, *args, **_arg2, &block); end
15
115
 
16
116
  class << self
17
- def dsl_eval(dsl, *args, &block); end
18
- def dsl_eval_immutable(dsl, *args, &block); end
19
- def dsl_eval_with_block_return(dsl, *args, &block); end
117
+ # Execute a block in the context of an object whose methods represent the
118
+ # commands in a DSL.
119
+ #
120
+ # Use this method to execute an *imperative* DSL, which means that:
121
+ #
122
+ # 1. Each command mutates the state of the DSL context object
123
+ # 2. The return value of each command is ignored
124
+ # 3. The final return value is the original context object
125
+ #
126
+ # @example Use a String as a DSL
127
+ # Docile.dsl_eval("Hello, world!") do
128
+ # reverse!
129
+ # upcase!
130
+ # end
131
+ # #=> "!DLROW ,OLLEH"
132
+ # @example Use an Array as a DSL
133
+ # Docile.dsl_eval([]) do
134
+ # push 1
135
+ # push 2
136
+ # pop
137
+ # push 3
138
+ # end
139
+ # #=> [1, 3]
140
+ # @note Use with an *imperative* DSL (commands modify the context object)
141
+ # @param dsl [Object] context object whose methods make up the DSL
142
+ # @param args [Array] arguments to be passed to the block
143
+ # @param block [Proc] the block of DSL commands to be executed against the
144
+ # `dsl` context object
145
+ # @return [Object] the `dsl` context object after executing the block
146
+ #
147
+ # source://docile//lib/docile.rb#45
148
+ def dsl_eval(dsl, *args, **_arg2, &block); end
149
+
150
+ # Execute a block in the context of an immutable object whose methods,
151
+ # and the methods of their return values, represent the commands in a DSL.
152
+ #
153
+ # Use this method to execute a *functional* DSL, which means that:
154
+ #
155
+ # 1. The original DSL context object is never mutated
156
+ # 2. Each command returns the next DSL context object
157
+ # 3. The final return value is the value returned by the last command
158
+ #
159
+ # @example Use a frozen String as a DSL
160
+ # Docile.dsl_eval_immutable("I'm immutable!".freeze) do
161
+ # reverse
162
+ # upcase
163
+ # end
164
+ # #=> "!ELBATUMMI M'I"
165
+ # @example Use a Float as a DSL
166
+ # Docile.dsl_eval_immutable(84.5) do
167
+ # fdiv(2)
168
+ # floor
169
+ # end
170
+ # #=> 42
171
+ # @note Use with a *functional* DSL (commands return successor
172
+ # context objects)
173
+ # @param dsl [Object] immutable context object whose methods make up the
174
+ # initial DSL
175
+ # @param args [Array] arguments to be passed to the block
176
+ # @param block [Proc] the block of DSL commands to be executed against the
177
+ # `dsl` context object and successor return values
178
+ # @return [Object] the return value of the final command in the block
179
+ #
180
+ # source://docile//lib/docile.rb#128
181
+ def dsl_eval_immutable(dsl, *args, **_arg2, &block); end
182
+
183
+ # Execute a block in the context of an object whose methods represent the
184
+ # commands in a DSL, and return *the block's return value*.
185
+ #
186
+ # Use this method to execute an *imperative* DSL, which means that:
187
+ #
188
+ # 1. Each command mutates the state of the DSL context object
189
+ # 2. The return value of each command is ignored
190
+ # 3. The final return value is the original context object
191
+ #
192
+ # @example Use a String as a DSL
193
+ # Docile.dsl_eval_with_block_return("Hello, world!") do
194
+ # reverse!
195
+ # upcase!
196
+ # first
197
+ # end
198
+ # #=> "!"
199
+ # @example Use an Array as a DSL
200
+ # Docile.dsl_eval_with_block_return([]) do
201
+ # push "a"
202
+ # push "b"
203
+ # pop
204
+ # push "c"
205
+ # length
206
+ # end
207
+ # #=> 2
208
+ # @note Use with an *imperative* DSL (commands modify the context object)
209
+ # @param dsl [Object] context object whose methods make up the DSL
210
+ # @param args [Array] arguments to be passed to the block
211
+ # @param block [Proc] the block of DSL commands to be executed against the
212
+ # `dsl` context object
213
+ # @return [Object] the return value from executing the block
214
+ #
215
+ # source://docile//lib/docile.rb#87
216
+ def dsl_eval_with_block_return(dsl, *args, **_arg2, &block); end
20
217
  end
21
218
  end
22
219
 
220
+ # This is used to remove entries pointing to Docile's source files
221
+ # from {Exception#backtrace} and {Exception#backtrace_locations}.
222
+ #
223
+ # If {NoMethodError} is caught then the exception object will be extended
224
+ # by this module to add filter functionalities.
225
+ #
226
+ # @api private
227
+ #
228
+ # source://docile//lib/docile/backtrace_filter.rb#11
23
229
  module Docile::BacktraceFilter
230
+ # @api private
231
+ #
232
+ # source://docile//lib/docile/backtrace_filter.rb#14
24
233
  def backtrace; end
234
+
235
+ # @api private
236
+ #
237
+ # source://docile//lib/docile/backtrace_filter.rb#19
25
238
  def backtrace_locations; end
26
239
  end
27
240
 
241
+ # @api private
242
+ #
243
+ # source://docile//lib/docile/backtrace_filter.rb#12
28
244
  Docile::BacktraceFilter::FILTER_PATTERN = T.let(T.unsafe(nil), Regexp)
29
245
 
246
+ # Operates in the same manner as {FallbackContextProxy}, but replacing
247
+ # the primary `receiver` object with the result of each proxied method.
248
+ #
249
+ # This is useful for implementing DSL evaluation for immutable context
250
+ # objects.
251
+ #
252
+ #
253
+ # @api private
254
+ # @see Docile.dsl_eval_immutable
255
+ #
256
+ # source://docile//lib/docile/chaining_fallback_context_proxy.rb#17
30
257
  class Docile::ChainingFallbackContextProxy < ::Docile::FallbackContextProxy
31
- def method_missing(method, *args, &block); end
258
+ # Proxy methods as in {FallbackContextProxy#method_missing}, replacing
259
+ # `receiver` with the returned value.
260
+ #
261
+ # @api private
262
+ #
263
+ # source://docile//lib/docile/chaining_fallback_context_proxy.rb#20
264
+ def method_missing(method, *args, **_arg2, &block); end
32
265
  end
33
266
 
267
+ # A namespace for functions relating to the execution of a block against a
268
+ # proxy object.
269
+ #
270
+ # @api private
271
+ #
272
+ # source://docile//lib/docile/execution.rb#8
34
273
  module Docile::Execution
35
274
  private
36
275
 
37
- def exec_in_proxy_context(dsl, proxy_type, *args, &block); end
276
+ # Execute a block in the context of an object whose methods represent the
277
+ # commands in a DSL, using a specific proxy class.
278
+ #
279
+ # @api private
280
+ # @param dsl [Object] context object whose methods make up the
281
+ # (initial) DSL
282
+ # @param proxy_type [FallbackContextProxy, ChainingFallbackContextProxy] which class to instantiate as proxy context
283
+ # @param args [Array] arguments to be passed to the block
284
+ # @param block [Proc] the block of DSL commands to be executed
285
+ # @return [Object] the return value of the block
286
+ #
287
+ # source://docile//lib/docile/execution.rb#19
288
+ def exec_in_proxy_context(dsl, proxy_type, *args, **_arg3, &block); end
38
289
 
39
290
  class << self
40
- def exec_in_proxy_context(dsl, proxy_type, *args, &block); end
291
+ # Execute a block in the context of an object whose methods represent the
292
+ # commands in a DSL, using a specific proxy class.
293
+ #
294
+ # @api private
295
+ # @param dsl [Object] context object whose methods make up the
296
+ # (initial) DSL
297
+ # @param proxy_type [FallbackContextProxy, ChainingFallbackContextProxy] which class to instantiate as proxy context
298
+ # @param args [Array] arguments to be passed to the block
299
+ # @param block [Proc] the block of DSL commands to be executed
300
+ # @return [Object] the return value of the block
301
+ #
302
+ # source://docile//lib/docile/execution.rb#19
303
+ def exec_in_proxy_context(dsl, proxy_type, *args, **_arg3, &block); end
41
304
  end
42
305
  end
43
306
 
307
+ # A proxy object with a primary receiver as well as a secondary
308
+ # fallback receiver.
309
+ #
310
+ # Will attempt to forward all method calls first to the primary receiver,
311
+ # and then to the fallback receiver if the primary does not handle that
312
+ # method.
313
+ #
314
+ # This is useful for implementing DSL evaluation in the context of an object.
315
+ #
316
+ #
317
+ # @api private
318
+ # @see Docile.dsl_eval
319
+ #
320
+ # source://docile//lib/docile/fallback_context_proxy.rb#20
44
321
  class Docile::FallbackContextProxy
322
+ # @api private
323
+ # @param receiver [Object] the primary proxy target to which all methods
324
+ # initially will be forwarded
325
+ # @param fallback [Object] the fallback proxy target to which any methods
326
+ # not handled by `receiver` will be forwarded
327
+ # @return [FallbackContextProxy] a new instance of FallbackContextProxy
328
+ #
329
+ # source://docile//lib/docile/fallback_context_proxy.rb#46
45
330
  def initialize(receiver, fallback); end
46
331
 
332
+ # @api private
333
+ # @return [Array<Symbol>] Instance variable names, excluding
334
+ # {NON_PROXIED_INSTANCE_VARIABLES}
335
+ #
336
+ # source://docile//lib/docile/fallback_context_proxy.rb#85
47
337
  def instance_variables; end
48
- def method_missing(method, *args, &block); end
338
+
339
+ # Proxy all methods, excluding {NON_PROXIED_METHODS}, first to `receiver`
340
+ # and then to `fallback` if not found.
341
+ #
342
+ # @api private
343
+ #
344
+ # source://docile//lib/docile/fallback_context_proxy.rb#91
345
+ def method_missing(method, *args, **_arg2, &block); end
49
346
  end
50
347
 
348
+ # The set of methods which will **not** fallback from the block's context
349
+ # to the dsl object.
350
+ #
351
+ # @api private
352
+ #
353
+ # source://docile//lib/docile/fallback_context_proxy.rb#30
51
354
  Docile::FallbackContextProxy::NON_FALLBACK_METHODS = T.let(T.unsafe(nil), Set)
355
+
356
+ # The set of instance variables which are local to this object and hidden.
357
+ # All other instance variables will be copied in and out of this object
358
+ # from the scope in which this proxy was created.
359
+ #
360
+ # @api private
361
+ #
362
+ # source://docile//lib/docile/fallback_context_proxy.rb#35
52
363
  Docile::FallbackContextProxy::NON_PROXIED_INSTANCE_VARIABLES = T.let(T.unsafe(nil), Set)
364
+
365
+ # The set of methods which will **not** be proxied, but instead answered
366
+ # by this object directly.
367
+ #
368
+ # @api private
369
+ #
370
+ # source://docile//lib/docile/fallback_context_proxy.rb#23
53
371
  Docile::FallbackContextProxy::NON_PROXIED_METHODS = T.let(T.unsafe(nil), Set)
372
+
373
+ # The current version of this library
374
+ #
375
+ # source://docile//lib/docile/version.rb#5
54
376
  Docile::VERSION = T.let(T.unsafe(nil), String)
@@ -0,0 +1,234 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `dotenv` gem.
5
+ # Please instead update this file by running `bin/tapioca gem dotenv`.
6
+
7
+ # The top level Dotenv module. The entrypoint for the application logic.
8
+ #
9
+ # source://dotenv//lib/dotenv/substitutions/variable.rb#3
10
+ module Dotenv
11
+ private
12
+
13
+ # source://dotenv//lib/dotenv.rb#82
14
+ def ignoring_nonexistent_files; end
15
+
16
+ # source://dotenv//lib/dotenv.rb#68
17
+ def instrument(name, payload = T.unsafe(nil), &block); end
18
+
19
+ # source://dotenv//lib/dotenv.rb#13
20
+ def load(*filenames); end
21
+
22
+ # same as `load`, but raises Errno::ENOENT if any files don't exist
23
+ #
24
+ # source://dotenv//lib/dotenv.rb#23
25
+ def load!(*filenames); end
26
+
27
+ # same as `load`, but will override existing values in `ENV`
28
+ #
29
+ # source://dotenv//lib/dotenv.rb#31
30
+ def overload(*filenames); end
31
+
32
+ # same as `overload`, but raises Errno::ENOENT if any files don't exist
33
+ #
34
+ # source://dotenv//lib/dotenv.rb#41
35
+ def overload!(*filenames); end
36
+
37
+ # returns a hash of parsed key/value pairs but does not modify ENV
38
+ #
39
+ # source://dotenv//lib/dotenv.rb#49
40
+ def parse(*filenames); end
41
+
42
+ # source://dotenv//lib/dotenv.rb#76
43
+ def require_keys(*keys); end
44
+
45
+ # Internal: Helper to expand list of filenames.
46
+ #
47
+ # Returns a hash of all the loaded environment variables.
48
+ #
49
+ # source://dotenv//lib/dotenv.rb#60
50
+ def with(*filenames); end
51
+
52
+ class << self
53
+ # source://dotenv//lib/dotenv.rb#82
54
+ def ignoring_nonexistent_files; end
55
+
56
+ # source://dotenv//lib/dotenv.rb#68
57
+ def instrument(name, payload = T.unsafe(nil), &block); end
58
+
59
+ # Returns the value of attribute instrumenter.
60
+ #
61
+ # source://dotenv//lib/dotenv.rb#8
62
+ def instrumenter; end
63
+
64
+ # Sets the attribute instrumenter
65
+ #
66
+ # @param value the value to set the attribute instrumenter to.
67
+ #
68
+ # source://dotenv//lib/dotenv.rb#8
69
+ def instrumenter=(_arg0); end
70
+
71
+ # source://dotenv//lib/dotenv.rb#13
72
+ def load(*filenames); end
73
+
74
+ # same as `load`, but raises Errno::ENOENT if any files don't exist
75
+ #
76
+ # source://dotenv//lib/dotenv.rb#23
77
+ def load!(*filenames); end
78
+
79
+ # same as `load`, but will override existing values in `ENV`
80
+ #
81
+ # source://dotenv//lib/dotenv.rb#31
82
+ def overload(*filenames); end
83
+
84
+ # same as `overload`, but raises Errno::ENOENT if any files don't exist
85
+ #
86
+ # source://dotenv//lib/dotenv.rb#41
87
+ def overload!(*filenames); end
88
+
89
+ # returns a hash of parsed key/value pairs but does not modify ENV
90
+ #
91
+ # source://dotenv//lib/dotenv.rb#49
92
+ def parse(*filenames); end
93
+
94
+ # @raise [MissingKeys]
95
+ #
96
+ # source://dotenv//lib/dotenv.rb#76
97
+ def require_keys(*keys); end
98
+
99
+ # Internal: Helper to expand list of filenames.
100
+ #
101
+ # Returns a hash of all the loaded environment variables.
102
+ #
103
+ # source://dotenv//lib/dotenv.rb#60
104
+ def with(*filenames); end
105
+ end
106
+ end
107
+
108
+ # This class inherits from Hash and represents the environment into which
109
+ # Dotenv will load key value pairs from a file.
110
+ #
111
+ # source://dotenv//lib/dotenv/environment.rb#4
112
+ class Dotenv::Environment < ::Hash
113
+ # @return [Environment] a new instance of Environment
114
+ #
115
+ # source://dotenv//lib/dotenv/environment.rb#7
116
+ def initialize(filename, is_load = T.unsafe(nil)); end
117
+
118
+ # source://dotenv//lib/dotenv/environment.rb#20
119
+ def apply; end
120
+
121
+ # source://dotenv//lib/dotenv/environment.rb#24
122
+ def apply!; end
123
+
124
+ # Returns the value of attribute filename.
125
+ #
126
+ # source://dotenv//lib/dotenv/environment.rb#5
127
+ def filename; end
128
+
129
+ # source://dotenv//lib/dotenv/environment.rb#12
130
+ def load(is_load = T.unsafe(nil)); end
131
+
132
+ # source://dotenv//lib/dotenv/environment.rb#16
133
+ def read; end
134
+ end
135
+
136
+ # source://dotenv//lib/dotenv/missing_keys.rb#2
137
+ class Dotenv::Error < ::StandardError; end
138
+
139
+ # source://dotenv//lib/dotenv/parser.rb#5
140
+ class Dotenv::FormatError < ::SyntaxError; end
141
+
142
+ # source://dotenv//lib/dotenv/missing_keys.rb#4
143
+ class Dotenv::MissingKeys < ::Dotenv::Error
144
+ # @return [MissingKeys] a new instance of MissingKeys
145
+ #
146
+ # source://dotenv//lib/dotenv/missing_keys.rb#5
147
+ def initialize(keys); end
148
+ end
149
+
150
+ # This class enables parsing of a string for key value pairs to be returned
151
+ # and stored in the Environment. It allows for variable substitutions and
152
+ # exporting of variables.
153
+ #
154
+ # source://dotenv//lib/dotenv/parser.rb#10
155
+ class Dotenv::Parser
156
+ # @return [Parser] a new instance of Parser
157
+ #
158
+ # source://dotenv//lib/dotenv/parser.rb#40
159
+ def initialize(string, is_load = T.unsafe(nil)); end
160
+
161
+ # source://dotenv//lib/dotenv/parser.rb#46
162
+ def call; end
163
+
164
+ private
165
+
166
+ # source://dotenv//lib/dotenv/parser.rb#82
167
+ def expand_newlines(value); end
168
+
169
+ # source://dotenv//lib/dotenv/parser.rb#62
170
+ def parse_line(line); end
171
+
172
+ # source://dotenv//lib/dotenv/parser.rb#70
173
+ def parse_value(value); end
174
+
175
+ # source://dotenv//lib/dotenv/parser.rb#100
176
+ def perform_substitutions(value, maybe_quote); end
177
+
178
+ # source://dotenv//lib/dotenv/parser.rb#78
179
+ def unescape_characters(value); end
180
+
181
+ # source://dotenv//lib/dotenv/parser.rb#90
182
+ def unescape_value(value, maybe_quote); end
183
+
184
+ # @return [Boolean]
185
+ #
186
+ # source://dotenv//lib/dotenv/parser.rb#86
187
+ def variable_not_set?(line); end
188
+
189
+ class << self
190
+ # source://dotenv//lib/dotenv/parser.rb#35
191
+ def call(string, is_load = T.unsafe(nil)); end
192
+
193
+ # Returns the value of attribute substitutions.
194
+ #
195
+ # source://dotenv//lib/dotenv/parser.rb#33
196
+ def substitutions; end
197
+ end
198
+ end
199
+
200
+ # source://dotenv//lib/dotenv/parser.rb#14
201
+ Dotenv::Parser::LINE = T.let(T.unsafe(nil), Regexp)
202
+
203
+ # source://dotenv//lib/dotenv/substitutions/variable.rb#4
204
+ module Dotenv::Substitutions; end
205
+
206
+ # Substitute shell commands in a value.
207
+ #
208
+ # SHA=$(git rev-parse HEAD)
209
+ #
210
+ # source://dotenv//lib/dotenv/substitutions/command.rb#9
211
+ module Dotenv::Substitutions::Command
212
+ class << self
213
+ # source://dotenv//lib/dotenv/substitutions/command.rb#23
214
+ def call(value, _env, _is_load); end
215
+ end
216
+ end
217
+
218
+ # Substitute variables in a value.
219
+ #
220
+ # HOST=example.com
221
+ # URL="https://$HOST"
222
+ #
223
+ # source://dotenv//lib/dotenv/substitutions/variable.rb#10
224
+ module Dotenv::Substitutions::Variable
225
+ class << self
226
+ # source://dotenv//lib/dotenv/substitutions/variable.rb#21
227
+ def call(value, env, is_load); end
228
+
229
+ private
230
+
231
+ # source://dotenv//lib/dotenv/substitutions/variable.rb#31
232
+ def substitute(match, variable, env); end
233
+ end
234
+ end
@@ -1,8 +1,8 @@
1
+ # typed: true
2
+
1
3
  # DO NOT EDIT MANUALLY
2
4
  # This is an autogenerated file for types exported from the `e2mmap` gem.
3
- # Please instead update this file by running `bin/tapioca sync`.
4
-
5
- # typed: true
5
+ # Please instead update this file by running `bin/tapioca gem e2mmap`.
6
6
 
7
7
  # THIS IS AN EMPTY RBI FILE.
8
- # see https://github.com/Shopify/tapioca/blob/master/README.md#manual-gem-requires
8
+ # see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem