Projects
Mega:23.03
rubygem-contracts
_service:tar_scm:rubygem-contracts-0.16.0-0003-...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:rubygem-contracts-0.16.0-0003-Fix-misspellings-in-comments.patch of Package rubygem-contracts
From 989ee11906bb2061b2618bd1d8f128162e143a79 Mon Sep 17 00:00:00 2001 From: Olle Jonsson <olle.jonsson@gmail.com> Date: Sun, 24 Sep 2017 19:08:58 +0200 Subject: [PATCH 3/5] Fix misspellings in comments - found using find . | misspellings -f - --- lib/contracts/call_with.rb | 2 +- spec/ruby_version_specific/contracts_spec_2.1.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/contracts/call_with.rb b/lib/contracts/call_with.rb index 2735d1e..c9336a1 100644 --- a/lib/contracts/call_with.rb +++ b/lib/contracts/call_with.rb @@ -80,7 +80,7 @@ module Contracts # proc, block, lambda, etc method.call(*args, &blk) else - # original method name referrence + # original method name reference added_block = blk ? lambda { |*params| blk.call(*params) } : nil method.send_to(this, *args, &added_block) end diff --git a/spec/ruby_version_specific/contracts_spec_2.1.rb b/spec/ruby_version_specific/contracts_spec_2.1.rb index 168cfd0..36b6ede 100644 --- a/spec/ruby_version_specific/contracts_spec_2.1.rb +++ b/spec/ruby_version_specific/contracts_spec_2.1.rb @@ -51,7 +51,7 @@ RSpec.describe "Contracts:" do end.to raise_error(ContractError) end - it "should fail when passed nil to an optional argument which contract shouldnt accept nil" do + it "should fail when passed nil to an optional argument which contract shouldn't accept nil" do expect do @o.complicated("a", true, :b, :c, 2.0, e: (1..5), f: nil, g: :d) do |x| x -- 2.29.2
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2