sass-embedded 1.0.14 → 1.0.17

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: 1109d7b4c427f498db236fbca59c500d7ae5ff07344fb7a93d9a76d16015beca
4
- data.tar.gz: 2a668742ded01d8e3d729731384cb93b62f68dcbe2d73cfe2f76a27cf3b50905
3
+ metadata.gz: 1974ef3b75975fec9f67f9b510a8b11556d999cc0af87224e27dacb918bd64f0
4
+ data.tar.gz: fa1c85a80f9a24bc5251e77680f521ff22e2f41e5d9cd70e083040791cbbe379
5
5
  SHA512:
6
- metadata.gz: e76783bc4ba9b203c5ed2013b219579a69c3c49b656e987e1c99473d69ea955545066ef839b33593b9550be1122b0491225e355d2ef71a3edad2dacb325bdf38
7
- data.tar.gz: c7f1c6d9cb633546c387de50bc214f82ba756eff9c98a234a251dc6e69222c113161300229fcf02493769cb097bc605efe4a236cdc5396012c05bf5e0d17e7bf
6
+ metadata.gz: 88636d056f2cc41b7677351e265e6c8f7c097d278b1008bf650dfbcc417d33cd7514b7c0e8baf2b9f39590bb909a5f8292e4f0eca9ea01628a9a6e6a7398f7d5
7
+ data.tar.gz: 4069bbc0ef1cc24668483dbff8dad25ce4b60de43868d57d59d35f056781a54382ee0c273956523a51ab772e0531722fc9d1c22f026f2790262fdb785bb2a65b
data/ext/sass/Rakefile CHANGED
@@ -9,14 +9,13 @@ task default: %i[install clean]
9
9
 
10
10
  task install: %w[sass_embedded embedded_sass_pb.rb]
11
11
 
12
- CLEAN.include %w[protoc *.proto *.tar.gz *.zip]
12
+ CLEAN.include %w[protoc.exe *.proto *.tar.gz *.zip]
13
13
 
14
14
  CLOBBER.include %w[sass_embedded embedded_sass_pb.rb]
15
15
 
16
- file 'protoc' do |t|
17
- archive = fetch(ENV.fetch(t.name.upcase) { Configuration.default_protoc })
18
- unarchive archive, t.name
19
- rm archive
16
+ file 'protoc.exe' do |t|
17
+ fetch(ENV.fetch('PROTOC_BIN') { Configuration.default_protoc }, t.name)
18
+ chmod 'a+x', t.name
20
19
  end
21
20
 
22
21
  file 'sass_embedded' do |t|
@@ -26,11 +25,11 @@ file 'sass_embedded' do |t|
26
25
  end
27
26
 
28
27
  file 'embedded_sass.proto' => %w[sass_embedded] do |t|
29
- fetch(ENV.fetch('sass_embedded_protocol'.upcase) { Configuration.default_sass_embedded_protocol }, t.name)
28
+ fetch(ENV.fetch('SASS_EMBEDDED_PROTOCOL') { Configuration.default_sass_embedded_protocol }, t.name)
30
29
  end
31
30
 
32
- rule '_pb.rb' => %w[.proto protoc] do |t|
33
- sh './protoc/bin/protoc', '--ruby_out=.', t.source
31
+ rule '_pb.rb' => %w[.proto protoc.exe] do |t|
32
+ sh './protoc.exe', '--ruby_out=.', t.source
34
33
  end
35
34
 
36
35
  # This is a FileUtils extension that defines several additional commands to be
@@ -43,7 +42,7 @@ module FileUtils
43
42
  sh 'tar', '-vxC', dest, '-f', archive
44
43
  when ->(name) { name.end_with?('.zip') }
45
44
  if Gem.win_platform?
46
- sh 'powershell', '-File', 'unzip.ps1', '-Archive', archive, '-DestinationPath', dest
45
+ sh 'cscript', 'unzip.vbs', '//B', '//Nologo', archive, dest
47
46
  else
48
47
  sh 'unzip', '-od', dest, archive
49
48
  end
@@ -172,7 +171,7 @@ module Configuration
172
171
  when 'linux'
173
172
  'linux'
174
173
  when 'windows'
175
- 'win'
174
+ 'windows'
176
175
  else
177
176
  raise release_asset_not_available_error(repo, tag_name)
178
177
  end
@@ -183,21 +182,12 @@ module Configuration
183
182
  when 'i386'
184
183
  'x86_32'
185
184
  when 'aarch64'
186
- Platform::OS == 'darwin' ? 'x86_64' : 'aarch_64'
185
+ 'aarch_64'
187
186
  else
188
187
  raise release_asset_not_available_error(repo, tag_name)
189
188
  end
190
189
 
191
- os_arch = case os
192
- when 'win'
193
- os + arch.split('_').last
194
- else
195
- "#{os}-#{arch}"
196
- end
197
-
198
- ext = 'zip'
199
-
200
- "https://github.com/#{repo}/releases/download/#{tag_name}/protoc-#{version}-#{os_arch}.#{ext}"
190
+ "https://repo.maven.apache.org/maven2/com/google/protobuf/protoc/#{version}/protoc-#{version}-#{os}-#{arch}.exe"
201
191
  end
202
192
 
203
193
  def default_sass_embedded_protocol
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sass
4
4
  class Embedded
5
- VERSION = '1.0.14'
5
+ VERSION = '1.0.17'
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.14
4
+ version: 1.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - なつき
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-07 00:00:00.000000000 Z
11
+ date: 2022-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -121,7 +121,6 @@ files:
121
121
  - README.md
122
122
  - ext/sass/Rakefile
123
123
  - ext/sass/package.json
124
- - ext/sass/unzip.ps1
125
124
  - ext/sass/unzip.vbs
126
125
  - lib/sass-embedded.rb
127
126
  - lib/sass.rb
@@ -162,8 +161,8 @@ homepage: https://github.com/ntkme/sass-embedded-host-ruby
162
161
  licenses:
163
162
  - MIT
164
163
  metadata:
165
- documentation_uri: https://www.rubydoc.info/gems/sass-embedded/1.0.14
166
- source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.0.14
164
+ documentation_uri: https://www.rubydoc.info/gems/sass-embedded/1.0.17
165
+ source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.0.17
167
166
  funding_uri: https://github.com/sponsors/ntkme
168
167
  post_install_message:
169
168
  rdoc_options: []
data/ext/sass/unzip.ps1 DELETED
@@ -1,13 +0,0 @@
1
- Param(
2
- [Parameter(Mandatory=$true)]
3
- [ValidateNotNullOrEmpty()]
4
- [string]$Archive,
5
- [Parameter(Mandatory=$true)]
6
- [ValidateNotNullOrEmpty()]
7
- [string]$DestinationPath
8
- )
9
- if (Get-Command Expand-Archive -ErrorAction SilentlyContinue) {
10
- Get-Item $Archive | Expand-Archive -DestinationPath $DestinationPath -Force
11
- } else {
12
- cscript unzip.vbs $Archive $DestinationPath
13
- }