bootswatch_rails 3.2.0.38 → 3.2.0.39
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bootswatch_rails/version.rb +1 -1
- data/lib/generators/bootswatch_rails/sorcery/sorcery_generator.rb +5 -1
- data/lib/generators/bootswatch_rails/sorcery/templates/change.html.erb +1 -0
- data/lib/generators/bootswatch_rails/sorcery/templates/edit.html.erb +1 -0
- data/lib/generators/bootswatch_rails/sorcery/templates/index.html.erb +1 -0
- data/lib/generators/bootswatch_rails/sorcery/templates/log_in.html.erb +1 -0
- data/lib/generators/bootswatch_rails/sorcery/templates/new.html.erb +1 -0
- data/lib/generators/bootswatch_rails/sorcery/templates/password.html.erb +1 -0
- data/lib/generators/bootswatch_rails/sorcery/templates/show.html.erb +2 -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: 41ff931aa470b93f173f9c05cc72a3fa1979df9a
|
4
|
+
data.tar.gz: 4e96ab7e3889b5bc6c327310ce8f4cca0fe7d4e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29ea5962d86598f55cecfd1a9bd55a70034e738ce8a147bacda615649d4c7cd6cbb79bb3a31d3fa31916dc5d0ba450f48987a3d68847c681ad341760aa084430
|
7
|
+
data.tar.gz: 7b430a9e29c7d34d7f83f7503e7af281acd03440c0fcfd50865138918003c39bcef6e3e66f0abbffc340ff94c7ac9cc35a5f35144562b66d5155dae001276e7b
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module BootswatchRails
|
2
2
|
BOOTSTRAP = "3.2.0"
|
3
3
|
FONT_AWESOME = "4.2.0"
|
4
|
-
VERSION = "3.2.0.
|
4
|
+
VERSION = "3.2.0.39"
|
5
5
|
|
6
6
|
THEMES = [:amelia, :cerulean, :cosmo, :custom, :cyborg, :darkly, :flatly, :journal, :lumen, :paper, :readable, :sandstone, :simplex, :slate, :spacelab, :superhero, :united, :yeti]
|
7
7
|
DEFAULT = 1
|
@@ -10,7 +10,7 @@ module BootswatchRails
|
|
10
10
|
desc: 'Add picture to user (needs carrierwave)'
|
11
11
|
class_option :gravatar, type: :boolean, default: false,
|
12
12
|
desc: 'Add Gravatar image to user (uses email)'
|
13
|
-
class_option :authorization, type: :boolean, default:
|
13
|
+
class_option :authorization, type: :boolean, default: false,
|
14
14
|
desc: 'Add dynamic athorization on top of authentication'
|
15
15
|
class_option :user_activation, type: :boolean, default: false,
|
16
16
|
desc: 'User activation by email with optional success email'
|
@@ -139,6 +139,10 @@ module BootswatchRails
|
|
139
139
|
" def not_authenticated",
|
140
140
|
" redirect_to login_path, alert: t('sorcery.required')",
|
141
141
|
" end",
|
142
|
+
"",
|
143
|
+
" def current_sysadm?",
|
144
|
+
" current_user and current_user.sysadm",
|
145
|
+
" end",
|
142
146
|
""
|
143
147
|
]
|
144
148
|
inject_into_file file, lines.join("\n"), before: /^end$/
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootswatch_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.0.
|
4
|
+
version: 3.2.0.39
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Volker Wiegand
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|