sass-embedded 1.0.13 → 1.0.16

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: 2668935c2e9cda4d8573b5908c2324bdfa17934d06addf5fb095048311590d14
4
- data.tar.gz: a8d1f3e3831d1a1ec1e477fac76698fee82f028e154954ca91130f3d20054b07
3
+ metadata.gz: 67c54a99a99afd5c0391c6321f2804a9aba88bf0eff36f0566f62586e6ba23b1
4
+ data.tar.gz: 8488d659c5ce2f27fe5efd710baf0d0bcef5079253851ecf2e108a3260375914
5
5
  SHA512:
6
- metadata.gz: 9818071db4d6d10c92104821736709e70af3e3c8c504d5dfdd471b3e716621d78d8185ede07a1b44873046dbd257ad57001072e77c51ee9ec63630f47b29f33e
7
- data.tar.gz: 3e1057582c0609cd3cfdd0529d1bff35e139e38e2dd1517868701401b5bcb62fce58b8c272ad99031514976a19612423b41cf7aa5353bbb1dbd74da3ec2a83d4
6
+ metadata.gz: '03800282a5714e627a068858d21d4116ac90ae9dd63c766fb5356070097e8d4e80ecd5922718303ac9cdc0ddef00fb0f05157f42ddb03eb810b1fd97f901e56d'
7
+ data.tar.gz: dfb055bee82b0058ef9b972d541a784291805a4df26bba29379d3262d9ce5f6750e76528a579a741be344225068b778af5c2faafaa094e83ebb7838e2b80fdcc
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.13'
5
+ VERSION = '1.0.16'
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.13
4
+ version: 1.0.16
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-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 12.0.0
33
+ version: 12.3.0
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: 12.0.0
40
+ version: 12.3.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -114,15 +114,13 @@ email:
114
114
  - i@ntk.me
115
115
  executables: []
116
116
  extensions:
117
- - ext/sass/mkrf_conf.rb
117
+ - ext/sass/Rakefile
118
118
  extra_rdoc_files: []
119
119
  files:
120
120
  - LICENSE
121
121
  - README.md
122
122
  - ext/sass/Rakefile
123
- - ext/sass/mkrf_conf.rb
124
123
  - ext/sass/package.json
125
- - ext/sass/unzip.ps1
126
124
  - ext/sass/unzip.vbs
127
125
  - lib/sass-embedded.rb
128
126
  - lib/sass.rb
@@ -163,8 +161,8 @@ homepage: https://github.com/ntkme/sass-embedded-host-ruby
163
161
  licenses:
164
162
  - MIT
165
163
  metadata:
166
- documentation_uri: https://www.rubydoc.info/gems/sass-embedded/1.0.13
167
- source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.0.13
164
+ documentation_uri: https://www.rubydoc.info/gems/sass-embedded/1.0.16
165
+ source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.0.16
168
166
  funding_uri: https://github.com/sponsors/ntkme
169
167
  post_install_message:
170
168
  rdoc_options: []
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
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
- }