sass-embedded 1.0.12 → 1.0.13
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 +14 -41
- data/ext/sass/unzip.ps1 +3 -3
- data/lib/sass/embedded/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2668935c2e9cda4d8573b5908c2324bdfa17934d06addf5fb095048311590d14
|
|
4
|
+
data.tar.gz: a8d1f3e3831d1a1ec1e477fac76698fee82f028e154954ca91130f3d20054b07
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9818071db4d6d10c92104821736709e70af3e3c8c504d5dfdd471b3e716621d78d8185ede07a1b44873046dbd257ad57001072e77c51ee9ec63630f47b29f33e
|
|
7
|
+
data.tar.gz: 3e1057582c0609cd3cfdd0529d1bff35e139e38e2dd1517868701401b5bcb62fce58b8c272ad99031514976a19612423b41cf7aa5353bbb1dbd74da3ec2a83d4
|
data/ext/sass/Rakefile
CHANGED
|
@@ -38,15 +38,15 @@ end
|
|
|
38
38
|
module FileUtils
|
|
39
39
|
def unarchive(archive, dest = '.')
|
|
40
40
|
case archive.downcase
|
|
41
|
-
when ->(name) { name.end_with?
|
|
41
|
+
when ->(name) { name.include?('.tar.') || name.end_with?('.tar') }
|
|
42
|
+
mkdir_p dest
|
|
43
|
+
sh 'tar', '-vxC', dest, '-f', archive
|
|
44
|
+
when ->(name) { name.end_with?('.zip') }
|
|
42
45
|
if Gem.win_platform?
|
|
43
46
|
sh 'powershell', '-File', 'unzip.ps1', '-Archive', archive, '-DestinationPath', dest
|
|
44
47
|
else
|
|
45
48
|
sh 'unzip', '-od', dest, archive
|
|
46
49
|
end
|
|
47
|
-
when ->(name) { name.end_with? '.tar.gz' }
|
|
48
|
-
mkdir_p dest
|
|
49
|
-
sh 'tar', '-vxzC', dest, '-f', archive
|
|
50
50
|
else
|
|
51
51
|
raise "Unknown archive format #{archive}"
|
|
52
52
|
end
|
|
@@ -92,49 +92,26 @@ end
|
|
|
92
92
|
module Configuration
|
|
93
93
|
module Platform
|
|
94
94
|
OS = case RbConfig::CONFIG['host_os'].downcase
|
|
95
|
-
when /linux/
|
|
96
|
-
'linux'
|
|
97
95
|
when /darwin/
|
|
98
96
|
'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'
|
|
97
|
+
when /linux/
|
|
98
|
+
'linux'
|
|
109
99
|
when *Gem::WIN_PATTERNS
|
|
110
100
|
'windows'
|
|
111
101
|
else
|
|
112
102
|
RbConfig::CONFIG['host_os'].downcase
|
|
113
103
|
end
|
|
114
104
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
CPU = RbConfig::CONFIG['host_cpu']
|
|
118
|
-
|
|
119
|
-
ARCH = case CPU.downcase
|
|
105
|
+
ARCH = case RbConfig::CONFIG['host_cpu'].downcase
|
|
120
106
|
when /amd64|x86_64|x64/
|
|
121
107
|
'x86_64'
|
|
122
108
|
when /i\d86|x86|i86pc/
|
|
123
109
|
'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"
|
|
110
|
+
when /arm64|aarch64/
|
|
131
111
|
'aarch64'
|
|
132
112
|
when /^arm/
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
else
|
|
136
|
-
'arm'
|
|
137
|
-
end
|
|
113
|
+
# Ruby before 3.0 reports "arm" instead of "arm64" as host_cpu on darwin
|
|
114
|
+
OS == 'darwin' ? 'aarch64' : 'arm'
|
|
138
115
|
else
|
|
139
116
|
RbConfig::CONFIG['host_cpu']
|
|
140
117
|
end
|
|
@@ -201,16 +178,12 @@ module Configuration
|
|
|
201
178
|
end
|
|
202
179
|
|
|
203
180
|
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
181
|
when 'x86_64'
|
|
211
182
|
'x86_64'
|
|
212
|
-
when '
|
|
213
|
-
'
|
|
183
|
+
when 'i386'
|
|
184
|
+
'x86_32'
|
|
185
|
+
when 'aarch64'
|
|
186
|
+
Platform::OS == 'darwin' ? 'x86_64' : 'aarch_64'
|
|
214
187
|
else
|
|
215
188
|
raise release_asset_not_available_error(repo, tag_name)
|
|
216
189
|
end
|
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.13
|
|
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-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-protobuf
|
|
@@ -163,8 +163,8 @@ homepage: https://github.com/ntkme/sass-embedded-host-ruby
|
|
|
163
163
|
licenses:
|
|
164
164
|
- MIT
|
|
165
165
|
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.
|
|
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
|
|
168
168
|
funding_uri: https://github.com/sponsors/ntkme
|
|
169
169
|
post_install_message:
|
|
170
170
|
rdoc_options: []
|