Skip to content

Commit

Permalink
Merge branch 'master' into v1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tfausak committed May 28, 2014
2 parents d342df6 + 81c0611 commit df97940
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ AllCops:
- tmp/**/*
HandleExceptions:
Enabled: false
NonNilCheck:
Enabled: false
PercentLiteralDelimiters:
PreferredDelimiters:
'%W': '[]'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ work done in [Mutations][17].
[2]: https://badge.fury.io/rb/active_interaction "Gem Version"
[3]: https://travis-ci.org/orgsync/active_interaction.svg?branch=master
[4]: https://travis-ci.org/orgsync/active_interaction "Build Status"
[5]: https://coveralls.io/repos/orgsync/active_interaction/badge.png?branch=master
[5]: http://img.shields.io/coveralls/orgsync/active_interaction/master.svg
[6]: https://coveralls.io/r/orgsync/active_interaction?branch=master "Coverage Status"
[7]: https://codeclimate.com/github/orgsync/active_interaction.png
[8]: https://codeclimate.com/github/orgsync/active_interaction "Code Climate"
Expand Down
2 changes: 1 addition & 1 deletion active_interaction.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'guard-rubocop', '~> 1.1'
spec.add_development_dependency 'rake', '~> 10.3'
spec.add_development_dependency 'rdoc', '~> 4.1'
spec.add_development_dependency 'rubocop', '0.21.0'
spec.add_development_dependency 'rubocop', '0.22.0'
spec.add_development_dependency 'yard', '~> 0.8'

if RUBY_ENGINE == 'rbx'
Expand Down
6 changes: 3 additions & 3 deletions lib/active_interaction/errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ def merge_messages!(other)
def merge_symbolic!(other)
other.symbolic.each do |attribute, symbols|
symbols.each do |symbol|
unless symbolic[attribute].include?(symbol)
symbolic[attribute] += [symbol]
end
next if symbolic[attribute].include?(symbol)

symbolic[attribute] += [symbol]
end
end
end
Expand Down
2 changes: 2 additions & 0 deletions lib/active_interaction/filters/array_filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,11 @@ def validate(filter, names)
fail InvalidFilterError, 'attribute names in array block'
end

# rubocop:disable GuardClause
if filter.default?
fail InvalidDefaultError, 'default values in array block'
end
# rubocop:enable GuardClause
end
end
end

0 comments on commit df97940

Please sign in to comment.