isodoc 3.0.2 → 3.0.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: b173c9b35675f7ecd7c448a2dddf04eb0a9eb00331a662831c2d22692ba1435c
4
- data.tar.gz: 402262f8fcbb90fb92903465260c40f113baa471b404a1c2bc27d6c0e473c84a
3
+ metadata.gz: 1afcea1c3a61c003f63ef54ee1fc3336a65755daceb584dcff2558731f419bd8
4
+ data.tar.gz: 6534a2e478ca74da49d70dbca4e88b611f045f6fa66051a62fe8d39775f61012
5
5
  SHA512:
6
- metadata.gz: cf11b420d2d43c6c641d216c7a48e75c7c93f0a34ab86002dfa8632b399e898614b57bdd9192865d6b0d835e21f0fca3567e301d79d1cc65c4f83b4230df8c58
7
- data.tar.gz: d73aae00119e98ef069db2d5b8118ba9d4355e7aade85a78c1fcf8958f11e06b1d5f814716ba1b5ebdb51e12409fb9b14a0240229dda8311714179a037d779fa
6
+ metadata.gz: 3b4ebffb29a7b2cee5f973244560c4ba3886a79712b3bc8ae0f0ed446ee4324f9b0e54cd40be669aa7aafcea84e493ea96bed8140bdc436765b67def8d9533f8
7
+ data.tar.gz: b95c345dc9079afd3b80b4d31eaabf0e89c87ec4b56433f860da6004f345390c437be0fb03c0eba3df3640c9cac242999259ec93746caaf3969d5b4c76edb2e0
data/lib/isodoc/css.rb CHANGED
@@ -82,25 +82,24 @@ module IsoDoc
82
82
  File.dirname(filename)].each do |name|
83
83
  SassC.load_paths << name
84
84
  end
85
-
86
- Dir.mktmpdir do |dir|
87
- variables_file_path = File.join(dir, "variables.scss")
88
- File.write(variables_file_path, scss_fontheader(stripwordcss))
89
85
 
90
- SassC.load_paths << dir
86
+ Dir.mktmpdir do |dir|
87
+ variables_file_path = File.join(dir, "variables.scss")
88
+ File.write(variables_file_path,
89
+ scss_fontheader(stripwordcss))
91
90
 
92
- # Modify the stylesheet to use the tempfile with @use
93
- modified_stylesheet = <<~SCSS
94
- @use "variables" as *;
95
- #{stylesheet}
96
- SCSS
97
- require "debug"; binding.b
98
- SassC::Engine.new(modified_stylesheet,
99
- syntax: :scss, importer: SasscImporter)
100
- .render
101
- end
102
- end
91
+ SassC.load_paths << dir
103
92
 
93
+ # Modify the stylesheet to use the tempfile with @use
94
+ modified_stylesheet = <<~SCSS
95
+ @use "variables" as *;
96
+ #{stylesheet}
97
+ SCSS
98
+ SassC::Engine.new(modified_stylesheet,
99
+ syntax: :scss, importer: SasscImporter)
100
+ .render
101
+ end
102
+ end
104
103
 
105
104
  # stripwordcss if HTML stylesheet, !stripwordcss if DOC stylesheet
106
105
  def generate_css(filename, stripwordcss)
@@ -1,3 +1,3 @@
1
1
  module IsoDoc
2
- VERSION = "3.0.2".freeze
2
+ VERSION = "3.0.3".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isodoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.