sassc-embedded 0.1.2 → 0.1.3

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
  SHA256:
3
- metadata.gz: fe03b54e8132123c3163daf289d2a5c5159048f6fb11fe5ca4e1dd07ce863085
4
- data.tar.gz: 1bf0ac9a65e8754b49fc33475806fc04da1e96c22c082d878291db7fedcb5a1e
3
+ metadata.gz: 0520ad895979ec3c36838b7fdf5bac2430c923f873358606e49eb72f70776109
4
+ data.tar.gz: 2b60642cceca432904ad4f1cd0ab43f2501164e54a33e5e964758b80f29a3828
5
5
  SHA512:
6
- metadata.gz: c766e3c592a2624689cd5d6f5d9e2865c3b2bd866711cd8fc22b7e62ea6b0e9baea17d693e756e204360d0b3f6564180161f8ea99759821dde111e5f280f10f1
7
- data.tar.gz: dd6c13854965b5826cbc64406c8c81a09024c584b24efdb87e131dc7b30753233085121bfa5080a8100ce5f975ee928d2b9b6e365d979e110e3acae9ceb8f463
6
+ metadata.gz: 873f6c9d78221ad59c2e34f46d384496967e83480878a8e2db71de7166f2d6ec46ab960ca64f010ce7002736bfd6cea0b3a4b57f8eb7c7d020b655a77e132ba6
7
+ data.tar.gz: 354510f0d6a528603e3ac1aa3f32c3cb97fb166555508577e115375e4b30a34f889220fea4cd4d4eee95bbbc4c88ec62458d877535539836acb83a1bf7faaba2
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SassC
4
4
  module Embedded
5
- VERSION = '0.1.2'
5
+ VERSION = '0.1.3'
6
6
  end
7
7
  end
@@ -22,7 +22,7 @@ module SassC
22
22
  syntax: syntax,
23
23
  url: file_url,
24
24
 
25
- source_map: !source_map_file.nil?,
25
+ source_map: source_map_embed? || !source_map_file.nil?,
26
26
  source_map_include_sources: source_map_contents?,
27
27
  style: output_style,
28
28
 
@@ -52,6 +52,10 @@ module SassC
52
52
 
53
53
  private
54
54
 
55
+ def output_path
56
+ @options[:output_path]
57
+ end
58
+
55
59
  def file_url
56
60
  @file_url ||= Util.path_to_file_url(filename || 'stdin')
57
61
  end
@@ -89,6 +93,8 @@ module SassC
89
93
 
90
94
  data = JSON.parse(source_map)
91
95
 
96
+ data['file'] = URI::DEFAULT_PARSER.escape(output_path) if output_path
97
+
92
98
  data['sources'].map! do |source|
93
99
  if source.start_with? 'file:'
94
100
  relative_path(Dir.pwd, Util.file_url_to_path(source))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sassc-embedded
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - なつき
@@ -138,8 +138,8 @@ homepage: https://github.com/ntkme/sassc-embedded-polyfill-ruby
138
138
  licenses:
139
139
  - MIT
140
140
  metadata:
141
- documentation_uri: https://rubydoc.info/gems/sassc-embedded/0.1.2
142
- source_code_uri: https://github.com/ntkme/sassc-embedded-polyfill-ruby/tree/v0.1.2
141
+ documentation_uri: https://rubydoc.info/gems/sassc-embedded/0.1.3
142
+ source_code_uri: https://github.com/ntkme/sassc-embedded-polyfill-ruby/tree/v0.1.3
143
143
  funding_uri: https://github.com/sponsors/ntkme
144
144
  post_install_message:
145
145
  rdoc_options: []