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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e8b2cdd47cb220902b179ca8316b3bf9bb23c854
4
- data.tar.gz: 8f3a36569e41fa264cf36d22fe6995739eba6414
3
+ metadata.gz: 41ff931aa470b93f173f9c05cc72a3fa1979df9a
4
+ data.tar.gz: 4e96ab7e3889b5bc6c327310ce8f4cca0fe7d4e2
5
5
  SHA512:
6
- metadata.gz: 5a55807db209d1c2de71e0f1555b3bd6d89827f516d2eb9cff2d1fa3645f6d82ee793012718b7590060090799e464e8c419ff6c7f7520993c18b37d19f3fbfcf
7
- data.tar.gz: 1fd0a20051338a6260a7d9b23ba38acdd98c110bf8ec59e8d3167924914182c35bdb26df0b920650c71f626cb352ea946c383e5d3e12952ff218465f38edd33f
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.38"
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: true,
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$/
@@ -1,3 +1,4 @@
1
+ <%%- page_title t('sorcery.reset.choose') -%>
1
2
  <h2><%%= t('sorcery.reset.choose') %></h2>
2
3
 
3
4
  <%%= simple_form_for(@<%= name %>, url: {action: "refresh"}) do |f| %>
@@ -1,3 +1,4 @@
1
+ <%%- page_title t('headers.edit', name: t('activerecord.models.<%= name %>.one')) -%>
1
2
  <h2><%%= t('headers.edit', name: t('activerecord.models.<%= name %>.one')) %></h2>
2
3
 
3
4
  <%%= render 'form' %>
@@ -1,3 +1,4 @@
1
+ <%%- page_title t('headers.index', name: t('activerecord.models.<%= name %>.other')) -%>
1
2
  <h2><%%= t('headers.index', name: t('activerecord.models.<%= name %>.other')) %></h2>
2
3
 
3
4
  <table class="table table-striped table-hover">
@@ -1,3 +1,4 @@
1
+ <%%- page_title t('sorcery.header') -%>
1
2
  <h2><%%= t('sorcery.header') %></h2>
2
3
 
3
4
  <%%= simple_form_for(@<%= name %>, url: {action: "access"}) do |f| %>
@@ -1,3 +1,4 @@
1
+ <%%- page_title t('headers.new', name: t('activerecord.models.<%= name %>.one')) -%>
1
2
  <h2><%%= t('headers.new', name: t('activerecord.models.<%= name %>.one')) %></h2>
2
3
 
3
4
  <%%= render 'form' %>
@@ -1,3 +1,4 @@
1
+ <%%- page_title t('sorcery.reset.header') -%>
1
2
  <h2><%%= t('sorcery.reset.header') %></h2>
2
3
 
3
4
  <%%= simple_form_for(@<%= name %>, url: {action: "reset"}) do |f| %>
@@ -1,4 +1,5 @@
1
- <h2><%%= t('headers.show', name: t('activerecord.models.<%= name %>.one')) %></h2>
1
+ <%%- page_title @<%= name %>.name -%>
2
+ <h2><%%= @<%= name %>.name %></h2>
2
3
 
3
4
  <table class="table table-striped table-hover">
4
5
  <tbody>
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.38
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-26 00:00:00.000000000 Z
11
+ date: 2014-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties