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 +4 -4
- data/README.md +1 -1
- data/lib/bobkit.rb +1 -3
- data/lib/bobkit/sass_bridge.rb +14 -9
- data/lib/bobkit/tasks.rb +0 -1
- data/lib/bobkit/version.rb +1 -1
- metadata +7 -22
- data/lib/bobkit/sass_options.rb +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d302738a52f6b3b3fdfb412d7f2ddf2ba5e70d6fd86e86723b24656c4fd128d
|
4
|
+
data.tar.gz: e17d0e43fc7284018e0b489882a8756d57a482e9c0e873a06b168f9deb6b1680
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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://
|
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
|
---
|
data/lib/bobkit.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
require 'i18n'
|
2
2
|
require 'fileutils'
|
3
|
-
require '
|
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'
|
data/lib/bobkit/sass_bridge.rb
CHANGED
@@ -1,15 +1,20 @@
|
|
1
1
|
module Bobkit
|
2
2
|
module SassBridge
|
3
3
|
include FileHelpers
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
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
|
data/lib/bobkit/tasks.rb
CHANGED
data/lib/bobkit/version.rb
CHANGED
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.
|
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:
|
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:
|
28
|
+
name: sasstool
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
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: '
|
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.
|
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.
|
155
|
+
rubygems_version: 3.1.4
|
171
156
|
signing_key:
|
172
157
|
specification_version: 4
|
173
158
|
summary: Site Generation Toolkit
|
data/lib/bobkit/sass_options.rb
DELETED
@@ -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
|