bobkit 0.1.2 → 0.1.3

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: 11e979bc90288f50ea9e4dec8f48786f80268af9
4
- data.tar.gz: 6f498e8f4b40471d1c042127533978db1a64a5c8
3
+ metadata.gz: 05274495a230c04eeb952d76d1c31ce74d537a89
4
+ data.tar.gz: f1125e2b61d86113438611724ba5ec5db7fbb484
5
5
  SHA512:
6
- metadata.gz: da20e1a812d14c2b307d42602d4371f9a6141cc64db55f2dd6e54781d4ea14cd841b6aa1aaace80d4d61477ce5e215e4b7f9339458ae3e00d1cbc9d2fccb7eb6
7
- data.tar.gz: f222bff53f8a4a7116b381957a8f614a731217bde5ba59f33d8dd2552ced7dad2fa7c83ebee124335b7d36a5d09518bdb319a8ad1e0fa2ff2c4ac98db27623c4
6
+ metadata.gz: f685f44e231d90411f722c0a39f9ad9534124d033023609a30085002e70b29bea7d4cb86bbd9331775ae4e0ac4c28b3b01553bcccff7b117f508de7f3f100c46
7
+ data.tar.gz: 7f4fbf2ed143a02aae459de32266791e958d44c9b5fbd7058a8d6ad3bb09edb6ac106c39552ffc0dd3dc2bed2ef098f35f3be1d63e39ec80eec9bf07f66e9728
data/README.md CHANGED
@@ -84,6 +84,9 @@ Each of these methods can be called with or without a parameter. When
84
84
  called without a parameter, it will simply return the value.
85
85
 
86
86
  ```ruby
87
+ # Base location of all other folders. Default: "."
88
+ root_folder 'my_app'
89
+
87
90
  # Location of source Slim templates. Default: "templates"
88
91
  templates_folder 'views'
89
92
 
@@ -257,7 +260,6 @@ provided, we will watch all the input folders.
257
260
  Todo
258
261
  --------------------------------------------------
259
262
 
260
- - [ ] Consider adding `input_root` which will prefix all others
261
263
  - [ ] YAML loader (data_folder?)
262
264
  - [ ] CSV Loader (data_folder?)
263
265
 
@@ -2,28 +2,40 @@ module Bobkit
2
2
  module LocationOptions
3
3
  include OptionsBase
4
4
 
5
- def templates_folder(path=nil)
6
- setopt :templates_folder, path, 'templates'
5
+ def root_folder(path=nil)
6
+ setopt :root_folder, path, '.'
7
7
  end
8
8
 
9
- def markdown_folder(path=nil)
10
- setopt :markdown_folder, path, 'markdown'
9
+ def templates_folder(path=nil)
10
+ setopt :templates_folder, path, "#{root_folder}/templates"
11
11
  end
12
12
 
13
- def layouts_folder(path=nil)
14
- setopt :layouts_folder, path, "#{templates_folder}/layouts"
13
+ def markdown_folder(path=nil)
14
+ setopt :markdown_folder, path, "#{root_folder}/markdown"
15
15
  end
16
16
 
17
17
  def styles_folder(path=nil)
18
- setopt :styles_folder, path, 'styles'
18
+ setopt :styles_folder, path, "#{root_folder}/styles"
19
19
  end
20
20
 
21
21
  def coffee_folder(path=nil)
22
- setopt :coffee_folder, path, 'coffee'
22
+ setopt :coffee_folder, path, "#{root_folder}/coffee"
23
23
  end
24
24
 
25
25
  def output_folder(path=nil)
26
- setopt :output_folder, path, 'output'
26
+ setopt :output_folder, path, "#{root_folder}/output"
27
+ end
28
+
29
+ def assets_folder(path=nil)
30
+ setopt :assets_folder, path, "#{root_folder}/assets"
31
+ end
32
+
33
+ def locales_folder(path=nil)
34
+ setopt :locales_folder, path, "#{root_folder}/locales"
35
+ end
36
+
37
+ def layouts_folder(path=nil)
38
+ setopt :layouts_folder, path, "#{templates_folder}/layouts"
27
39
  end
28
40
 
29
41
  def css_output_folder(path=nil)
@@ -34,16 +46,9 @@ module Bobkit
34
46
  setopt :js_output_folder, path, "#{output_folder}/js"
35
47
  end
36
48
 
37
- def assets_folder(path=nil)
38
- setopt :assets_folder, path, 'assets'
39
- end
40
49
 
41
50
  def assets_output_folder(path=nil)
42
51
  setopt :assets_output_folder, path, "#{output_folder}/assets"
43
52
  end
44
-
45
- def locales_folder(path=nil)
46
- setopt :locales_folder, path, "locales"
47
- end
48
53
  end
49
54
  end
@@ -1,3 +1,3 @@
1
1
  module Bobkit
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
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.2
4
+ version: 0.1.3
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: 2016-06-06 00:00:00.000000000 Z
11
+ date: 2016-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slim