sass-embedded 1.0.10 → 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 +24 -47
- data/ext/sass/unzip.ps1 +3 -3
- data/lib/sass/embedded/version.rb +1 -1
- metadata +6 -20
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
@@ -15,17 +15,13 @@ CLOBBER.include %w[sass_embedded embedded_sass_pb.rb]
|
|
15
15
|
|
16
16
|
file 'protoc' do |t|
|
17
17
|
archive = fetch(ENV.fetch(t.name.upcase) { Configuration.default_protoc })
|
18
|
-
|
18
|
+
unarchive archive, t.name
|
19
19
|
rm archive
|
20
20
|
end
|
21
21
|
|
22
22
|
file 'sass_embedded' do |t|
|
23
23
|
archive = fetch(ENV.fetch(t.name.upcase) { Configuration.default_sass_embedded })
|
24
|
-
|
25
|
-
unzip archive
|
26
|
-
else
|
27
|
-
sh 'tar', '-vxzf', archive
|
28
|
-
end
|
24
|
+
unarchive archive
|
29
25
|
rm archive
|
30
26
|
end
|
31
27
|
|
@@ -40,11 +36,19 @@ end
|
|
40
36
|
# This is a FileUtils extension that defines several additional commands to be
|
41
37
|
# added to the FileUtils utility functions.
|
42
38
|
module FileUtils
|
43
|
-
def
|
44
|
-
|
45
|
-
|
39
|
+
def unarchive(archive, dest = '.')
|
40
|
+
case archive.downcase
|
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') }
|
45
|
+
if Gem.win_platform?
|
46
|
+
sh 'powershell', '-File', 'unzip.ps1', '-Archive', archive, '-DestinationPath', dest
|
47
|
+
else
|
48
|
+
sh 'unzip', '-od', dest, archive
|
49
|
+
end
|
46
50
|
else
|
47
|
-
|
51
|
+
raise "Unknown archive format #{archive}"
|
48
52
|
end
|
49
53
|
end
|
50
54
|
|
@@ -88,49 +92,26 @@ end
|
|
88
92
|
module Configuration
|
89
93
|
module Platform
|
90
94
|
OS = case RbConfig::CONFIG['host_os'].downcase
|
91
|
-
when /linux/
|
92
|
-
'linux'
|
93
95
|
when /darwin/
|
94
96
|
'darwin'
|
95
|
-
when /
|
96
|
-
'
|
97
|
-
when /netbsd/
|
98
|
-
'netbsd'
|
99
|
-
when /openbsd/
|
100
|
-
'openbsd'
|
101
|
-
when /dragonfly/
|
102
|
-
'dragonflybsd'
|
103
|
-
when /sunos|solaris/
|
104
|
-
'solaris'
|
97
|
+
when /linux/
|
98
|
+
'linux'
|
105
99
|
when *Gem::WIN_PATTERNS
|
106
100
|
'windows'
|
107
101
|
else
|
108
102
|
RbConfig::CONFIG['host_os'].downcase
|
109
103
|
end
|
110
104
|
|
111
|
-
|
112
|
-
|
113
|
-
CPU = RbConfig::CONFIG['host_cpu']
|
114
|
-
|
115
|
-
ARCH = case CPU.downcase
|
105
|
+
ARCH = case RbConfig::CONFIG['host_cpu'].downcase
|
116
106
|
when /amd64|x86_64|x64/
|
117
107
|
'x86_64'
|
118
108
|
when /i\d86|x86|i86pc/
|
119
109
|
'i386'
|
120
|
-
when /
|
121
|
-
'powerpc64'
|
122
|
-
when /ppc|powerpc/
|
123
|
-
'powerpc'
|
124
|
-
when /sparcv9|sparc64/
|
125
|
-
'sparcv9'
|
126
|
-
when /arm64|aarch64/ # MacOS calls it "arm64", other operating systems "aarch64"
|
110
|
+
when /arm64|aarch64/
|
127
111
|
'aarch64'
|
128
112
|
when /^arm/
|
129
|
-
|
130
|
-
|
131
|
-
else
|
132
|
-
'arm'
|
133
|
-
end
|
113
|
+
# Ruby before 3.0 reports "arm" instead of "arm64" as host_cpu on darwin
|
114
|
+
OS == 'darwin' ? 'aarch64' : 'arm'
|
134
115
|
else
|
135
116
|
RbConfig::CONFIG['host_cpu']
|
136
117
|
end
|
@@ -197,16 +178,12 @@ module Configuration
|
|
197
178
|
end
|
198
179
|
|
199
180
|
arch = case Platform::ARCH
|
200
|
-
when 'aarch64'
|
201
|
-
Platform::OS == 'darwin' ? 'x86_64' : 'aarch_64'
|
202
|
-
when 'sparcv9'
|
203
|
-
's390'
|
204
|
-
when 'i386'
|
205
|
-
'x86_32'
|
206
181
|
when 'x86_64'
|
207
182
|
'x86_64'
|
208
|
-
when '
|
209
|
-
'
|
183
|
+
when 'i386'
|
184
|
+
'x86_32'
|
185
|
+
when 'aarch64'
|
186
|
+
Platform::OS == 'darwin' ? 'x86_64' : 'aarch_64'
|
210
187
|
else
|
211
188
|
raise release_asset_not_available_error(repo, tag_name)
|
212
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
|
@@ -30,28 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 12.0.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:
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rake
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 13.0.0
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 13.0.0
|
40
|
+
version: 12.0.0
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: rspec
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -177,8 +163,8 @@ homepage: https://github.com/ntkme/sass-embedded-host-ruby
|
|
177
163
|
licenses:
|
178
164
|
- MIT
|
179
165
|
metadata:
|
180
|
-
documentation_uri: https://www.rubydoc.info/gems/sass-embedded/1.0.
|
181
|
-
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
|
182
168
|
funding_uri: https://github.com/sponsors/ntkme
|
183
169
|
post_install_message:
|
184
170
|
rdoc_options: []
|