Skip to content

Commit 134b103

Browse files
committed
Update Rakefile
1 parent 2cd7077 commit 134b103

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Ruby/Rakefile

+9-9
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,34 @@ end
1515

1616
task :clean do
1717
rm zipfile
18-
rm_rf "vendor"
18+
rm_rf 'vendor'
1919
end
2020

21-
desc "Fetch latest build from the GitHub releases"
21+
desc 'Fetch latest build from the GitHub releases'
2222
task :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'
3636
end
3737

38-
desc "Build gem"
38+
desc 'Build gem'
3939
task :gem => :update_build do
40-
sh "gem build terminal-notifier.gemspec"
40+
sh 'gem build terminal-notifier.gemspec'
4141
end
4242

43-
desc "Run specs"
43+
desc 'Run specs'
4444
task :spec do
45-
sh "bundle exec ruby spec/terminal-notifier_spec.rb"
45+
sh 'bundle exec ruby spec/terminal-notifier_spec.rb'
4646
end
4747

4848
task :default => :spec

0 commit comments

Comments
 (0)