trusty-layouts-extension 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/share_layouts/controllers/action_controller.rb +5 -5
- data/trusty-layouts-extension.gemspec +1 -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: a84862b2967048cdcd2fdc8bbd0260a04aac596c
|
4
|
+
data.tar.gz: e0f2c0c920b3a2bd71bce6a0afa6c428f8229d2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44c814fb82cb84d3d8127cea39df3028d3373629eead4082b2e366ff432e33053892c33950da25cc087994f7230a9971f4216472cc5ff53e5d256fd688b7384c
|
7
|
+
data.tar.gz: 5175538eb6476bc4163862b659ed0d1c31df3aa67454525cbcbc786b442d1445729a92383ff86a452e858dbffb27568faf86e778f69e088eb7c6519c3e3ea880
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
trusty-layouts-extension (3.1.
|
4
|
+
trusty-layouts-extension (3.1.1)
|
5
5
|
trusty-cms (~> 3.1.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -126,7 +126,7 @@ GEM
|
|
126
126
|
thor (>= 0.14, < 2.0)
|
127
127
|
launchy (2.4.3)
|
128
128
|
addressable (~> 2.3)
|
129
|
-
libv8 (3.16.14.19)
|
129
|
+
libv8 (3.16.14.19-x86_64-darwin-16)
|
130
130
|
loofah (2.0.3)
|
131
131
|
nokogiri (>= 1.5.9)
|
132
132
|
mail (2.6.6)
|
@@ -1,26 +1,26 @@
|
|
1
1
|
module ShareLayouts
|
2
2
|
module Controllers
|
3
3
|
module ActionController
|
4
|
-
|
4
|
+
|
5
5
|
def self.included(base)
|
6
6
|
base.extend ClassMethods
|
7
7
|
end
|
8
|
-
|
8
|
+
|
9
9
|
module ClassMethods
|
10
10
|
def trusty_layout(name=nil, options={}, &block)
|
11
11
|
raise ArgumentError, "A layout name or block is required!" unless name || block
|
12
12
|
class_attribute :trusty_layout
|
13
13
|
self.trusty_layout = name || block
|
14
|
-
|
14
|
+
before_action :set_trusty_layout
|
15
15
|
layout 'trusty', options
|
16
16
|
end
|
17
17
|
end
|
18
|
-
|
18
|
+
|
19
19
|
def set_trusty_layout
|
20
20
|
@trusty_layout = self.class.trusty_layout
|
21
21
|
@trusty_layout = @trusty_layout.call(self) if @trusty_layout.is_a? Proc
|
22
22
|
end
|
23
|
-
|
23
|
+
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
require "trusty-layouts-extension"
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = %q{trusty-layouts-extension}
|
6
|
-
s.version = "3.1.
|
6
|
+
s.version = "3.1.1"
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
9
9
|
s.authors = ["Eric Sipple", "Michael Klett", "Jim Gay", "William Ross", "Tony Issakov", "Dirk Kelly", "Brittany Martin"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trusty-layouts-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Sipple
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2017-08-
|
17
|
+
date: 2017-08-09 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: trusty-cms
|