Sha256: ca79157e6a426130af9cb68fab0e673cf235c904c3314d4bf40dd6e8e4b8881d
Contents?: true
Size: 937 Bytes
Versions: 5
Compression:
Stored size: 937 Bytes
Contents
module BubbleWrap module Ext module BuildTask def self.extended(base) base.instance_eval do def setup_with_bubblewrap(*args, &block) bw_config = proc do |app| app.files = ::BubbleWrap::Requirement.files(app.files) app.files_dependencies ::BubbleWrap::Requirement.files_dependencies app.frameworks = ::BubbleWrap::Requirement.frameworks(app.frameworks) block.call(app) unless block.nil? end setup_without_bubblewrap *args, &bw_config end alias :setup_without_bubblewrap :setup alias :setup :setup_with_bubblewrap end end end module Platforms def osx? self.respond_to?(:template) && self.template == :osx end end end end Motion::Project::App.extend(BubbleWrap::Ext::BuildTask) Motion::Project::App.extend(BubbleWrap::Ext::Platforms)
Version data entries
5 entries across 5 versions & 1 rubygems