sass-embedded 1.0.12 → 1.0.15
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 +4 -4
- data/ext/sass/Rakefile +22 -59
- data/ext/sass/unzip.ps1 +3 -3
- data/lib/sass/embedded/version.rb +1 -1
- metadata +7 -8
- data/ext/sass/mkrf_conf.rb +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ac694b88c7c3312ba4e73e7fe06fcf6efd3f8dd76c437e9c34d6f9d29986bcf
|
4
|
+
data.tar.gz: 5549453c2ace535b99046e7eca4d499bfad85d10ddb4bbe1627393e6960ca75e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61c406ea3f5dc17931d88e379e194f61bdea4d94a5ef4705f1db902188fe5ccd55f12f628c4d62e39c8c9e64cb7103e33ab9fc9d361bb3347cf3dc31b294b402
|
7
|
+
data.tar.gz: cf6689322c04b67b87d07462cabceb9b5f26018fe88f07dd137926b1af4f83587dd1f6e392d5b88c3985bd4692b73b51063109ae13b03f44c19d08dcb31785bb
|
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
|
-
|
18
|
-
|
19
|
-
rm archive
|
16
|
+
file 'protoc.exe' do |t|
|
17
|
+
fetch(ENV.fetch(t.name.upcase) { Configuration.default_protoc }, t.name)
|
18
|
+
chmod 'a+x', t.name
|
20
19
|
end
|
21
20
|
|
22
21
|
file 'sass_embedded' do |t|
|
@@ -29,8 +28,8 @@ file 'embedded_sass.proto' => %w[sass_embedded] do |t|
|
|
29
28
|
fetch(ENV.fetch('sass_embedded_protocol'.upcase) { Configuration.default_sass_embedded_protocol }, t.name)
|
30
29
|
end
|
31
30
|
|
32
|
-
rule '_pb.rb' => %w[.proto protoc] do |t|
|
33
|
-
sh './protoc
|
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
|
@@ -38,15 +37,15 @@ end
|
|
38
37
|
module FileUtils
|
39
38
|
def unarchive(archive, dest = '.')
|
40
39
|
case archive.downcase
|
41
|
-
when ->(name) { name.end_with?
|
40
|
+
when ->(name) { name.include?('.tar.') || name.end_with?('.tar') }
|
41
|
+
mkdir_p dest
|
42
|
+
sh 'tar', '-vxC', dest, '-f', archive
|
43
|
+
when ->(name) { name.end_with?('.zip') }
|
42
44
|
if Gem.win_platform?
|
43
45
|
sh 'powershell', '-File', 'unzip.ps1', '-Archive', archive, '-DestinationPath', dest
|
44
46
|
else
|
45
47
|
sh 'unzip', '-od', dest, archive
|
46
48
|
end
|
47
|
-
when ->(name) { name.end_with? '.tar.gz' }
|
48
|
-
mkdir_p dest
|
49
|
-
sh 'tar', '-vxzC', dest, '-f', archive
|
50
49
|
else
|
51
50
|
raise "Unknown archive format #{archive}"
|
52
51
|
end
|
@@ -92,49 +91,26 @@ end
|
|
92
91
|
module Configuration
|
93
92
|
module Platform
|
94
93
|
OS = case RbConfig::CONFIG['host_os'].downcase
|
95
|
-
when /linux/
|
96
|
-
'linux'
|
97
94
|
when /darwin/
|
98
95
|
'darwin'
|
99
|
-
when /
|
100
|
-
'
|
101
|
-
when /netbsd/
|
102
|
-
'netbsd'
|
103
|
-
when /openbsd/
|
104
|
-
'openbsd'
|
105
|
-
when /dragonfly/
|
106
|
-
'dragonflybsd'
|
107
|
-
when /sunos|solaris/
|
108
|
-
'solaris'
|
96
|
+
when /linux/
|
97
|
+
'linux'
|
109
98
|
when *Gem::WIN_PATTERNS
|
110
99
|
'windows'
|
111
100
|
else
|
112
101
|
RbConfig::CONFIG['host_os'].downcase
|
113
102
|
end
|
114
103
|
|
115
|
-
|
116
|
-
|
117
|
-
CPU = RbConfig::CONFIG['host_cpu']
|
118
|
-
|
119
|
-
ARCH = case CPU.downcase
|
104
|
+
ARCH = case RbConfig::CONFIG['host_cpu'].downcase
|
120
105
|
when /amd64|x86_64|x64/
|
121
106
|
'x86_64'
|
122
107
|
when /i\d86|x86|i86pc/
|
123
108
|
'i386'
|
124
|
-
when /
|
125
|
-
'powerpc64'
|
126
|
-
when /ppc|powerpc/
|
127
|
-
'powerpc'
|
128
|
-
when /sparcv9|sparc64/
|
129
|
-
'sparcv9'
|
130
|
-
when /arm64|aarch64/ # MacOS calls it "arm64", other operating systems "aarch64"
|
109
|
+
when /arm64|aarch64/
|
131
110
|
'aarch64'
|
132
111
|
when /^arm/
|
133
|
-
|
134
|
-
|
135
|
-
else
|
136
|
-
'arm'
|
137
|
-
end
|
112
|
+
# Ruby before 3.0 reports "arm" instead of "arm64" as host_cpu on darwin
|
113
|
+
OS == 'darwin' ? 'aarch64' : 'arm'
|
138
114
|
else
|
139
115
|
RbConfig::CONFIG['host_cpu']
|
140
116
|
end
|
@@ -195,36 +171,23 @@ module Configuration
|
|
195
171
|
when 'linux'
|
196
172
|
'linux'
|
197
173
|
when 'windows'
|
198
|
-
'
|
174
|
+
'windows'
|
199
175
|
else
|
200
176
|
raise release_asset_not_available_error(repo, tag_name)
|
201
177
|
end
|
202
178
|
|
203
179
|
arch = case Platform::ARCH
|
204
|
-
when 'aarch64'
|
205
|
-
Platform::OS == 'darwin' ? 'x86_64' : 'aarch_64'
|
206
|
-
when 'sparcv9'
|
207
|
-
's390'
|
208
|
-
when 'i386'
|
209
|
-
'x86_32'
|
210
180
|
when 'x86_64'
|
211
181
|
'x86_64'
|
212
|
-
when '
|
213
|
-
'
|
182
|
+
when 'i386'
|
183
|
+
'x86_32'
|
184
|
+
when 'aarch64'
|
185
|
+
'aarch_64'
|
214
186
|
else
|
215
187
|
raise release_asset_not_available_error(repo, tag_name)
|
216
188
|
end
|
217
189
|
|
218
|
-
|
219
|
-
when 'win'
|
220
|
-
os + arch.split('_').last
|
221
|
-
else
|
222
|
-
"#{os}-#{arch}"
|
223
|
-
end
|
224
|
-
|
225
|
-
ext = 'zip'
|
226
|
-
|
227
|
-
"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"
|
228
191
|
end
|
229
192
|
|
230
193
|
def default_sass_embedded_protocol
|
data/ext/sass/unzip.ps1
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
Param(
|
2
|
-
[Parameter(Mandatory)]
|
2
|
+
[Parameter(Mandatory=$true)]
|
3
3
|
[ValidateNotNullOrEmpty()]
|
4
4
|
[string]$Archive,
|
5
|
-
[Parameter(Mandatory)]
|
5
|
+
[Parameter(Mandatory=$true)]
|
6
6
|
[ValidateNotNullOrEmpty()]
|
7
7
|
[string]$DestinationPath
|
8
8
|
)
|
9
9
|
if (Get-Command Expand-Archive -ErrorAction SilentlyContinue) {
|
10
10
|
Get-Item $Archive | Expand-Archive -DestinationPath $DestinationPath -Force
|
11
11
|
} else {
|
12
|
-
cscript
|
12
|
+
cscript unzip.vbs $Archive $DestinationPath
|
13
13
|
}
|
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.
|
4
|
+
version: 1.0.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- なつき
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
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.
|
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.
|
40
|
+
version: 12.3.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,13 +114,12 @@ email:
|
|
114
114
|
- i@ntk.me
|
115
115
|
executables: []
|
116
116
|
extensions:
|
117
|
-
- ext/sass/
|
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
124
|
- ext/sass/unzip.ps1
|
126
125
|
- ext/sass/unzip.vbs
|
@@ -163,8 +162,8 @@ homepage: https://github.com/ntkme/sass-embedded-host-ruby
|
|
163
162
|
licenses:
|
164
163
|
- MIT
|
165
164
|
metadata:
|
166
|
-
documentation_uri: https://www.rubydoc.info/gems/sass-embedded/1.0.
|
167
|
-
source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.0.
|
165
|
+
documentation_uri: https://www.rubydoc.info/gems/sass-embedded/1.0.15
|
166
|
+
source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.0.15
|
168
167
|
funding_uri: https://github.com/sponsors/ntkme
|
169
168
|
post_install_message:
|
170
169
|
rdoc_options: []
|
data/ext/sass/mkrf_conf.rb
DELETED