sass-embedded 0.2.2 → 0.2.3
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/.github/workflows/build.yml +1 -1
- data/Rakefile +3 -1
- data/ext/sass_embedded/Makefile +13 -20
- data/ext/sass_embedded/extconf.rb +0 -7
- data/lib/sass/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5dc860ffde1f3fb6315c2a43972b245841e10e0b0b4a8979a5a4c7528063cd95
|
4
|
+
data.tar.gz: aa76a73fdc4a252b1cd948b90452fa772282408289e99a4e0206c968a5e68898
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b03c95f66214d6e095fd1e11bbeebe24d56443cf90107661007aef30006502296799c07e4c73974cfa0ca7debc7a807a120c86eb99441363af10f699a9cd0148
|
7
|
+
data.tar.gz: b834e3e9e2a0eb7acdea42e04c1627edc86f2e146c0b96e79331c646b387f8df861fa59d0efeb46d9f3d176b388804d67b63515cc406efb8bb5d7a3c1d4391f6
|
data/.github/workflows/build.yml
CHANGED
data/Rakefile
CHANGED
@@ -5,8 +5,10 @@ require 'bundler/gem_tasks'
|
|
5
5
|
task default: :test
|
6
6
|
|
7
7
|
desc 'Download dart-sass-embedded'
|
8
|
-
task :
|
8
|
+
task :extconf do
|
9
|
+
system('make', '-C', 'ext/sass_embedded', 'distclean')
|
9
10
|
require_relative 'ext/sass_embedded/extconf'
|
11
|
+
system('make', '-C', 'ext/sass_embedded', 'install')
|
10
12
|
end
|
11
13
|
|
12
14
|
desc 'Run all tests'
|
data/ext/sass_embedded/Makefile
CHANGED
@@ -1,8 +1,17 @@
|
|
1
|
+
ifeq ($(OS),Windows_NT)
|
2
|
+
RM = cmd /c del /f /q /s
|
3
|
+
else
|
4
|
+
RM = rm -fr
|
5
|
+
endif
|
6
|
+
|
7
|
+
.PHONY: all
|
8
|
+
all:
|
9
|
+
|
1
10
|
.PHONY: install
|
2
11
|
install:
|
3
12
|
ifeq ($(OS),Windows_NT)
|
4
|
-
powershell -
|
5
|
-
powershell -
|
13
|
+
powershell -Command "Get-Item sass_embedded-*.zip | Expand-Archive -DestinationPath . -Force"
|
14
|
+
powershell -Command "Get-Item protoc-*.zip | Expand-Archive -DestinationPath protoc -Force"
|
6
15
|
./protoc/bin/protoc --ruby_out=. embedded_sass.proto
|
7
16
|
else
|
8
17
|
tar -vxzf sass_embedded-*.tar.gz
|
@@ -12,24 +21,8 @@ endif
|
|
12
21
|
|
13
22
|
.PHONY: clean
|
14
23
|
clean:
|
15
|
-
|
16
|
-
powershell -command "Remove-Item sass_embedded -Recurse -Force -ErrorAction Ignore"
|
17
|
-
powershell -command "Remove-Item protoc -Recurse -Force -ErrorAction Ignore"
|
18
|
-
powershell -command "Remove-Item embedded_sass_pb.rb -Recurse -Force -ErrorAction Ignore"
|
19
|
-
else
|
20
|
-
rm -rf sass_embedded
|
21
|
-
rm -rf protoc
|
22
|
-
rm -rf embedded_sass_pb.rb
|
23
|
-
endif
|
24
|
+
$(RM) embedded_sass_pb.rb protoc sass_embedded
|
24
25
|
|
25
26
|
.PHONY: distclean
|
26
27
|
distclean: clean
|
27
|
-
|
28
|
-
powershell -command "Remove-Item sass_embedded-*.zip -Force -ErrorAction Ignore"
|
29
|
-
powershell -command "Remove-Item protoc-*.zip -Force -ErrorAction Ignore"
|
30
|
-
powershell -command "Remove-Item embedded_sass.proto -Force -ErrorAction Ignore"
|
31
|
-
else
|
32
|
-
rm -rf sass_embedded-*.tar.gz
|
33
|
-
rm -rf protoc-*.zip
|
34
|
-
rm -rf embedded_sass.proto
|
35
|
-
endif
|
28
|
+
$(RM) embedded_sass.proto protoc-*.zip sass_embedded-*.tar.gz
|
@@ -1,7 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
-
require 'mkmf'
|
5
4
|
require 'json'
|
6
5
|
require 'open-uri'
|
7
6
|
require_relative '../../lib/sass/platform'
|
@@ -10,15 +9,9 @@ module Sass
|
|
10
9
|
class Extconf
|
11
10
|
|
12
11
|
def initialize
|
13
|
-
system('make', '-C', __dir__, 'distclean')
|
14
12
|
download_sass_embedded
|
15
13
|
download_protoc
|
16
14
|
download_embedded_sass_proto
|
17
|
-
system('make', '-C', __dir__, 'install')
|
18
|
-
|
19
|
-
File.open(File.absolute_path("sass_embedded.#{RbConfig::CONFIG['DLEXT']}", __dir__), 'w') {}
|
20
|
-
|
21
|
-
$makefile_created = true
|
22
15
|
end
|
23
16
|
|
24
17
|
private
|
data/lib/sass/version.rb
CHANGED
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: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- なつき
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|