Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Zubkov committed Aug 4, 2015
1 parent 6199385 commit bcbac53
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
* Multiple enhancements by @DNNX
* Added `script_fields` to search crteria (@ka8725)
* Added `script_fields` to search criteria (@ka8725)
* ORM adapters now completely relies on the default scope. This means every scope or objects passed to import are merged with default scope so basically there is no need to define `delete_if` block. Default scope strongly restricts objects which may land in the current index.
Expand Down Expand Up @@ -273,7 +273,7 @@
# Version 0.4.0
* Changed `update_index` matcher behavior. Now it compare array attributes position-independantly.
* Changed `update_index` matcher behavior. Now it compare array attributes position-independently.
* Search aggregations API support (@arion).
Expand Down Expand Up @@ -420,6 +420,6 @@

* Query DSL

* Basic index hadling
* Basic index handling

* Initial version
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ gem 'activerecord'
# gem 'sequel'

# gem 'kaminari', require: false
# gem 'will_pagnate', require: false
# gem 'will_paginate', require: false

gem 'resque', require: false
gem 'sidekiq', require: false
Expand Down
4 changes: 2 additions & 2 deletions lib/chewy/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class Config
#
:post_filter_mode,

# The first trategy in stack. `:base` by default.
# If you neet to return to the previous chewy behavior -
# The first strategy in stack. `:base` by default.
# If you need to return to the previous chewy behavior -
# just set it to `:bypass`
#
:root_strategy,
Expand Down
4 changes: 2 additions & 2 deletions lib/chewy/query.rb
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def script_score(script, options = {})
# added to the search request and combinded according to
# <tt>boost_mode</tt> and <tt>score_mode</tt>
#
# This probably only makes sense if you specifiy a filter
# This probably only makes sense if you specify a filter
# for the boost factor as well
#
# UsersIndex.boost_factor(23, filter: { term: { foo: :bar} })
Expand All @@ -408,7 +408,7 @@ def boost_factor(factor, options = {})
# added to the search request and combinded according to
# <tt>boost_mode</tt> and <tt>score_mode</tt>
#
# This probably only makes sense if you specifiy a filter
# This probably only makes sense if you specify a filter
# for the random score as well.
#
# If you do not pass in a seed value, Time.now will be used
Expand Down
2 changes: 1 addition & 1 deletion lib/chewy/rspec/update_index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
# .to update_index(UsersIndex::User).and_reindex(user, times: 2) }
#
# Specify reindexed attributes. Note that arrays are
# compared position-independantly.
# compared position-independently.
#
# specify { expect { user.update_attributes!(name: 'Duke') }
# .to update_index(UsersIndex.user).and_reindex(user, with: {name: 'Duke'}) }
Expand Down
2 changes: 1 addition & 1 deletion lib/chewy/strategy/atomic.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Chewy
class Strategy
# This strategy accomulates all the objects prepared for
# This strategy accumulates all the objects prepared for
# indexing and fires index process when strategy is popped
# from the strategies stack.
#
Expand Down
2 changes: 1 addition & 1 deletion lib/chewy/type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Type

singleton_class.delegate :index_name, :client, to: :index

# Chewy index current type blongs to. Defined inside `Chewy.create_type`
# Chewy index current type belongs to. Defined inside `Chewy.create_type`
#
def self.index
raise NotImplementedError
Expand Down
2 changes: 1 addition & 1 deletion lib/chewy/type/adapter/active_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def self.accepts?(target)
def cleanup_default_scope!
if Chewy.logger && (@default_scope.arel.orders.present? ||
@default_scope.arel.limit.present? || @default_scope.arel.offset.present?)
Chewy.logger.warn('Default type scope order, limit and offest are ignored and will be nullified')
Chewy.logger.warn('Default type scope order, limit and offset are ignored and will be nullified')
end

@default_scope = @default_scope.reorder(nil).limit(nil).offset(nil)
Expand Down
2 changes: 1 addition & 1 deletion lib/chewy/type/adapter/mongoid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def identify collection

def cleanup_default_scope!
if Chewy.logger && @default_scope.options.values_at(:sort, :limit, :skip).compact.present?
Chewy.logger.warn('Default type scope order, limit and offest are ignored and will be nullified')
Chewy.logger.warn('Default type scope order, limit and offset are ignored and will be nullified')
end

@default_scope = @default_scope.reorder(nil)
Expand Down
2 changes: 1 addition & 1 deletion lib/chewy/type/adapter/orm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def identify collection
# deleted from index:
#
# users = User.all
# users.each { |user| user.destroy if user.incative? }
# users.each { |user| user.destroy if user.inactive? }
# UsersIndex::User.import users # inactive users will be deleted from index
# # or
# UsersIndex::User.import users.map(&:id) # deleted user ids will be deleted from index
Expand Down
2 changes: 1 addition & 1 deletion lib/chewy/type/mapping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def field *args, &block
end
end

# Defines dynamic template in mapping root objests
# Defines dynamic template in mapping root objects
#
# class CarsIndex < Chewy::Index
# define_type Car do
Expand Down

0 comments on commit bcbac53

Please sign in to comment.