sass-embedded 1.0.20 → 1.0.21

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: 461898edc1bf1973531300e4531e473494686b4479c10ae335c10fe9968ad5f3
4
- data.tar.gz: 53625b1f7874ee086abd63516b9f9432cb861bb50d5549d45af44c063d0d1258
3
+ metadata.gz: abdeb3585b53d503b0eeb292dcc7fa3f4354458e210804b0022975abf398dfa1
4
+ data.tar.gz: cd186b55f440381874f838a293b819dd24d3841859537c5734972175922ff052
5
5
  SHA512:
6
- metadata.gz: 9e7d149a7f719d7828ddb567b05c87e8fff2d8cd10e2abaf218cd002bb899545709dd76dd1298ba39ee21d995cb1b6218ed0e2ab09070269a940e8cc77a46640
7
- data.tar.gz: '0299bef191ec02ee4b984dd4e0236569a3ad103968a8193cc4167481ceb62c59a5371da5ed25a19a72ae3b0f69e4b050141b9450d1807eb97bf6fd0ef849357f'
6
+ metadata.gz: ba6c8a98aed591bfa886c31f3eaf212f71c6907c97188e5a0edc67fd300142b504360e01d347221953889c204306917b5a88b1af89b23139dc5b86221291bdda
7
+ data.tar.gz: a5e8011368137a29c1f590825b1dd549c2b934f45591f646732b40d39c393bc89b06998eab8cfa0f34b4cad16f6da9e6afc04dc1e230a43ae5e66bc77094d6f2
data/ext/sass/Rakefile CHANGED
@@ -111,6 +111,8 @@ module Configuration
111
111
  OS = case RbConfig::CONFIG['host_os'].downcase
112
112
  when /darwin/
113
113
  'darwin'
114
+ when /linux-musl/
115
+ 'linux-musl'
114
116
  when /linux/
115
117
  'linux'
116
118
  when *Gem::WIN_PATTERNS
@@ -119,23 +121,25 @@ module Configuration
119
121
  RbConfig::CONFIG['host_os'].downcase
120
122
  end
121
123
 
122
- ARCH = case RbConfig::CONFIG['host_cpu'].downcase
123
- when /amd64|x86_64|x64/
124
- 'x86_64'
125
- when /i\d86|x86|i86pc/
126
- 'i386'
127
- when /arm64|aarch64/
128
- 'aarch64'
129
- when /arm/
130
- # Ruby before 3.0 reports "arm" instead of "arm64" as host_cpu on darwin
131
- OS == 'darwin' ? 'aarch64' : 'arm'
132
- when /ppc64le|powerpc64le/
133
- 'powerpc64le'
134
- when /s390x/
135
- 's390x'
136
- else
137
- RbConfig::CONFIG['host_cpu']
138
- end
124
+ CPU = case RbConfig::CONFIG['host_cpu'].downcase
125
+ when /amd64|x86_64|x64/
126
+ 'x86_64'
127
+ when /i\d86|x86|i86pc/
128
+ 'i386'
129
+ when /arm64|aarch64/
130
+ 'aarch64'
131
+ when /arm/
132
+ # Ruby before 3.0 reports "arm" instead of "arm64" as host_cpu on darwin
133
+ OS == 'darwin' ? 'aarch64' : 'arm'
134
+ when /ppc64le|powerpc64le/
135
+ 'powerpc64le'
136
+ when /s390x/
137
+ 's390x'
138
+ else
139
+ RbConfig::CONFIG['host_cpu']
140
+ end
141
+
142
+ ARCH = "#{CPU}-#{OS}"
139
143
  end
140
144
 
141
145
  private_constant :Platform
@@ -151,7 +155,7 @@ module Configuration
151
155
 
152
156
  tag_name = spec['dependencies']['sass-embedded']
153
157
 
154
- message = "sass_embedded for #{Platform::OS}/#{Platform::ARCH} not available at #{repo}/releases/tag/#{tag_name}"
158
+ message = "sass_embedded for #{Platform::ARCH} not available at #{repo}/releases/tag/#{tag_name}"
155
159
 
156
160
  os = case Platform::OS
157
161
  when 'darwin'
@@ -164,20 +168,20 @@ module Configuration
164
168
  raise NotImplementedError, message
165
169
  end
166
170
 
167
- arch = case Platform::ARCH
168
- when 'i386'
169
- 'ia32'
170
- when 'x86_64'
171
- 'x64'
172
- when 'aarch64'
173
- Platform::OS == 'darwin' ? 'x64' : 'arm64'
174
- else
175
- raise NotImplementedError, message
176
- end
171
+ cpu = case Platform::CPU
172
+ when 'i386'
173
+ 'ia32'
174
+ when 'x86_64'
175
+ 'x64'
176
+ when 'aarch64'
177
+ Platform::OS == 'darwin' ? 'x64' : 'arm64'
178
+ else
179
+ raise NotImplementedError, message
180
+ end
177
181
 
178
182
  ext = Gem.win_platform? ? 'zip' : 'tar.gz'
179
183
 
180
- "#{repo}/releases/download/#{tag_name}/sass_embedded-#{tag_name}-#{os}-#{arch}.#{ext}"
184
+ "#{repo}/releases/download/#{tag_name}/sass_embedded-#{tag_name}-#{os}-#{cpu}.#{ext}"
181
185
  end
182
186
 
183
187
  def default_protoc
@@ -185,7 +189,7 @@ module Configuration
185
189
 
186
190
  version = Gem::Dependency.new('google-protobuf').to_spec.version
187
191
 
188
- message = "protoc for #{Platform::OS}/#{Platform::ARCH} not available at #{repo}/#{version}"
192
+ message = "protoc for #{Platform::ARCH} not available at #{repo}/#{version}"
189
193
 
190
194
  os = case Platform::OS
191
195
  when 'darwin'
@@ -198,22 +202,22 @@ module Configuration
198
202
  raise NotImplementedError, message
199
203
  end
200
204
 
201
- arch = case Platform::ARCH
202
- when 'i386'
203
- 'x86_32'
204
- when 'x86_64'
205
- 'x86_64'
206
- when 'aarch64'
207
- 'aarch_64'
208
- when 'powerpc64le'
209
- 'ppcle_64'
210
- when 's390x'
211
- 's390_64'
212
- else
213
- raise NotImplementedError, message
214
- end
215
-
216
- "#{repo}/#{version}/protoc-#{version}-#{os}-#{arch}.exe"
205
+ cpu = case Platform::CPU
206
+ when 'i386'
207
+ 'x86_32'
208
+ when 'x86_64'
209
+ 'x86_64'
210
+ when 'aarch64'
211
+ 'aarch_64'
212
+ when 'powerpc64le'
213
+ 'ppcle_64'
214
+ when 's390x'
215
+ 's390_64'
216
+ else
217
+ raise NotImplementedError, message
218
+ end
219
+
220
+ "#{repo}/#{version}/protoc-#{version}-#{os}-#{cpu}.exe"
217
221
  end
218
222
 
219
223
  def default_sass_embedded_protocol
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sass
4
4
  class Embedded
5
- VERSION = '1.0.20'
5
+ VERSION = '1.0.21'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sass-embedded
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.20
4
+ version: 1.0.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - なつき
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-16 00:00:00.000000000 Z
11
+ date: 2022-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -160,8 +160,8 @@ homepage: https://github.com/ntkme/sass-embedded-host-ruby
160
160
  licenses:
161
161
  - MIT
162
162
  metadata:
163
- documentation_uri: https://www.rubydoc.info/gems/sass-embedded/1.0.20
164
- source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.0.20
163
+ documentation_uri: https://www.rubydoc.info/gems/sass-embedded/1.0.21
164
+ source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.0.21
165
165
  funding_uri: https://github.com/sponsors/ntkme
166
166
  post_install_message:
167
167
  rdoc_options: []