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: bc8229c4f7f2db9108e71e2808f47c6da1c82a8b
4
- data.tar.gz: 38b04046df35b7ec432b1a21ca67ec04d2ac023c
3
+ metadata.gz: 26fc94eaee65ec610a6b2f157abb816c7e569906
4
+ data.tar.gz: 47e9c57951fa9bb1348ee9c6b4c846484ffc0713
5
5
  SHA512:
6
- metadata.gz: 051408e595a9c40eee4fe4234699b3597ad494b958d1dc3b75868d4ff690dbc36d15153b110a1174957296cca01920a40d02a809091cdca073854247d1a74581
7
- data.tar.gz: b92bacd621ef0d1e574fcde2e54cbb9a4e2a5e62b9d38b4922854088e0aeab77268577763b51f4dd656958029c03d590596fbe2e321d07fd9fe7ae222f7bc4a6
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.14"
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.14
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-22 00:00:00.000000000 Z
11
+ date: 2014-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties