sass-embedded 1.0.11 → 1.0.12
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 -10
- data/lib/sass/embedded/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e9631b1ae92e967b99d074cfdfbc76008205a5d42fef2b8ec836ebf1fe66945a
|
|
4
|
+
data.tar.gz: f35fc2c63c00668ceaecab94fd78c59f0a567f2a5874994238552a2a8b63e255
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 321eb0134d230e98c852bdbcdbcbb36298f28243791d500f84559491114699ff26e370d5df1e101579d7cf0b307bc6135c4711bdf082dee35508078e5b62c380
|
|
7
|
+
data.tar.gz: 338ac5d737a69066c7b1cc8000e11c6697891138f8810bde32e50990025173739c92d519b164649446b94ef0e44fef2d62c1c3d5d5b6ba60c1e4e62e5770b2e5
|
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.end_with? '.zip' }
|
|
42
|
+
if Gem.win_platform?
|
|
43
|
+
sh 'powershell', '-File', 'unzip.ps1', '-Archive', archive, '-DestinationPath', dest
|
|
44
|
+
else
|
|
45
|
+
sh 'unzip', '-od', dest, archive
|
|
46
|
+
end
|
|
47
|
+
when ->(name) { name.end_with? '.tar.gz' }
|
|
48
|
+
mkdir_p dest
|
|
49
|
+
sh 'tar', '-vxzC', dest, '-f', archive
|
|
46
50
|
else
|
|
47
|
-
|
|
51
|
+
raise "Unknown archive format #{archive}"
|
|
48
52
|
end
|
|
49
53
|
end
|
|
50
54
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- なつき
|
|
@@ -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.12
|
|
167
|
+
source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.0.12
|
|
168
168
|
funding_uri: https://github.com/sponsors/ntkme
|
|
169
169
|
post_install_message:
|
|
170
170
|
rdoc_options: []
|