bobkit 0.1.6 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +5 -6
- data/lib/bobkit.rb +27 -27
- data/lib/bobkit/sass_bridge.rb +14 -9
- data/lib/bobkit/tasks.rb +0 -1
- data/lib/bobkit/version.rb +1 -1
- data/lib/bobkit/watcher.rb +1 -1
- metadata +16 -102
- data/lib/bobkit/sass_options.rb +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b1b548b8fb9cbbf19f4da08999cf046d5e8fdf962a3997e5eacf3207e506cf26
|
4
|
+
data.tar.gz: 15595d9a3400982f23c04e0a1891d2dfb8c5a7b3b517b37cffe690ef32226f94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30c05ba027aeb7c88c081fce8fd3ed9b6c5e6328bf373bbeab2c485d79960c5662b1404be378db9b0a341414a1e7c8949e7bd43f012a59d869a8b04634070008
|
7
|
+
data.tar.gz: e20d03d6e426e3dc126d0b9c85b3808bbff89d00f3a717ba4dab62cb02a970490755324a7a8c53184bb33f2057ffdb521fdca241be77a1d6d55d4f26e5c728f9
|
data/README.md
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
Bobkit - Site Generation Toolkit
|
2
2
|
==================================================
|
3
3
|
|
4
|
-
[![Gem](https://
|
5
|
-
[![
|
6
|
-
[![
|
7
|
-
[![Gemnasium](https://img.shields.io/gemnasium/DannyBen/bobkit.svg?style=flat-square)](https://gemnasium.com/DannyBen/bobkit)
|
4
|
+
[![Gem Version](https://badge.fury.io/rb/bobkit.svg)](https://badge.fury.io/rb/bobkit)
|
5
|
+
[![Build Status](https://github.com/DannyBen/bobkit/workflows/Test/badge.svg)](https://github.com/DannyBen/bobkit/actions?query=workflow%3ATest)
|
6
|
+
[![Maintainability](https://api.codeclimate.com/v1/badges/64c20ebaaf8ecff0948d/maintainability)](https://codeclimate.com/github/DannyBen/bobkit/maintainability)
|
8
7
|
|
9
8
|
---
|
10
9
|
|
@@ -249,7 +248,7 @@ can use any of these methods.
|
|
249
248
|
copy_file 'exact/path.zip', 'exact/output/file.zip'
|
250
249
|
|
251
250
|
# Copy a folder - needed parent folders will be created as needed
|
252
|
-
|
251
|
+
copy_folder 'exact/path', 'exact/output/folder'
|
253
252
|
|
254
253
|
# Create folder, and any of the needed parent folders
|
255
254
|
create_folder 'my_folder'
|
@@ -277,7 +276,7 @@ end
|
|
277
276
|
```
|
278
277
|
|
279
278
|
The watch command is just like
|
280
|
-
`
|
279
|
+
`Filewatcher.new([...]).watch() do |filename, event|`
|
281
280
|
with the exception that the array of paths to watch is optional. If none
|
282
281
|
provided, we will watch all the input folders.
|
283
282
|
|
data/lib/bobkit.rb
CHANGED
@@ -1,27 +1,27 @@
|
|
1
|
-
require '
|
2
|
-
|
3
|
-
require '
|
4
|
-
require '
|
5
|
-
require '
|
6
|
-
require '
|
7
|
-
require '
|
8
|
-
require '
|
9
|
-
|
10
|
-
|
11
|
-
require 'bobkit/
|
12
|
-
require 'bobkit/
|
13
|
-
require 'bobkit/
|
14
|
-
require 'bobkit/
|
15
|
-
require 'bobkit/
|
16
|
-
require 'bobkit/
|
17
|
-
require 'bobkit/sass_bridge'
|
18
|
-
require 'bobkit/slim_options'
|
19
|
-
require 'bobkit/slim_bridge'
|
20
|
-
require 'bobkit/coffee_bridge'
|
21
|
-
require 'bobkit/markdown_bridge'
|
22
|
-
require 'bobkit/assets'
|
23
|
-
require 'bobkit/watcher'
|
24
|
-
|
25
|
-
require 'bobkit/scope'
|
26
|
-
require 'bobkit/tasks'
|
27
|
-
require 'bobkit/bob'
|
1
|
+
require 'singleton'
|
2
|
+
|
3
|
+
require 'i18n'
|
4
|
+
require 'fileutils'
|
5
|
+
require 'sasstool'
|
6
|
+
require 'slim'
|
7
|
+
require 'coffee_script'
|
8
|
+
require 'filewatcher'
|
9
|
+
require 'rdiscount'
|
10
|
+
|
11
|
+
require 'bobkit/options_base'
|
12
|
+
require 'bobkit/location_options'
|
13
|
+
require 'bobkit/file_helpers'
|
14
|
+
require 'bobkit/i18n_mixin'
|
15
|
+
require 'bobkit/i18n_bridge'
|
16
|
+
require 'bobkit/scope_options'
|
17
|
+
require 'bobkit/sass_bridge'
|
18
|
+
require 'bobkit/slim_options'
|
19
|
+
require 'bobkit/slim_bridge'
|
20
|
+
require 'bobkit/coffee_bridge'
|
21
|
+
require 'bobkit/markdown_bridge'
|
22
|
+
require 'bobkit/assets'
|
23
|
+
require 'bobkit/watcher'
|
24
|
+
|
25
|
+
require 'bobkit/scope'
|
26
|
+
require 'bobkit/tasks'
|
27
|
+
require 'bobkit/bob'
|
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
data/lib/bobkit/watcher.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.1
|
4
|
+
version: 0.2.1
|
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: 2021-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slim
|
@@ -16,42 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '4.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
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: '
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '3.5'
|
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'
|
33
|
+
version: '0.1'
|
48
34
|
type: :runtime
|
49
35
|
prerelease: false
|
50
36
|
version_requirements: !ruby/object:Gem::Requirement
|
51
37
|
requirements:
|
52
38
|
- - "~>"
|
53
39
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
40
|
+
version: '0.1'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: coffee-script
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,42 +58,42 @@ dependencies:
|
|
72
58
|
requirements:
|
73
59
|
- - "~>"
|
74
60
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
61
|
+
version: '1.7'
|
76
62
|
type: :runtime
|
77
63
|
prerelease: false
|
78
64
|
version_requirements: !ruby/object:Gem::Requirement
|
79
65
|
requirements:
|
80
66
|
- - "~>"
|
81
67
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
68
|
+
version: '1.7'
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
70
|
name: filewatcher
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
86
72
|
requirements:
|
87
73
|
- - "~>"
|
88
74
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
75
|
+
version: '1.1'
|
90
76
|
type: :runtime
|
91
77
|
prerelease: false
|
92
78
|
version_requirements: !ruby/object:Gem::Requirement
|
93
79
|
requirements:
|
94
80
|
- - "~>"
|
95
81
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
82
|
+
version: '1.1'
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
84
|
+
name: mini_racer
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
100
86
|
requirements:
|
101
87
|
- - "~>"
|
102
88
|
- !ruby/object:Gem::Version
|
103
|
-
version: '0.
|
89
|
+
version: '0.2'
|
104
90
|
type: :runtime
|
105
91
|
prerelease: false
|
106
92
|
version_requirements: !ruby/object:Gem::Requirement
|
107
93
|
requirements:
|
108
94
|
- - "~>"
|
109
95
|
- !ruby/object:Gem::Version
|
110
|
-
version: '0.
|
96
|
+
version: '0.2'
|
111
97
|
- !ruby/object:Gem::Dependency
|
112
98
|
name: rdiscount
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,76 +108,6 @@ dependencies:
|
|
122
108
|
- - "~>"
|
123
109
|
- !ruby/object:Gem::Version
|
124
110
|
version: '2.2'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: runfile
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - "~>"
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0.1'
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - "~>"
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0.1'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: runfile-tasks
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - "~>"
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '0.4'
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - "~>"
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '0.4'
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: byebug
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - "~>"
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '9.0'
|
160
|
-
type: :development
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - "~>"
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '9.0'
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: rspec
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - "~>"
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '3.6'
|
174
|
-
type: :development
|
175
|
-
prerelease: false
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - "~>"
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: '3.6'
|
181
|
-
- !ruby/object:Gem::Dependency
|
182
|
-
name: simplecov
|
183
|
-
requirement: !ruby/object:Gem::Requirement
|
184
|
-
requirements:
|
185
|
-
- - "~>"
|
186
|
-
- !ruby/object:Gem::Version
|
187
|
-
version: '0.15'
|
188
|
-
type: :development
|
189
|
-
prerelease: false
|
190
|
-
version_requirements: !ruby/object:Gem::Requirement
|
191
|
-
requirements:
|
192
|
-
- - "~>"
|
193
|
-
- !ruby/object:Gem::Version
|
194
|
-
version: '0.15'
|
195
111
|
description: Site Generation Toolkit with Slim, SCSS, CoffeeScript and Markdown
|
196
112
|
email: db@dannyben.com
|
197
113
|
executables: []
|
@@ -210,7 +126,6 @@ files:
|
|
210
126
|
- lib/bobkit/markdown_bridge.rb
|
211
127
|
- lib/bobkit/options_base.rb
|
212
128
|
- lib/bobkit/sass_bridge.rb
|
213
|
-
- lib/bobkit/sass_options.rb
|
214
129
|
- lib/bobkit/scope.rb
|
215
130
|
- lib/bobkit/scope_options.rb
|
216
131
|
- lib/bobkit/slim_bridge.rb
|
@@ -230,15 +145,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
230
145
|
requirements:
|
231
146
|
- - ">="
|
232
147
|
- !ruby/object:Gem::Version
|
233
|
-
version: 2.
|
148
|
+
version: 2.4.0
|
234
149
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
235
150
|
requirements:
|
236
151
|
- - ">="
|
237
152
|
- !ruby/object:Gem::Version
|
238
153
|
version: '0'
|
239
154
|
requirements: []
|
240
|
-
|
241
|
-
rubygems_version: 2.6.13
|
155
|
+
rubygems_version: 3.2.3
|
242
156
|
signing_key:
|
243
157
|
specification_version: 4
|
244
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
|