pandorified 0.9.13 → 0.9.14

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 522828c40657e7c39ada802ffce1a7bf6537b22d4725aa51098533aceff560f8
4
- data.tar.gz: 12f8d18a9870b18630a310c2c866f27ca9d682316225ba5d88de59ea514addae
3
+ metadata.gz: 776bf5743744b003f8922033127b24a5afbd9cede83bea1b0aa697649fe8f850
4
+ data.tar.gz: dae5536d6035f67546136f12ffe1fc52d602bdffc8dd5eeba120fec2313c4cd7
5
5
  SHA512:
6
- metadata.gz: 66a94ae01d105d3b374d22c4e35595246ce60d5b9b996a09b1372df6ee42c0a8422e93da6f6d924b4fdf7eb665a5b70489bb0e706f484d089dba9fa007bafd57
7
- data.tar.gz: c45547f3141ae0c45913239a147a02084d38eae4f911456a92b509e7e20d24b222296b4e01bc527f1592fb953e9b6e9603ea34483fe9c3165980fa8bc4ee1f7d
6
+ metadata.gz: 4166d2f8d4b18d97189c74d722da305cf3a4393a2928f1785ba7b85daa242db0f5b1813304043e74923888c4d3002fcbda7a14f0d6e08c1240f60218519ea4e5
7
+ data.tar.gz: 8cf8d948c812075b068479e25737a0d43999831f2dea87a018d6d62fe8c1049d96bb27076f88173ed91d4bd4ae1939669d768402ee9e8ce8e5c215c14014d909
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pandorified
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.13
4
+ version: 0.9.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Workman
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-06-15 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: nokogiri
@@ -16,14 +15,14 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: 1.14.3
18
+ version: 1.18.9
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - ">="
25
24
  - !ruby/object:Gem::Version
26
- version: 1.14.3
25
+ version: 1.18.9
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: rest-client
29
28
  requirement: !ruby/object:Gem::Requirement
@@ -38,6 +37,20 @@ dependencies:
38
37
  - - ">="
39
38
  - !ruby/object:Gem::Version
40
39
  version: 1.7.3
40
+ - !ruby/object:Gem::Dependency
41
+ name: rake
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '13.2'
47
+ type: :development
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '13.2'
41
54
  - !ruby/object:Gem::Dependency
42
55
  name: bundler-audit
43
56
  requirement: !ruby/object:Gem::Requirement
@@ -114,25 +127,10 @@ email: xtagon@gmail.com
114
127
  executables: []
115
128
  extensions: []
116
129
  extra_rdoc_files: []
117
- files:
118
- - ".gitignore"
119
- - ".rspec"
120
- - ".rubocop.yml"
121
- - Gemfile
122
- - README.md
123
- - Rakefile
124
- - lib/pandorified.rb
125
- - lib/pandorified/result.rb
126
- - lib/pandorified/session.rb
127
- - lib/pandorified/version.rb
128
- - pandorified.gemspec
129
- - spec/lib/pandorified_spec.rb
130
- - spec/spec_helper.rb
131
- homepage:
130
+ files: []
132
131
  licenses: []
133
132
  metadata:
134
133
  rubygems_mfa_required: 'true'
135
- post_install_message:
136
134
  rdoc_options: []
137
135
  require_paths:
138
136
  - lib
@@ -147,8 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
145
  - !ruby/object:Gem::Version
148
146
  version: '0'
149
147
  requirements: []
150
- rubygems_version: 3.3.18
151
- signing_key:
148
+ rubygems_version: 3.6.9
152
149
  specification_version: 4
153
150
  summary: A Ruby client for the Pandorabots API.
154
151
  test_files: []
data/.gitignore DELETED
@@ -1,6 +0,0 @@
1
- *.gem
2
- .bundle
3
- .yardoc
4
- Gemfile.lock
5
- pkg/*
6
- doc/*
data/.rspec DELETED
@@ -1 +0,0 @@
1
- --require spec_helper
data/.rubocop.yml DELETED
@@ -1,12 +0,0 @@
1
- Metrics/BlockLength:
2
- ExcludedMethods:
3
- - describe
4
-
5
- Style/HashEachMethods:
6
- Enabled: true
7
-
8
- Style/HashTransformKeys:
9
- Enabled: false
10
-
11
- Style/HashTransformValues:
12
- Enabled: false
data/Gemfile DELETED
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- gemspec
data/README.md DELETED
@@ -1,65 +0,0 @@
1
- Summary
2
- -------
3
-
4
- Pandorified is a simple Ruby wrapper for the Pandorabots API. Talk to chat bots in your Ruby scripts!
5
-
6
- Installation
7
- ------------
8
-
9
- `gem install pandorified`
10
-
11
- Or add Pandorified to your project's Gemfile:
12
-
13
- `gem 'pandorified'`
14
-
15
- Getting Started
16
- ---------------
17
-
18
- To interact with the Pandorabots, you need to know the BOTID of the bot you wish to talk to. If you have published your own bot, the BOTID will be listed on your Botmaster page.
19
-
20
- Here is a basic example:
21
-
22
- ```ruby
23
- require 'pandorified'
24
-
25
- CHOMSKY_BOTID = 'b0dafd24ee35a477'
26
-
27
- # Send a message to Chomsky and print the response
28
- puts Pandorified.talk!("Hello, Bot!", CHOMSKY_BOTID)
29
- ```
30
-
31
- If you want the bot to remember who you are, you can create a session object and re-use it.
32
-
33
- ```ruby
34
- bot = Pandorified::Session.new('b0dafd24ee35a477')
35
- puts bot.talk!("Hello")
36
- puts bot.talk!("Goodbye now!")
37
- ```
38
-
39
- Full documentation is available [here](http://rubydoc.info/gems/pandorified/frames). If anything in the documentation is not clear, please [report it as a bug][1].
40
-
41
- Contributing
42
- ------------
43
-
44
- If you've found a bug or have a feature suggestion, let me know on the [issue tracker][1] or [send me an e-mail][2]. I welcome all feedback, and I'd love to hear about what cool things you've made with this!
45
-
46
- Run tests with `bundle exec rspec` or just `rake`.
47
-
48
- Author
49
- ------
50
-
51
- [Justin Workman][2]
52
-
53
- License
54
- -------
55
-
56
- Copyright © 2011-2022 Justin Workman
57
-
58
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
59
-
60
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
61
-
62
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
63
-
64
- [1]: https://github.com/xtagon/pandorified-gem/issues
65
- [2]: mailto:xtagon@gmail.com
data/Rakefile DELETED
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'bundler/gem_tasks'
4
- require 'rspec/core/rake_task'
5
-
6
- RSpec::Core::RakeTask.new(:spec)
7
-
8
- task default: :spec
9
-
10
- desc 'Open an irb session preloaded with this library'
11
- task :console do
12
- sh 'irb -rubygems -I lib -r pandorified.rb'
13
- end
@@ -1,73 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'rest_client'
4
- require 'nokogiri'
5
-
6
- module Pandorified
7
- API_URL = 'https://www.pandorabots.com/pandora/talk-xml'
8
-
9
- # The result of sending a message to a bot, including the response message if
10
- # successful.
11
- class Result
12
- def initialize(params)
13
- @xml = Nokogiri::XML(RestClient.post(API_URL, params))
14
- end
15
-
16
- # @return [String] The bot's response to the input.
17
- def that
18
- @that ||= @xml.xpath('/result/that').first.text.strip
19
- end
20
-
21
- alias to_s that
22
-
23
- # Check the status of this result. See {#success?} and {#error?}.
24
- #
25
- # @return [Number] A status number as returned by Pandorabots.
26
- def status
27
- @status ||= @xml.xpath('/result/@status').first.value.to_i
28
- end
29
-
30
- # @return `true` if this result was successful (no error was returned by
31
- # Pandorabots), `false` otherwise.
32
- def success?
33
- status.zero?
34
- end
35
-
36
- alias ok? success?
37
- alias successful? success?
38
-
39
- # @note After checking if there is an error, you can read the error message
40
- # with {#message}.
41
- #
42
- # @return `true` if Pandorabots returned an error.
43
- def error?
44
- !success?
45
- end
46
-
47
- # @return [String] The error message as returned by Pandorabots, if an
48
- # error occured.
49
- def message
50
- return nil if success?
51
-
52
- @message ||= @xml.xpath('/result/message').first.text
53
- end
54
-
55
- alias error message
56
- alias error_message message
57
-
58
- # @return [String] The botid of the bot this result is for.
59
- def botid
60
- @botid ||= @xml.xpath('/result/@botid').first.value
61
- end
62
-
63
- # @return [String] The custid for this session.
64
- def custid
65
- @custid ||= @xml.xpath('/result/@custid').first.value
66
- end
67
-
68
- # @return [String] The orginal input that triggered this response.
69
- def input
70
- @input ||= @xml.xpath('/result/input').first.text
71
- end
72
- end
73
- end
@@ -1,71 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'pandorified/result'
4
-
5
- module Pandorified
6
- # Raised when Pandorabots returns an API result with a non-zero status.
7
- class PandorabotsError < StandardError; end
8
-
9
- # Represents a session (or conversation) for interacting with a bot.
10
- class Session
11
- # A new session for conversing with a bot.
12
- #
13
- # @note If you choose not to specify a {custid}, one will be automatically
14
- # chosen and remembered throughout the session.
15
- #
16
- # @param [String] botid A valid Pandorabots botid.
17
- # @param [String] custid An identifier used to keep track of this
18
- # conversation.
19
- def initialize(botid, custid = nil)
20
- @botid = botid
21
- @custid = custid
22
- end
23
-
24
- # Send a message to this session's bot and receive a response.
25
- #
26
- # See {Pandorified::Result} for how to check for an error response and get
27
- # the error message.
28
- #
29
- # Alternatively, you can use {#talk!} instead of this method, which raises
30
- # an exception when Pandorabots API returns an error.
31
- #
32
- # @param [String] input Text to say to the bot.
33
- #
34
- # @return [Pandorified::Result] The bot's response as a result object.
35
- def talk(input)
36
- result = Pandorified::Result.new(
37
- botid: @botid,
38
- custid: @custid,
39
- input: input
40
- )
41
-
42
- @custid ||= result.custid if result.success?
43
-
44
- result
45
- end
46
-
47
- # Send a message to this session's bot and receive a response (if
48
- # successful).
49
- #
50
- # If Pandorabots API responds with an error,
51
- # {Pandorified::PandorabotsError} is raised with the specific error
52
- # message.
53
- #
54
- # If you'd like to check for and handle the error yourself, you can use
55
- # {#talk} instead of this method.
56
- #
57
- # @param [String] input Text to say to the bot.
58
- #
59
- # @return [String] The bot's response text.
60
- def talk!(input)
61
- result = talk(input)
62
-
63
- if result.error?
64
- msg = "Pandorabots returned status #{result.status}: #{result.message}"
65
- raise Pandorified::PandorabotsError, msg
66
- end
67
-
68
- result.that
69
- end
70
- end
71
- end
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Pandorified
4
- VERSION = '0.9.13'
5
- end
data/lib/pandorified.rb DELETED
@@ -1,48 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'pandorified/version'
4
- require 'pandorified/result'
5
- require 'pandorified/session'
6
-
7
- # This is the top-level module for interacting with the Pandorabots API.
8
- #
9
- # There are some sugar methods which delegate to {Pandorified::Session} under
10
- # the hood.
11
- module Pandorified
12
- # Send a message to a bot and receive a response.
13
- #
14
- # See {Pandorified::Result} for ways to handle the response, or use {.talk!}
15
- # which raises an exception on errors.
16
- #
17
- # If you want to remember the {botid} and {custid} between multiple calls,
18
- # you should use {Pandorabots::Session} instead of this method.
19
- #
20
- # @param [String] input Text to say to the bot.
21
- # @param [String] botid A valid Pandorabots botid.
22
- # @param [String] custid An itentifier used to keep track of this conversaion.
23
- #
24
- # @return [Pandorified::Result] The bot's response as a result object.
25
- def self.talk(input, botid, custid = nil)
26
- Pandorified::Session.new(botid, custid).talk(input)
27
- end
28
-
29
- # Send a message to a bot and receive a response (if successsful).
30
- #
31
- # If Pandorabots responds with an error, {Pandorified::PandorabotsError} is
32
- # raised.
33
- #
34
- # If you'd rather check for and handle the error yourself, use {.talk}
35
- # instead of this method.
36
- #
37
- # If you want to remember the {botid} and {custid} between multiple calls,
38
- # you should use {Pandorabots::Session} instead of this method.
39
- #
40
- # @param [String] input Text to say to the bot.
41
- # @param [String] botid A valid Pandorabots botid.
42
- # @param [String] custid An itentifier used to keep track of this conversaion.
43
- #
44
- # @return [String] The bot's response text.
45
- def self.talk!(input, botid, custid = nil)
46
- Pandorified::Session.new(botid, custid).talk!(input).to_s
47
- end
48
- end
data/pandorified.gemspec DELETED
@@ -1,36 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- $LOAD_PATH.push File.expand_path('lib', __dir__)
4
-
5
- require 'pandorified/version'
6
-
7
- Gem::Specification.new do |spec|
8
- spec.name = 'pandorified'
9
- spec.version = Pandorified::VERSION
10
- spec.authors = 'Justin Workman'
11
- spec.email = 'xtagon@gmail.com'
12
- spec.summary = 'A Ruby client for the Pandorabots API.'
13
-
14
- spec.description = <<~DOC.chomp
15
- Pandorified makes it easy for your Ruby scripts to interact with chat bots hosted on Pandorabots.
16
- DOC
17
-
18
- spec.metadata = { 'rubygems_mfa_required' => 'true' }
19
-
20
- spec.files = `git ls-files`.split("\n")
21
- spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
22
-
23
- spec.executables =
24
- `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
25
-
26
- spec.require_paths = ['lib']
27
-
28
- spec.add_runtime_dependency 'nokogiri', '>= 1.14.3'
29
- spec.add_runtime_dependency 'rest-client', '>= 1.7.3'
30
-
31
- spec.add_development_dependency 'bundler-audit'
32
- spec.add_development_dependency 'rspec'
33
- spec.add_development_dependency 'rubocop'
34
- spec.add_development_dependency 'webmock'
35
- spec.add_development_dependency 'yard'
36
- end
@@ -1,73 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Pandorified do
6
- describe '#talk!' do
7
- let(:input) { 'Are you a robot?' }
8
- let(:botid) { 'np218q9s7r346nqo' }
9
- let(:custid) { nil }
10
-
11
- let(:request_body) do
12
- {
13
- 'botid' => botid,
14
- 'custid' => nil,
15
- 'input' => input
16
- }
17
- end
18
-
19
- context 'when successful' do
20
- subject { described_class.talk!(input, botid, custid) }
21
-
22
- let(:that) { 'Of course not!' }
23
-
24
- let(:response_body) do
25
- <<~XML
26
- <result status="0" botid="#{botid}" custid="fec7cfc40e5b751a"><input>#{input}</input><that>#{that}</that></result>"
27
- XML
28
- end
29
-
30
- let(:response_headers) do
31
- { content_type: 'text/xml' }
32
- end
33
-
34
- before :each do
35
- stub_request(:post, 'https://www.pandorabots.com/pandora/talk-xml')
36
- .with(body: request_body)
37
- .to_return(
38
- status: 200,
39
- body: response_body,
40
- headers: response_headers
41
- )
42
- end
43
-
44
- it { is_expected.to eq(that) }
45
- end
46
-
47
- context 'when unsuccessful' do
48
- subject { described_class.talk!(input, botid, custid) }
49
-
50
- let(:response_body) do
51
- <<~XML
52
- <result status="1" botid="#{botid}" custid="fec7cfc40e5b751a"><input>#{input}</input><message>Something went wrong!</message></result>"
53
- XML
54
- end
55
-
56
- let(:response_headers) do
57
- { content_type: 'text/xml' }
58
- end
59
-
60
- before :each do
61
- stub_request(:post, 'https://www.pandorabots.com/pandora/talk-xml')
62
- .with(body: request_body)
63
- .to_return(
64
- status: 200,
65
- body: response_body,
66
- headers: response_headers
67
- )
68
- end
69
-
70
- it { expect { subject }.to raise_error(described_class::PandorabotsError) }
71
- end
72
- end
73
- end
data/spec/spec_helper.rb DELETED
@@ -1,113 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'pandorified'
4
-
5
- require 'webmock/rspec'
6
-
7
- # This file was generated by the `rspec --init` command. Conventionally, all
8
- # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
9
- # The generated `.rspec` file contains `--require spec_helper` which will cause
10
- # this file to always be loaded, without a need to explicitly require it in any
11
- # files.
12
- #
13
- # Given that it is always loaded, you are encouraged to keep this file as
14
- # light-weight as possible. Requiring heavyweight dependencies from this file
15
- # will add to the boot time of your test suite on EVERY test run, even for an
16
- # individual file that may not need all of that loaded. Instead, consider making
17
- # a separate helper file that requires the additional dependencies and performs
18
- # the additional setup, and require it from the spec files that actually need
19
- # it.
20
- #
21
- # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
22
- RSpec.configure do |config|
23
- # rspec-expectations config goes here. You can use an alternate
24
- # assertion/expectation library such as wrong or the stdlib/minitest
25
- # assertions if you prefer.
26
- config.expect_with :rspec do |expectations|
27
- # This option will default to `true` in RSpec 4. It makes the `description`
28
- # and `failure_message` of custom matchers include text for helper methods
29
- # defined using `chain`, e.g.:
30
- # be_bigger_than(2).and_smaller_than(4).description
31
- # # => "be bigger than 2 and smaller than 4"
32
- # ...rather than:
33
- # # => "be bigger than 2"
34
- expectations.include_chain_clauses_in_custom_matcher_descriptions = true
35
- end
36
-
37
- # rspec-mocks config goes here. You can use an alternate test double
38
- # library (such as bogus or mocha) by changing the `mock_with` option here.
39
- config.mock_with :rspec do |mocks|
40
- # Prevents you from mocking or stubbing a method that does not exist on
41
- # a real object. This is generally recommended, and will default to
42
- # `true` in RSpec 4.
43
- mocks.verify_partial_doubles = true
44
- end
45
-
46
- # This option will default to `:apply_to_host_groups` in RSpec 4 (and will
47
- # have no way to turn it off -- the option exists only for backwards
48
- # compatibility in RSpec 3). It causes shared context metadata to be
49
- # inherited by the metadata hash of host groups and examples, rather than
50
- # triggering implicit auto-inclusion in groups with matching metadata.
51
- config.shared_context_metadata_behavior = :apply_to_host_groups
52
-
53
- # The settings below are suggested to provide a good initial experience
54
- # with RSpec, but feel free to customize to your heart's content.
55
-
56
- # This allows you to limit a spec run to individual examples or groups
57
- # you care about by tagging them with `:focus` metadata. When nothing
58
- # is tagged with `:focus`, all examples get run. RSpec also provides
59
- # aliases for `it`, `describe`, and `context` that include `:focus`
60
- # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
61
- #
62
- # config.filter_run_when_matching :focus
63
-
64
- # Allows RSpec to persist some state between runs in order to support
65
- # the `--only-failures` and `--next-failure` CLI options. We recommend
66
- # you configure your source control system to ignore this file.
67
- #
68
- # config.example_status_persistence_file_path = "spec/examples.txt"
69
-
70
- # Limits the available syntax to the non-monkey patched syntax that is
71
- # recommended. For more details, see:
72
- # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
73
- # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
74
- # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
75
- #
76
- # config.disable_monkey_patching!
77
-
78
- # This setting enables warnings. It's recommended, but in some cases may
79
- # be too noisy due to issues in dependencies.
80
- #
81
- # config.warnings = true
82
-
83
- # Many RSpec users commonly either run the entire suite or an individual
84
- # file, and it's useful to allow more verbose output when running an
85
- # individual spec file.
86
- #
87
- # if config.files_to_run.one?
88
- # # Use the documentation formatter for detailed output,
89
- # # unless a formatter has already been configured
90
- # # (e.g. via a command-line flag).
91
- # config.default_formatter = "doc"
92
- # end
93
-
94
- # Print the 10 slowest examples and example groups at the
95
- # end of the spec run, to help surface which specs are running
96
- # particularly slow.
97
- #
98
- # config.profile_examples = 10
99
-
100
- # Run specs in random order to surface order dependencies. If you find an
101
- # order dependency and want to debug it, you can fix the order by providing
102
- # the seed, which is printed after each run.
103
- # --seed 1234
104
- #
105
- # config.order = :random
106
-
107
- # Seed global randomization in this process using the `--seed` CLI option.
108
- # Setting this allows you to use `--seed` to deterministically reproduce
109
- # test failures related to randomization by passing the same `--seed` value
110
- # as the one that triggered the failure.
111
- #
112
- # Kernel.srand config.seed
113
- end