Sha256: 85c7795f12098bde6ec172176fc60388af5a1b498e0d3b389cd5bebe157f1d40

Contents?: true

Size: 535 Bytes

Versions: 3

Compression:

Stored size: 535 Bytes

Contents

task :test do
  require "cutest"
  Cutest.run(Dir["test/nest*"])
end

task :default => :test

task :commands do
  require "open-uri"
  require "par"

  file = File.expand_path("lib/nest.rb", File.dirname(__FILE__))
  path = "http://dimaion.com/redis/master/keys"

  commands = open(path).read.split("\n")

  source = File.read(file).sub(/  METHODS = .+?\n\n/m) do
    Par.new("  METHODS = #{commands.map(&:to_sym).inspect}\n\n", p: 2)
  end

  File.open(file, "w") { |f| f.write source }

  system "git diff --color-words #{file}"
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nest-1.0.2 Rakefile
nest-1.0.1 Rakefile
nest-1.0.0 Rakefile