sass-embedded 0.7.14 → 0.7.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5fcfb496509a39af1ede196579891f3f618c8ae112a636abded14712811acbc6
4
- data.tar.gz: ce47457cf14a9f79129a638909785a3edda3c93835fdd2d5d29a1d721c7dd3ba
3
+ metadata.gz: fe31a4373aa2146f0eee250178df2e35383141389699a7af4a7f4c0d672631fd
4
+ data.tar.gz: 821ce7306f41e0e037720df4bd048e248113461dcdcd7ec8c8bb99a05d72339a
5
5
  SHA512:
6
- metadata.gz: 8233f64b021b3a51c199383ad9327a5d9ddf4df340c151a761a2fa54cd403e96c003d7922ea8bd7ead2c5b66be15c101d297528d81fe7b597e36527df4a5637b
7
- data.tar.gz: '058dfbfbfe9afe0f39d23191c943ca00ebdcd94706fb0d9cfca68ecd347d45ed935c011e387812c4fe2579c1f16b42cf9f183b83dd74c7166e2ebcb5f8a54200'
6
+ metadata.gz: f1ba39e8ef36ab9b50c51eebded39ee7065fb3e51d93af224c66ef246ff76981a2eec2ea6f5572f0c1d90482c431f0a713a3e7424236bb3ed3af11aa36607cc9
7
+ data.tar.gz: 96c187418ea97fc784cdb5ade9a837aa2e5671d7bc8dd0a1c34e97f4612079d95c91dfbb0a358ebe7449a5db5a46d209183f3cc4fd0464ce9e243b62721df22f
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Embedded Sass Host for Ruby
2
2
 
3
3
  [![build](https://github.com/ntkme/embedded-host-ruby/actions/workflows/build.yml/badge.svg)](https://github.com/ntkme/embedded-host-ruby/actions/workflows/build.yml)
4
+ [![gem](https://badge.fury.io/rb/sass-embedded.svg)](https://rubygems.org/gems/sass-embedded)
4
5
 
5
6
  This is a Ruby library that implements the host side of the [Embedded Sass protocol](https://github.com/sass/sass-embedded-protocol).
6
7
 
@@ -107,21 +107,24 @@ module Sass
107
107
  end
108
108
 
109
109
  def read_varint(readable)
110
- varint = bits = 0
110
+ value = bits = 0
111
111
  loop do
112
112
  byte = readable.readbyte
113
- varint += (byte & 0x7f) << bits
113
+ value |= (byte & 0x7f) << bits
114
114
  bits += 7
115
- break if byte <= 0x7f
115
+ break if byte < 0x80
116
116
  end
117
- varint
117
+ value
118
118
  end
119
119
 
120
- def write_varint(writeable, varint)
121
- while varint.positive?
122
- writeable.write ((varint > 0x7f ? 0x80 : 0) | (varint & 0x7f)).chr
123
- varint >>= 7
120
+ def write_varint(writeable, value)
121
+ bytes = []
122
+ until value < 0x80
123
+ bytes << (0x80 | (value & 0x7f))
124
+ value >>= 7
124
125
  end
126
+ bytes << value
127
+ writeable.write bytes.pack('C*')
125
128
  end
126
129
  end
127
130
  end
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.7.14'
4
+ VERSION = '0.7.15'
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.7.14
4
+ version: 0.7.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - なつき
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-24 00:00:00.000000000 Z
11
+ date: 2021-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -166,7 +166,7 @@ homepage: https://github.com/ntkme/sass-embedded-host-ruby
166
166
  licenses:
167
167
  - MIT
168
168
  metadata:
169
- source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v0.7.14
169
+ source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v0.7.15
170
170
  post_install_message:
171
171
  rdoc_options: []
172
172
  require_paths: