Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates from rspec-dev (2023-12-26) #3059

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
6dede8a
v3.12.0
JonRowe Oct 26, 2022
51d6054
Ignore comment lines in option files
JunichiIto Nov 29, 2022
ae4f3a6
Use formatted_backtrace in JSON formatter (#2980)
mlarraz Dec 10, 2022
315f297
Add changelog for #2980
JonRowe Dec 10, 2022
49be821
Add missing text
JonRowe Dec 10, 2022
7d011c8
Merge pull request #2984 from JunichiIto/ignore-comment-lines-in-opti…
JonRowe Dec 10, 2022
b63d479
Changelog for #2984
JonRowe Dec 10, 2022
eb6c348
Fix configuration_options_spec on Ruby 3.2
JonRowe Dec 11, 2022
522b772
Merge pull request #2988 from rspec/fix-configuration-options-ruby-3-2
JonRowe Dec 11, 2022
ecf8a06
chore: Included githubactions in the dependabot config
ydah Jan 6, 2023
eee3d92
Fix some typos (#2996)
ydah Jan 6, 2023
586971d
Updated ci build scripts (from rspec-dev) main
JonRowe Jan 7, 2023
d1187d0
Merge pull request #2997 from rspec/update-ci-build-scripts-2023-01-0…
JonRowe Jan 7, 2023
9186c76
Add a pending_failure_output configuration option
pirj Apr 24, 2022
a27c169
Merge pull request #2957 from rspec/skip-backtrace-for-pending-examples
pirj Jan 7, 2023
ec0fe5d
Updated ci build scripts (from rspec-dev) main (#2999)
pirj Jan 11, 2023
c5f8382
disable error_highlight gem for pass the test
kzkn Jan 12, 2023
79ec0fd
Merge pull request #3002 from kzkn/fix-3001
JonRowe Jan 12, 2023
0be61a8
Skip adding whitespace around additional failure lines when already p…
JonRowe Feb 3, 2023
30f67a3
Changelog for #3006
JonRowe Feb 3, 2023
8975491
Merge pull request #3006 from rspec/fix-additional-whitespace-around-…
JonRowe Feb 3, 2023
640a9f6
v3.12.1
JonRowe Feb 3, 2023
ff9ff27
Move dry_run option higher in ordered option list
tubaxenor Feb 22, 2023
c73ec5e
Update lib/rspec/core/configuration_options.rb
tubaxenor Feb 22, 2023
275c081
Add spec to cover dry_run ordering
tubaxenor Feb 22, 2023
05edbda
Fix spec
tubaxenor Feb 22, 2023
36dd88d
Merge pull request #3008 from tubaxenor/reorder-config-options
JonRowe Feb 22, 2023
d722da4
Changelog for #3008
JonRowe Feb 22, 2023
10ed5bb
Update ISSUE_TEMPLATE.md
JonRowe Mar 2, 2023
0a78f28
Updated common plaintext files (from rspec-dev) main
JonRowe Mar 2, 2023
0ca87b5
Merge pull request #3013 from rspec/update-common-plaintext-files-202…
JonRowe Mar 2, 2023
77911ed
Update features for switch to rspec.info
JonRowe Mar 3, 2023
f5262e3
Updated ci build scripts (from rspec-dev) main
JonRowe Mar 9, 2023
cb1c8f1
Merge pull request #3019 from rspec/update-ci-build-scripts-2023-03-0…
JonRowe Mar 9, 2023
870d12d
Fix some typos (#3021)
MicBruz Mar 14, 2023
acedb0e
Skip broken specs on JRuby
JonRowe Mar 9, 2023
1e91bd4
Fix spec on ruby head
JonRowe Mar 14, 2023
4b0e6e4
Fix spec on ruby head
JonRowe Mar 14, 2023
1e795c8
Merge pull request #3018 from rspec/switch-jruby-to-legacy
JonRowe Mar 14, 2023
986d119
Updated ci build scripts (from rspec-dev) main
JonRowe Mar 16, 2023
5715c83
Merge pull request #3022 from rspec/update-ci-build-scripts-2023-03-1…
JonRowe Mar 16, 2023
d57b509
Fix some feature markup
JonRowe Mar 20, 2023
4f8a51e
Fix a documentation link
JonRowe Mar 20, 2023
a665896
Consistent scenario titles
JonRowe Mar 20, 2023
2d4206c
Re-raise SyntaxError for SyntaxSuggest help
schneems Mar 7, 2023
7531704
Convert ordering markdown to feature
JonRowe Mar 31, 2023
070540b
Add #has_strategy? to ordering
JonRowe Mar 31, 2023
d11b9a6
Add delayed ordering strategy
JonRowe Mar 31, 2023
d3efa21
Allow custom ordering by name on the cli
JonRowe Mar 31, 2023
004cfff
Merge pull request #3025 from rspec/allow-custom-ordering-on-cli
JonRowe Apr 1, 2023
4dc233a
Changelog for #3025
JonRowe Apr 1, 2023
39f4fdf
Add SyntaxError spec
JonRowe Mar 31, 2023
d0930c7
Change SyntaxError handling to be bundled into RSpec output
JonRowe Mar 31, 2023
7237dfd
Merge pull request #3026 from rspec/change-syntax-error-handling-to-p…
JonRowe Apr 11, 2023
d85cf3d
Changelog for #3015 #3026
JonRowe Apr 11, 2023
c8e79f6
Updated ci build scripts (from rspec-dev) main
JonRowe Apr 11, 2023
567325d
Merge pull request #3028 from rspec/update-ci-build-scripts-2023-04-1…
JonRowe Apr 11, 2023
5637735
Updated common plaintext files (from rspec-dev) main
JonRowe Apr 16, 2023
7cb968b
Merge pull request #3033 from rspec/update-common-plaintext-files-202…
JonRowe Apr 16, 2023
e4ab01a
Remove references to Relish
JonRowe Apr 16, 2023
5e04142
Merge pull request #3035 from rspec/remove-relish
JonRowe Apr 17, 2023
8caecca
v3.12.2
JonRowe Apr 18, 2023
057f8ab
Attempt to use full name
JonRowe Jun 26, 2023
c5fb4f4
Updated ci build scripts (from rspec-dev) main
JonRowe Jun 26, 2023
928e63e
Merge pull request #3040 from rspec/fix-windows
JonRowe Jun 26, 2023
2f55bd1
Remove old regression check
JonRowe Jun 26, 2023
54d2eee
Merge pull request #3041 from rspec/update-ci-build-scripts-2023-06-2…
JonRowe Jun 26, 2023
218349e
Merge pull request #3039 from rspec/remove-unneeded-spec
JonRowe Jun 26, 2023
ef6e775
Fix syntax suggest spec
JonRowe Jun 27, 2023
8158970
Merge pull request #3043 from rspec/fix-syntax-suggest-spec
JonRowe Jun 27, 2023
0ff6358
Use __send__ instead of send
richardplatel Jul 26, 2023
d6e320d
Changelog for #3045
JonRowe Aug 5, 2023
1a99862
Updated ci build scripts (from rspec-dev) main
JonRowe Sep 11, 2023
1c662c3
Merge pull request #3048 from rspec/update-ci-build-scripts-2023-09-1…
JonRowe Sep 11, 2023
44363c9
Update README.md with shared context loading example
DDKatch Oct 24, 2023
861c739
Apply PR comments
DDKatch Oct 25, 2023
1eeadce
Merge pull request #3051 from DDKatch/update-readme
JonRowe Oct 25, 2023
59d5f3a
Warn about at_exit hooks being skipped if you force quit [double inte…
JonRowe Dec 1, 2023
f273314
Merge pull request #3054 from rspec/improve-force-quit-message
JonRowe Dec 5, 2023
b06e768
Updated ci build scripts (from rspec-dev) main
JonRowe Dec 25, 2023
51c898b
Merge pull request #3056 from rspec/update-ci-build-scripts-2023-12-2…
JonRowe Dec 25, 2023
7389032
Run older diff-lcs on older version of activesupport
JonRowe Dec 26, 2023
f8c8880
Merge pull request #3058 from rspec/fix-diff-lcs-build
JonRowe Dec 26, 2023
4479cae
Updated ci build scripts (from rspec-dev) main
JonRowe Dec 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2020-12-25T18:48:30+00:00 from the rspec-dev repo.
# This file was generated on 2023-04-16T20:53:21+01:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

github: [JonRowe, benoittgt]
Expand Down
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This file was generated on 2023-12-26T20:49:05+00:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
45 changes: 25 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2022-09-08T12:41:59+01:00 from the rspec-dev repo.
# This file was generated on 2023-12-26T20:49:05+00:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

name: RSpec CI
Expand All @@ -13,16 +13,19 @@ on:
- '*'
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
RSPEC_CI: true
# This tells rspec-rails what branch to run in ci
RSPEC_VERSION: '= 3.12.0.pre'
RSPEC_VERSION: '~> 3.12.0'
jobs:
rubocop:
name: Rubocop
runs-on: 'ubuntu-20.04'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
Expand All @@ -38,6 +41,8 @@ jobs:
strategy:
matrix:
ruby:
- '3.3'
- '3.2'
- '3.1'
- '3.0'
- 2.7
Expand All @@ -46,7 +51,6 @@ jobs:
- 2.4
- 2.3
- 2.2
- 2.1.9
env:
-
DIFF_LCS_VERSION: "> 1.4.3"
Expand All @@ -57,11 +61,6 @@ jobs:
- ruby: jruby-9.2.13.0
env:
JRUBY_OPTS: "--dev"
- ruby: jruby-9.1.17.0
bundler: 1
os: ubuntu-18.04
env:
JRUBY_OPTS: "--dev"
- ruby: 2.7
name_extra: "with diff-lcs 1.3"
env:
Expand All @@ -74,7 +73,7 @@ jobs:
continue-on-error: ${{ matrix.allow_failure || endsWith(matrix.ruby, 'head') }}
env: ${{ matrix.env }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler: ${{ matrix.bundler || '2.2.22' }}
Expand All @@ -95,33 +94,40 @@ jobs:
fail-fast: false
matrix:
container:
- version: "2.1.9"
tag: ghcr.io/rspec/docker-ci:2.1.9
post: git config --global --add safe.directory `pwd`
- version: "2.0"
tag: rspec/ci:2.0.0
tag: ghcr.io/rspec/docker-ci:2.0.0
- version: "1.9.3"
tag: rspec/ci:1.9.3
tag: ghcr.io/rspec/docker-ci:1.9.3
- version: "1.9.2"
tag: rspec/ci:1.9.2
tag: ghcr.io/rspec/docker-ci:1.9.2
options: "--add-host rubygems.org:151.101.129.227 --add-host api.rubygems.org:151.101.129.227"
- version: "1.8.7"
tag: rspec/ci:1.8.7
tag: ghcr.io/rspec/docker-ci:1.8.7
options: "--add-host rubygems.org:151.101.129.227 --add-host api.rubygems.org:151.101.129.227"
- version: "REE"
tag: rspec/ci:ree
tag: ghcr.io/rspec/docker-ci:ree
options: "--add-host rubygems.org:151.101.129.227 --add-host api.rubygems.org:151.101.129.227"
- version: "JRuby 1.7"
tag: rspec/ci:jruby-1.7
tag: ghcr.io/rspec/docker-ci:jruby-1.7
- version: "JRuby 1.7 1.8 mode"
tag: rspec/ci:jruby-1.7
tag: ghcr.io/rspec/docker-ci:jruby-1.7
jruby_opts: '--dev --1.8'
pre: gem uninstall jruby-openssl
options: "--add-host rubygems.org:151.101.129.227 --add-host api.rubygems.org:151.101.129.227"
- version: "JRuby 9.1.17.0"
tag: ghcr.io/rspec/docker-ci:jruby-9.1.17.0
options: "--add-host rubygems.org:151.101.129.227 --add-host api.rubygems.org:151.101.129.227"
env:
LEGACY_CI: true
JRUBY_OPTS: ${{ matrix.container.jruby_opts || '--dev' }}
steps:
- uses: actions/checkout@v3
- run: ${{ matrix.container.pre }}
- run: script/legacy_setup.sh
- run: ${{ matrix.container.post }}
- run: bundle exec bin/rspec
- run: bundle exec script/cucumber.sh

Expand All @@ -137,14 +143,13 @@ jobs:
- 2.4
- 2.3
- 2.2
- 2.1.9
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler: '2.2.22'
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: cinst ansicon
- run: choco install ansicon
- run: bundle exec rspec --backtrace
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Lint/LiteralInInterpolation:
Lint/NonLocalExitFromIterator:
Enabled: false

# We don't care about single vs double qoutes.
# We don't care about single vs double quotes.
Style/StringLiteralsInInterpolation:
Enabled: false

Expand Down
2 changes: 1 addition & 1 deletion .rubocop_rspec_base.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2022-09-08T12:41:59+01:00 from the rspec-dev repo.
# This file was generated on 2023-12-26T20:49:05+00:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

# This file contains defaults for RSpec projects. Individual projects
Expand Down
4 changes: 2 additions & 2 deletions BUILD_DETAIL.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!---
This file was generated on 2020-12-25T18:48:30+00:00 from the rspec-dev repo.
This file was generated on 2023-04-16T20:53:21+01:00 from the rspec-dev repo.
DO NOT modify it by hand as your changes will get lost the next time it is generated.
-->

Expand Down Expand Up @@ -50,7 +50,7 @@ project-specific threshold, the build will fail.
## Cukes

RSpec uses [cucumber](https://cucumber.io/) for both acceptance testing
and [documentation](https://relishapp.com/rspec). Since we publish our cukes
and [documentation](https://rspec.info/documentation). Since we publish our cukes
as documentation, please limit new cucumber scenarios to user-facing examples
that help demonstrate usage. Any tests that exist purely to prevent regressions
should be written as specs, even if they are written in an acceptance style.
Expand Down
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!---
This file was generated on 2020-12-25T18:48:30+00:00 from the rspec-dev repo.
This file was generated on 2023-04-16T20:53:21+01:00 from the rspec-dev repo.
DO NOT modify it by hand as your changes will get lost the next time it is generated.
-->

Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!---
This file was generated on 2020-12-25T18:48:30+00:00 from the rspec-dev repo.
This file was generated on 2023-04-16T20:53:21+01:00 from the rspec-dev repo.
DO NOT modify it by hand as your changes will get lost the next time it is generated.
-->

Expand All @@ -13,7 +13,7 @@ If you'd like to help make RSpec better, here are some ways you can contribute:
- by running RSpec HEAD to help us catch bugs before new releases
- by [reporting bugs you encounter](https://github.com/rspec/rspec-core/issues/new) with [report template](#report-template)
- by [suggesting new features](https://github.com/rspec/rspec-core/issues/new)
- by improving RSpec's [Relish](https://relishapp.com/rspec) or [API](https://rspec.info/documentation/) documentation
- by improving RSpec's Feature or API [documentation](https://rspec.info/documentation/)
- by improving [RSpec's website](https://rspec.info/) ([source](https://github.com/rspec/rspec.github.io))
- by taking part in [feature and issue discussions](https://github.com/rspec/rspec-core/issues)
- by adding a failing test for reproducible [reported bugs](https://github.com/rspec/rspec-core/issues)
Expand Down
39 changes: 38 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,42 @@
### Development
[Full Changelog](https://github.com/rspec/rspec-core/compare/v3.11.0...main)
[Full Changelog](https://github.com/rspec/rspec-core/compare/v3.12.2...main)

Enhancements:

* Support the `--backtrace` flag when using the JSON formatter. (Matt Larraz, #2980)
* Ignore commented out lines in CLI config files (e.g. `.rspec`). (Junichi Ito, #2984)
* Add `pending_failure_output` config option to allow skipping backtraces or
muting pending specs output. (Phil Pirozhkov, #2957)
* Process `--dry-run` before configuration flags that read files so that introspecting
it returns the correct value. (Xenor Chang, #3008)
* Allow specifying custom ordering strategies via `--order`. (Jon Rowe, #3025)
* Use the improved `syntax_suggest` output for `SyntaxError` when available.
(Richard Schneeman, #3015, #3026)

Bug fixes:

* Use `__send__` in output wrapper to avoid issues with IO objects that implement `send`
like `Socket`. (Richard Platel, #3045)

### 3.12.2 / 2023-04-18
[Full Changelog](https://github.com/rspec/rspec-core/compare/v3.12.1...v3.12.2)

Bug fixes:

* Remove link to outdated documentation in generated output. (Jon Rowe, #3035)

### 3.12.1 / 2023-02-03
[Full Changelog](https://github.com/rspec/rspec-core/compare/v3.12.0...v3.12.1)

Bug fixes:

* Prevent multiple calls to `extra_failure_lines` from adding additional whitespace
around them when the lines already contain whitespace. (Jon Rowe, #3006)

### 3.12.0 / 2022-10-26
[Full Changelog](https://github.com/rspec/rspec-core/compare/v3.11.0...v3.12.0)

* No changes, released to support other gems.

### 3.11.0 / 2022-02-09
[Full Changelog](https://github.com/rspec/rspec-core/compare/v3.10.2...v3.11.0)
Expand Down
2 changes: 1 addition & 1 deletion DEV-README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ Or ...
## Customize the dev environment

The Gemfile includes the gems you'll need to be able to run specs. If you want
to customize your dev enviroment with additional tools like guard or
to customize your dev environment with additional tools like guard or
ruby-debug, add any additional gem declarations to Gemfile-custom (see
Gemfile-custom.sample for some examples).
2 changes: 1 addition & 1 deletion DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!---
This file was generated on 2020-12-25T18:48:30+00:00 from the rspec-dev repo.
This file was generated on 2023-04-16T20:53:21+01:00 from the rspec-dev repo.
DO NOT modify it by hand as your changes will get lost the next time it is generated.
-->

Expand Down
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ end

if RUBY_VERSION < '2.0.0'
gem 'cucumber', "<= 1.3.22"
elsif !ENV['DIFF_LCS_VERSION'].to_s.empty? && ENV['DIFF_LCS_VERSION'].scan(/\d\.\d/).first.to_f < 1.5
# Older version of diff-lcs cause a downstream error with cucumber and modern rails
gem "activesupport", "< 7"
end

gem 'contracts', '< 0.16' if RUBY_VERSION < '1.9.0'
Expand Down
1 change: 0 additions & 1 deletion Gemfile-custom.sample
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
group :development do
gem 'interactive_rspec'
gem 'relish', '~> 0.6.0'
gem 'guard-rspec', '~> 1.2.1'
gem 'growl', '1.0.3'
gem 'spork', '0.9.0'
Expand Down
5 changes: 5 additions & 0 deletions ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!---
Note, we know RelishApp is down, its out of our hands...

Please search for existing issues before reporting new ones.
-->
### Subject of the issue
<!---
Describe your issue here.
Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ pretty much the same as `shared_examples` and `include_examples`, providing
more accurate naming when you share hooks, `let` declarations, helper methods,
etc, but no examples.

If you want to reuse shared examples or contexts across your RSpec suite you can
define them in a stand alone _*.rb_ files (_spec/support/shared_examples/definition.rb_
for example). But you will have to manually `require` them (there is no autoloading of
_spec/support/_ directory unless you set it up yourself).

## Metadata

rspec-core stores a metadata hash with every example and group, which
Expand Down Expand Up @@ -322,14 +327,14 @@ Failures:
got: nil

(compared using ==)
# ./spec/calcalator_spec.rb:6:in `block (3 levels) in <top (required)>'
# ./spec/calculator_spec.rb:6:in `block (3 levels) in <top (required)>'

Finished in 0.00131 seconds (files took 0.10968 seconds to load)
1 example, 1 failure

Failed examples:

rspec ./spec/calcalator_spec.rb:5 # Calculator#add returns the sum of its arguments
rspec ./spec/calculator_spec.rb:5 # Calculator#add returns the sum of its arguments
```

Implement the simplest solution, by changing the definition of `Calculator#add` to:
Expand Down
2 changes: 1 addition & 1 deletion REPORT_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!---
This file was generated on 2020-12-25T18:48:30+00:00 from the rspec-dev repo.
This file was generated on 2023-04-16T20:53:21+01:00 from the rspec-dev repo.
DO NOT modify it by hand as your changes will get lost the next time it is generated.
-->

Expand Down
30 changes: 0 additions & 30 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,36 +43,6 @@ task :rdoc do
sh "yardoc"
end

with_changelog_in_features = lambda do |&block|
begin
sh "cp Changelog.md features/"
block.call
ensure
sh "rm features/Changelog.md"
end
end

desc "Push docs/cukes to relishapp using the relish-client-gem"
task :relish, :version do |_t, args|
raise "rake relish[VERSION]" unless args[:version]

with_changelog_in_features.call do
if `relish versions rspec/rspec-core`.split.map(&:strip).include? args[:version]
puts "Version #{args[:version]} already exists"
else
sh "relish versions:add rspec/rspec-core:#{args[:version]}"
end
sh "relish push rspec/rspec-core:#{args[:version]}"
end
end

desc "Push to relish staging environment"
task :relish_staging do
with_changelog_in_features.call do
sh "relish push rspec-staging/rspec-core"
end
end

task :default => [:spec, :cucumber, :rubocop]

task :verify_private_key_present do
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/allocations/1000_groups_1_example.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
- 10K arrays
- 10K sets
- 5K FilterableItemRepository
- 5K HookCollecion
- 5K HookCollection

class_plus count
--------------------------------------- -----
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/capture_block_vs_yield.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def call_block_n_times(n, &block)
a high constant cost, taking about 5x longer than a single `yield`
(even if the block is never used!).

However, fowarding a captured block can be faster than using `yield`
However, forwarding a captured block can be faster than using `yield`
if the block is used many times (the breakeven point is at about 20-25
invocations), so it appears that he per-invocation cost of `yield`
is higher than that of a captured-and-forwarded block.
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/flat_map_vs_inject.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def flat_map_using_block(array, &block)
Surprisingly, `flat_map(&block)` appears to be faster than
`flat_map { yield }` in spite of the fact that our array here
is smaller than the break-even point of 20-25 measured in the
`capture_block_vs_yield.rb` benchmark. In fact, the forwaded-block
`capture_block_vs_yield.rb` benchmark. In fact, the forwarded-block
version remains faster in my benchmarks here no matter how small
I shrink the `words` array. I'm not sure why!

Expand Down
Loading
Loading