File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515
1616task :clean do
1717 rm zipfile
18- rm_rf " vendor"
18+ rm_rf ' vendor'
1919end
2020
21- desc " Fetch latest build from the GitHub releases"
21+ desc ' Fetch latest build from the GitHub releases'
2222task :update_build do
2323 unless File . exist? ( zipfile )
2424 sh "curl -L -O 'https://github.com/alloy/terminal-notifier/archive/#{ zipfile } '"
2525 end
2626
27- rm_rf " vendor"
28- mkdir " vendor"
27+ rm_rf ' vendor'
28+ mkdir ' vendor'
2929
3030 sh "unzip -o -d vendor #{ zipfile } "
3131 mv "vendor/#{ filename } " , 'vendor/terminal-notifier'
3232
33- %x(xcodebuild -project '../Terminal \ Notifier.xcodeproj' -target terminal-notifier SYMROOT=build -verbose)
33+ sh 'cd .. && xcodebuild -target terminal-notifier SYMROOT=build -verbose && cd -'
3434 mv '../build/Release/terminal-notifier.app' , 'vendor/terminal-notifier/'
3535 chmod 0755 , 'vendor/terminal-notifier/terminal-notifier.app/Contents/MacOS/terminal-notifier'
3636end
3737
38- desc " Build gem"
38+ desc ' Build gem'
3939task :gem => :update_build do
40- sh " gem build terminal-notifier.gemspec"
40+ sh ' gem build terminal-notifier.gemspec'
4141end
4242
43- desc " Run specs"
43+ desc ' Run specs'
4444task :spec do
45- sh " bundle exec ruby spec/terminal-notifier_spec.rb"
45+ sh ' bundle exec ruby spec/terminal-notifier_spec.rb'
4646end
4747
4848task :default => :spec
You can’t perform that action at this time.
0 commit comments