bootswatch_rails 3.2.0.14 → 3.2.0.15
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26fc94eaee65ec610a6b2f157abb816c7e569906
|
4
|
+
data.tar.gz: 47e9c57951fa9bb1348ee9c6b4c846484ffc0713
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 290ea0a0e7c1f51b301f2b0a569b4481f49d07b021a1874d12091c2fa5673d0edcf46b126b8601acd41cf0357f9ad84064be3f9a2b24c3c11fa4c5b9996be3b1
|
7
|
+
data.tar.gz: 0b298ad783410edddfb7a07489604eb126edf0af56596eaaf31d4e55f266310148b94264dc06de88fe60ec173af11bc67eb1d0169cc8744a4b22dfea35e497f0
|
data/Makefile
CHANGED
@@ -10,12 +10,12 @@ rel: build
|
|
10
10
|
./generate.sh
|
11
11
|
vim lib/bootswatch_rails/version.rb
|
12
12
|
git commit -a
|
13
|
-
sudo gem uninstall bootswatch_rails
|
13
|
+
sudo gem uninstall bootswatch_rails --all
|
14
14
|
rake release
|
15
|
+
sudo rake install
|
15
16
|
|
16
17
|
install: build
|
17
18
|
git commit -a
|
18
|
-
sudo rake install
|
19
19
|
|
20
20
|
build:
|
21
21
|
test -d cleditor && git add cleditor || true
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module BootswatchRails
|
2
2
|
BOOTSTRAP = "3.2.0"
|
3
|
-
VERSION = "3.2.0.
|
3
|
+
VERSION = "3.2.0.15"
|
4
4
|
THEMES = [:amelia, :cerulean, :cosmo, :custom, :cyborg, :darkly, :flatly, :journal, :lumen, :paper, :readable, :sandstone, :simplex, :slate, :spacelab, :superhero, :united, :yeti]
|
5
5
|
DEFAULT = 1
|
6
6
|
end
|
@@ -1,4 +1,5 @@
|
|
1
1
|
class <%= controller_name.camelize %> < ApplicationController
|
2
|
+
force_ssl if: :ssl_configured?
|
2
3
|
skip_before_filter :require_login, only: [:log_in, :access, :password, :reset, :change, :refresh, :log_out]
|
3
4
|
before_action :set_<%= name %>, only: [:show, :edit, :update, :destroy]
|
4
5
|
|
@@ -140,6 +141,11 @@ class <%= controller_name.camelize %> < ApplicationController
|
|
140
141
|
end
|
141
142
|
|
142
143
|
private
|
144
|
+
# Always enforce SSL for this controller
|
145
|
+
def ssl_configured?
|
146
|
+
Rails.env.production?
|
147
|
+
end
|
148
|
+
|
143
149
|
# Use callbacks to share common setup or constraints between actions.
|
144
150
|
def set_<%= name %>
|
145
151
|
@<%= name %> = <%= class_name %>.find(params[:id])
|
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.15
|
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-08-
|
11
|
+
date: 2014-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|