Sha256: c27433b7a28e679299b72da1af3ad2559a595c61ac37e51fd214a5ec97bce193

Contents?: true

Size: 492 Bytes

Versions: 29

Compression:

Stored size: 492 Bytes

Contents

guard 'shell' do
  watch(/^.*\.adoc$/) { |m|
    if not m[0].start_with?('_preview') and not m[0].start_with?('_package')
      full_path      = m[0].split('/')
      src_group_path = full_path.length == 1 ? '' : full_path[0..-2].join('/')
      filename       = full_path[-1][0..-6]
      system("asciibinder build --page='#{src_group_path}:#{filename}'")
    end
  }
end

guard 'livereload' do
  watch(%r{^_preview/.+\.(css|js|html)$})
  watch(%r{^_preview/.+\/.+\/.+\.(css|js|html)$})
end

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
ascii_binder_gabriel_rh-0.0.1 lib/ascii_binder_gabriel_rh/tasks/guards.rb
ascii_binder-1.2 lib/ascii_binder/tasks/guards.rb
ascii_binder-1.0.1 lib/ascii_binder/tasks/guards.rb
ascii_binder-1.0 lib/ascii_binder/tasks/guards.rb
ascii_binder-0.2.3 lib/ascii_binder/tasks/guards.rb
ascii_binder-0.2.2 lib/ascii_binder/tasks/guards.rb
ascii_binder-0.2.1 lib/ascii_binder/tasks/guards.rb
ascii_binder-0.2.0 lib/ascii_binder/tasks/guards.rb
ascii_binder-0.1.15.3 lib/ascii_binder/tasks/guards.rb
ascii_binder-0.1.15.2 lib/ascii_binder/tasks/guards.rb
ascii_binder-0.1.15.1 lib/ascii_binder/tasks/guards.rb
ascii_binder-0.1.15 lib/ascii_binder/tasks/guards.rb
ascii_binder-0.1.14 lib/ascii_binder/tasks/guards.rb
ascii_binder-0.1.13 lib/ascii_binder/tasks/guards.rb
ascii_binder-0.1.11 lib/ascii_binder/tasks/guards.rb
ascii_binder-0.1.10.1 lib/ascii_binder/tasks/guards.rb
ascii_binder-0.1.10 lib/ascii_binder/tasks/guards.rb
ascii_binder-0.1.9 lib/ascii_binder/tasks/guards.rb
ascii_binder-0.1.8 lib/ascii_binder/tasks/guards.rb
ascii_binder-0.1.7 lib/ascii_binder/tasks/guards.rb