Sha256: 466e8316c96cff4a6349377bdf030498d97762a0f7868a41b4b714dbff0a8eb5

Contents?: true

Size: 586 Bytes

Versions: 6

Compression:

Stored size: 586 Bytes

Contents

require 'warbler'
require 'warbler/traits'

module Warbler
  module Traits
    # Hack to stop bundler injecting itself
    class Bundler
      def self.detect?
        false
      end
    end

    class Furoshiki
      include ::Warbler::Trait
      include PathmapHelper

      def self.detect?
        true
      end

      def self.requires?(trait)
        [Traits::Jar].include? trait
      end

      def update_archive(jar)
        # Not sure why Warbler doesn't do this automatically
        jar.files.delete_if { |k, v| @config.excludes.include? k }
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
furoshiki-0.6.1 lib/warbler/traits/furoshiki.rb
furoshiki-0.6.0 lib/warbler/traits/furoshiki.rb
furoshiki-0.5.0 lib/warbler/traits/furoshiki.rb
furoshiki-0.4.0 lib/warbler/traits/furoshiki.rb
furoshiki-0.3.1 lib/warbler/traits/furoshiki.rb
furoshiki-0.3.0 lib/warbler/traits/furoshiki.rb