Sha256: a508021dc7bf40200e2560633ea5d9e5fca1757001cf5b1e07e205750be15b97
Contents?: true
Size: 926 Bytes
Versions: 1
Compression:
Stored size: 926 Bytes
Contents
require 'motion-splash/config.rb' class MotionSplash def self.generate! @should_generate = true end def self.should_generate? @should_generate end def self.setup(app) config = Config.new(app) yield(config) if block_given? config.finish splash_delegate = File.join(File.dirname(__FILE__), 'motion-splash/splash_app_delegate.rb') if MotionSplash.should_generate? app.files << File.join(File.dirname(__FILE__), 'motion-splash/generator.rb') app.files << File.join(File.dirname(__FILE__), 'motion-splash/config.rb') app.files << splash_delegate system("touch \"#{splash_delegate}\"") else if File.mtime(splash_delegate) >= File.mtime(config.app_delegate_file) system("touch \"#{config.app_delegate_file}\"") end end end end desc "Creates splash images" task 'splash' do MotionSplash.generate! Rake::Task["simulator"].invoke end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
motion-splash-1.0 | lib/motion-splash.rb |