issuer_response_codes 0.3.8 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +1 -1
  3. data/.rubocop.yml +30 -2
  4. data/.ruby-version +1 -1
  5. data/CHANGELOG.md +6 -0
  6. data/Gemfile +9 -6
  7. data/Gemfile.lock +67 -34
  8. data/bin/tapioca +27 -0
  9. data/bin/test +7 -0
  10. data/issuer_response_codes.gemspec +3 -1
  11. data/lib/issuer_response_codes/code/behaviour/dsl.rb +45 -0
  12. data/lib/issuer_response_codes/code/behaviour.rb +25 -0
  13. data/lib/issuer_response_codes/code.rb +40 -21
  14. data/lib/issuer_response_codes/context.rb +11 -15
  15. data/lib/issuer_response_codes/locale_library.rb +12 -29
  16. data/lib/issuer_response_codes/tds_code.rb +10 -7
  17. data/lib/issuer_response_codes/version.rb +2 -2
  18. data/lib/issuer_response_codes.rb +7 -6
  19. data/lib/locale/cs.yml +0 -25
  20. data/lib/locale/da.yml +0 -12
  21. data/lib/locale/de.yml +0 -25
  22. data/lib/locale/ee.yml +0 -12
  23. data/lib/locale/en.yml +0 -25
  24. data/lib/locale/es.yml +1 -28
  25. data/lib/locale/fi.yml +1 -28
  26. data/lib/locale/fr.yml +1 -28
  27. data/lib/locale/hr.yml +1 -28
  28. data/lib/locale/hu.yml +0 -25
  29. data/lib/locale/it.yml +1 -30
  30. data/lib/locale/ja.yml +0 -25
  31. data/lib/locale/lt.yml +0 -12
  32. data/lib/locale/lv.yml +0 -12
  33. data/lib/locale/nl.yml +1 -28
  34. data/lib/locale/pl.yml +2 -34
  35. data/lib/locale/pt.yml +1 -28
  36. data/lib/locale/ru.yml +0 -25
  37. data/lib/locale/sk.yml +0 -25
  38. data/lib/locale/sv.yml +0 -12
  39. data/lib/locale/uk.yml +0 -25
  40. data/sorbet/config +7 -0
  41. data/sorbet/rbi/annotations/.gitattributes +1 -0
  42. data/sorbet/rbi/annotations/minitest.rbi +119 -0
  43. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  44. data/sorbet/rbi/gems/.gitattributes +1 -0
  45. data/sorbet/rbi/gems/ast@2.4.3.rbi +585 -0
  46. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +86 -0
  47. data/sorbet/rbi/gems/minitest@5.25.5.rbi +1547 -0
  48. data/sorbet/rbi/gems/parallel@1.27.0.rbi +291 -0
  49. data/sorbet/rbi/gems/racc@1.8.1.rbi +160 -0
  50. data/sorbet/rbi/gems/rake@12.3.3.rbi +3020 -0
  51. data/sorbet/rbi/gems/rubocop-espago@1.1.8.rbi +9 -0
  52. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
  53. data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +132 -0
  54. data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
  55. data/sorbet/rbi/todo.rbi +7 -0
  56. data/sorbet/tapioca/config.yml +30 -0
  57. data/sorbet/tapioca/require.rb +4 -0
  58. metadata +39 -3
@@ -0,0 +1,291 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `parallel` gem.
5
+ # Please instead update this file by running `bin/tapioca gem parallel`.
6
+
7
+
8
+ # source://parallel//lib/parallel/version.rb#2
9
+ module Parallel
10
+ class << self
11
+ # @return [Boolean]
12
+ #
13
+ # source://parallel//lib/parallel.rb#243
14
+ def all?(*args, &block); end
15
+
16
+ # @return [Boolean]
17
+ #
18
+ # source://parallel//lib/parallel.rb#238
19
+ def any?(*args, &block); end
20
+
21
+ # source://parallel//lib/parallel.rb#234
22
+ def each(array, options = T.unsafe(nil), &block); end
23
+
24
+ # source://parallel//lib/parallel.rb#248
25
+ def each_with_index(array, options = T.unsafe(nil), &block); end
26
+
27
+ # source://parallel//lib/parallel.rb#307
28
+ def filter_map(*_arg0, **_arg1, &_arg2); end
29
+
30
+ # source://parallel//lib/parallel.rb#303
31
+ def flat_map(*_arg0, **_arg1, &_arg2); end
32
+
33
+ # source://parallel//lib/parallel.rb#228
34
+ def in_processes(options = T.unsafe(nil), &block); end
35
+
36
+ # source://parallel//lib/parallel.rb#212
37
+ def in_threads(options = T.unsafe(nil)); end
38
+
39
+ # source://parallel//lib/parallel.rb#252
40
+ def map(source, options = T.unsafe(nil), &block); end
41
+
42
+ # source://parallel//lib/parallel.rb#299
43
+ def map_with_index(array, options = T.unsafe(nil), &block); end
44
+
45
+ # Number of physical processor cores on the current system.
46
+ #
47
+ # source://parallel//lib/parallel.rb#312
48
+ def physical_processor_count; end
49
+
50
+ # Number of processors seen by the OS or value considering CPU quota if the process is inside a cgroup,
51
+ # used for process scheduling
52
+ #
53
+ # source://parallel//lib/parallel.rb#342
54
+ def processor_count; end
55
+
56
+ # source://parallel//lib/parallel.rb#346
57
+ def worker_number; end
58
+
59
+ # TODO: this does not work when doing threads in forks, so should remove and yield the number instead if needed
60
+ #
61
+ # source://parallel//lib/parallel.rb#351
62
+ def worker_number=(worker_num); end
63
+
64
+ private
65
+
66
+ # source://parallel//lib/parallel.rb#384
67
+ def add_progress_bar!(job_factory, options); end
68
+
69
+ # source://parallel//lib/parallel.rb#699
70
+ def available_processor_count; end
71
+
72
+ # source://parallel//lib/parallel.rb#647
73
+ def call_with_index(item, index, options, &block); end
74
+
75
+ # source://parallel//lib/parallel.rb#579
76
+ def create_workers(job_factory, options, &block); end
77
+
78
+ # options is either a Integer or a Hash with :count
79
+ #
80
+ # source://parallel//lib/parallel.rb#637
81
+ def extract_count_from_options(options); end
82
+
83
+ # source://parallel//lib/parallel.rb#665
84
+ def instrument_finish(item, index, result, options); end
85
+
86
+ # yield results in the order of the input items
87
+ # needs to use `options` to store state between executions
88
+ # needs to use `done` index since a nil result would also be valid
89
+ #
90
+ # source://parallel//lib/parallel.rb#674
91
+ def instrument_finish_in_order(item, index, result, options); end
92
+
93
+ # source://parallel//lib/parallel.rb#694
94
+ def instrument_start(item, index, options); end
95
+
96
+ # source://parallel//lib/parallel.rb#357
97
+ def physical_processor_count_windows; end
98
+
99
+ # source://parallel//lib/parallel.rb#613
100
+ def process_incoming_jobs(read, write, job_factory, options, &block); end
101
+
102
+ # source://parallel//lib/parallel.rb#567
103
+ def replace_worker(job_factory, workers, index, options, blk); end
104
+
105
+ # source://parallel//lib/parallel.rb#378
106
+ def run(command); end
107
+
108
+ # source://parallel//lib/parallel.rb#658
109
+ def with_instrumentation(item, index, options); end
110
+
111
+ # source://parallel//lib/parallel.rb#409
112
+ def work_direct(job_factory, options, &block); end
113
+
114
+ # source://parallel//lib/parallel.rb#519
115
+ def work_in_processes(job_factory, options, &blk); end
116
+
117
+ # source://parallel//lib/parallel.rb#453
118
+ def work_in_ractors(job_factory, options); end
119
+
120
+ # source://parallel//lib/parallel.rb#428
121
+ def work_in_threads(job_factory, options, &block); end
122
+
123
+ # source://parallel//lib/parallel.rb#587
124
+ def worker(job_factory, options, &block); end
125
+ end
126
+ end
127
+
128
+ # source://parallel//lib/parallel.rb#11
129
+ class Parallel::Break < ::StandardError
130
+ # @return [Break] a new instance of Break
131
+ #
132
+ # source://parallel//lib/parallel.rb#14
133
+ def initialize(value = T.unsafe(nil)); end
134
+
135
+ # Returns the value of attribute value.
136
+ #
137
+ # source://parallel//lib/parallel.rb#12
138
+ def value; end
139
+ end
140
+
141
+ # source://parallel//lib/parallel.rb#8
142
+ class Parallel::DeadWorker < ::StandardError; end
143
+
144
+ # source://parallel//lib/parallel.rb#32
145
+ class Parallel::ExceptionWrapper
146
+ # @return [ExceptionWrapper] a new instance of ExceptionWrapper
147
+ #
148
+ # source://parallel//lib/parallel.rb#35
149
+ def initialize(exception); end
150
+
151
+ # Returns the value of attribute exception.
152
+ #
153
+ # source://parallel//lib/parallel.rb#33
154
+ def exception; end
155
+ end
156
+
157
+ # source://parallel//lib/parallel.rb#98
158
+ class Parallel::JobFactory
159
+ # @return [JobFactory] a new instance of JobFactory
160
+ #
161
+ # source://parallel//lib/parallel.rb#99
162
+ def initialize(source, mutex); end
163
+
164
+ # source://parallel//lib/parallel.rb#107
165
+ def next; end
166
+
167
+ # generate item that is sent to workers
168
+ # just index is faster + less likely to blow up with unserializable errors
169
+ #
170
+ # source://parallel//lib/parallel.rb#136
171
+ def pack(item, index); end
172
+
173
+ # source://parallel//lib/parallel.rb#126
174
+ def size; end
175
+
176
+ # unpack item that is sent to workers
177
+ #
178
+ # source://parallel//lib/parallel.rb#141
179
+ def unpack(data); end
180
+
181
+ private
182
+
183
+ # @return [Boolean]
184
+ #
185
+ # source://parallel//lib/parallel.rb#147
186
+ def producer?; end
187
+
188
+ # source://parallel//lib/parallel.rb#151
189
+ def queue_wrapper(array); end
190
+ end
191
+
192
+ # source://parallel//lib/parallel.rb#20
193
+ class Parallel::Kill < ::Parallel::Break; end
194
+
195
+ # source://parallel//lib/parallel.rb#6
196
+ Parallel::Stop = T.let(T.unsafe(nil), Object)
197
+
198
+ # source://parallel//lib/parallel.rb#23
199
+ class Parallel::UndumpableException < ::StandardError
200
+ # @return [UndumpableException] a new instance of UndumpableException
201
+ #
202
+ # source://parallel//lib/parallel.rb#26
203
+ def initialize(original); end
204
+
205
+ # Returns the value of attribute backtrace.
206
+ #
207
+ # source://parallel//lib/parallel.rb#24
208
+ def backtrace; end
209
+ end
210
+
211
+ # source://parallel//lib/parallel.rb#156
212
+ class Parallel::UserInterruptHandler
213
+ class << self
214
+ # source://parallel//lib/parallel.rb#181
215
+ def kill(thing); end
216
+
217
+ # kill all these pids or threads if user presses Ctrl+c
218
+ #
219
+ # source://parallel//lib/parallel.rb#161
220
+ def kill_on_ctrl_c(pids, options); end
221
+
222
+ private
223
+
224
+ # source://parallel//lib/parallel.rb#205
225
+ def restore_interrupt(old, signal); end
226
+
227
+ # source://parallel//lib/parallel.rb#190
228
+ def trap_interrupt(signal); end
229
+ end
230
+ end
231
+
232
+ # source://parallel//lib/parallel.rb#157
233
+ Parallel::UserInterruptHandler::INTERRUPT_SIGNAL = T.let(T.unsafe(nil), Symbol)
234
+
235
+ # source://parallel//lib/parallel/version.rb#3
236
+ Parallel::VERSION = T.let(T.unsafe(nil), String)
237
+
238
+ # source://parallel//lib/parallel/version.rb#3
239
+ Parallel::Version = T.let(T.unsafe(nil), String)
240
+
241
+ # source://parallel//lib/parallel.rb#51
242
+ class Parallel::Worker
243
+ # @return [Worker] a new instance of Worker
244
+ #
245
+ # source://parallel//lib/parallel.rb#55
246
+ def initialize(read, write, pid); end
247
+
248
+ # might be passed to started_processes and simultaneously closed by another thread
249
+ # when running in isolation mode, so we have to check if it is closed before closing
250
+ #
251
+ # source://parallel//lib/parallel.rb#68
252
+ def close_pipes; end
253
+
254
+ # Returns the value of attribute pid.
255
+ #
256
+ # source://parallel//lib/parallel.rb#52
257
+ def pid; end
258
+
259
+ # Returns the value of attribute read.
260
+ #
261
+ # source://parallel//lib/parallel.rb#52
262
+ def read; end
263
+
264
+ # source://parallel//lib/parallel.rb#61
265
+ def stop; end
266
+
267
+ # Returns the value of attribute thread.
268
+ #
269
+ # source://parallel//lib/parallel.rb#53
270
+ def thread; end
271
+
272
+ # Sets the attribute thread
273
+ #
274
+ # @param value the value to set the attribute thread to.
275
+ #
276
+ # source://parallel//lib/parallel.rb#53
277
+ def thread=(_arg0); end
278
+
279
+ # source://parallel//lib/parallel.rb#73
280
+ def work(data); end
281
+
282
+ # Returns the value of attribute write.
283
+ #
284
+ # source://parallel//lib/parallel.rb#52
285
+ def write; end
286
+
287
+ private
288
+
289
+ # source://parallel//lib/parallel.rb#91
290
+ def wait; end
291
+ end
@@ -0,0 +1,160 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `racc` gem.
5
+ # Please instead update this file by running `bin/tapioca gem racc`.
6
+
7
+
8
+ # source://racc//lib/racc/parser.rb#19
9
+ ParseError = Racc::ParseError
10
+
11
+ # source://racc//lib/racc/info.rb#17
12
+ Racc::Copyright = T.let(T.unsafe(nil), String)
13
+
14
+ class Racc::CparseParams; end
15
+
16
+ # source://racc//lib/racc/parser.rb#184
17
+ class Racc::Parser
18
+ # source://racc//lib/racc/parser.rb#279
19
+ def _racc_do_parse_rb(arg, in_debug); end
20
+
21
+ # source://racc//lib/racc/parser.rb#479
22
+ def _racc_do_reduce(arg, act); end
23
+
24
+ # common
25
+ #
26
+ # source://racc//lib/racc/parser.rb#382
27
+ def _racc_evalact(act, arg); end
28
+
29
+ # source://racc//lib/racc/parser.rb#232
30
+ def _racc_init_sysvars; end
31
+
32
+ # source://racc//lib/racc/parser.rb#220
33
+ def _racc_setup; end
34
+
35
+ # source://racc//lib/racc/parser.rb#329
36
+ def _racc_yyparse_rb(recv, mid, arg, c_debug); end
37
+
38
+ # source://racc//lib/racc/parser.rb#262
39
+ def do_parse; end
40
+
41
+ # The method to fetch next token.
42
+ # If you use #do_parse method, you must implement #next_token.
43
+ #
44
+ # The format of return value is [TOKEN_SYMBOL, VALUE].
45
+ # +token-symbol+ is represented by Ruby's symbol by default, e.g. :IDENT
46
+ # for 'IDENT'. ";" (String) for ';'.
47
+ #
48
+ # The final symbol (End of file) must be false.
49
+ #
50
+ # @raise [NotImplementedError]
51
+ #
52
+ # source://racc//lib/racc/parser.rb#275
53
+ def next_token; end
54
+
55
+ # This method is called when a parse error is found.
56
+ #
57
+ # ERROR_TOKEN_ID is an internal ID of token which caused error.
58
+ # You can get string representation of this ID by calling
59
+ # #token_to_str.
60
+ #
61
+ # ERROR_VALUE is a value of error token.
62
+ #
63
+ # value_stack is a stack of symbol values.
64
+ # DO NOT MODIFY this object.
65
+ #
66
+ # This method raises ParseError by default.
67
+ #
68
+ # If this method returns, parsers enter "error recovering mode".
69
+ #
70
+ # @raise [ParseError]
71
+ #
72
+ # source://racc//lib/racc/parser.rb#535
73
+ def on_error(t, val, vstack); end
74
+
75
+ # source://racc//lib/racc/parser.rb#584
76
+ def racc_accept; end
77
+
78
+ # source://racc//lib/racc/parser.rb#589
79
+ def racc_e_pop(state, tstack, vstack); end
80
+
81
+ # source://racc//lib/racc/parser.rb#596
82
+ def racc_next_state(curstate, state); end
83
+
84
+ # source://racc//lib/racc/parser.rb#602
85
+ def racc_print_stacks(t, v); end
86
+
87
+ # source://racc//lib/racc/parser.rb#611
88
+ def racc_print_states(s); end
89
+
90
+ # For debugging output
91
+ #
92
+ # source://racc//lib/racc/parser.rb#558
93
+ def racc_read_token(t, tok, val); end
94
+
95
+ # source://racc//lib/racc/parser.rb#571
96
+ def racc_reduce(toks, sim, tstack, vstack); end
97
+
98
+ # source://racc//lib/racc/parser.rb#565
99
+ def racc_shift(tok, tstack, vstack); end
100
+
101
+ # source://racc//lib/racc/parser.rb#618
102
+ def racc_token2str(tok); end
103
+
104
+ # Convert internal ID of token symbol to the string.
105
+ #
106
+ # source://racc//lib/racc/parser.rb#624
107
+ def token_to_str(t); end
108
+
109
+ # Exit parser.
110
+ # Return value is +Symbol_Value_Stack[0]+.
111
+ #
112
+ # source://racc//lib/racc/parser.rb#548
113
+ def yyaccept; end
114
+
115
+ # Leave error recovering mode.
116
+ #
117
+ # source://racc//lib/racc/parser.rb#553
118
+ def yyerrok; end
119
+
120
+ # Enter error recovering mode.
121
+ # This method does not call #on_error.
122
+ #
123
+ # source://racc//lib/racc/parser.rb#542
124
+ def yyerror; end
125
+
126
+ # source://racc//lib/racc/parser.rb#324
127
+ def yyparse(recv, mid); end
128
+
129
+ class << self
130
+ # source://racc//lib/racc/parser.rb#216
131
+ def racc_runtime_type; end
132
+ end
133
+ end
134
+
135
+ # source://racc//lib/racc/parser.rb#205
136
+ Racc::Parser::Racc_Main_Parsing_Routine = T.let(T.unsafe(nil), Symbol)
137
+
138
+ # source://racc//lib/racc/parser.rb#207
139
+ Racc::Parser::Racc_Runtime_Core_Version = T.let(T.unsafe(nil), String)
140
+
141
+ # source://racc//lib/racc/parser.rb#187
142
+ Racc::Parser::Racc_Runtime_Core_Version_R = T.let(T.unsafe(nil), String)
143
+
144
+ # source://racc//lib/racc/parser.rb#208
145
+ Racc::Parser::Racc_Runtime_Type = T.let(T.unsafe(nil), String)
146
+
147
+ # source://racc//lib/racc/parser.rb#186
148
+ Racc::Parser::Racc_Runtime_Version = T.let(T.unsafe(nil), String)
149
+
150
+ # source://racc//lib/racc/parser.rb#206
151
+ Racc::Parser::Racc_YY_Parse_Method = T.let(T.unsafe(nil), Symbol)
152
+
153
+ # source://racc//lib/racc/parser.rb#181
154
+ Racc::Racc_No_Extensions = T.let(T.unsafe(nil), FalseClass)
155
+
156
+ # source://racc//lib/racc/info.rb#15
157
+ Racc::VERSION = T.let(T.unsafe(nil), String)
158
+
159
+ # source://racc//lib/racc/info.rb#16
160
+ Racc::Version = T.let(T.unsafe(nil), String)