sass-embedded 0.9.0 → 0.9.1

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: c5bcaee2299b4f0b9d4d1d23b25773fdad87d1a294a4a34eeec0028d1f89a25c
4
- data.tar.gz: 75ce2615300b0d59e73f715ae43007baf09a9818ea56d80b8be4d54b1f561c69
3
+ metadata.gz: '018d03c0959c9166e685ae375315eb0604c338dc892b2ea40f1a29fac1b17147'
4
+ data.tar.gz: a1ce2a1eb5bc15b7ea9e8001fc6ca799d704407ac3e4fb79fc98863e873ac613
5
5
  SHA512:
6
- metadata.gz: 93cf20b2df8d4c363797df90e459f52c6dedf5e540cb5b6eb1cd110dded76477adf82f6c0bc0652f1b5201f535265053f7838654952a4bcc7f338bcc69c9464a
7
- data.tar.gz: c4190c8fc8e60a37fa834dfdac6fe1842e66d39ac8d0ad9bc1c15ea5c18c16766f19e194be746fc963a5604c740f438c6371aa59c10dd59d452a526fea6cbf0d
6
+ metadata.gz: 886030b4eef8a3d79f67786c61e0c532c868f8faa83cb906a53efe809bfc16b0cfea3067bf2ad1e66b7a0a361c006557f3aae72ae3dab66c9738617fa054d19a
7
+ data.tar.gz: e808634a40e6e486b3478b227db1feee9879deac1653d042fa80614df29ab63add1253a9e53fac90ece0970092cceaca7904accd144bd2a724ada37928312d2b
@@ -3,7 +3,7 @@
3
3
  module Sass
4
4
  class Embedded
5
5
  class Compiler
6
- REQUIREMENTS = '~> 1.0.0-beta.11'
6
+ REQUIREMENTS = '~> 1.0.0-beta.12'
7
7
  end
8
8
  end
9
9
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sass
4
4
  class Embedded
5
- VERSION = '0.9.0'
5
+ VERSION = '0.9.1'
6
6
  end
7
7
  end
data/lib/sass.rb CHANGED
@@ -51,9 +51,15 @@ module Sass
51
51
  private
52
52
 
53
53
  def instance
54
- return @instance if defined?(@instance) && !@instance.closed?
55
-
56
- @instance = Embedded.new
54
+ if @instance.nil?
55
+ @instance = Embedded.new
56
+ at_exit do
57
+ @instance.close
58
+ end
59
+ elsif @instance.closed?
60
+ @instance = Embedded.new
61
+ end
62
+ @instance
57
63
  end
58
64
  end
59
65
  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.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - なつき
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-28 00:00:00.000000000 Z
11
+ date: 2021-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -157,8 +157,8 @@ homepage: https://github.com/ntkme/sass-embedded-host-ruby
157
157
  licenses:
158
158
  - MIT
159
159
  metadata:
160
- documentation_uri: https://www.rubydoc.info/gems/sass-embedded/0.9.0
161
- source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v0.9.0
160
+ documentation_uri: https://www.rubydoc.info/gems/sass-embedded/0.9.1
161
+ source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v0.9.1
162
162
  funding_uri: https://github.com/sponsors/ntkme
163
163
  post_install_message:
164
164
  rdoc_options: []