lib/hanami/repository.rb in hanami-model-1.1.0.beta1 vs lib/hanami/repository.rb in hanami-model-1.1.0.beta2

- old
+ new

@@ -52,11 +52,11 @@ # # # # All the queries and commands are private. # This decision forces developers to define intention revealing API, instead - # leak storage API details outside of a repository. + # of leaking storage API details outside of a repository. # # @example # require 'hanami/model' # # # This is bad for several reasons: @@ -85,11 +85,11 @@ # # It doesn't even know about records, only works with entities. # # # # * It expresses a clear intent. # # # # * The caller can be easily tested in isolation. - # # It's just a matter of stub this method. + # # It's just a matter of stubbing this method. # # # # * If we change the storage, the callers aren't affected. # # ArticleRepository.new.most_recent_by_author(author) # @@ -112,11 +112,11 @@ # # @since 0.7.0 # @api private # # @see Hanami::Model::Plugins - COMMAND_PLUGINS = [:schema, :mapping, :timestamps].freeze + COMMAND_PLUGINS = %i[schema mapping timestamps].freeze # Configuration # # @since 0.7.0 # @api private @@ -165,11 +165,11 @@ } end # rubocop:enable Metrics/AbcSize # rubocop:enable Metrics/MethodLength - # Defines the ampping between a database table and an entity. + # Defines the mapping between a database table and an entity. # # It's also responsible to associate table columns to entity attributes. # # @since 0.7.0 # @api private @@ -312,10 +312,10 @@ # # @since 0.7.0 module Commands # Create a new record # - # @return [Hanami::Entity] an new created entity + # @return [Hanami::Entity] a new created entity # # @raise [Hanami::Model::Error] an error in case the command fails # # @since 0.7.0 #