compass-rails-source-maps 0.0.8 → 0.1.0
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cc4f985e93b3786d8e36ab0a9960ef5dc60d13a
|
4
|
+
data.tar.gz: 5eb9f9bcb381e3345e9e858f44538a59865a4330
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2431fc2988481086800969996953d97eca85fab5bb87e2c7ffc54f086169510bcef033f2174447095c6d6c674f8c93353b4b00219b46589f2e776b8197363083
|
7
|
+
data.tar.gz: 195771a6960c79d58a849d7e2aa77722b1645fcc7bbb80264c0b8c583c0ea16b49f16ed0807333a6092d602702761032d0619233d9e76e93ba59b8e979da1e39
|
@@ -18,6 +18,9 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_development_dependency "bundler", "~> 1.
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.7"
|
22
22
|
spec.add_development_dependency "rake"
|
23
|
+
|
24
|
+
spec.add_runtime_dependency "compass-rails", ">= 2.0.4"
|
25
|
+
spec.add_runtime_dependency "sass-rails", ">= 5.0.0"
|
23
26
|
end
|
@@ -7,10 +7,6 @@ module CompassRailsSourceMaps
|
|
7
7
|
|
8
8
|
attr_accessor :context
|
9
9
|
|
10
|
-
def initialize(context, root)
|
11
|
-
super(context, root)
|
12
|
-
end
|
13
|
-
|
14
10
|
def find_relative(*args)
|
15
11
|
engine = super
|
16
12
|
if context && engine && (filename = engine.options[:filename])
|
@@ -28,7 +24,7 @@ module CompassRailsSourceMaps
|
|
28
24
|
end
|
29
25
|
|
30
26
|
def _dump(level)
|
31
|
-
Marshal.dump([@
|
27
|
+
Marshal.dump([@root])
|
32
28
|
end
|
33
29
|
|
34
30
|
def self._load(args)
|
@@ -39,4 +35,3 @@ module CompassRailsSourceMaps
|
|
39
35
|
end
|
40
36
|
end
|
41
37
|
end
|
42
|
-
|
@@ -17,8 +17,8 @@ Sass::Rails::SassTemplate.class_eval do
|
|
17
17
|
return base_evaluate(context, locals, &block)
|
18
18
|
end
|
19
19
|
cache_store = Sprockets::SassCacheStore.new(context.environment)
|
20
|
-
paths = context.environment.paths.map { |path| CompassRails::SpriteImporter.new(
|
21
|
-
paths += context.environment.paths.map { |path| Sass::Rails::SassImporter.new(
|
20
|
+
paths = context.environment.paths.map { |path| CompassRails::SpriteImporter.new(path) }
|
21
|
+
paths += context.environment.paths.map { |path| Sass::Rails::SassImporter.new(path) }
|
22
22
|
paths += ::Rails.application.config.sass.load_paths
|
23
23
|
|
24
24
|
options = CompassRails.sass_config.merge({
|
@@ -30,7 +30,7 @@ Sass::Rails::SassTemplate.class_eval do
|
|
30
30
|
cache: ::Rails.application.config.assets.debug,
|
31
31
|
line_numbers: ::Rails.application.config.sass.line_numbers,
|
32
32
|
line_comments: ::Rails.application.config.sass.line_comments,
|
33
|
-
importer: CompassRailsSourceMaps::SassImporter.new(context
|
33
|
+
importer: CompassRailsSourceMaps::SassImporter.new(context.pathname),
|
34
34
|
load_paths: paths,
|
35
35
|
sprockets: {
|
36
36
|
context: context,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: compass-rails-source-maps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- glebtv
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.7'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.7'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,6 +38,34 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: compass-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 2.0.4
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.0.4
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: sass-rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 5.0.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 5.0.0
|
41
69
|
description: A small monkeypatch to enable sourcemaps with compass-rails
|
42
70
|
email:
|
43
71
|
- glebtv@gmail.com
|
@@ -76,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
104
|
version: '0'
|
77
105
|
requirements: []
|
78
106
|
rubyforge_project:
|
79
|
-
rubygems_version: 2.
|
107
|
+
rubygems_version: 2.4.5
|
80
108
|
signing_key:
|
81
109
|
specification_version: 4
|
82
110
|
summary: A small monkeypatch to enable sourcemaps with compass-rails
|