super_tools 0.0.21 → 0.0.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/super_interaction/layout.rb +15 -3
- data/lib/super_tools/version.rb +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: af3ee2961bfd642dbdefa9f348ac6170641954b3
|
4
|
+
data.tar.gz: 4b4138e6842c4579768b7f2025989c07b1a6ab23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ce3520f560f7f10d557b2cd96cbcf3670b29149d806f810547bfcc496049adbf67f2b5c6f689bc4a67b44ac89a45d82f5ce749e1fa4278eeb7501e220a6781f
|
7
|
+
data.tar.gz: 797bf949ca35a2bf9d7aa63cfea0194ae7b22317f0791c535b22f057d5ec20162d7d03cfcfe31930f28a16e0f2c8ad5ab0086140b6db560be43da30a1ecf129c
|
@@ -1,16 +1,28 @@
|
|
1
1
|
module SuperInteraction
|
2
2
|
module Layout
|
3
|
-
|
4
|
-
|
3
|
+
|
4
|
+
FRAMEWORKS = [ :bootstrap3, :bootstrap4, :beyond ]
|
5
|
+
|
6
|
+
def self.framework=(f)
|
7
|
+
raise "Not support framework: #{f}" if FRAMEWORKS.include?(f) == false
|
8
|
+
@@framework = f
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.framework
|
12
|
+
@@framework
|
13
|
+
end
|
5
14
|
|
6
15
|
def self.modal_layout
|
7
|
-
case framework
|
16
|
+
case @@framework
|
8
17
|
when :bootstrap3
|
9
18
|
"modal_bs3.haml"
|
10
19
|
when :bootstrap4
|
11
20
|
"modal_bs4.haml"
|
12
21
|
when :beyond
|
13
22
|
"modal_beyond.haml"
|
23
|
+
else
|
24
|
+
# Default
|
25
|
+
"modal_bs3.haml"
|
14
26
|
end
|
15
27
|
end
|
16
28
|
end
|
data/lib/super_tools/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: super_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.25
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- eddie
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|