compass-import-once 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -2,7 +2,12 @@
2
2
 
3
3
  This plugin changes the behavior of Sass's `@import` directive so that
4
4
  if the same sass file is imported more than once, the second import
5
- will be a no-op. This allows dependencies to be
5
+ will be a no-op. This allows dependencies to behave how most people
6
+ expect them to behave and provides a considerable performance improvement
7
+ for some sass projects.
8
+
9
+ **Note**: Although this plugin is maintained by compass, it can be used
10
+ without compass in any Sass-based project.
6
11
 
7
12
  ## Installation
8
13
 
@@ -28,3 +33,14 @@ or you can activate it conditionally:
28
33
 
29
34
  require 'compass/import-once'
30
35
  Compass::ImportOnce.activate!
36
+
37
+ ## Forcing an Import
38
+
39
+ If a file must be imported a second time, you can force it by adding an
40
+ exclamation mark to the end of the import url. E.g.
41
+
42
+
43
+ ```scss
44
+ @import "something";
45
+ @import "something!"; // this will be imported again.
46
+ ```
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
@@ -11,7 +11,7 @@ module Sass
11
11
  if path.is_a?(Sass::Importers::Base) && !path.is_a?(Compass::ImportOnce::Importer)
12
12
  path.extend(Compass::ImportOnce::Importer)
13
13
  elsif !path.is_a?(Sass::Importers::Base)
14
- Sass::Util.sass_war "WARNING: #{path.inspect} is on the load path and is not an importer."
14
+ Sass::Util.sass_warn "WARNING: #{path.inspect} is on the load path and is not an importer."
15
15
  end
16
16
  end
17
17
  instance
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compass-import-once
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Eppstein
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-12-06 00:00:00 Z
18
+ date: 2013-12-11 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: bundler