middleman-compass 4.0.0.rc.1 → 4.0.0.rc.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +9 -9
- data/lib/middleman-compass/extension.rb +32 -0
- data/lib/middleman-compass/version.rb +1 -1
- data/middleman-compass.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 840ce8abe18fce388d3d057d43a44ed372708741
|
4
|
+
data.tar.gz: 95a60246048790042fa573fb872f4d98d1f0426c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bda0651a76a7f88c5106f330d5a79c0baa559e0991fa36b2c77b00e22c18649e4413880bc16176825adfb6ddb4e25c2b02faf02249ee7bc12c6402e2e1be318
|
7
|
+
data.tar.gz: 3b46bac470beaf0a2dd1805f5dc98fbcdaa7c46b608dfc89813e5d3fdaa1d428c3a3d36ac4edb90bac26b78293400b674eaad5439dfa39ee0e6cdc50d09788c9
|
data/.travis.yml
CHANGED
@@ -1,23 +1,23 @@
|
|
1
|
+
language: ruby
|
2
|
+
sudo: false
|
3
|
+
cache: bundler
|
4
|
+
before_script:
|
5
|
+
- bundle update
|
1
6
|
rvm:
|
2
7
|
- ruby-head
|
3
8
|
- jruby-head
|
4
9
|
- jruby-19mode
|
5
|
-
- 2.2
|
10
|
+
- 2.2.2
|
6
11
|
- 2.1
|
7
12
|
- 2.0
|
8
13
|
os:
|
9
14
|
- linux
|
10
15
|
- osx
|
11
|
-
gemfile:
|
12
|
-
- Gemfile
|
13
|
-
|
14
|
-
script: "bundle exec rake test"
|
15
|
-
|
16
|
-
env: TEST=true
|
17
|
-
|
18
16
|
matrix:
|
19
17
|
fast_finish: true
|
20
18
|
allow_failures:
|
21
19
|
- rvm: ruby-head
|
22
20
|
- rvm: jruby-19mode
|
23
|
-
- rvm: jruby-head
|
21
|
+
- rvm: jruby-head
|
22
|
+
script: "bundle exec rake test"
|
23
|
+
env: TEST=true
|
@@ -1,4 +1,34 @@
|
|
1
1
|
require 'middleman-core/renderers/sass'
|
2
|
+
require 'compass/import-once'
|
3
|
+
|
4
|
+
GLOB = /\*|\[.+\]/
|
5
|
+
|
6
|
+
# Hack around broken sass globs when combined with import-once
|
7
|
+
# Targets compass-import-once 1.0.4
|
8
|
+
# Tracking issue: https://github.com/chriseppstein/compass/issues/1529
|
9
|
+
module Compass
|
10
|
+
module ImportOnce
|
11
|
+
module Importer
|
12
|
+
def find_relative(uri, base, options, *args)
|
13
|
+
if uri =~ GLOB
|
14
|
+
force_import = true
|
15
|
+
else
|
16
|
+
uri, force_import = handle_force_import(uri)
|
17
|
+
end
|
18
|
+
maybe_replace_with_dummy_engine(super(uri, base, options, *args), options, force_import)
|
19
|
+
end
|
20
|
+
|
21
|
+
def find(uri, options, *args)
|
22
|
+
if uri =~ GLOB
|
23
|
+
force_import = true
|
24
|
+
else
|
25
|
+
uri, force_import = handle_force_import(uri)
|
26
|
+
end
|
27
|
+
maybe_replace_with_dummy_engine(super(uri, options, *args), options, force_import)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
2
32
|
|
3
33
|
module Middleman
|
4
34
|
class CompassExtension < Extension
|
@@ -56,6 +86,8 @@ module Middleman
|
|
56
86
|
# Tell Tilt to use it as well (for inline scss blocks)
|
57
87
|
::Tilt.register 'scss', CompassScssTemplate
|
58
88
|
::Tilt.prefer(CompassScssTemplate)
|
89
|
+
|
90
|
+
::Compass::ImportOnce.activate!
|
59
91
|
end
|
60
92
|
|
61
93
|
# A Compass Sass template for Tilt, adding our options in
|
data/middleman-compass.gemspec
CHANGED
@@ -15,6 +15,6 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.files = `git ls-files -z`.split("\0")
|
16
16
|
s.test_files = `git ls-files -z -- {fixtures,features}/*`.split("\0")
|
17
17
|
s.require_paths = ["lib"]
|
18
|
-
s.add_dependency("middleman-core", [">= 4.0.0.rc.
|
18
|
+
s.add_dependency("middleman-core", [">= 4.0.0.rc.2"])
|
19
19
|
s.add_dependency('compass', ['>= 1.0.0', '< 2.0.0'])
|
20
20
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-compass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0.rc.
|
4
|
+
version: 4.0.0.rc.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Reynolds
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-12-13 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: middleman-core
|
@@ -18,14 +18,14 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ">="
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 4.0.0.rc.
|
21
|
+
version: 4.0.0.rc.2
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 4.0.0.rc.
|
28
|
+
version: 4.0.0.rc.2
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: compass
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
104
|
version: 1.3.1
|
105
105
|
requirements: []
|
106
106
|
rubyforge_project:
|
107
|
-
rubygems_version: 2.4.
|
107
|
+
rubygems_version: 2.4.8
|
108
108
|
signing_key:
|
109
109
|
specification_version: 4
|
110
110
|
summary: Compass support for Middleman
|