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 +4 -4
- data/app/controllers/fuel/admin/posts_controller.rb +1 -1
- data/lib/fuel/configuration.rb +3 -1
- data/lib/fuel/version.rb +1 -1
- data/lib/generators/templates/fuel.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 630dfad5bfd9f2aa36dad5de8f715c25712cb752
|
|
4
|
+
data.tar.gz: 4a37756448f97307931a4e0e984d2f55bac20a1d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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:
|
|
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
|
data/lib/fuel/configuration.rb
CHANGED
|
@@ -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
|
@@ -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.
|
|
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-
|
|
11
|
+
date: 2014-04-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|