homeostasis 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,6 +16,7 @@ class Homeostasis::Asset < Stasis::Plugin
16
16
 
17
17
  def before_all
18
18
  @stasis.paths.each do |path|
19
+ next if ignore?(path)
19
20
  relative = path[(@stasis.root.length+1)..-1]
20
21
  ext = Tilt.mappings.keys.find { |ext| File.extname(path)[1..-1] == ext }
21
22
  dest = (ext && File.extname(relative) == ".#{ext}") ?
@@ -105,6 +106,21 @@ class Homeostasis::Asset < Stasis::Plugin
105
106
  def self.concats
106
107
  @@concats
107
108
  end
109
+
110
+ private
111
+ def ignore?(path)
112
+ @ignore_paths ||= @stasis.plugins.
113
+ find { |plugin| plugin.class == Stasis::Ignore }.
114
+ instance_variable_get(:@ignore)
115
+
116
+ matches = _match_key?(@ignore_paths, path)
117
+ matches.each do |group|
118
+ group.each do |group_path|
119
+ return true if _within?(group_path)
120
+ end
121
+ end
122
+ false
123
+ end
108
124
  end
109
125
 
110
126
  Stasis.register(Homeostasis::Asset)
data/lib/homeostasis.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Homeostasis
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: homeostasis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-15 00:00:00.000000000 Z
12
+ date: 2012-06-16 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Provides asset stamping using git revisions, environments, and a few
15
15
  view helpers.