lib/orly/tester.rb in orly-0.0.6 vs lib/orly/tester.rb in orly-0.0.7
- old
+ new
@@ -13,14 +13,14 @@
raise NoRepo.new
end
def run_tests
get_diff.each do |file|
- if file.path =~ /^Gemfile/
- @need_bundle = true
- elsif file.path =~ /^db\/migrate/
- @need_migrate = true
+ case(file)
+ when /^Gemfile/ then @need_bundle = true
+ when /^db\/migrate/ then @need_migrate = true
+ when /^Podfile/ then @need_pod = true
end
end
rescue Git::GitExecuteError
false
end
@@ -34,8 +34,12 @@
@need_migrate
end
def need_bundle_install?
@need_bundle
+ end
+
+ def need_pod?
+ @need_pod
end
end
end
\ No newline at end of file