faalis 2.0.0 → 2.0.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: a8393f4cff680393d20bfd24d04b72150399c6c2
4
- data.tar.gz: 876bfdae7c8febd26278835eb059a32adb69a685
3
+ metadata.gz: 3b95d93bac9aa319a5c7053c7728cecc38ebad4c
4
+ data.tar.gz: 3b3a01a50b4084fb57e9c400334669f141cd17b3
5
5
  SHA512:
6
- metadata.gz: a18545deef8a4ee2da81af606712d374005eec662dbb3f11613499774166efa9bafeeebabefb246b3994c2b2b985080070d1642c9a6aa641bc5890c566f243cc
7
- data.tar.gz: ebe48d5747a4b2471d0c1dec8803fb427fc681c8fffd1d39735109d81600751ca37d6680034c57349d00f82c086c0b971ba42e564d0a1007f03edb645aa25506
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 `faalis` to your gem file with following command:
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", github: 'Yellowen/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
- config.secret_key = '04671846f794e5df0e032abb7d3d3876016f1cf0a1ced726429b2807c798de67f08035cc45e953eca23e08661a7f8030f4bcaec91ef184d89f4c721b5925d36b'
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
@@ -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'
@@ -15,7 +15,7 @@ module Faalis::Configuration
15
15
  # ORM name to use. either 'active_record' or 'mongoid'
16
16
  mattr_accessor :orm
17
17
 
18
- def self.orm=(orm_name)
18
+ def orm=(orm_name)
19
19
  @@orm = orm_name
20
20
  require "devise/orm/#{orm_name}"
21
21
  end
@@ -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
@@ -18,5 +18,5 @@
18
18
  # -----------------------------------------------------------------------------
19
19
 
20
20
  module Faalis
21
- VERSION = '2.0.0'
21
+ VERSION = '2.0.1'
22
22
  end
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.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-17 00:00:00.000000000 Z
12
+ date: 2015-12-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails