Skip to content

Commit

Permalink
#38 copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed May 15, 2023
1 parent 7eeab7e commit efd80b8
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

# Copyright (c) 2018 Yegor Bugayenko
# Copyright (c) 2018-2023 Yegor Bugayenko
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
Expand Down
12 changes: 10 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

# Copyright (c) 2018 Yegor Bugayenko
# Copyright (c) 2018-2023 Yegor Bugayenko
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
Expand Down Expand Up @@ -34,7 +34,7 @@ def version
Gem::Specification.load(Dir['*.gemspec'].first).version
end

task default: %i[clean test rubocop]
task default: %i[clean test rubocop copyright]

require 'rake/testtask'
desc 'Run all unit tests'
Expand All @@ -57,3 +57,11 @@ RuboCop::RakeTask.new(:rubocop) do |task|
task.fail_on_error = true
task.requires << 'rubocop-rspec'
end

task :copyright do
sh "grep -q -r '2018-#{Date.today.strftime('%Y')}' \
--include '*.rb' \
--include '*.txt' \
--include 'Rakefile' \
."
end
4 changes: 2 additions & 2 deletions lib/zache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# (The MIT License)
#
# Copyright (c) 2018 Yegor Bugayenko
# Copyright (c) 2018-2023 Yegor Bugayenko
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
Expand Down Expand Up @@ -34,7 +34,7 @@
# {README}[https://github.com/yegor256/zache/blob/master/README.md] file.
#
# Author:: Yegor Bugayenko (yegor256@gmail.com)
# Copyright:: Copyright (c) 2018 Yegor Bugayenko
# Copyright:: Copyright (c) 2018-2023 Yegor Bugayenko
# License:: MIT
class Zache
# Fake implementation that doesn't cache anything, but behaves like it
Expand Down
4 changes: 2 additions & 2 deletions test/test_zache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# (The MIT License)
#
# Copyright (c) 2018 Yegor Bugayenko
# Copyright (c) 2018-2023 Yegor Bugayenko
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
Expand Down Expand Up @@ -32,7 +32,7 @@

# Cache test.
# Author:: Yegor Bugayenko (yegor256@gmail.com)
# Copyright:: Copyright (c) 2018 Yegor Bugayenko
# Copyright:: Copyright (c) 2018-2023 Yegor Bugayenko
# License:: MIT
class ZacheTest < Minitest::Test
def test_caches
Expand Down
2 changes: 1 addition & 1 deletion zache.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# (The MIT License)
#
# Copyright (c) 2018 Yegor Bugayenko
# Copyright (c) 2018-2023 Yegor Bugayenko
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
Expand Down

0 comments on commit efd80b8

Please sign in to comment.