roast-ai 1.0.2 → 1.2.0

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 (125) hide show
  1. checksums.yaml +4 -4
  2. data/.claude/commands/docs/write-comments.md +1 -1
  3. data/.rubocop.yml +12 -1
  4. data/Gemfile +2 -2
  5. data/Gemfile.lock +149 -34
  6. data/README.md +56 -3
  7. data/examples/agent_with_multiple_prompts.rb +27 -0
  8. data/examples/custom_logging.rb +4 -2
  9. data/examples/demo/Gemfile.lock +49 -15
  10. data/examples/plugin-gem-example/Gemfile.lock +19 -15
  11. data/examples/simple_chat.rb +1 -1
  12. data/examples/simple_pi_agent.rb +18 -0
  13. data/internal/rubocop/cop/roast/no_test_class_nesting.rb +126 -0
  14. data/internal/rubocop/rubocop-roast.yml +6 -0
  15. data/internal/workflows/maintenance/branch_docs_impact.rb +97 -0
  16. data/internal/workflows/maintenance/deprecated_models_docs_updater.rb +78 -0
  17. data/lib/roast/cog/config.rb +1 -1
  18. data/lib/roast/cog/output.rb +2 -1
  19. data/lib/roast/cog/registry.rb +3 -3
  20. data/lib/roast/cog_input_manager.rb +28 -7
  21. data/lib/roast/cogs/agent/config.rb +2 -2
  22. data/lib/roast/cogs/agent/input.rb +20 -22
  23. data/lib/roast/cogs/agent/providers/claude/claude_invocation.rb +13 -5
  24. data/lib/roast/cogs/agent/providers/claude/messages/result_message.rb +1 -1
  25. data/lib/roast/cogs/agent/providers/claude/tool_result.rb +344 -4
  26. data/lib/roast/cogs/agent/providers/claude/tool_use.rb +356 -1
  27. data/lib/roast/cogs/agent/providers/claude.rb +16 -3
  28. data/lib/roast/cogs/agent/providers/pi/messages/tool_call_message.rb +60 -0
  29. data/lib/roast/cogs/agent/providers/pi/messages/tool_result_message.rb +57 -0
  30. data/lib/roast/cogs/agent/providers/pi/pi_invocation.rb +352 -0
  31. data/lib/roast/cogs/agent/providers/pi.rb +41 -0
  32. data/lib/roast/cogs/agent/stats.rb +29 -0
  33. data/lib/roast/cogs/agent/usage.rb +22 -0
  34. data/lib/roast/cogs/agent.rb +5 -6
  35. data/lib/roast/cogs/chat/config.rb +28 -2
  36. data/lib/roast/cogs/chat.rb +82 -10
  37. data/lib/roast/event.rb +1 -0
  38. data/lib/roast/event_monitor.rb +35 -3
  39. data/lib/roast/log.rb +21 -0
  40. data/lib/roast/log_formatter.rb +9 -7
  41. data/lib/roast/version.rb +1 -1
  42. data/lib/roast.rb +1 -3
  43. data/roast-ai.gemspec +2 -1
  44. data/sorbet/rbi/gems/activesupport@8.0.2.rbi +549 -383
  45. data/sorbet/rbi/gems/addressable@2.8.7.rbi +46 -44
  46. data/sorbet/rbi/gems/ast@2.4.3.rbi +7 -6
  47. data/sorbet/rbi/gems/async@2.34.0.rbi +21 -3
  48. data/sorbet/rbi/gems/benchmark@0.4.1.rbi +7 -7
  49. data/sorbet/rbi/gems/bigdecimal@3.2.2.rbi +198 -1
  50. data/sorbet/rbi/gems/concurrent-ruby@1.3.5.rbi +405 -328
  51. data/sorbet/rbi/gems/console@1.34.2.rbi +2 -2
  52. data/sorbet/rbi/gems/docile@1.4.1.rbi +30 -30
  53. data/sorbet/rbi/gems/drb@2.2.3.rbi +25 -25
  54. data/sorbet/rbi/gems/erubi@1.13.1.rbi +2 -0
  55. data/sorbet/rbi/gems/faraday-net_http@3.4.2.rbi +2 -77
  56. data/sorbet/rbi/gems/faraday-retry@2.3.2.rbi +2 -57
  57. data/sorbet/rbi/gems/faraday@2.14.1.rbi +382 -75
  58. data/sorbet/rbi/gems/guard-compat@1.2.1.rbi +1 -110
  59. data/sorbet/rbi/gems/guard-minitest@2.4.6.rbi +0 -139
  60. data/sorbet/rbi/gems/guard@2.19.1.rbi +38 -38
  61. data/sorbet/rbi/gems/hashdiff@1.2.0.rbi +3 -3
  62. data/sorbet/rbi/gems/i18n@1.14.7.rbi +53 -29
  63. data/sorbet/rbi/gems/io-event@1.14.0.rbi +67 -10
  64. data/sorbet/rbi/gems/json@2.18.1.rbi +227 -5
  65. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +83 -0
  66. data/sorbet/rbi/gems/listen@3.9.0.rbi +7 -7
  67. data/sorbet/rbi/gems/logger@1.7.0.rbi +3 -3
  68. data/sorbet/rbi/gems/lumberjack@1.2.10.rbi +21 -21
  69. data/sorbet/rbi/gems/marcel@1.1.0.rbi +1 -1
  70. data/sorbet/rbi/gems/minitest-rg@5.3.0.rbi +0 -96
  71. data/sorbet/rbi/gems/minitest@5.25.5.rbi +1 -16
  72. data/sorbet/rbi/gems/net-http@0.9.1.rbi +27 -19
  73. data/sorbet/rbi/gems/netrc@0.11.0.rbi +18 -0
  74. data/sorbet/rbi/gems/notiffany@0.1.3.rbi +20 -20
  75. data/sorbet/rbi/gems/ostruct@0.6.2.rbi +149 -15
  76. data/sorbet/rbi/gems/parser@3.3.8.0.rbi +141 -139
  77. data/sorbet/rbi/gems/prism@1.4.0.rbi +922 -864
  78. data/sorbet/rbi/gems/public_suffix@6.0.2.rbi +56 -35
  79. data/sorbet/rbi/gems/racc@1.8.1.rbi +10 -2
  80. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +12 -12
  81. data/sorbet/rbi/gems/rake@13.3.0.rbi +219 -318
  82. data/sorbet/rbi/gems/{rbi@0.3.6.rbi → rbi@0.3.9.rbi} +612 -2267
  83. data/sorbet/rbi/gems/{rbs@3.9.4.rbi → rbs@4.0.0.dev.5.rbi} +2013 -680
  84. data/sorbet/rbi/gems/regexp_parser@2.10.0.rbi +151 -113
  85. data/sorbet/rbi/gems/require-hooks@0.2.3.rbi +110 -0
  86. data/sorbet/rbi/gems/rexml@3.4.2.rbi +24 -51
  87. data/sorbet/rbi/gems/rubocop-ast@1.45.1.rbi +506 -815
  88. data/sorbet/rbi/gems/rubocop-sorbet@0.10.5.rbi +16 -16
  89. data/sorbet/rbi/gems/rubocop@1.77.0.rbi +2692 -2327
  90. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +8 -8
  91. data/sorbet/rbi/gems/ruby_llm@1.8.2.rbi +38 -23
  92. data/sorbet/rbi/gems/securerandom@0.4.1.rbi +1 -1
  93. data/sorbet/rbi/gems/simplecov-html@0.13.2.rbi +2 -131
  94. data/sorbet/rbi/gems/simplecov@0.22.0.rbi +28 -127
  95. data/sorbet/rbi/gems/{spoom@1.6.3.rbi → spoom@1.7.11.rbi} +1139 -2246
  96. data/sorbet/rbi/gems/sqlite3@2.9.0.rbi +91 -1
  97. data/sorbet/rbi/gems/{tapioca@0.16.11.rbi → tapioca@0.17.10.rbi} +721 -835
  98. data/sorbet/rbi/gems/thor@1.4.0.rbi +53 -53
  99. data/sorbet/rbi/gems/tsort@0.2.0.rbi +393 -0
  100. data/sorbet/rbi/gems/type_toolkit@0.0.5.rbi +49 -0
  101. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +144 -143
  102. data/sorbet/rbi/gems/uri@1.1.1.rbi +7 -7
  103. data/sorbet/rbi/gems/vcr@6.3.1.rbi +53 -36
  104. data/sorbet/rbi/gems/webmock@3.25.1.rbi +38 -13
  105. data/sorbet/rbi/gems/zeitwerk@2.7.3.rbi +39 -272
  106. data/sorbet/rbi/shims/lib/roast/execution_context.rbi +3 -3
  107. data/tutorial/01_your_first_workflow/README.md +9 -5
  108. data/tutorial/01_your_first_workflow/configured_chat.rb +1 -1
  109. data/tutorial/02_chaining_cogs/README.md +2 -2
  110. data/tutorial/02_chaining_cogs/code_review.rb +1 -1
  111. data/tutorial/02_chaining_cogs/session_resumption.rb +1 -1
  112. data/tutorial/03_targets_and_params/README.md +1 -1
  113. data/tutorial/04_configuration_options/README.md +2 -2
  114. data/tutorial/08_iterative_workflows/README.md +1 -1
  115. data/tutorial/README.md +1 -1
  116. metadata +39 -17
  117. data/docs/AGENT_STEPS.md +0 -288
  118. data/docs/INSTRUMENTATION.md +0 -243
  119. data/docs/ITERATION_SYNTAX.md +0 -147
  120. data/docs/VALIDATION.md +0 -178
  121. data/lib/roast/nil_assertions.rb +0 -23
  122. /data/internal/documentation/{architectural-notes.md → comments/architectural-notes.md} +0 -0
  123. /data/internal/documentation/{doc-comments-external.md → comments/doc-comments-external.md} +0 -0
  124. /data/internal/documentation/{doc-comments-internal.md → comments/doc-comments-internal.md} +0 -0
  125. /data/internal/documentation/{doc-comments.md → comments/doc-comments.md} +0 -0
@@ -200,8 +200,8 @@ class Lumberjack::Device::DateRollingLogFile < ::Lumberjack::Device::RollingLogF
200
200
  # with the :roll option which may contain a value of :daily, :weekly,
201
201
  # or :monthly.
202
202
  #
203
- # @param path [String, Pathname] The path to the log file.
204
203
  # @param options [Hash] The options for the device.
204
+ # @param path [String, Pathname] The path to the log file.
205
205
  # @return [DateRollingLogFile] a new instance of DateRollingLogFile
206
206
  #
207
207
  # source://lumberjack//lib/lumberjack/device/date_rolling_log_file.rb#19
@@ -233,8 +233,8 @@ end
233
233
  class Lumberjack::Device::LogFile < ::Lumberjack::Device::Writer
234
234
  # Create a logger to the file at +path+. Options are passed through to the Writer constructor.
235
235
  #
236
- # @param path [String, Pathname] The path to the log file.
237
236
  # @param options [Hash] The options for the device.
237
+ # @param path [String, Pathname] The path to the log file.
238
238
  # @return [LogFile] a new instance of LogFile
239
239
  #
240
240
  # source://lumberjack//lib/lumberjack/device/log_file.rb#18
@@ -440,8 +440,8 @@ class Lumberjack::Device::Writer < ::Lumberjack::Device
440
440
  #
441
441
  # The size of the internal buffer in bytes can be set by providing :buffer_size (defaults to 32K).
442
442
  #
443
- # @param stream [IO] The stream to write log entries to.
444
443
  # @param options [Hash] The options for the device.
444
+ # @param stream [IO] The stream to write log entries to.
445
445
  # @return [Writer] a new instance of Writer
446
446
  #
447
447
  # source://lumberjack//lib/lumberjack/device/writer.rb#66
@@ -602,12 +602,12 @@ class Lumberjack::Formatter
602
602
  #
603
603
  # # Add statements can be chained together
604
604
  # formatter.add(MyClass, :pretty_print).add(YourClass){|obj| obj.humanize}
605
- # @param klass [Class, Module, String, Array<Class, Module, String>] The class or module to add a formatter for.
605
+ # @param args [Array] Arguments to pass to the formatter when it is initialized.
606
606
  # @param formatter [Symbol, Class, String, #call] The formatter to use for the class.
607
607
  # If a symbol is passed in, it will be used to load one of the predefined formatters.
608
608
  # If a class is passed in, it will be initialized with the args passed in.
609
609
  # Otherwise, the object will be used as the formatter and must respond to call method.
610
- # @param args [Array] Arguments to pass to the formatter when it is initialized.
610
+ # @param klass [Class, Module, String, Array<Class, Module, String>] The class or module to add a formatter for.
611
611
  # @return [self] Returns itself so that add statements can be chained together.
612
612
  # @yield [obj] A block that will be used as the formatter for the class.
613
613
  # @yieldparam obj [Object] The object to format.
@@ -619,10 +619,10 @@ class Lumberjack::Formatter
619
619
  # Compatibility with the Logger::Formatter signature. This method will just convert the message
620
620
  # object to a string and ignores the other parameters.
621
621
  #
622
+ # @param msg [Object] The message object to format.
623
+ # @param progname [String] The name of the program logging the message.
622
624
  # @param severity [Integer, String, Symbol] The severity of the message.
623
625
  # @param timestamp [Time] The time the message was logged.
624
- # @param progname [String] The name of the program logging the message.
625
- # @param msg [Object] The message object to format.
626
626
  #
627
627
  # source://lumberjack//lib/lumberjack/formatter.rb#175
628
628
  def call(severity, timestamp, progname, msg); end
@@ -863,12 +863,12 @@ Lumberjack::LINE_SEPARATOR = T.let(T.unsafe(nil), String)
863
863
  class Lumberjack::LogEntry
864
864
  # Create a new log entry.
865
865
  #
866
- # @param time [Time] The time the log entry was created.
867
- # @param severity [Integer, String] The severity of the log entry.
868
866
  # @param message [String] The message to log.
869
- # @param progname [String] The name of the program that created the log entry.
870
867
  # @param pid [Integer] The process id of the program that created the log entry.
868
+ # @param progname [String] The name of the program that created the log entry.
869
+ # @param severity [Integer, String] The severity of the log entry.
871
870
  # @param tags [Hash] A hash of tags to associate with the log entry.
871
+ # @param time [Time] The time the log entry was created.
872
872
  # @return [LogEntry] a new instance of LogEntry
873
873
  #
874
874
  # source://lumberjack//lib/lumberjack/log_entry.rb#21
@@ -1049,9 +1049,9 @@ class Lumberjack::Logger
1049
1049
 
1050
1050
  # ::Logger compatible method to add a log entry.
1051
1051
  #
1052
- # @param severity [Integer, Symbol, String] The severity of the message.
1053
1052
  # @param message [Object] The message to log.
1054
1053
  # @param progname [String] The name of the program that is logging the message.
1054
+ # @param severity [Integer, Symbol, String] The severity of the message.
1055
1055
  # @return [void]
1056
1056
  #
1057
1057
  # source://lumberjack//lib/lumberjack/logger.rb#229
@@ -1071,9 +1071,9 @@ class Lumberjack::Logger
1071
1071
  # logger.add_entry(Logger::INFO, "Request completed")
1072
1072
  # logger.add_entry(:warn, "Request took a long time")
1073
1073
  # logger.add_entry(Logger::DEBUG){"Start processing with options #{options.inspect}"}
1074
- # @param severity [Integer, Symbol, String] The severity of the message.
1075
1074
  # @param message [Object] The message to log.
1076
1075
  # @param progname [String] The name of the program that is logging the message.
1076
+ # @param severity [Integer, Symbol, String] The severity of the message.
1077
1077
  # @param tags [Hash] The tags to add to the log entry.
1078
1078
  # @return [void]
1079
1079
  #
@@ -1265,12 +1265,12 @@ class Lumberjack::Logger
1265
1265
 
1266
1266
  # ::Logger compatible method to add a log entry.
1267
1267
  #
1268
- # @param severity [Integer, Symbol, String] The severity of the message.
1269
1268
  # @param message [Object] The message to log.
1270
1269
  # @param progname [String] The name of the program that is logging the message.
1270
+ # @param severity [Integer, Symbol, String] The severity of the message.
1271
1271
  # @return [void]
1272
1272
  #
1273
- # source://lumberjack//lib/lumberjack/logger.rb#229
1273
+ # source://lumberjack//lib/lumberjack/logger.rb#241
1274
1274
  def log(severity, message = T.unsafe(nil), progname = T.unsafe(nil), &block); end
1275
1275
 
1276
1276
  # Get the program name associated with log messages.
@@ -1316,7 +1316,7 @@ class Lumberjack::Logger
1316
1316
  #
1317
1317
  # @return [Integer] The severity level.
1318
1318
  #
1319
- # source://lumberjack//lib/lumberjack/logger.rb#109
1319
+ # source://lumberjack//lib/lumberjack/logger.rb#113
1320
1320
  def sev_threshold; end
1321
1321
 
1322
1322
  # Set the log level using either an integer level like Logger::INFO or a label like
@@ -1325,7 +1325,7 @@ class Lumberjack::Logger
1325
1325
  # @param value [Integer, Symbol, String] The severity level.
1326
1326
  # @return [void]
1327
1327
  #
1328
- # source://lumberjack//lib/lumberjack/logger.rb#120
1328
+ # source://lumberjack//lib/lumberjack/logger.rb#124
1329
1329
  def sev_threshold=(value); end
1330
1330
 
1331
1331
  # Silence the logger by setting a new log level inside a block. By default, only +ERROR+ or +FATAL+
@@ -1604,9 +1604,9 @@ class Lumberjack::TagFormatter
1604
1604
  # or an object that responds to `call` or a block. The default formatter will not be
1605
1605
  # applied.
1606
1606
  #
1607
- # @param names [String, Array<String>] The tag names to apply the formatter to.
1608
1607
  # @param formatter [Lumberjack::Formatter, #call, nil] The formatter to use.
1609
1608
  # If this is nil, then the block will be used as the formatter.
1609
+ # @param names [String, Array<String>] The tag names to apply the formatter to.
1610
1610
  # @return [Lumberjack::TagFormatter] self
1611
1611
  #
1612
1612
  # source://lumberjack//lib/lumberjack/tag_formatter.rb#46
@@ -1691,19 +1691,19 @@ class Lumberjack::TaggedLoggerSupport::Formatter
1691
1691
  # source://lumberjack//lib/lumberjack/tagged_logger_support.rb#35
1692
1692
  def __formatter; end
1693
1693
 
1694
- # source://forwardable/1.3.3/forwardable.rb#231
1694
+ # source://lumberjack//lib/lumberjack/tagged_logger_support.rb#11
1695
1695
  def clear_tags!(*args, **_arg1, &block); end
1696
1696
 
1697
1697
  # source://lumberjack//lib/lumberjack/tagged_logger_support.rb#19
1698
1698
  def current_tags; end
1699
1699
 
1700
- # source://forwardable/1.3.3/forwardable.rb#231
1700
+ # source://lumberjack//lib/lumberjack/tagged_logger_support.rb#11
1701
1701
  def pop_tags(*args, **_arg1, &block); end
1702
1702
 
1703
- # source://forwardable/1.3.3/forwardable.rb#231
1703
+ # source://lumberjack//lib/lumberjack/tagged_logger_support.rb#11
1704
1704
  def push_tags(*args, **_arg1, &block); end
1705
1705
 
1706
- # source://forwardable/1.3.3/forwardable.rb#231
1706
+ # source://lumberjack//lib/lumberjack/tagged_logger_support.rb#11
1707
1707
  def tagged(*args, **_arg1, &block); end
1708
1708
 
1709
1709
  # source://lumberjack//lib/lumberjack/tagged_logger_support.rb#28
@@ -36,7 +36,7 @@ class Marcel::Magic
36
36
  #
37
37
  # @return [Boolean]
38
38
  #
39
- # source://marcel//lib/marcel/magic.rb#103
39
+ # source://marcel//lib/marcel/magic.rb#111
40
40
  def ==(other); end
41
41
 
42
42
  # @return [Boolean]
@@ -8,107 +8,11 @@
8
8
  # source://minitest-rg//lib/minitest/rg_plugin.rb#5
9
9
  module Minitest
10
10
  class << self
11
- # source://minitest/5.25.5/lib/minitest.rb#323
12
- def __run(reporter, options); end
13
-
14
- # source://minitest/5.25.5/lib/minitest.rb#97
15
- def after_run(&block); end
16
-
17
- # source://minitest/5.25.5/lib/minitest.rb#20
18
- def allow_fork; end
19
-
20
- # source://minitest/5.25.5/lib/minitest.rb#20
21
- def allow_fork=(_arg0); end
22
-
23
- # source://minitest/5.25.5/lib/minitest.rb#70
24
- def autorun; end
25
-
26
- # source://minitest/5.25.5/lib/minitest.rb#20
27
- def backtrace_filter; end
28
-
29
- # source://minitest/5.25.5/lib/minitest.rb#20
30
- def backtrace_filter=(_arg0); end
31
-
32
- # source://minitest/5.25.5/lib/minitest.rb#19
33
- def cattr_accessor(name); end
34
-
35
- # source://minitest/5.25.5/lib/minitest.rb#1216
36
- def clock_time; end
37
-
38
- # source://minitest/5.25.5/lib/minitest.rb#303
39
- def empty_run!(options); end
40
-
41
- # source://minitest/5.25.5/lib/minitest.rb#20
42
- def extensions; end
43
-
44
- # source://minitest/5.25.5/lib/minitest.rb#20
45
- def extensions=(_arg0); end
46
-
47
- # source://minitest/5.25.5/lib/minitest.rb#336
48
- def filter_backtrace(bt); end
49
-
50
- # source://minitest/5.25.5/lib/minitest.rb#20
51
- def info_signal; end
52
-
53
- # source://minitest/5.25.5/lib/minitest.rb#20
54
- def info_signal=(_arg0); end
55
-
56
- # source://minitest/5.25.5/lib/minitest.rb#125
57
- def init_plugins(options); end
58
-
59
- # source://minitest/5.25.5/lib/minitest.rb#109
60
- def load_plugins; end
61
-
62
- # source://minitest/5.25.5/lib/minitest.rb#20
63
- def parallel_executor; end
64
-
65
- # source://minitest/5.25.5/lib/minitest.rb#20
66
- def parallel_executor=(_arg0); end
67
-
68
- # source://guard-minitest/2.4.6/lib/minitest/guard_minitest_plugin.rb#8
69
- def plugin_guard_minitest_init(options); end
70
-
71
- # source://guard-minitest/2.4.6/lib/minitest/guard_minitest_plugin.rb#2
72
- def plugin_guard_minitest_options(opts, options); end
73
-
74
- # source://minitest/5.25.5/lib/minitest/pride_plugin.rb#10
75
- def plugin_pride_init(options); end
76
-
77
- # source://minitest/5.25.5/lib/minitest/pride_plugin.rb#4
78
- def plugin_pride_options(opts, _options); end
79
-
80
11
  # source://minitest-rg//lib/minitest/rg_plugin.rb#12
81
12
  def plugin_rg_init(options); end
82
13
 
83
14
  # source://minitest-rg//lib/minitest/rg_plugin.rb#6
84
15
  def plugin_rg_options(opts, _options); end
85
-
86
- # source://simplecov/0.22.0/lib/minitest/simplecov_plugin.rb#6
87
- def plugin_simplecov_init(_options); end
88
-
89
- # source://minitest/5.25.5/lib/minitest.rb#143
90
- def process_args(args = T.unsafe(nil)); end
91
-
92
- # source://minitest/5.25.5/lib/minitest.rb#104
93
- def register_plugin(name_or_mod); end
94
-
95
- # source://minitest/5.25.5/lib/minitest.rb#20
96
- def reporter; end
97
-
98
- # source://minitest/5.25.5/lib/minitest.rb#20
99
- def reporter=(_arg0); end
100
-
101
- # source://minitest/5.25.5/lib/minitest.rb#269
102
- def run(args = T.unsafe(nil)); end
103
-
104
- # source://minitest/5.25.5/lib/minitest.rb#1207
105
- def run_one_method(klass, method_name); end
106
-
107
- # source://minitest/5.25.5/lib/minitest.rb#20
108
- def seed; end
109
-
110
- # source://minitest/5.25.5/lib/minitest.rb#20
111
- def seed=(_arg0); end
112
16
  end
113
17
  end
114
18
 
@@ -78,27 +78,12 @@ module Minitest
78
78
  # source://minitest//lib/minitest.rb#20
79
79
  def parallel_executor=(_arg0); end
80
80
 
81
- # source://guard-minitest/2.4.6/lib/minitest/guard_minitest_plugin.rb#8
82
- def plugin_guard_minitest_init(options); end
83
-
84
- # source://guard-minitest/2.4.6/lib/minitest/guard_minitest_plugin.rb#2
85
- def plugin_guard_minitest_options(opts, options); end
86
-
87
81
  # source://minitest//lib/minitest/pride_plugin.rb#10
88
82
  def plugin_pride_init(options); end
89
83
 
90
84
  # source://minitest//lib/minitest/pride_plugin.rb#4
91
85
  def plugin_pride_options(opts, _options); end
92
86
 
93
- # source://minitest-rg/5.3.0/lib/minitest/rg_plugin.rb#12
94
- def plugin_rg_init(options); end
95
-
96
- # source://minitest-rg/5.3.0/lib/minitest/rg_plugin.rb#6
97
- def plugin_rg_options(opts, _options); end
98
-
99
- # source://simplecov/0.22.0/lib/minitest/simplecov_plugin.rb#6
100
- def plugin_simplecov_init(_options); end
101
-
102
87
  # source://minitest//lib/minitest.rb#143
103
88
  def process_args(args = T.unsafe(nil)); end
104
89
 
@@ -991,7 +976,7 @@ end
991
976
  # source://minitest//lib/minitest.rb#592
992
977
  Minitest::Reportable::BASE_DIR = T.let(T.unsafe(nil), String)
993
978
 
994
- # source://minitest//lib/minitest.rb#733
979
+ # source://minitest//lib/minitest.rb#735
995
980
  class Minitest::Reporter < ::Minitest::AbstractReporter
996
981
  # @return [Reporter] a new instance of Reporter
997
982
  #
@@ -721,7 +721,7 @@ class Net::HTTP < ::Net::Protocol
721
721
  #
722
722
  # @return [Boolean]
723
723
  #
724
- # source://net-http//lib/net/http.rb#1488
724
+ # source://net-http//lib/net/http.rb#1492
725
725
  def active?; end
726
726
 
727
727
  # Returns the string host name or host IP given as argument +address+ in ::new.
@@ -916,7 +916,7 @@ class Net::HTTP < ::Net::Protocol
916
916
  #
917
917
  # #<Net::HTTPOK 200 OK readbody=false>
918
918
  #
919
- # source://net-http//lib/net/http.rb#2280
919
+ # source://net-http//lib/net/http.rb#2338
920
920
  def get2(path, initheader = T.unsafe(nil), &block); end
921
921
 
922
922
  # Sends a HEAD request to the server;
@@ -945,7 +945,7 @@ class Net::HTTP < ::Net::Protocol
945
945
  # http = Net::HTTP.new(hostname)
946
946
  # http.head('/todos/1') # => #<Net::HTTPOK 200 OK readbody=true>
947
947
  #
948
- # source://net-http//lib/net/http.rb#2293
948
+ # source://net-http//lib/net/http.rb#2339
949
949
  def head2(path, initheader = T.unsafe(nil), &block); end
950
950
 
951
951
  # Sets or returns whether to ignore end-of-file when reading a response body
@@ -1271,7 +1271,7 @@ class Net::HTTP < ::Net::Protocol
1271
1271
  #
1272
1272
  # "{\n \"xyzzy\": \"\",\n \"id\": 201\n}"
1273
1273
  #
1274
- # source://net-http//lib/net/http.rb#2320
1274
+ # source://net-http//lib/net/http.rb#2340
1275
1275
  def post2(path, data, initheader = T.unsafe(nil), &block); end
1276
1276
 
1277
1277
  # Sends a PROPFIND request to the server;
@@ -1386,13 +1386,13 @@ class Net::HTTP < ::Net::Protocol
1386
1386
  # Returns the address of the proxy server, if defined, +nil+ otherwise;
1387
1387
  # see {Proxy Server}[rdoc-ref:Net::HTTP@Proxy+Server].
1388
1388
  #
1389
- # source://net-http//lib/net/http.rb#1903
1389
+ # source://net-http//lib/net/http.rb#1943
1390
1390
  def proxyaddr; end
1391
1391
 
1392
1392
  # Returns the port number of the proxy server, if defined, +nil+ otherwise;
1393
1393
  # see {Proxy Server}[rdoc-ref:Net::HTTP@Proxy+Server].
1394
1394
  #
1395
- # source://net-http//lib/net/http.rb#1913
1395
+ # source://net-http//lib/net/http.rb#1944
1396
1396
  def proxyport; end
1397
1397
 
1398
1398
  # Sends a PUT request to the server;
@@ -1423,7 +1423,7 @@ class Net::HTTP < ::Net::Protocol
1423
1423
  # http.put('/todos/1', 'xyzzy')
1424
1424
  # # => #<Net::HTTPOK 200 OK readbody=true>
1425
1425
  #
1426
- # source://net-http//lib/net/http.rb#2334
1426
+ # source://net-http//lib/net/http.rb#2341
1427
1427
  def put2(path, data, initheader = T.unsafe(nil), &block); end
1428
1428
 
1429
1429
  # Returns the numeric (\Integer or \Float) number of seconds
@@ -1849,7 +1849,7 @@ class Net::HTTP < ::Net::Protocol
1849
1849
 
1850
1850
  # Adds a message to debugging output
1851
1851
  #
1852
- # source://net-http//lib/net/http.rb#2581
1852
+ # source://net-http//lib/net/http.rb#2587
1853
1853
  def D(msg); end
1854
1854
 
1855
1855
  # source://net-http//lib/net/http.rb#2573
@@ -2045,14 +2045,14 @@ class Net::HTTP < ::Net::Protocol
2045
2045
  #
2046
2046
  # @return [Boolean]
2047
2047
  #
2048
- # source://net-http//lib/net/http.rb#748
2048
+ # source://net-http//lib/net/http.rb#753
2049
2049
  def is_version_1_1?; end
2050
2050
 
2051
2051
  # Returns +true+; retained for compatibility.
2052
2052
  #
2053
2053
  # @return [Boolean]
2054
2054
  #
2055
- # source://net-http//lib/net/http.rb#743
2055
+ # source://net-http//lib/net/http.rb#754
2056
2056
  def is_version_1_2?; end
2057
2057
 
2058
2058
  # Returns a new \Net::HTTP object +http+
@@ -2087,6 +2087,9 @@ class Net::HTTP < ::Net::Protocol
2087
2087
  # source://net-http//lib/net/http.rb#1100
2088
2088
  def new(address, port = T.unsafe(nil), p_addr = T.unsafe(nil), p_port = T.unsafe(nil), p_user = T.unsafe(nil), p_pass = T.unsafe(nil), p_no_proxy = T.unsafe(nil), p_use_ssl = T.unsafe(nil)); end
2089
2089
 
2090
+ # source://net-http//lib/net/http.rb#1068
2091
+ def newobj(*_arg0); end
2092
+
2090
2093
  # Posts data to a host; returns a Net::HTTPResponse object.
2091
2094
  #
2092
2095
  # Argument +url+ must be a URL;
@@ -2408,6 +2411,11 @@ module Net::HTTPExceptions
2408
2411
  # source://net-http//lib/net/http/exceptions.rb#7
2409
2412
  def initialize(msg, res); end
2410
2413
 
2414
+ # Returns the value of attribute response.
2415
+ #
2416
+ # source://net-http//lib/net/http/exceptions.rb#12
2417
+ def data; end
2418
+
2411
2419
  # Returns the value of attribute response.
2412
2420
  #
2413
2421
  # source://net-http//lib/net/http/exceptions.rb#11
@@ -2872,7 +2880,7 @@ module Net::HTTPHeader
2872
2880
  #
2873
2881
  # Net::HTTPHeader#canonical_each is an alias for Net::HTTPHeader#each_capitalized.
2874
2882
  #
2875
- # source://net-http//lib/net/http/header.rb#488
2883
+ # source://net-http//lib/net/http/header.rb#495
2876
2884
  def canonical_each; end
2877
2885
 
2878
2886
  # Returns +true+ if field <tt>'Transfer-Encoding'</tt>
@@ -2966,7 +2974,7 @@ module Net::HTTPHeader
2966
2974
  #
2967
2975
  # Net::HTTPHeader#content_type= is an alias for Net::HTTPHeader#set_content_type.
2968
2976
  #
2969
- # source://net-http//lib/net/http/header.rb#776
2977
+ # source://net-http//lib/net/http/header.rb#780
2970
2978
  def content_type=(type, params = T.unsafe(nil)); end
2971
2979
 
2972
2980
  # Removes the header for the given case-insensitive +key+
@@ -2999,7 +3007,7 @@ module Net::HTTPHeader
2999
3007
  #
3000
3008
  # Net::HTTPHeader#each is an alias for Net::HTTPHeader#each_header.
3001
3009
  #
3002
- # source://net-http//lib/net/http/header.rb#368
3010
+ # source://net-http//lib/net/http/header.rb#375
3003
3011
  def each; end
3004
3012
 
3005
3013
  # Like #each_header, but the keys are returned in capitalized form.
@@ -3073,7 +3081,7 @@ module Net::HTTPHeader
3073
3081
  #
3074
3082
  # Net::HTTPHeader#each_name is an alias for Net::HTTPHeader#each_key.
3075
3083
  #
3076
- # source://net-http//lib/net/http/header.rb#395
3084
+ # source://net-http//lib/net/http/header.rb#400
3077
3085
  def each_key(&block); end
3078
3086
 
3079
3087
  # Calls the block with each field key:
@@ -3183,7 +3191,7 @@ module Net::HTTPHeader
3183
3191
  #
3184
3192
  # Net::HTTPHeader#form_data= is an alias for Net::HTTPHeader#set_form_data.
3185
3193
  #
3186
- # source://net-http//lib/net/http/header.rb#816
3194
+ # source://net-http//lib/net/http/header.rb#823
3187
3195
  def form_data=(params, sep = T.unsafe(nil)); end
3188
3196
 
3189
3197
  # Returns the array field value for the given +key+,
@@ -3211,7 +3219,7 @@ module Net::HTTPHeader
3211
3219
  # source://net-http//lib/net/http/header.rb#467
3212
3220
  def key?(key); end
3213
3221
 
3214
- # source://net-http//lib/net/http/header.rb#210
3222
+ # source://net-http//lib/net/http/header.rb#214
3215
3223
  def length; end
3216
3224
 
3217
3225
  # Returns the leading ('type') part of the
@@ -3277,7 +3285,7 @@ module Net::HTTPHeader
3277
3285
  #
3278
3286
  # Net::HTTPHeader#range= is an alias for Net::HTTPHeader#set_range.
3279
3287
  #
3280
- # source://net-http//lib/net/http/header.rb#580
3288
+ # source://net-http//lib/net/http/header.rb#609
3281
3289
  def range=(r, e = T.unsafe(nil)); end
3282
3290
 
3283
3291
  # Returns the integer representing length of the value of field
@@ -3998,7 +4006,7 @@ class Net::HTTPResponse
3998
4006
  # "{\n \"userId\": 1,\n \"id\": 1,\n \"title\": \"delectus aut autem\",\n \"completed\": false\n}"
3999
4007
  # nil
4000
4008
  #
4001
- # source://net-http//lib/net/http/response.rb#401
4009
+ # source://net-http//lib/net/http/response.rb#410
4002
4010
  def entity; end
4003
4011
 
4004
4012
  # @raise [error_type()]
@@ -4039,7 +4047,7 @@ class Net::HTTPResponse
4039
4047
 
4040
4048
  # The HTTP result message sent by the server. For example, 'Not Found'.
4041
4049
  #
4042
- # source://net-http//lib/net/http/response.rb#217
4050
+ # source://net-http//lib/net/http/response.rb#218
4043
4051
  def msg; end
4044
4052
 
4045
4053
  # Gets the entity body returned by the remote HTTP server.
@@ -108,32 +108,50 @@ class Netrc::Entry < ::Struct
108
108
  # Returns the value of attribute login
109
109
  #
110
110
  # @return [Object] the current value of login
111
+ #
112
+ # source://netrc//lib/netrc.rb#244
111
113
  def login; end
112
114
 
113
115
  # Sets the attribute login
114
116
  #
115
117
  # @param value [Object] the value to set the attribute login to.
116
118
  # @return [Object] the newly set value
119
+ #
120
+ # source://netrc//lib/netrc.rb#244
117
121
  def login=(_); end
118
122
 
119
123
  # Returns the value of attribute password
120
124
  #
121
125
  # @return [Object] the current value of password
126
+ #
127
+ # source://netrc//lib/netrc.rb#244
122
128
  def password; end
123
129
 
124
130
  # Sets the attribute password
125
131
  #
126
132
  # @param value [Object] the value to set the attribute password to.
127
133
  # @return [Object] the newly set value
134
+ #
135
+ # source://netrc//lib/netrc.rb#244
128
136
  def password=(_); end
129
137
 
138
+ # source://netrc//lib/netrc.rb#245
130
139
  def to_ary; end
131
140
 
132
141
  class << self
142
+ # source://netrc//lib/netrc.rb#244
133
143
  def [](*_arg0); end
144
+
145
+ # source://netrc//lib/netrc.rb#244
134
146
  def inspect; end
147
+
148
+ # source://netrc//lib/netrc.rb#244
135
149
  def keyword_init?; end
150
+
151
+ # source://netrc//lib/netrc.rb#244
136
152
  def members; end
153
+
154
+ # source://netrc//lib/netrc.rb#244
137
155
  def new(*_arg0); end
138
156
  end
139
157
  end
@@ -344,8 +344,8 @@ class Notiffany::Notifier::Emacs < ::Notiffany::Notifier::Base
344
344
  # @option options
345
345
  # @option options
346
346
  # @option options
347
- # @param type [String] the notification type
348
347
  # @param options [Hash] aditional notification options
348
+ # @param type [String] the notification type
349
349
  # @return [String] the name of the emacs color
350
350
  #
351
351
  # source://notiffany//lib/notiffany/notifier/emacs.rb#86
@@ -365,12 +365,12 @@ class Notiffany::Notifier::Emacs < ::Notiffany::Notifier::Base
365
365
  # @option opts
366
366
  # @option opts
367
367
  # @option opts
368
- # @param type [String] the notification type. Either 'success',
369
- # 'pending', 'failed' or 'notify'
370
- # @param title [String] the notification title
371
- # @param message [String] the notification message body
372
368
  # @param image [String] the path to the notification image
369
+ # @param message [String] the notification message body
373
370
  # @param opts [Hash] additional notification library options
371
+ # @param title [String] the notification title
372
+ # @param type [String] the notification type. Either 'success',
373
+ # 'pending', 'failed' or 'notify'
374
374
  #
375
375
  # source://notiffany//lib/notiffany/notifier/emacs.rb#58
376
376
  def _perform_notify(message, opts = T.unsafe(nil)); end
@@ -439,21 +439,21 @@ Notiffany::Notifier::Emacs::DEFAULTS = T.let(T.unsafe(nil), Hash)
439
439
  # source://notiffany//lib/notiffany/notifier/emacs.rb#20
440
440
  Notiffany::Notifier::Emacs::DEFAULT_ELISP_ERB = T.let(T.unsafe(nil), String)
441
441
 
442
- # source://notiffany//lib/notiffany/notifier.rb#0
442
+ # source://notiffany//lib/notiffany/notifier.rb#69
443
443
  class Notiffany::Notifier::Env < ::Nenv::Environment
444
- # source://nenv/0.3.0/lib/nenv/environment.rb#69
444
+ # source://notiffany//lib/notiffany/notifier.rb#70
445
445
  def notify?; end
446
446
 
447
- # source://nenv/0.3.0/lib/nenv/environment.rb#59
447
+ # source://notiffany//lib/notiffany/notifier.rb#74
448
448
  def notify_active=(raw_value); end
449
449
 
450
- # source://nenv/0.3.0/lib/nenv/environment.rb#69
450
+ # source://notiffany//lib/notiffany/notifier.rb#73
451
451
  def notify_active?; end
452
452
 
453
- # source://nenv/0.3.0/lib/nenv/environment.rb#69
453
+ # source://notiffany//lib/notiffany/notifier.rb#71
454
454
  def notify_pid; end
455
455
 
456
- # source://nenv/0.3.0/lib/nenv/environment.rb#59
456
+ # source://notiffany//lib/notiffany/notifier.rb#72
457
457
  def notify_pid=(raw_value); end
458
458
  end
459
459
 
@@ -561,15 +561,15 @@ Notiffany::Notifier::GNTP::DEFAULTS = T.let(T.unsafe(nil), Hash)
561
561
  # your `Guardfile` notification :growl, sticky: true, host: '192.168.1.5',
562
562
  # password: 'secret'
563
563
  #
564
- # @example Install `growlnotify` with Homebrew
565
- # brew install growlnotify
564
+ # @example Add the `:growl_notify` notifier with configuration options to
565
+ # @example Add the `:growl` notifier to your `Guardfile`
566
+ # notification :growl
566
567
  # @example Add the `growl` gem to your `Gemfile`
567
568
  # group :development
568
569
  # gem 'growl'
569
570
  # end
570
- # @example Add the `:growl` notifier to your `Guardfile`
571
- # notification :growl
572
- # @example Add the `:growl_notify` notifier with configuration options to
571
+ # @example Install `growlnotify` with Homebrew
572
+ # brew install growlnotify
573
573
  #
574
574
  # source://notiffany//lib/notiffany/notifier/growl.rb#34
575
575
  class Notiffany::Notifier::Growl < ::Notiffany::Notifier::Base
@@ -755,8 +755,8 @@ class Notiffany::Notifier::NotifySend < ::Notiffany::Notifier::Base
755
755
  # shell command.
756
756
  #
757
757
  # @param command [String] the command execute
758
- # @param supported [Array] list of supported option flags
759
758
  # @param opts [Hash] additional command options
759
+ # @param supported [Array] list of supported option flags
760
760
  # @return [Array<String>] the command and its options converted to a
761
761
  #
762
762
  # source://notiffany//lib/notiffany/notifier/notifysend.rb#84
@@ -1069,11 +1069,11 @@ Notiffany::Notifier::USING_NOTIFIER = T.let(T.unsafe(nil), String)
1069
1069
  # TODO: use a socket instead of passing env variables to child processes
1070
1070
  # (currently probably only used by guard-cucumber anyway)
1071
1071
  #
1072
- # source://notiffany//lib/notiffany/notifier/detected.rb#0
1072
+ # source://notiffany//lib/notiffany/notifier/detected.rb#21
1073
1073
  class Notiffany::Notifier::YamlEnvStorage < ::Nenv::Environment
1074
- # source://nenv/0.3.0/lib/nenv/environment.rb#69
1074
+ # source://notiffany//lib/notiffany/notifier/detected.rb#23
1075
1075
  def notifiers; end
1076
1076
 
1077
- # source://nenv/0.3.0/lib/nenv/environment.rb#59
1077
+ # source://notiffany//lib/notiffany/notifier/detected.rb#22
1078
1078
  def notifiers=(raw_value); end
1079
1079
  end