Sha256: 65f6285bc96c4dd3097ab36c97b22c6081d146e1c241dd26aa4422fdb2b02714

Contents?: true

Size: 652 Bytes

Versions: 10

Compression:

Stored size: 652 Bytes

Contents

#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
=begin
  Copyright (C) 2014 Takashi SUGA

  You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
=end

Dir.glob('scripts/*.rb') do |script|
  next if script =~ /6/ # iCalendar
  log = script.sub(/\.rb$/, '.txt')
  if FileTest.exist?(log)
    File.open(log, 'r') do |io|
      puts '%s : %s' % [`ruby #{script}` == io.read ? '=' : 'x', log.sub(/^scripts\//, '')]
    end
  else
    File.open(log, 'w') do |io|
      io.write(`ruby #{script}`)
      puts '%s : %s' % ['+', log.sub(/^scripts\//, '')]
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
when_exe-0.5.0 test/scripts.rb
when_exe-0.4.6 test/scripts.rb
when_exe-0.4.5 test/scripts.rb
when_exe-0.4.4 test/scripts.rb
when_exe-0.4.3 test/scripts.rb
when_exe-0.4.2 test/scripts.rb
when_exe-0.4.1 test/scripts.rb
when_exe-0.4.0 test/scripts.rb
when_exe-0.3.9 test/scripts.rb
when_exe-0.3.8 test/scripts.rb