Skip to content

Commit

Permalink
Rubocop fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JaniJegoroff committed Jan 18, 2016
1 parent 970b128 commit 13225fd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/to_boolean.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
class Object
def to_boolean
value = self.is_a?(String) ? downcase : self
value = is_a?(String) ? downcase : self
[true, 'true', 1, '1'].include?(value)
end
end
2 changes: 1 addition & 1 deletion lib/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Gem version
#
module ToBoolean
VERSION = '1.0.2'
VERSION = '1.0.2'.freeze
end
4 changes: 2 additions & 2 deletions to_boolean.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ Gem::Specification.new do |gem|

gem.test_files = Dir.glob('spec/**/*.rb')

gem.add_development_dependency 'rake', '~> 10.4'
gem.add_development_dependency 'rake', '~> 10.5'
gem.add_development_dependency 'minitest', '~> 5.8'
gem.add_development_dependency 'minitest-reporters', '~> 1.1'
gem.add_development_dependency 'rubocop', '~> 0.35'
gem.add_development_dependency 'rubocop', '~> 0.36'
gem.add_development_dependency 'coveralls', '~> 0.8'
end

0 comments on commit 13225fd

Please sign in to comment.