Skip to content

Commit

Permalink
Added some task descriptions so they show up with 'rake -T'
Browse files Browse the repository at this point in the history
I guess it does no harm to have some additional task descriptions
and help our memory.

Before:

    rake changelog  # Update the changelog since the last release
    rake console    # Open an irb session preloaded with this library
    rake test       # Run the mocked tests
    rake yard       # Generate YARD Documentation

Now:

    rake build      # Build fog-1.8.0.gem
    rake changelog  # Update the changelog since the last release
    rake console    # Open an irb session preloaded with this library
    rake gemspec    # Updates the gemspec and runs 'validate'
    rake test       # Run the mocked tests
    rake validate   # Run before pushing out the code
    rake yard       # Generate YARD Documentation
  • Loading branch information
rubiojr committed Jan 18, 2013
1 parent 020faf0 commit 250cf8c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,14 @@ task :gem_push do
sh "gem push pkg/#{name}-#{version}.gem"
end

desc "Build fog-#{version}.gem"
task :build => :gemspec do
sh "mkdir -p pkg"
sh "gem build #{gemspec_file}"
sh "mv #{gem_file} pkg"
end

desc "Updates the gemspec and runs 'validate'"
task :gemspec => :validate do
# read spec file and split out manifest section
spec = File.read(gemspec_file)
Expand All @@ -156,6 +158,7 @@ task :gemspec => :validate do
puts "Updated #{gemspec_file}"
end

desc "Run before pushing out the code"
task :validate do
libfiles = Dir['lib/*'] - ["lib/#{name}.rb", "lib/#{name}", "lib/tasks"]
unless libfiles.empty?
Expand Down

0 comments on commit 250cf8c

Please sign in to comment.