Sha256: 82605a4bc7c39c274e23bdc43b958f26c92aec9f14ba8a768e11a9f1c5b7aecb

Contents?: true

Size: 918 Bytes

Versions: 3

Compression:

Stored size: 918 Bytes

Contents

module BubbleWrap
  module Ext
    module BuildTask

      def self.extended(base)
        base.instance_eval do
          def setup_with_bubblewrap(&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
            config.setup_blocks << 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

3 entries across 3 versions & 1 rubygems

Version Path
bubble-wrap-1.4.0 lib/bubble-wrap/ext/motion_project_app.rb
bubble-wrap-1.3.0 lib/bubble-wrap/ext/motion_project_app.rb
bubble-wrap-1.3.0.osx lib/bubble-wrap/ext/motion_project_app.rb