fuel 0.2.6 → 0.2.7

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: 576e9f221804e86f815329d6bd57e52be94b4bbd
4
- data.tar.gz: 4fb2b85840bba4b01b27ec1e473dcac4bf018d5a
3
+ metadata.gz: 630dfad5bfd9f2aa36dad5de8f715c25712cb752
4
+ data.tar.gz: 4a37756448f97307931a4e0e984d2f55bac20a1d
5
5
  SHA512:
6
- metadata.gz: 0f57cadf29b44ce8384131a7c5948245650e1ba6f47f53a6a554d2f317747e4ece89f9a016f4dee26b8ae4cb38a7a346adf7799b08ca85e9b7c94acdccf20879
7
- data.tar.gz: 89db80ef607f357d4501074e5085f8e9525a871f52da519c38ce61a2f2db0a3c6a35f4e324a28a6cf08d980b54c6fc9d3f2c49ed6d27efbad27ad2ae0c62474f
6
+ metadata.gz: 399e19c5352fb1e37908143cfd63b957652e876b9a0caaaa4013c96c9bb8a960b6354cb9143026a05a368f8c7d49cff11ca9ac1c48866abb99b7550706128fc7
7
+ data.tar.gz: 2af5b5bae89e352482e12199c369eff6fb164a7eab477d6865e0be980f37b0ae770dbfb4ef5e3fa46a89537adedc5b259b30dfa28d6a243ece62f29c4975fd16
@@ -1,6 +1,6 @@
1
1
  module Fuel
2
2
  class Admin::PostsController < ApplicationController
3
- http_basic_authenticate_with name: "admin", password: "password"
3
+ http_basic_authenticate_with name: Fuel.configuration.username, password: Fuel.configuration.password
4
4
 
5
5
  def index
6
6
  @posts = Fuel::Post.all
@@ -2,13 +2,15 @@ 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
5
+ attr_accessor :layout, :blog_title, :disqus_name, :twitter, :username, :password
6
6
 
7
7
  def initialize
8
8
  @layout = "application"
9
9
  @blog_title = "Blog"
10
10
  @disqus_name = nil
11
11
  @twitter = false
12
+ @username = "admin"
13
+ @password = "password"
12
14
  end
13
15
 
14
16
  end
data/lib/fuel/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Fuel
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
@@ -7,6 +7,12 @@ Fuel.configure do |config|
7
7
  # Change title of blog
8
8
  config.blog_title = "Blog"
9
9
 
10
+ # Change admin username
11
+ config.username = "admin"
12
+
13
+ # Change admin password
14
+ config.username = "password"
15
+
10
16
  # Add Disqus
11
17
  #config.disqus_name = 'your_disqus_name'
12
18
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fuel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Francis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-14 00:00:00.000000000 Z
11
+ date: 2014-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails