kamiflex 0.11.3 → 0.11.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kamiflex/custom.rb +10 -0
- data/lib/kamiflex/version.rb +1 -1
- data/lib/kamiflex.rb +16 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79b7587b1a4426a3c1a56de6761b4ed711aa300e141ed0ace915f7e7160e6fd3
|
4
|
+
data.tar.gz: b9ef01392f6ac9e208f60b768eb5c8fb14763c382f6bba739d45a2262e7081ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c307dede8992c50e4972edfa880dd16f87936a40e8738a11a671521251dab08d9a4e968625d0e8a3a2479b8b464f3fe7b02bf922daa8e32432333113b2a119e
|
7
|
+
data.tar.gz: 5edbf9d275636343c2b7449b74b51d89410e1b10ee10cc2f012fe06063340429b9515171660036f665856f2d32025155f32a683dba589a44408179b174127cba
|
data/lib/kamiflex/version.rb
CHANGED
data/lib/kamiflex.rb
CHANGED
@@ -3,13 +3,29 @@ require_relative "./kamiflex/core"
|
|
3
3
|
require_relative "./kamiflex/basic_elements"
|
4
4
|
require_relative "./kamiflex/actions"
|
5
5
|
require_relative "./kamiflex/quick_reply"
|
6
|
+
require_relative "./kamiflex/custom"
|
6
7
|
|
7
8
|
module Kamiflex
|
9
|
+
def self.to_hash(parent)
|
10
|
+
parent.class.include Kamiflex::Core
|
11
|
+
parent.class.include Kamiflex::BasicElements
|
12
|
+
parent.class.include Kamiflex::Actions
|
13
|
+
parent.class.include Kamiflex::QuickReply
|
14
|
+
parent.class.include Kamiflex::Custom
|
15
|
+
|
16
|
+
parent.instance_exec do
|
17
|
+
flex do
|
18
|
+
yield
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
8
23
|
def self.build(parent)
|
9
24
|
parent.class.include Kamiflex::Core
|
10
25
|
parent.class.include Kamiflex::BasicElements
|
11
26
|
parent.class.include Kamiflex::Actions
|
12
27
|
parent.class.include Kamiflex::QuickReply
|
28
|
+
parent.class.include Kamiflex::Custom
|
13
29
|
|
14
30
|
hash = parent.instance_exec do
|
15
31
|
flex do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kamiflex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- etrex kuo
|
@@ -39,6 +39,7 @@ files:
|
|
39
39
|
- lib/kamiflex/actions.rb
|
40
40
|
- lib/kamiflex/basic_elements.rb
|
41
41
|
- lib/kamiflex/core.rb
|
42
|
+
- lib/kamiflex/custom.rb
|
42
43
|
- lib/kamiflex/quick_reply.rb
|
43
44
|
- lib/kamiflex/railtie.rb
|
44
45
|
- lib/kamiflex/version.rb
|