diff options
author | Kyrylo Silin <kyrylosilin@gmail.com> | 2014-04-29 11:31:10 +0300 |
---|---|---|
committer | Kyrylo Silin <kyrylosilin@gmail.com> | 2014-04-29 11:31:10 +0300 |
commit | 24a3ac9e8cd9a7b4fb6339b80527caa3b3a55c5a (patch) | |
tree | ff4ce2396a0892f67d629f908551db6332803669 | |
parent | 5bdf379d0d75eaf4b463fdd1aa9f80fb76b8ed41 (diff) | |
download | pry-24a3ac9e8cd9a7b4fb6339b80527caa3b3a55c5a.tar.gz |
Delete Guardfile
Because the dependency was removed in October, 2013.
SHA: 29372e328c666361cba72e25db5ca6f4c9762464
-rw-r--r-- | Guardfile | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/Guardfile b/Guardfile deleted file mode 100644 index f12cea6f..00000000 --- a/Guardfile +++ /dev/null @@ -1,62 +0,0 @@ -require 'guard/guard' - -module ::Guard - class Bacon < Guard - def run_all - system "rake spec" - puts - true - end - - def run_on_changes(paths) - paths.delete('some_lib') - puts "Running: #{paths.join ' '}" - if paths.size.zero? - warn 'Running all tests' - system 'rake recspec' - else - paths.each do |path| - warn "Running #{path}" - system "rake spec run=#{path}" or return - warn "\e[32;1mNice!!\e[0m Now running all specs, just to be sure." - run_all - end - end - end - end -end - -guard 'bacon' do - def deduce_spec_from(token) - %W( - spec/#{token}_spec.rb - spec/pry_#{token}_spec.rb - spec/commands/#{token}_spec.rb - ).each do |e| - return e if File.exists? e - end - nil - end - - Dir['lib/pry/**/*.rb'].each do |rb| - rb[%r(lib/pry/(.+)\.rb$)] - spec_rb = deduce_spec_from($1) - if spec_rb - # run as 'bundle exec guard -d' to see these. - ::Guard::UI.debug "'#{rb}' maps to '#{spec_rb}'" - else - ::Guard::UI.debug "No map, so run all for: '#{rb}'" - end - next unless spec_rb - watch(rb) do |m| spec_rb end - end - - watch(%r{^lib/.+\.rb$}) do |m| - return if deduce_spec_from(m[0]) - 'some_lib' - end - - watch(%r{^spec/.+\.rb$}) do |m| m end -end - -# vim:ft=ruby |