bobkit 0.1.9 → 0.2.0

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: edef2cac373a1bb660b5039319b60000f78390ee4d1b1f247d0a53bd624f77db
4
- data.tar.gz: 30c0d9c908ef88fc23153cfeae31d1dbd1bf746a9cfd1bd3d4072511c75ce2e3
3
+ metadata.gz: 3d302738a52f6b3b3fdfb412d7f2ddf2ba5e70d6fd86e86723b24656c4fd128d
4
+ data.tar.gz: e17d0e43fc7284018e0b489882a8756d57a482e9c0e873a06b168f9deb6b1680
5
5
  SHA512:
6
- metadata.gz: 6276ac5b02b23f913988e3fca8d49700d13afd0678354ef27b5142ca5ef4b72608d3ae7d8843523ca4905c5d60f36ebf0073c5e9e1d74c0950c38e8999414c31
7
- data.tar.gz: 94765c19081117f7a95f9ce7c7906548c0b318d722f00faba87abfbcec35a976861d8608105de115959dea3b2cfbe81688c2790767c50fc929c8f557672c8620
6
+ metadata.gz: f7c29a4140a4469b192fdf916907a3193c640b16b7d2db40a09079f0a9550ffa193c5757747cef49d18a78a58bb5eb90a7514682876fae7bc5b518299ef6aef5
7
+ data.tar.gz: c7d49087068e18324b1afc627bc9d7de92230c424519b35637cb9d13ed6bcebad5157383ca2f694ad45a8309fa61d8014d5455c9be447acbbdc1ff1f627774f9
data/README.md CHANGED
@@ -2,7 +2,7 @@ Bobkit - Site Generation Toolkit
2
2
  ==================================================
3
3
 
4
4
  [![Gem Version](https://badge.fury.io/rb/bobkit.svg)](https://badge.fury.io/rb/bobkit)
5
- [![Build Status](https://travis-ci.com/DannyBen/bobkit.svg?branch=master)](https://travis-ci.com/DannyBen/bobkit)
5
+ [![Build Status](https://github.com/DannyBen/bobkit/workflows/Test/badge.svg)](https://github.com/DannyBen/bobkit/actions?query=workflow%3ATest)
6
6
  [![Maintainability](https://api.codeclimate.com/v1/badges/64c20ebaaf8ecff0948d/maintainability)](https://codeclimate.com/github/DannyBen/bobkit/maintainability)
7
7
 
8
8
  ---
@@ -1,7 +1,6 @@
1
1
  require 'i18n'
2
2
  require 'fileutils'
3
- require 'sass'
4
- require 'sass-globbing'
3
+ require 'sasstool'
5
4
  require 'slim'
6
5
  require 'coffee_script'
7
6
  require 'filewatcher'
@@ -13,7 +12,6 @@ require 'bobkit/file_helpers'
13
12
  require 'bobkit/i18n_mixin'
14
13
  require 'bobkit/i18n_bridge'
15
14
  require 'bobkit/scope_options'
16
- require 'bobkit/sass_options'
17
15
  require 'bobkit/sass_bridge'
18
16
  require 'bobkit/slim_options'
19
17
  require 'bobkit/slim_bridge'
@@ -1,15 +1,20 @@
1
1
  module Bobkit
2
2
  module SassBridge
3
3
  include FileHelpers
4
- include SassOptions
5
-
6
- def compile_css(file, options={})
7
- @file = "#{styles_folder}/#{file}.scss"
8
- extended_options = scss_options.merge({ filename: @file })
9
- content = Sass::Engine.new(File.read(@file), extended_options).render
10
- output = options[:output]
11
- create_file "#{css_output_folder}/#{output}.css", content if output
12
- content
4
+
5
+ def compile_css(file, output: nil, source_map: true)
6
+ file = "#{styles_folder}/#{file}.scss"
7
+ sass = Sasstool::Renderer.new file
8
+
9
+ if output
10
+ create_file "#{css_output_folder}/#{output}.css", sass.render
11
+
12
+ if source_map
13
+ create_file "#{css_output_folder}/#{output}.css.map", sass.source_map
14
+ end
15
+ end
16
+
17
+ sass.render
13
18
  end
14
19
  end
15
20
  end
@@ -8,7 +8,6 @@ module Bobkit
8
8
  include I18nBridge
9
9
  include MarkdownBridge
10
10
  include SlimOptions
11
- include SassOptions
12
11
  include ScopeOptions
13
12
  include Assets
14
13
  end
@@ -1,3 +1,3 @@
1
1
  module Bobkit
2
- VERSION = "0.1.9"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bobkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Ben Shitrit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-26 00:00:00.000000000 Z
11
+ date: 2020-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slim
@@ -25,33 +25,19 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: sass
28
+ name: sasstool
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '3.7'
33
+ version: '0.1'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '3.7'
41
- - !ruby/object:Gem::Dependency
42
- name: sass-globbing
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '1.1'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '1.1'
40
+ version: '0.1'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: coffee-script
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -140,7 +126,6 @@ files:
140
126
  - lib/bobkit/markdown_bridge.rb
141
127
  - lib/bobkit/options_base.rb
142
128
  - lib/bobkit/sass_bridge.rb
143
- - lib/bobkit/sass_options.rb
144
129
  - lib/bobkit/scope.rb
145
130
  - lib/bobkit/scope_options.rb
146
131
  - lib/bobkit/slim_bridge.rb
@@ -160,14 +145,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
160
145
  requirements:
161
146
  - - ">="
162
147
  - !ruby/object:Gem::Version
163
- version: 2.0.0
148
+ version: 2.4.0
164
149
  required_rubygems_version: !ruby/object:Gem::Requirement
165
150
  requirements:
166
151
  - - ">="
167
152
  - !ruby/object:Gem::Version
168
153
  version: '0'
169
154
  requirements: []
170
- rubygems_version: 3.0.3
155
+ rubygems_version: 3.1.4
171
156
  signing_key:
172
157
  specification_version: 4
173
158
  summary: Site Generation Toolkit
@@ -1,13 +0,0 @@
1
- module Bobkit
2
- module SassOptions
3
- def scss_options(options=nil)
4
- setopt :scss_options, options, scss_defaults
5
- end
6
- alias_method :sass_options, :scss_options
7
-
8
- def scss_defaults
9
- { cache: true, syntax: :scss, style: :nested,
10
- load_paths: [styles_folder] }
11
- end
12
- end
13
- end