compass-rails-source-maps 0.0.8 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c6d290b28e12984377f10aeeead8fef18297b8a6
4
- data.tar.gz: 0d47e14ff3c843de76e527a0b12c7500fc693fb6
3
+ metadata.gz: 3cc4f985e93b3786d8e36ab0a9960ef5dc60d13a
4
+ data.tar.gz: 5eb9f9bcb381e3345e9e858f44538a59865a4330
5
5
  SHA512:
6
- metadata.gz: 7a1e6ca843f719b44ac809ce39e9fb473966b25469f291e8d3181c07c49d7e7b4304b70055e71ac1186bca1cb0a31a4936356a00a6d5a46c450212d26a18e78f
7
- data.tar.gz: f9663ce0b641884fde8b137b2672379c54423fbba758bb64f1bdeda34fa73fed6e5d5cc8479f02802eefc30aff2a837b4880726e0974d15e69dd9cffc2478664
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.3"
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([@context.logical_path, @context.pathname, @root])
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(context, path) }
21
- paths += context.environment.paths.map { |path| Sass::Rails::SassImporter.new(context, path) }
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, context.pathname),
33
+ importer: CompassRailsSourceMaps::SassImporter.new(context.pathname),
34
34
  load_paths: paths,
35
35
  sprockets: {
36
36
  context: context,
@@ -1,3 +1,3 @@
1
1
  module CompassRailsSourceMaps
2
- VERSION = "0.0.8"
2
+ VERSION = "0.1.0"
3
3
  end
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.8
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: 2014-09-04 00:00:00.000000000 Z
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.3'
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.3'
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.2.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