Sha256: d1bdbd72d01d42788b52c560ad8af89c41802faa416c87d7cb687efa2c8b759c

Contents?: true

Size: 916 Bytes

Versions: 7

Compression:

Stored size: 916 Bytes

Contents

recipe :ignore
recipe :ruby

process do |files|
  test_files = files.take_and_map do |file|
    case file
    when %r{^lib/kicker(\.rb|/validate\.rb|/growl\.rb)$}
      ["test/initialization_test.rb", ("test/filesystem_change_test.rb" if $1 == '.rb')]
    when %r{^lib/kicker/(.+)\.rb$}
      "test/#{$1}_test.rb"
    end
  end
  
  Ruby.run_tests test_files
end

process do |files|
  execute("rake docs:generate && open -a Safari html/index.html") if files.delete("README.rdoc")
end

startup do
  log "Good choice mate!"
end

# process do
#   execute "ls -l" do |status|
#     if status.before?
#       status.stdout? ? "Here we go!: #{status.command}" : "Here we go! GROWL"
#     elsif status.after?
#       if status.success?
#         status.stdout? ? "Nice!\n\n#{status.output}" : "Nice!"
#       else
#         status.stdout? ? "Damn brow!\n\n#{status.output}" : "Damn bro!"
#       end
#     end
#   end
# end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
kicker-2.4.0 .kick
kicker-2.3.1 .kick
kicker-2.3.0 .kick
kicker-2.2.3 .kick
kicker-2.2.2 .kick
kicker-2.2.1 .kick
kicker-2.2.0 .kick