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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6c14e0ab686080f404d76337be0b59768bb600c48850f817c168cf53929239d9
4
- data.tar.gz: e707aa4c0e910e71d0a316e4d3f1609b4c3cc49e49107c42af31d1ba3f9d3b62
3
+ metadata.gz: 5dc860ffde1f3fb6315c2a43972b245841e10e0b0b4a8979a5a4c7528063cd95
4
+ data.tar.gz: aa76a73fdc4a252b1cd948b90452fa772282408289e99a4e0206c968a5e68898
5
5
  SHA512:
6
- metadata.gz: c549da93d4a68fb330b1019c462c593d18630c028a7a3add53b13dc72f18918d0f7e815c5abc0612584e749a87752c0c56c71c43fbb477829d8063cdfbb16fa3
7
- data.tar.gz: 0c0af0ff5e8d40ac6f4305eb04b268aaccb154526071ab5799f4dfdb148ef7cba1c39ff45c9eb5b274d7a9d5a6170fefaf60be86fdf8ce127d1167799e85da47
6
+ metadata.gz: b03c95f66214d6e095fd1e11bbeebe24d56443cf90107661007aef30006502296799c07e4c73974cfa0ca7debc7a807a120c86eb99441363af10f699a9cd0148
7
+ data.tar.gz: b834e3e9e2a0eb7acdea42e04c1627edc86f2e146c0b96e79331c646b387f8df861fa59d0efeb46d9f3d176b388804d67b63515cc406efb8bb5d7a3c1d4391f6
@@ -27,7 +27,7 @@ jobs:
27
27
  bundler-cache: true
28
28
 
29
29
  - name: Download dart-sass-embedded
30
- run: bundle exec rake download
30
+ run: bundle exec rake extconf
31
31
  env:
32
32
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33
33
 
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 :download do
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'
@@ -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 -command "Get-Item sass_embedded-*.zip | Expand-Archive -DestinationPath (Get-Location) -Force"
5
- powershell -command "Get-Item protoc-*.zip | Expand-Archive -DestinationPath protoc -Force"
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
- ifeq ($(OS),Windows_NT)
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
- ifeq ($(OS),Windows_NT)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sass
4
- VERSION = '0.2.2'
4
+ VERSION = '0.2.3'
5
5
  end
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.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-24 00:00:00.000000000 Z
11
+ date: 2021-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf