Sha256: 7476b226870e4ba71ec9712f62fa74ff20668bb8377dd52ec03b830ad67e06f1

Contents?: true

Size: 1.14 KB

Versions: 51

Compression:

Stored size: 1.14 KB

Contents

# -*- ruby -*-

$LOAD_PATH << 'lib'

require 'rubygems'
require 'hoe'

Hoe.add_include_dirs("../../minitest/dev/lib")

Hoe.plugin :seattlerb

Hoe.spec "ZenTest" do
  developer 'Ryan Davis', 'ryand-ruby@zenspider.com'
  developer 'Eric Hodel', 'drbrain@segment7.net'

  license "MIT"
end

desc "run autotest on itself"
task :autotest do
  ruby "-Ilib -w ./bin/autotest"
end

desc "update example_dot_autotest.rb with all possible constants"
task :update do
  system "p4 edit example_dot_autotest.rb"
  File.open "example_dot_autotest.rb", "w" do |f|
    f.puts "# -*- ruby -*-"
    f.puts
    Dir.chdir "lib" do
      Dir["autotest/*.rb"].sort.each do |s|
        next if s =~ /rails|discover/
        f.puts "# require '#{s[0..-4]}'"
      end
    end

    f.puts

    Dir["lib/autotest/*.rb"].sort.each do |file|
      file = File.read(file)
      m = file[/module.*/].split(/ /).last rescue nil
      next unless m

      file.grep(/def[^(]+=/).each do |setter|
        setter = setter.sub(/^ *def self\./, '').sub(/\s*=\s*/, ' = ')
        f.puts "# #{m}.#{setter}"
      end
    end
  end
  system "p4 diff -du example_dot_autotest.rb"
end

# vim:syntax=ruby

Version data entries

51 entries across 51 versions & 3 rubygems

Version Path
cloudsmith-api-2.0.15 vendor/bundle/ruby/2.6.0/gems/ZenTest-4.12.2/Rakefile
cloudsmith-api-2.0.14 vendor/bundle/ruby/2.6.0/gems/ZenTest-4.12.2/Rakefile
ZenTest-4.12.2 Rakefile
cloudsmith-api-2.0.13 vendor/bundle/ruby/2.6.0/gems/ZenTest-4.12.1/Rakefile
cloudsmith-api-2.0.12 vendor/bundle/ruby/2.6.0/gems/ZenTest-4.12.1/Rakefile
cloudsmith-api-2.0.11 vendor/bundle/ruby/2.6.0/gems/ZenTest-4.12.1/Rakefile
cloudsmith-api-2.0.10 vendor/bundle/ruby/2.6.0/gems/ZenTest-4.12.1/Rakefile
cloudsmith-api-2.0.9 vendor/bundle/ruby/2.6.0/gems/ZenTest-4.12.1/Rakefile
cloudsmith-api-2.0.8 vendor/bundle/ruby/2.6.0/gems/ZenTest-4.12.1/Rakefile
cloudsmith-api-2.0.7 vendor/bundle/ruby/2.6.0/gems/ZenTest-4.12.1/Rakefile
cloudsmith-api-2.0.6 vendor/bundle/ruby/2.6.0/gems/ZenTest-4.12.1/Rakefile
cloudsmith-api-2.0.5 vendor/bundle/ruby/2.6.0/gems/ZenTest-4.12.1/Rakefile
cloudsmith-api-2.0.4 vendor/bundle/ruby/2.6.0/gems/ZenTest-4.12.1/Rakefile
cloudsmith-api-2.0.3 vendor/bundle/ruby/2.6.0/gems/ZenTest-4.12.1/Rakefile
cloudsmith-api-2.0.2 vendor/bundle/ruby/2.6.0/gems/ZenTest-4.12.1/Rakefile
cloudsmith-api-2.0.1 vendor/bundle/ruby/2.6.0/gems/ZenTest-4.12.1/Rakefile
cloudsmith-api-2.0.0 vendor/bundle/ruby/2.6.0/gems/ZenTest-4.12.1/Rakefile
cloudsmith-api-1.142.3 vendor/bundle/ruby/2.6.0/gems/ZenTest-4.12.1/Rakefile
cloudsmith-api-1.120.3 vendor/bundle/ruby/2.6.0/gems/ZenTest-4.12.1/Rakefile
cloudsmith-api-1.61.3 vendor/bundle/ruby/2.6.0/gems/ZenTest-4.12.1/Rakefile