bobkit 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -0
- data/lib/bobkit.rb +1 -0
- data/lib/bobkit/bob.rb +5 -0
- data/lib/bobkit/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd5aab4fffd2a2f988a1ca33d9c45a27fecd277f
|
4
|
+
data.tar.gz: 8c9881b8fb4562b90472c0bb53f4aad3a4ea7d17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c22538ee037a18edf0e13505fd60ecb909a9e8b0c32e89df596621b4d6ec46179d11b92ca6dc75cafb2a902928e37e23941e9e1b818d564d793a3eae095f191d
|
7
|
+
data.tar.gz: 4a2f38776ed018280603565f761fc025fd7220ac835938206f9cafef200a8f39e13869e43d68e682945fcadb9ad2c9e47fcfc2ae02d52a8fd398b544ba3ee3bc
|
data/README.md
CHANGED
@@ -74,6 +74,25 @@ compile_css 'main', output: 'style'
|
|
74
74
|
See more examples in the [Examples folder][1]
|
75
75
|
|
76
76
|
|
77
|
+
### DSL or Instance
|
78
|
+
|
79
|
+
Bobkit was primarily designed as a DSL, but if you wish to use a more scoped
|
80
|
+
approach, you can use an instance of the `Bob` class.
|
81
|
+
|
82
|
+
```ruby
|
83
|
+
require 'bobkit'
|
84
|
+
|
85
|
+
# Option 1: DSL
|
86
|
+
include Bobkit::Tasks
|
87
|
+
render ...
|
88
|
+
compile_css ...
|
89
|
+
|
90
|
+
# Option 2: Bob class
|
91
|
+
bob = Bob.new
|
92
|
+
bob.render ...
|
93
|
+
bob.compile_css ...
|
94
|
+
```
|
95
|
+
|
77
96
|
Reference
|
78
97
|
--------------------------------------------------
|
79
98
|
|
data/lib/bobkit.rb
CHANGED
data/lib/bobkit/bob.rb
ADDED
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.1.
|
4
|
+
version: 0.1.6
|
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: 2017-09-
|
11
|
+
date: 2017-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slim
|
@@ -201,6 +201,7 @@ files:
|
|
201
201
|
- README.md
|
202
202
|
- lib/bobkit.rb
|
203
203
|
- lib/bobkit/assets.rb
|
204
|
+
- lib/bobkit/bob.rb
|
204
205
|
- lib/bobkit/coffee_bridge.rb
|
205
206
|
- lib/bobkit/file_helpers.rb
|
206
207
|
- lib/bobkit/i18n_bridge.rb
|