Sha256: 273db46cc91486cc8f5eef2840abb20b9eef0e5792da61a31e2575b4e900789e

Contents?: true

Size: 322 Bytes

Versions: 41

Compression:

Stored size: 322 Bytes

Contents

#!/usr/bin/env ruby
require 'soywiki'

# this emulates ls -t in unix, but searches subdirs and returns a flat list of
# files

xs = Dir.glob('*/*').
    select {|x| File.file?(x) && x.gsub('/', '.') =~ Soywiki::WIKI_WORD }.
    sort_by {|x| File.stat(x).mtime }.
    reverse.map {|x| x.to_page_title }

puts xs.join("\n")

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
soywiki-0.5.6 bin/soywiki-ls-t
soywiki-0.5.5 bin/soywiki-ls-t
soywiki-0.5.4 bin/soywiki-ls-t
soywiki-0.5.3 bin/soywiki-ls-t
soywiki-0.5.2 bin/soywiki-ls-t
soywiki-0.5.1 bin/soywiki-ls-t
soywiki-0.5.0 bin/soywiki-ls-t
soywiki-0.4.9 bin/soywiki-ls-t
soywiki-0.4.8 bin/soywiki-ls-t
soywiki-0.4.7 bin/soywiki-ls-t
soywiki-0.4.6 bin/soywiki-ls-t
soywiki-0.4.5 bin/soywiki-ls-t
soywiki-0.4.4 bin/soywiki-ls-t
soywiki-0.4.3 bin/soywiki-ls-t
soywiki-0.4.2 bin/soywiki-ls-t
soywiki-0.4.1 bin/soywiki-ls-t
soywiki-0.4.0 bin/soywiki-ls-t
soywiki-0.3.9 bin/soywiki-ls-t
soywiki-0.3.8 bin/soywiki-ls-t
soywiki-0.3.7 bin/soywiki-ls-t