Skip to content
Open
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
15 changes: 15 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,18 @@ task :test do
end

task default: :test

task :get_xkcd do
xkcd = GetColors::XKCD.new
xkcd.get_data
xkcd.dump_file("lib/colors/color_data/xkcd.rb")
end

task :get_css4 do
css4 = GetColors::CSS4.new
css4.get_data
css4.dump_file("lib/colors/color_data/css4.rb")
end

desc "Get color data files from the web, per issue #8"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to refer #8 here.

Suggested change
desc "Get color data files from the web, per issue #8"
desc "Get color data files from the web"

task :get_colors => [:get_xkcd, :get_css4]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about colors:generate?

Suggested change
task :get_colors => [:get_xkcd, :get_css4]
namespace :colors do
namespace :generate do
task :xkcd do
# ...
end
task :css4 do
# ...
end
end
task :generate => [:xkcd, :css4]
end

Loading