sassc-embedded 0.1.1 → 1.0.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
  SHA256:
3
- metadata.gz: 8cf8f3e1be82dc2c5e03391f6407b5f2d5ab532bc824d79b8967bc8e872f2cd7
4
- data.tar.gz: a4efdf9e9f79e4808fcd286a1a4071323684f87fccc79a7f52e2c8fcc8e5e127
3
+ metadata.gz: ab0678b3173a808bb49c1772c1188fa5401989602679332cda0b016d98252dfe
4
+ data.tar.gz: 280d458c11585dcdfe5915ad55a2079b323d6b520dd54c6b4f716fcddcfd8c3c
5
5
  SHA512:
6
- metadata.gz: 71deb13972d1eeba8be5b84bb792879dbbb27c7a147d29e065404d135d65ace120b647cc61331846e586235b569d40af7e0872aa8172255e33974abd83fec739
7
- data.tar.gz: 993ceb2c416c2235848db65305a01fbd86b8654eaca4fa9b030e275356910a3201c0d94b62fd14e5a37617d7cc66cfa035e380fd22d48ca6858819a73a4ac594
6
+ metadata.gz: a636e215cd5db491aedf47b256b6f4111e14933a8ac299b74001a18a90e5d4f8b27f554a5667d419b28b7c5fa4288ef03ec4263dd0388b1aedc8698b357b5c4e
7
+ data.tar.gz: da72a50497341ff4a461e9d0f946a885eb516a18961b25a68176b2abf5e82116077bc92d0e57a34b7c6d33f6b0e7304b7d66333d7f21e7ac961b412062e19465
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SassC
4
4
  module Embedded
5
- VERSION = '0.1.1'
5
+ VERSION = '1.0.0'
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))
@@ -159,7 +165,7 @@ module SassC
159
165
 
160
166
  begin
161
167
  begin
162
- raise
168
+ raise RuntimeError
163
169
  rescue StandardError
164
170
  raise ::Sass::ScriptError
165
171
  end
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.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - なつき
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.1'
33
+ version: '1.2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.1'
40
+ version: '1.2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -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.1
142
- source_code_uri: https://github.com/ntkme/sassc-embedded-polyfill-ruby/tree/v0.1.1
141
+ documentation_uri: https://rubydoc.info/gems/sassc-embedded/1.0.0
142
+ source_code_uri: https://github.com/ntkme/sassc-embedded-polyfill-ruby/tree/v1.0.0
143
143
  funding_uri: https://github.com/sponsors/ntkme
144
144
  post_install_message:
145
145
  rdoc_options: []