Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rake: Turn rake task files into .rake files, auto-loaded #153

Merged
merged 1 commit into from
Aug 17, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
require "bundler/gem_tasks"
require "rspec/core/rake_task"
require "rubocop/rake_task"
require_relative "rake/changelog.rb"
require_relative "rake/doc.rb"

RuboCop::RakeTask.new

Expand Down
2 changes: 1 addition & 1 deletion rake/changelog.rb → rakelib/changelog.rake
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def current_version

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

Expand Down
2 changes: 1 addition & 1 deletion rake/doc.rb → rakelib/doc.rake
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def filters
upcase_headers.rb
fix_links_for_format.rb
fix_github_line_breaks.rb).map do |filter|
::File.expand_path("../doc/#{filter}", __FILE__)
::File.expand_path("../../rake/doc/#{filter}", __FILE__)
end
end

Expand Down