Rakefile in cocoapods-keys-1.1.0 vs Rakefile in cocoapods-keys-1.2.0
- old
+ new
@@ -1,6 +1,14 @@
require 'bundler/gem_tasks'
-require "rspec/core/rake_task"
-RSpec::Core::RakeTask.new(:spec)
+dump_keys_tool = 'spec/fixtures/dump-key'
+dump_keys_source_file = "#{dump_keys_tool}.m"
+file dump_keys_tool => dump_keys_source_file do
+ sh "xcrun clang -framework Foundation #{dump_keys_source_file} -o #{dump_keys_tool}"
+end
+
+desc "Run tests"
+task :spec => dump_keys_tool do
+ sh "bundle exec rspec spec/*_spec.rb"
+end
task :default => :spec