Skip to content
This repository was archived by the owner on Jul 11, 2022. It is now read-only.

Commit 7aaa440

Browse files
committed
Turn rake task files into .rake files, auto-loaded
- call the files .rake - put them in rakelib/ - smallest rename of the resource files
1 parent ac2f3d1 commit 7aaa440

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

Rakefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
require "bundler/gem_tasks"
22
require "rspec/core/rake_task"
33
require "rubocop/rake_task"
4-
require_relative "rake/changelog.rb"
5-
require_relative "rake/doc.rb"
64

75
RuboCop::RakeTask.new
86

rake/changelog.rb renamed to rakelib/changelog.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def current_version
4848

4949
def parse_changelog
5050
require "citrus"
51-
Citrus.load(File.expand_path("../changelog.citrus", __FILE__))
51+
Citrus.load(File.expand_path("../../rake/changelog.citrus", __FILE__))
5252
@parsed = Changelog::Grammar.parse(File.read(changelog_file))
5353
@parsed_current_version = @parsed.versions.find {|version| version.number == current_version }
5454

rake/doc.rb renamed to rakelib/doc.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def filters
8888
upcase_headers.rb
8989
fix_links_for_format.rb
9090
fix_github_line_breaks.rb).map do |filter|
91-
::File.expand_path("../doc/#{filter}", __FILE__)
91+
::File.expand_path("../../rake/doc/#{filter}", __FILE__)
9292
end
9393
end
9494

0 commit comments

Comments
 (0)