faalis 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/config/initializers/devise.rb +5 -2
- data/lib/faalis.rb +0 -19
- data/lib/faalis/configuration.rb +1 -1
- data/lib/faalis/engine.rb +0 -5
- data/lib/faalis/version.rb +1 -1
- 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: 3b95d93bac9aa319a5c7053c7728cecc38ebad4c
|
4
|
+
data.tar.gz: 3b3a01a50b4084fb57e9c400334669f141cd17b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9eff97949f53e961c00645aebd509db6ebca6a9fa22419790757c946aad526431f68ef156c13c91deebdf48bee03a9a86fbc32b3399c4284e055631696175105
|
7
|
+
data.tar.gz: 797f60ef3abeed5e17333aab954f5860786973f80342db9053ad76785209fffd8a9a62fbccdc5e00aedd88ffbe4b9a2ad3ee3bf8357bae24030fdbc1448ef887
|
data/README.md
CHANGED
@@ -12,7 +12,7 @@ tools, and provides additional features like a robust dashboard, pre-baked authe
|
|
12
12
|
cool stuff.
|
13
13
|
|
14
14
|
## Installation
|
15
|
-
Simply add
|
15
|
+
Simply add these to the end of your `Gemfile`:
|
16
16
|
|
17
17
|
```ruby
|
18
18
|
source 'http://rails-assets.org' do
|
@@ -25,7 +25,7 @@ source 'http://rails-assets.org' do
|
|
25
25
|
gem 'rails-assets-admin-lte'
|
26
26
|
end
|
27
27
|
|
28
|
-
gem "faalis"
|
28
|
+
gem "faalis"
|
29
29
|
```
|
30
30
|
|
31
31
|
Then install your project dependencies using `bundle` command:
|
@@ -2,8 +2,11 @@
|
|
2
2
|
# Many of these configuration options can be set straight in your model.
|
3
3
|
Devise.setup do |config|
|
4
4
|
|
5
|
-
|
6
|
-
|
5
|
+
if Rails.env.development? || Rails.env.test?
|
6
|
+
config.secret_key = '04671846f794e5df0e032abb7d3d3876016f1cf0a1ced726429b2807c798de67f08035cc45e953eca23e08661a7f8030f4bcaec91ef184d89f4c721b5925d36b'
|
7
|
+
else
|
8
|
+
config.secret_key = ENV['DEVISE_SECRET_KEY'] || ENV["SECRET_KEY_BASE"]
|
9
|
+
end
|
7
10
|
|
8
11
|
# ==> Mountable engine configurations
|
9
12
|
# When using Devise inside an engine, let's call it `MyEngine`, and this engine
|
data/lib/faalis.rb
CHANGED
@@ -1,22 +1,3 @@
|
|
1
|
-
# -----------------------------------------------------------------------------
|
2
|
-
# Faalis - Basic website skel engine
|
3
|
-
# Copyright (C) 2012-2013 Yellowen
|
4
|
-
#
|
5
|
-
# This program is free software; you can redistribute it and/or modify
|
6
|
-
# it under the terms of the GNU General Public License as published by
|
7
|
-
# the Free Software Foundation; either version 2 of the License, or
|
8
|
-
# (at your option) any later version.
|
9
|
-
#
|
10
|
-
# This program is distributed in the hope that it will be useful,
|
11
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
-
# GNU General Public License for more details.
|
14
|
-
#
|
15
|
-
# You should have received a copy of the GNU General Public License along
|
16
|
-
# with this program; if not, write to the Free Software Foundation, Inc.,
|
17
|
-
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
18
|
-
# -----------------------------------------------------------------------------
|
19
|
-
|
20
1
|
require 'i18n'
|
21
2
|
require 'devise'
|
22
3
|
require 'turbolinks'
|
data/lib/faalis/configuration.rb
CHANGED
data/lib/faalis/engine.rb
CHANGED
@@ -26,7 +26,6 @@ module Faalis
|
|
26
26
|
|
27
27
|
extend Faalis::Configuration
|
28
28
|
|
29
|
-
# TODO: Break this class to modules
|
30
29
|
# TODO: Add a facility to allow developers to select
|
31
30
|
# features of faalis
|
32
31
|
isolate_namespace Faalis
|
@@ -46,13 +45,10 @@ module Faalis
|
|
46
45
|
g.helper false
|
47
46
|
end
|
48
47
|
|
49
|
-
|
50
48
|
def self.setup
|
51
49
|
yield self
|
52
50
|
end
|
53
51
|
|
54
|
-
|
55
|
-
|
56
52
|
# Override devise layout
|
57
53
|
config.to_prepare do
|
58
54
|
Devise::SessionsController.layout 'faalis/simple'
|
@@ -62,7 +58,6 @@ module Faalis
|
|
62
58
|
Devise::PasswordsController.layout 'faalis/application'
|
63
59
|
end
|
64
60
|
|
65
|
-
|
66
61
|
middleware.use Faalis::Middlewares::Locale
|
67
62
|
|
68
63
|
end
|
data/lib/faalis/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: faalis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sameer Rahmani
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-12-
|
12
|
+
date: 2015-12-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|