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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d96f55c5d526578e5ee34e70855282dfb385db24
4
- data.tar.gz: 85ae03b075ea7a6ff52d8e6e2306c44832d89024
3
+ metadata.gz: cd5aab4fffd2a2f988a1ca33d9c45a27fecd277f
4
+ data.tar.gz: 8c9881b8fb4562b90472c0bb53f4aad3a4ea7d17
5
5
  SHA512:
6
- metadata.gz: 301434fd123ce5762da1341aae645aa65f31ffe6155ab87a44feed1019121fa266078da98758c3eafa50a77f9434b945a932e6b7634636140d1cd54dd96964e8
7
- data.tar.gz: 1e28e01af490eefb0d3bf35da91513714e5aa1ef7968a59ca79e0b555d7a515d0114d82955a026cf659e84ce71df7895ab2f435456ff3029b4b73dd06e65b140
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
 
@@ -24,3 +24,4 @@ require 'bobkit/watcher'
24
24
 
25
25
  require 'bobkit/scope'
26
26
  require 'bobkit/tasks'
27
+ require 'bobkit/bob'
@@ -0,0 +1,5 @@
1
+ module Bobkit
2
+ class Bob
3
+ include Tasks
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module Bobkit
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
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.5
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-04 00:00:00.000000000 Z
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