Skip to content

Commit

Permalink
Fix typo for Gemspec/DateAssignment examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mishina2228 authored and bbatsov committed Apr 10, 2022
1 parent 3426137 commit 61ae8bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/cops_gemspec.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ It is set automatically when the gem is packaged.
----
# bad
Gem::Specification.new do |spec|
s.name = 'your_cool_gem_name'
spec.name = 'your_cool_gem_name'
spec.date = Time.now.strftime('%Y-%m-%d')
end
# good
Gem::Specification.new do |spec|
s.name = 'your_cool_gem_name'
spec.name = 'your_cool_gem_name'
end
----

Expand Down
4 changes: 2 additions & 2 deletions lib/rubocop/cop/gemspec/date_assignment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ module Gemspec
#
# # bad
# Gem::Specification.new do |spec|
# s.name = 'your_cool_gem_name'
# spec.name = 'your_cool_gem_name'
# spec.date = Time.now.strftime('%Y-%m-%d')
# end
#
# # good
# Gem::Specification.new do |spec|
# s.name = 'your_cool_gem_name'
# spec.name = 'your_cool_gem_name'
# end
#
class DateAssignment < Base
Expand Down

0 comments on commit 61ae8bf

Please sign in to comment.