sass-embedded 0.7.10 → 0.7.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/extconf.rb +14 -8
- data/lib/sass/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: 9f134ae1ed21b1641b3c781ed7dc7c901c059ce3a8c9ac7038f4ee5f2ae9d313
|
4
|
+
data.tar.gz: 3c4758ba9de6440b17acca78d23d9b60ffd7b6683462168bd44f1aff0f466ded
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbe0c28c51e406f51262ca10bffe6453caa73badc17cbfa61938030bbf94c9a1d9747dacde5471a28b9403409082da526815b5c23f37d0ade1844fd06cfd3ad2
|
7
|
+
data.tar.gz: d57f31a01741d59aa49bbf74be30d41f0da85f26b9d555e8a60695f9490a74e5043e9c7e6e148e6bf9d7fe5a740ea7e9cd34725f52ec68d46998b9a9a0b3cf8b
|
data/ext/extconf.rb
CHANGED
@@ -52,6 +52,7 @@ module Sass
|
|
52
52
|
if uri.is_a?(URI::File) || uri.instance_of?(URI::Generic)
|
53
53
|
FileUtils.copy_file uri.path, path
|
54
54
|
elsif uri.respond_to? :open
|
55
|
+
puts "curl -fsSLo #{path} -- #{uri}"
|
55
56
|
uri.open do |source|
|
56
57
|
File.open(path, 'wb') do |destination|
|
57
58
|
destination.write source.read
|
@@ -64,12 +65,18 @@ module Sass
|
|
64
65
|
raise "Failed to get: #{uri}"
|
65
66
|
end
|
66
67
|
|
67
|
-
def latest_release(repo, prerelease: false)
|
68
|
-
if prerelease
|
68
|
+
def latest_release(repo, prerelease: false, tag: false)
|
69
|
+
if prerelease || tag
|
69
70
|
headers = {}
|
70
71
|
headers['Authorization'] = "token #{ENV['GITHUB_TOKEN']}" if ENV['GITHUB_TOKEN']
|
71
|
-
|
72
|
-
|
72
|
+
if tag
|
73
|
+
URI.parse("https://api.github.com/repos/#{repo}/tags").open(headers) do |file|
|
74
|
+
JSON.parse(file.read)[0]['name']
|
75
|
+
end
|
76
|
+
else
|
77
|
+
URI.parse("https://api.github.com/repos/#{repo}/releases").open(headers) do |file|
|
78
|
+
JSON.parse(file.read)[0]['tag_name']
|
79
|
+
end
|
73
80
|
end
|
74
81
|
else
|
75
82
|
URI.parse("https://github.com/#{repo}/releases/latest").open do |file|
|
@@ -81,7 +88,7 @@ module Sass
|
|
81
88
|
def latest_sass_embedded
|
82
89
|
repo = 'sass/dart-sass-embedded'
|
83
90
|
|
84
|
-
# TODO
|
91
|
+
# TODO: don't use prerelease once a release is available
|
85
92
|
tag_name = latest_release repo, prerelease: true
|
86
93
|
|
87
94
|
os = case Platform::OS
|
@@ -168,9 +175,8 @@ module Sass
|
|
168
175
|
def latest_sass_embedded_protocol
|
169
176
|
repo = 'sass/embedded-protocol'
|
170
177
|
|
171
|
-
# TODO: use
|
172
|
-
|
173
|
-
tag_name = 'HEAD'
|
178
|
+
# TODO: don't use tag once a release is available
|
179
|
+
tag_name = latest_release repo, tag: true
|
174
180
|
|
175
181
|
"https://raw.githubusercontent.com/#{repo}/#{tag_name}/embedded_sass.proto"
|
176
182
|
end
|
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.7.
|
4
|
+
version: 0.7.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- なつき
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06
|
11
|
+
date: 2021-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|
@@ -165,7 +165,7 @@ homepage: https://github.com/ntkme/sass-embedded-host-ruby
|
|
165
165
|
licenses:
|
166
166
|
- MIT
|
167
167
|
metadata:
|
168
|
-
source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v0.7.
|
168
|
+
source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v0.7.11
|
169
169
|
post_install_message:
|
170
170
|
rdoc_options: []
|
171
171
|
require_paths:
|
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
181
|
- !ruby/object:Gem::Version
|
182
182
|
version: '0'
|
183
183
|
requirements: []
|
184
|
-
rubygems_version: 3.2.
|
184
|
+
rubygems_version: 3.2.22
|
185
185
|
signing_key:
|
186
186
|
specification_version: 4
|
187
187
|
summary: Use dart-sass with Ruby!
|