Skip to content

Commit 6cb8eaf

Browse files
committed
spelling corrections
1 parent 4883225 commit 6cb8eaf

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@
639639
* [#492](https://github.com/ruby-grape/grape/pull/492): Don't allow to have nil value when a param is required and has a list of allowed values - [@Antti](https://github.com/Antti).
640640
* [#495](https://github.com/ruby-grape/grape/pull/495): Fixed `ParamsScope#params` for parameters nested inside arrays - [@asross](https://github.com/asross).
641641
* [#498](https://github.com/ruby-grape/grape/pull/498): Dry'ed up options and headers logic, allow headers to be passed to OPTIONS requests - [@karlfreeman](https://github.com/karlfreeman).
642-
* [#500](https://github.com/ruby-grape/grape/pull/500): Skip entity auto-detection when explicitely passed - [@yaneq](https://github.com/yaneq).
642+
* [#500](https://github.com/ruby-grape/grape/pull/500): Skip entity auto-detection when explicitly passed - [@yaneq](https://github.com/yaneq).
643643
* [#503](https://github.com/ruby-grape/grape/pull/503): Calling declared(params) from child namespace fails to include parent namespace defined params - [@myitcv](https://github.com/myitcv).
644644
* [#512](https://github.com/ruby-grape/grape/pull/512): Don't create `Grape::Request` multiple times - [@dblock](https://github.com/dblock).
645645
* [#538](https://github.com/ruby-grape/grape/pull/538): Fixed default values for grouped params - [@dm1try](https://github.com/dm1try).

lib/grape/api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def const_missing(*args)
8787
end
8888

8989
# The remountable class can have a configuration hash to provide some dynamic class-level variables.
90-
# For instance, a descripcion could be done using: `desc configuration[:description]` if it may vary
90+
# For instance, a description could be done using: `desc configuration[:description]` if it may vary
9191
# depending on where the endpoint is mounted. Use with care, if you find yourself using configuration
9292
# too much, you may actually want to provide a new API rather than remount it.
9393
def mount_instance(**opts)

lib/grape/dsl/callbacks.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def after(&block)
5959
# end
6060
# end
6161
#
62-
# This will make sure that the ApiLogger is opened and close around every
62+
# This will make sure that the ApiLogger is opened and closed around every
6363
# request
6464
# @param ensured_block [Proc] The block to be executed after every api_call
6565
def finally(&block)

lib/grape/dsl/inside_route.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ def entity_class_for_obj(object, options)
399399
entity_class = options.delete(:with)
400400

401401
if entity_class.nil?
402-
# entity class not explicitely defined, auto-detect from relation#klass or first object in the collection
402+
# entity class not explicitly defined, auto-detect from relation#klass or first object in the collection
403403
object_class = if object.respond_to?(:klass)
404404
object.klass
405405
else

lib/grape/dsl/parameters.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def use(*names)
7272

7373
# Require one or more parameters for the current endpoint.
7474
#
75-
# @param attrs list of parameter names, or, if :using is
75+
# @param attrs list of parameters names, or, if :using is
7676
# passed as an option, which keys to include (:all or :none) from
7777
# the :using hash. The last key can be a hash, which specifies
7878
# options for the parameters

lib/grape/dsl/routing.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def route(methods, paths = ['/'], route_options = {}, &block)
152152
end
153153

154154
# Declare a "namespace", which prefixes all subordinate routes with its
155-
# name. Any endpoints within a namespace, or group, resource, segment,
155+
# name. Any endpoints within a namespace, group, resource or segment,
156156
# etc., will share their parent context as well as any configuration
157157
# done in the namespace context.
158158
#
@@ -200,7 +200,7 @@ def reset_endpoints!
200200
@endpoints = []
201201
end
202202

203-
# Thie method allows you to quickly define a parameter route segment
203+
# This method allows you to quickly define a parameter route segment
204204
# in your API.
205205
#
206206
# @param param [Symbol] The name of the parameter you wish to declare.

lib/grape/exceptions/validation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def initialize(params:, message: nil, **args)
1717
super(**args)
1818
end
1919

20-
# remove all the unnecessary stuff from Grape::Exceptions::Base like status
20+
# Remove all the unnecessary stuff from Grape::Exceptions::Base like status
2121
# and headers when converting a validation error to json or string
2222
def as_json(*_args)
2323
to_s

spec/grape/entity_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def first
116116
expect(last_response.body).to eq('Auto-detect!')
117117
end
118118

119-
it 'does not run autodetection for Entity when explicitely provided' do
119+
it 'does not run autodetection for Entity when explicitly provided' do
120120
entity = Class.new(Grape::Entity)
121121
some_array = []
122122

0 commit comments

Comments
 (0)