Sha256: 7f87b0bb78715008dedf024b3dd79aaa90444468509a6ef40e04326fe6461be3

Contents?: true

Size: 374 Bytes

Versions: 8

Compression:

Stored size: 374 Bytes

Contents

namespace :tabs do
  desc "Prettify app/tabs/tabulous.rb"
  task :format do
    require File.expand_path('../tabulous/formatter', File.dirname(__FILE__))
    filename = File.join(Rails.root.to_s, 'app', 'tabs', 'tabulous.rb')
    reformatted = Tabulous::Formatter.format(IO.readlines(filename))
    File.open(filename, 'w') do |f|
      f.puts reformatted
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
tabulous-1.3.2 lib/tasks/tabulous.rake
tabulous-1.3.0 lib/tasks/tabulous.rake
tabulous-1.2.0 lib/tasks/tabulous.rake
tabulous-1.1.0 lib/tasks/tabulous.rake
tabulous-1.0.3 lib/tasks/tabulous.rake
tabulous-1.0.2 lib/tasks/tabulous.rake
tabulous-1.0.1 lib/tasks/tabulous.rake
tabulous-1.0.0 lib/tasks/tabulous.rake