Sha256: d307d77d99c3f5213b41ae513a0e833ff3dc337b3e72bcbb4f1b110ba6c4109a
Contents?: true
Size: 658 Bytes
Versions: 4
Compression:
Stored size: 658 Bytes
Contents
# frozen_string_literal: true notification :terminal_notifier rspec_options = { all_after_pass: true, cmd: 'rspec spec', failed_mode: :focus, } clearing :on guard :rspec, rspec_options do require 'ostruct' # Generic Ruby apps rspec = OpenStruct.new rspec.spec = ->(m) { "spec/#{m}_spec.rb" } rspec.spec_dir = 'spec' rspec.spec_helper = 'spec/spec_helper.rb' watch(%r{^spec/.+_spec\.rb$}) watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" } watch(rspec.spec_helper) { rspec.spec_dir } end guard :rubocop, all_on_start: true do watch(/.+\.rb$/) watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) } end
Version data entries
4 entries across 4 versions & 3 rubygems
Version | Path |
---|---|
api_auth-client-0.0.1 | Guardfile |
pdf_templator-0.0.1 | Guardfile |
em-pusher-client-0.1.2 | Guardfile |
em-pusher-client-0.1.1 | Guardfile |