Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (32 sloc) 1.176 kb
options.on('--doc', 'Also generate docs.') do
process do |files|
if files.any? { |f| f =~ /lib\/.+\.rb$/ }
execute "yardoc --no-private"
execute(%{osascript -e 'tell application "Safari"
do JavaScript "window.location.reload()" in first document
end tell'})
end
end
end
recipe :ruby
process do |files|
specs = files.take_and_map do |file|
case file
when "spec/spec_helper.rb"
Dir.glob("spec/**/*_spec.rb")
when "spec/api/spec_helper.rb"
Dir.glob("spec/api/*_spec.rb")
when "lib/adyen/api.rb"
"spec/api/api_spec.rb"
when "lib/adyen/api/xml_querier.rb"
["spec/api/payment_service_spec.rb", "spec/api/recurring_service_spec.rb"]
when "lib/adyen/api/simple_soap_client.rb"
["spec/api/simple_soap_client_spec.rb", "spec/api/payment_service_spec.rb", "spec/api/recurring_service_spec.rb"]
when "lib/adyen/api/response.rb"
["spec/api/response_spec.rb", "spec/api/payment_service_spec.rb", "spec/api/recurring_service_spec.rb"]
when %r{lib/adyen/api/templates/(.+)\.rb$}, %r{lib/adyen/api/(.+)\.rb$}
"spec/api/#{$1}_spec.rb"
end
end
Ruby.run_tests(specs)
end
Jump to Line
Something went wrong with that request. Please try again.