Rakefile in iCuke-0.5.5 vs Rakefile in iCuke-0.6.0

- old
+ new

@@ -1,7 +1,8 @@ require 'rubygems' require 'rake' +require 'lib/icuke/sdk' begin require 'jeweler' Jeweler::Tasks.new do |gem| gem.name = "iCuke" @@ -9,25 +10,28 @@ gem.description = %Q{Cucumber support for iPhone applications} gem.email = "rob@the-it-refinery.co.uk" gem.homepage = "http://github.com/unboxed/iCuke" gem.authors = ["Rob Holland"] gem.add_dependency "cucumber", ">= 0" - gem.add_dependency "rb-appscript", ">= 0" gem.add_dependency "httparty", ">= 0" gem.add_dependency "nokogiri", ">= 0" - gem.extensions = ['ext/iCuke/Rakefile'] - gem.files += ['ext/iCuke/libicuke.dylib'] + gem.extensions = ['ext/Rakefile'] + gem.files += ['ext/bin/waxsim'] + gem.files += ['ext/iCuke/libicuke*.dylib'] + gem.files += ['ext/WaxSim/**/*'] + gem.files -= ['ext/WaxSim/build'] end Jeweler::GemcutterTasks.new rescue LoadError puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler" end -file 'app/build/Debug-iphonesimulator/UICatalog.app/UICatalog' do - sh 'cd app && xcodebuild -target UICatalog -configuration Debug -sdk iphonesimulator3.1.2' +file 'app/build/Debug-iphonesimulator/Universal.app/Universal' do + ICuke::SDK.use_latest + sh "cd app && xcodebuild -target Universal -configuration Debug -sdk #{ICuke::SDK.fullname}" end -task :app => 'app/build/Debug-iphonesimulator/UICatalog.app/UICatalog' +task :app => 'app/build/Debug-iphonesimulator/Universal.app/Universal' task :features => :app task :lib do sh 'cd ext/iCuke && rake' end @@ -52,30 +56,6 @@ rdoc.rdoc_dir = 'rdoc' rdoc.title = "iCuke #{version}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') -end - -task :launch => [:app, :lib] do - require 'lib/icuke/simulator' - - simulator = ICuke::Simulator.new - simulator.launch File.expand_path('app/iCuke/build/Debug-iphonesimulator/iCuke.app'), - :env => { 'DYLD_INSERT_LIBRARIES' => File.expand_path(File.dirname(__FILE__) + '/ext/iCuke/libicuke.dylib') } -end - -task :replay => :launch do - simulator = ICuke::Simulator.new - simulator.load(File.expand_path(File.dirname(__FILE__) + '/events.plist')) - simulator.play -end - -task :debug => [:app, :lib] do - require 'lib/icuke/simulator' - - simulator = ICuke::Simulator.new - simulator.launch File.expand_path('app/iCuke/build/Debug-iphonesimulator/iCuke.app'), - :env => { 'DYLD_INSERT_LIBRARIES' => File.expand_path(File.dirname(__FILE__) + '/ext/iCuke/libicuke.dylib') }, - :debugger => true - puts `ps aux|grep [i]Cuke.app/iCuke` end