lib/tram/policy/errors.rb in tram-policy-0.4.0 vs lib/tram/policy/errors.rb in tram-policy-1.0.0

- old
+ new

@@ -48,24 +48,10 @@ obj << error if error.contain?(key, tags) end self.class.new(policy, list) end - # @deprecated - # @!method by_tags(tags) - # Selects errors filtered by key and tags - # - # @param [Hash<Symbol, Object>] tags List of options to filter by - # @return [Array<Tram::Policy::Error>] - # - def by_tags(**tags) - warn "[DEPRECATED] The method Tram::Policy::Errors#by_tags" \ - " will be removed in the v1.0.0. Use method #filter instead." - - filter(tags).to_a - end - # @!method empty? # Checks whether a collection is empty # # @return [Boolean] # @@ -85,21 +71,9 @@ # # @return [Array<String>] # def messages @set.map(&:message).sort - end - - # @deprecated - # List of error descriptions - # - # @return [Array<String>] - # - def full_messages - warn "[DEPRECATED] The method Tram::Policy::Errors#full_messages" \ - " will be removed in the v1.0.0." - - map(&:full_message) end # @!method merge(other, options) # Merges other collection to the current one and returns new collection # with the current scope