Sha256: 6e57eda5e2b2ff46861bc1af41dd8bfda7abb5abb231f2f174496a76fbe50abb
Contents?: true
Size: 1.52 KB
Versions: 9
Compression:
Stored size: 1.52 KB
Contents
if config['guard'] gem 'guard', '>= 0.6.2', :group => :development append_file 'Gemfile' do <<-RUBY case HOST_OS when /darwin/i gem 'rb-fsevent', :group => :development gem 'growl', :group => :development when /linux/i gem 'libnotify', :group => :development gem 'rb-inotify', :group => :development when /mswin|windows/i gem 'rb-fchange', :group => :development gem 'win32console', :group => :development gem 'rb-notifu', :group => :development end RUBY end def guards @guards ||= [] end def guard(name, version = nil) args = [] if version args << version end args << { :group => :development } gem "guard-#{name}", *args guards << name end guard 'bundler', '>= 0.1.3' unless recipes.include? 'pow' guard 'rails', '>= 0.0.3' end if config['livereload'] guard 'livereload', '>= 0.3.0' end if recipes.include? 'rspec' guard 'rspec', '>= 0.4.3' end if recipes.include? 'cucumber' guard 'cucumber', '>= 0.6.1' end after_bundler do run 'guard init' guards.each do |name| run "guard init #{name}" end end else recipes.delete 'guard' end __END__ name: guard description: "Automate your workflow with Guard" author: ashley_woodard run_after: [rspec, cucumber] category: other tags: [dev] config: - guard: type: boolean prompt: Would you like to use Guard to automate your workflow? - livereload: type: boolean prompt: Would you like to enable the LiveReload guard?
Version data entries
9 entries across 9 versions & 1 rubygems