Skip to content

Commit 2d84e59

Browse files
authored
chore: fix some typos (#17893)
* appopriate ==> appropriate * autorization ==> authorization * requrired ==> required * Overriden ==> Overridden * intiation ==> initiation * overiding ==> overriding * suppport ==> support * wihout ==> without * Enumerble ==> Enumerable * overriden ==> overridden
1 parent 06ffde2 commit 2d84e59

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

google-apis-core/lib/google/apis/core/base_service.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def http(method, url, params: nil, body: nil, download_dest: nil, options: nil,
319319
# Name of the field in the result containing the items. Defaults to :items
320320
# @param [Boolean] cache
321321
# True (default) if results should be cached so multiple iterations can be used.
322-
# @return [Enumerble]
322+
# @return [Enumerable]
323323
# @yield [token, service]
324324
# Current page token & service instance
325325
# @yieldparam [String] token

google-apis-core/lib/google/apis/core/storage_download.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class StorageDownloadCommand < DownloadCommand
2525

2626
# Execute the upload request once. Overrides the default implementation to handle streaming/chunking
2727
# of file content.
28-
# Note: This method is overriden from DownloadCommand in order to respond back with
28+
# Note: This method is overridden from DownloadCommand in order to respond back with
2929
# http header. All changes made to `execute_once` of DownloadCommand, should be made
3030
# here too.
3131
#

google-apis-core/spec/google/api_client/client_secrets_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@
377377
end
378378
end
379379

380-
context 'with folder wihout client_secrets.json' do
380+
context 'with folder without client_secrets.json' do
381381
it "should raise exception", fakefs: true do
382382
FileUtils.mkdir("/tmp")
383383
expect { Google::APIClient::ClientSecrets.load('/tmp') }.to raise_exception(ArgumentError)

google-apis-core/spec/google/apis/core/service_spec.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
expect(service.authorization).to eql 'a token'
5151
end
5252

53-
it 'should allow overiding authorization' do
53+
it 'should allow overriding authorization' do
5454
Google::Apis::RequestOptions.default.authorization = 'a token'
5555
service.authorization = 'another token'
5656
expect(service.authorization).to eql 'another token'
@@ -528,12 +528,12 @@
528528
expect(service_ud.root_url).to eql "https://www.googleapis.com/"
529529
end
530530

531-
it "should suppport setting root url to a static value" do
531+
it "should support setting root url to a static value" do
532532
service_ud.root_url = "https://endpoint1.mydomain5.com/"
533533
expect(service_ud.root_url).to eql "https://endpoint1.mydomain5.com/"
534534
end
535535

536-
it "should suppport setting root url to a dynamic value" do
536+
it "should support setting root url to a dynamic value" do
537537
service.universe_domain = "mydomain6.com"
538538
service.root_url = "https://endpoint2.$UNIVERSE_DOMAIN$/"
539539
expect(service.root_url).to eql "https://endpoint2.mydomain6.com/"

google-apis-core/spec/google/apis/core/storage_upload_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
.to_return(body: %(OK))
158158
end
159159

160-
it 'should retry resumable intiation and continue' do
160+
it 'should retry resumable initiation and continue' do
161161
command.execute(client)
162162
expect(a_request(:put, 'https://www.googleapis.com/zoo/animals')
163163
.with(body: 'Hello world')).to have_been_made.twice

google-apis-core/spec/google/apis/options_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
end
4141

4242
it 'sets default values' do
43-
expect(defaults.retries).to eq(5) # Overriden in spec_helper.rb
43+
expect(defaults.retries).to eq(5) # Overridden in spec_helper.rb
4444
expect(defaults.max_elapsed_time).to eq(900)
4545
expect(defaults.base_interval).to eq(1)
4646
expect(defaults.max_interval).to eq(60)

google-apis-generator/lib/google/apis/generator/annotator.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def infer_method_name_from_id(method)
159159
end
160160

161161
# Modifies an API description to support ruby code generation. Primarily does:
162-
# - Ensure all names follow appopriate ruby conventions
162+
# - Ensure all names follow appropriate ruby conventions
163163
# - Maps types to ruby types, classes, and resolves $refs
164164
# - Attempts to simplify names where possible to make APIs more sensible
165165
class Annotator

samples/cli/lib/base_cli.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def application_credentials_for(scope)
6060
end
6161

6262
# Returns user credentials for the given scope. Requests authorization
63-
# if requrired.
63+
# if required.
6464
def user_credentials_for(scope)
6565
FileUtils.mkdir_p(File.dirname(token_store_path))
6666

samples/web/app.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def resize(url, width)
101101
end
102102

103103

104-
# Callback for authorization requests. This saves the autorization code and
104+
# Callback for authorization requests. This saves the authorization code and
105105
# redirects back to the URL that originally requested authorization. The code is
106106
# redeemed on the next request.
107107
#

0 commit comments

Comments
 (0)