ratchet_design 0.1.11 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/ratchet/application_helper.rb +10 -11
- data/app/views/layouts/ratchet/default.html.slim +1 -1
- data/lib/ratchet_design/version.rb +1 -1
- data/public/core-0.1.12.js +134 -0
- data/public/core-0.1.12.js.gz +0 -0
- data/public/core-0.1.12.map.json +1 -0
- data/public/{assets/ratchet/fonts-woff-0.1.11.css → fonts-woff-0.1.12.css} +0 -0
- data/public/{assets/ratchet/fonts-woff-0.1.11.css.gz → fonts-woff-0.1.12.css.gz} +0 -0
- data/public/{assets/ratchet/fonts-woff2-0.1.11.css → fonts-woff2-0.1.12.css} +0 -0
- data/public/{assets/ratchet/fonts-woff2-0.1.11.css.gz → fonts-woff2-0.1.12.css.gz} +0 -0
- metadata +10 -10
- data/public/assets/ratchet/core-0.1.11.js +0 -133
- data/public/assets/ratchet/core-0.1.11.js.gz +0 -0
- data/public/assets/ratchet/core-0.1.11.map.json +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc99e2c25f82c3a23a552194e2bbfdd1a6c74aa2
|
4
|
+
data.tar.gz: 58144f1e8dfd925c152ae286910df228be26f8b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c121fb3c5243341fa74686b74952a4965130a4df607edf3225ebfbdf650f38a72f3db0d997c1173f37f1f1005724d7d2303e417d02e5a82a10bd76a57c67bef5
|
7
|
+
data.tar.gz: 329b50cbaecafc123722ae1ef965a38ed1d49c2a04e2dddecfc4979b0bc7abeacfc21a999ab62c4ac0d3538d5f1af768ae9fb61cb59e971b52c90d1a76cae794
|
@@ -42,22 +42,21 @@ module Ratchet
|
|
42
42
|
end
|
43
43
|
|
44
44
|
# Set custom page selector class
|
45
|
-
def
|
46
|
-
|
45
|
+
def page_class(*classes)
|
46
|
+
@classes = [] if @classes.nil?
|
47
|
+
@classes += classes
|
48
|
+
@classes.uniq!
|
49
|
+
nil
|
47
50
|
end
|
48
51
|
|
49
52
|
# Consolidated page class output
|
50
|
-
def
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
@page_classes.strip!
|
55
|
-
else
|
56
|
-
@page_classes || ''
|
57
|
-
end
|
53
|
+
def page_classes
|
54
|
+
page_class = @classes.map(&:to_s).join(" ") rescue nil
|
55
|
+
parts = request.path.split("/").reject(&:blank?).reject{|s| s.match(/\A[0-9]+(\.[0-9]+)?\z/)}
|
56
|
+
[ parts.last, page_class ].reject(&:blank?).join(" ")
|
58
57
|
end
|
59
58
|
|
60
|
-
#
|
59
|
+
# Main section class output
|
61
60
|
def main_class( classnames = nil )
|
62
61
|
if ( classnames )
|
63
62
|
@main_classes ||= ''
|