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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6be00d675e4acb60dfe108767a76d81adf7c6abe
4
- data.tar.gz: 6a4746a52d0f6642fa2c62756171c0b8fa9868c7
3
+ metadata.gz: af3ee2961bfd642dbdefa9f348ac6170641954b3
4
+ data.tar.gz: 4b4138e6842c4579768b7f2025989c07b1a6ab23
5
5
  SHA512:
6
- metadata.gz: 9c21b893f721de909aec9dfe8884045e42870bb228e9bc67ea1b59ae52ad03bc82030195a805e7ca558506ff52e26b4940ed9a7ad5981b530e3ae7ebe01469a0
7
- data.tar.gz: 13bb0a158189a27e3252a8663ac71ce84b41e297f20f20563ad588d105f5d6c0949d3b5668aa43f3873d7939240cc51562303d428fb7b40f2ec8f6d4daf8126c
6
+ metadata.gz: 3ce3520f560f7f10d557b2cd96cbcf3670b29149d806f810547bfcc496049adbf67f2b5c6f689bc4a67b44ac89a45d82f5ce749e1fa4278eeb7501e220a6781f
7
+ data.tar.gz: 797bf949ca35a2bf9d7aa63cfea0194ae7b22317f0791c535b22f057d5ec20162d7d03cfcfe31930f28a16e0f2c8ad5ab0086140b6db560be43da30a1ecf129c
@@ -1,16 +1,28 @@
1
1
  module SuperInteraction
2
2
  module Layout
3
- mattr_accessor :framework
4
- self.framework = :bootstrap3
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
@@ -1,3 +1,3 @@
1
1
  module SuperTools
2
- VERSION = '0.0.21'
2
+ VERSION = '0.0.25'
3
3
  end
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.21
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-22 00:00:00.000000000 Z
11
+ date: 2021-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler