fuel 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3cbee08504b79f261ee7f764f3726ddd25d73e59
4
- data.tar.gz: 2081d3326cf7b22e28ab59b8f78a753bc395a079
3
+ metadata.gz: b67615cb427e46945de0762ec3ae9735da0f67d1
4
+ data.tar.gz: 9a9cc063605530dc7751ab22caef0843cf6b5da2
5
5
  SHA512:
6
- metadata.gz: 44139ebdb5968a556ffc72e808d9c1b1932baaee004d4bb430b67bfb4b7827d50399b9de3bc8e9c41738d89e826ca328e0e2e1e6b3e361a68abb0c807a60209d
7
- data.tar.gz: 0d6198de333bee902fe1bcc3c2fa726c4a6484942eb107da9fc6f809adca5e5fb305512aaa169247cc214449458d3ceb062b8e08f2af0d6f85c3333d5ef84f03
6
+ metadata.gz: 7cf3f785993028ecb86a906c635edc6a1745c5881b707a6521539305cdc5d0dfa8552d8637c898a6c01dbb88ee42da0d2d6a9791479bf5742fac1662885cd770
7
+ data.tar.gz: 97d7fb294adbe1458038d6f47513f6c3d1d3a043cffa55630fd69898378869437368a7009e920faf5032ee0bffd85ff5a753bf17200d12068d14277cb52bae0c
@@ -1,6 +1,8 @@
1
1
  module Fuel
2
2
  module ApplicationHelper
3
- include ::ApplicationHelper
3
+ Fuel.configuration.helpers.each do |helper|
4
+ include "::#{helper}".constantize
5
+ end
4
6
 
5
7
  def markdown(text)
6
8
  markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML,
@@ -2,7 +2,7 @@ module Fuel
2
2
  class Configuration
3
3
 
4
4
  # What kind of comments do you want to add to your blog ? (:active_record, :disqus or :no)
5
- attr_accessor :layout, :blog_title, :disqus_name, :twitter, :username, :password
5
+ attr_accessor :layout, :blog_title, :disqus_name, :twitter, :username, :password, :helpers
6
6
 
7
7
  def initialize
8
8
  @layout = "application"
@@ -11,6 +11,7 @@ module Fuel
11
11
  @twitter = false
12
12
  @username = "admin"
13
13
  @password = "password"
14
+ @helpers = ["ApplicationHelper"]
14
15
  end
15
16
 
16
17
  end
data/lib/fuel/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Fuel
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
@@ -13,6 +13,10 @@ Fuel.configure do |config|
13
13
  # Change admin password
14
14
  config.username = "password"
15
15
 
16
+ config.helpers = ["ApplicationHelper",
17
+ #"another_helper",
18
+ ]
19
+
16
20
  # Add Disqus
17
21
  #config.disqus_name = 'your_disqus_name'
18
22
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fuel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Francis