compass-rails-source-maps 0.0.1 → 0.0.2

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: b892408cd7396f1224dcdc3d6436d006e07d5cc2
4
- data.tar.gz: 8c4da548ac31a6e3a52c134d54ed84f76805b17a
3
+ metadata.gz: 78907ea10f57bb0393d0bdb724bd790c93af44b0
4
+ data.tar.gz: 3f3f3685f202ec556c31c3aab93101e787098c94
5
5
  SHA512:
6
- metadata.gz: 2814ae151ec1023b64b41903cea9043d9830d00a95a6cf38a296c536f52072d8232bca0e007aa891c2f83d7515173bea110ad107899e6aa60534928c6e3623ae
7
- data.tar.gz: 381b32513d081eaedfce945211067959adc230998361bfd83afb2f176576cb005662df878c64833ea9cdb2db08ec583b35bd1bc75524f0e9c0fd9c0cfdd297be
6
+ metadata.gz: 0422f7303f7672ec897eef35b51035f42f3a7e258531f3778b29220fa863d83b0e6fccc0941096e62b5df9beb9275776322a07b4be5b1083c1255ff836020750
7
+ data.tar.gz: 644a9ec4288963aac82afa75ccd769f2da63a8183a854df80f955bdf36393b722fac8b23958cdc144e204af83bf101e0b4cd1359ba11056b8f47bd8e5a2cddb9
@@ -2,7 +2,7 @@ module CompassRailsSourceMaps
2
2
  class SassImporter < Sprockets::SassImporter
3
3
 
4
4
  def public_url(uri)
5
- "/#{SOURCE_MAPS_DIRECTORY}/#{File.basename(uri)}"
5
+ "/#{Sprockets::SassTemplate::SOURCE_MAPS_DIRECTORY}/#{File.basename(uri)}"
6
6
  end
7
7
 
8
8
  end
@@ -12,12 +12,11 @@ module Sprockets
12
12
  FileUtils.cp(file, ::Rails.root.join("public", SOURCE_MAPS_DIRECTORY, File.basename(file)))
13
13
  end
14
14
  end
15
- p 'patch-sm'
15
+
16
16
  def evaluate(context, locals, &block)
17
- p 'eval'
18
17
  cache_store = SassCacheStore.new(context.environment)
19
18
  paths = context.environment.paths.map { |path| CompassRails::SpriteImporter.new(context, path) }
20
- paths += context.environment.paths.map { |path| SassImporter.new(context, path) }
19
+ paths += context.environment.paths.map { |path| CompassRailsSourceMaps::SassImporter.new(context, path) }
21
20
  paths += ::Rails.application.config.sass.load_paths
22
21
 
23
22
  options = CompassRails.sass_config.merge({
@@ -29,7 +28,7 @@ module Sprockets
29
28
  cache: ::Rails.application.config.assets.debug,
30
29
  line_numbers: ::Rails.application.config.sass.line_numbers,
31
30
  line_comments: ::Rails.application.config.sass.line_comments,
32
- importer: SassImporter.new(context, context.pathname),
31
+ importer: CompassRailsSourceMaps::SassImporter.new(context, context.pathname),
33
32
  load_paths: paths,
34
33
  sprockets: {
35
34
  context: context,
@@ -1,3 +1,3 @@
1
1
  module CompassRailsSourceMaps
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compass-rails-source-maps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebtv