Sha256: abd4f8b45ef35367ae4d4e750bf55007586ed1c60a1583bb33ebc6bd6d061f5d
Contents?: true
Size: 471 Bytes
Versions: 2
Compression:
Stored size: 471 Bytes
Contents
require "middleman/guard" require "guard/livereload" Middleman::Guard.add_guard do |options, livereload| if livereload livereload_options_hash = "" livereload.each do |k,v| livereload_options_hash << ", :#{k} => " livereload_options_hash << ((v.kind_of?(String)) ? "'#{v}'" : "#{v.to_s}") end %Q{ guard 'livereload'#{livereload_options_hash} do watch(%r{^source/([^\.].*)$}) end } else nil end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
middleman-livereload-0.2.2 | lib/middleman-livereload.rb |
middleman-livereload-0.2.1 | lib/middleman-livereload.rb |